@magmonium/one 0.3.6 → 0.3.7
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-image-editor-DOHQLwOd.mjs → magmonium-one-image-editor-DU8ACxaB.mjs} +2 -2
- package/fesm2022/{magmonium-one-image-editor-DOHQLwOd.mjs.map → magmonium-one-image-editor-DU8ACxaB.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-magmonium-one-CCFg3oSr.mjs → magmonium-one-magmonium-one-BuqkK2mJ.mjs} +96 -23
- package/fesm2022/{magmonium-one-magmonium-one-CCFg3oSr.mjs.map → magmonium-one-magmonium-one-BuqkK2mJ.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-otp-DWxgKMy4.mjs → magmonium-one-otp-3YsGc7F5.mjs} +2 -2
- package/fesm2022/{magmonium-one-otp-DWxgKMy4.mjs.map → magmonium-one-otp-3YsGc7F5.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-password-BAO_KJTn.mjs → magmonium-one-password-Bm_Vl_rl.mjs} +2 -2
- package/fesm2022/{magmonium-one-password-BAO_KJTn.mjs.map → magmonium-one-password-Bm_Vl_rl.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-toggle-DUaDJWDm.mjs → magmonium-one-toggle-LayGvIH-.mjs} +2 -2
- package/fesm2022/{magmonium-one-toggle-DUaDJWDm.mjs.map → magmonium-one-toggle-LayGvIH-.mjs.map} +1 -1
- package/fesm2022/magmonium-one.mjs +1 -1
- package/package.json +1 -1
- package/types/magmonium-one.d.ts +18 -0
package/fesm2022/{magmonium-one-image-editor-DOHQLwOd.mjs → magmonium-one-image-editor-DU8ACxaB.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { input, inject, viewChild, signal, computed, effect, DestroyRef, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { M as MODAL_REF, a as MIN_ZOOM, I as InputType, b as MAX_ZOOM, p as parseRatio, o as outputSize, c as cropRect, i as initialFraming, e as encodeFramed, d as drawFramed, r as renameForType, f as clampFraming, B as ButtonComponent, H as HeaderComponent, R as RangeInputComponent } from './magmonium-one-magmonium-one-
|
|
3
|
+
import { M as MODAL_REF, a as MIN_ZOOM, I as InputType, b as MAX_ZOOM, p as parseRatio, o as outputSize, c as cropRect, i as initialFraming, e as encodeFramed, d as drawFramed, r as renameForType, f as clampFraming, B as ButtonComponent, H as HeaderComponent, R as RangeInputComponent } from './magmonium-one-magmonium-one-BuqkK2mJ.mjs';
|
|
4
4
|
|
|
5
5
|
const WHEEL_ZOOM_RATE = 0.0015;
|
|
6
6
|
const distance = (a, b) => Math.hypot(a.x - b.x, a.y - b.y);
|
|
@@ -287,4 +287,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
287
287
|
}], propDecorators: { file: [{ type: i0.Input, args: [{ isSignal: true, alias: "file", required: true }] }], ratio: [{ type: i0.Input, args: [{ isSignal: true, alias: "ratio", required: true }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: true }] }], stage: [{ type: i0.ViewChild, args: ['stage', { isSignal: true }] }] } });
|
|
288
288
|
|
|
289
289
|
export { ImageEditorComponent };
|
|
290
|
-
//# sourceMappingURL=magmonium-one-image-editor-
|
|
290
|
+
//# sourceMappingURL=magmonium-one-image-editor-DU8ACxaB.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-image-editor-DOHQLwOd.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/file-upload-input/image-editor.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ButtonComponent } from '../../../button/ui/button';\nimport { HeaderComponent } from '../../../header';\nimport { RangeInputComponent } from '../range/range';\nimport { InputType, RangeInput } from '../../model/input';\nimport { MODAL_REF, ModalRef } from '../../../../config/modal-ref';\nimport {\n clampFraming,\n cropRect,\n drawFramed,\n encodeFramed,\n Framing,\n FrameSize,\n initialFraming,\n MAX_ZOOM,\n MIN_ZOOM,\n outputSize,\n parseRatio,\n renameForType,\n} from './image-frame';\n\n/**\n * What an ImageEditor closes with. The framed file on an apply, `unreadable`\n * when the picture never decoded, and neither for a dismissal — a flat object\n * rather than a union, so the web-component build (no `strict`) reads it too.\n */\nexport type ImageEditorResult = { file?: File; unreadable?: boolean };\n\ntype Point = { x: number; y: number };\n\nconst WHEEL_ZOOM_RATE = 0.0015;\n\nconst distance = (a: Point, b: Point): number =>\n Math.hypot(a.x - b.x, a.y - b.y);\n\n@Component({\n selector: 'm-image-editor',\n template: `\n <div class=\"image-editor\">\n <m-header\n [level]=\"3\"\n label=\"edit-image-size\"\n [params]=\"sizeParams()\"\n />\n <div\n #stage\n class=\"image-editor__stage\"\n [style.aspect-ratio]=\"aspect()\"\n [style.--m-image-editor-aspect]=\"aspect()\"\n [class.image-editor__stage--panning]=\"isPanning()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (wheel)=\"onWheel($event)\"\n >\n @if (sourceUrl(); as url) {\n <img\n class=\"image-editor__image\"\n [src]=\"url\"\n alt=\"\"\n draggable=\"false\"\n [style.width.px]=\"imageBox().width\"\n [style.height.px]=\"imageBox().height\"\n [style.transform]=\"imageBox().transform\"\n />\n }\n </div>\n <m-range\n [config]=\"zoomConfig()\"\n [value]=\"zoomPercent()\"\n (valueChange)=\"onZoom($event)\"\n />\n <!-- asset: buttons/okay.yml. No cancel beside it: the Modal's own close\n is the cancel, and it drops the image the same way. -->\n <m-one-button\n name=\"okay\"\n label=\"apply\"\n [disabled]=\"!source() || isApplying()\"\n (clicked)=\"apply()\"\n />\n </div>\n `,\n imports: [ButtonComponent, HeaderComponent, RangeInputComponent],\n styleUrl: './image-editor.sass',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ImageEditorComponent {\n readonly file = input.required<File>();\n readonly ratio = input.required<string>();\n readonly width = input.required<number>();\n\n readonly #modalRef = inject<ModalRef<ImageEditorResult | undefined>>(MODAL_REF);\n private readonly stage = viewChild<ElementRef<HTMLDivElement>>('stage');\n\n protected readonly source = signal<ImageBitmap | undefined>(undefined);\n protected readonly sourceUrl = signal<string | undefined>(undefined);\n protected readonly isApplying = signal(false);\n private readonly framing = signal<Framing>({ cx: 0, cy: 0, zoom: MIN_ZOOM });\n private readonly stageWidth = signal(0);\n private readonly pointers = new Map<number, Point>();\n protected readonly isPanning = signal(false);\n #settled = false;\n\n protected readonly zoomConfig = computed<RangeInput>(() => ({\n name: 'zoom',\n label: 'zoom',\n type: InputType.RANGE,\n min: MIN_ZOOM * 100,\n max: MAX_ZOOM * 100,\n }));\n\n protected readonly aspect = computed(() => parseRatio(this.ratio()) ?? 1);\n\n private readonly output = computed<FrameSize | undefined>(() =>\n outputSize(this.ratio(), this.width())\n );\n\n protected readonly sizeParams = computed(() => {\n const size = this.output();\n return {\n width: String(size?.width ?? ''),\n height: String(size?.height ?? ''),\n };\n });\n\n private readonly imageSize = computed<FrameSize | undefined>(() => {\n const bitmap = this.source();\n return bitmap ? { width: bitmap.width, height: bitmap.height } : undefined;\n });\n\n protected readonly zoomPercent = computed(() =>\n String(Math.round(this.framing().zoom * 100))\n );\n\n /** The whole picture laid out so the box shows exactly the crop. */\n protected readonly imageBox = computed(() => {\n const image = this.imageSize();\n const stage = this.stageWidth();\n if (!image || !stage) return { width: 0, height: 0, transform: 'none' };\n const rect = cropRect(image, this.aspect(), this.framing());\n const scale = stage / rect.width;\n return {\n width: image.width * scale,\n height: image.height * scale,\n transform: `translate(${-rect.x * scale}px, ${-rect.y * scale}px)`,\n };\n });\n\n private readonly load = effect((onCleanup) => {\n const file = this.file();\n let cancelled = false;\n const url = URL.createObjectURL(file);\n this.sourceUrl.set(url);\n // EXIF orientation applied here, so the geometry below and the <img> the\n // stage draws agree on which way is up.\n createImageBitmap(file, { imageOrientation: 'from-image' })\n .then((bitmap) => {\n if (cancelled) {\n bitmap.close();\n return;\n }\n this.framing.set(\n initialFraming({ width: bitmap.width, height: bitmap.height })\n );\n this.source.set(bitmap);\n })\n .catch(() => {\n if (!cancelled) this.settle({ unreadable: true });\n });\n onCleanup(() => {\n cancelled = true;\n URL.revokeObjectURL(url);\n this.source()?.close();\n });\n });\n\n private readonly measure = effect((onCleanup) => {\n const stage = this.stage()?.nativeElement;\n if (!stage) return;\n this.stageWidth.set(stage.clientWidth);\n if (typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(([entry]) =>\n this.stageWidth.set(entry.contentRect.width)\n );\n observer.observe(stage);\n onCleanup(() => observer.disconnect());\n });\n\n // The Modal's own close affordance destroys the body without a word, and a\n // dismissal is a cancel: whoever opened the editor is still waiting.\n private readonly reportDismissal = inject(DestroyRef).onDestroy(() =>\n this.settle(undefined)\n );\n\n protected onPointerDown = (event: PointerEvent): void => {\n if (!this.source()) return;\n (event.currentTarget as HTMLElement).setPointerCapture?.(event.pointerId);\n this.pointers.set(event.pointerId, { x: event.clientX, y: event.clientY });\n this.isPanning.set(true);\n };\n\n protected onPointerMove = (event: PointerEvent): void => {\n const previous = this.pointers.get(event.pointerId);\n if (!previous) return;\n const next = { x: event.clientX, y: event.clientY };\n const others = [...this.pointers.entries()].filter(\n ([id]) => id !== event.pointerId\n );\n if (others.length === 1) {\n // Pinch: the gap between two fingers is the zoom.\n const anchor = others[0][1];\n const before = distance(previous, anchor);\n if (before > 0) this.zoomBy(distance(next, anchor) / before);\n } else if (others.length === 0) {\n this.panBy(next.x - previous.x, next.y - previous.y);\n }\n this.pointers.set(event.pointerId, next);\n };\n\n protected onPointerUp = (event: PointerEvent): void => {\n this.pointers.delete(event.pointerId);\n this.isPanning.set(this.pointers.size > 0);\n };\n\n protected onWheel = (event: WheelEvent): void => {\n if (!this.source()) return;\n event.preventDefault();\n this.zoomBy(Math.exp(-event.deltaY * WHEEL_ZOOM_RATE));\n };\n\n protected onZoom = (percent: string): void => {\n const zoom = Number(percent) / 100;\n if (!Number.isFinite(zoom)) return;\n this.updateFraming((framing) => ({ ...framing, zoom }));\n };\n\n protected apply = async (): Promise<void> => {\n const bitmap = this.source();\n const image = this.imageSize();\n const output = this.output();\n if (!bitmap || !image || !output || this.isApplying()) return;\n this.isApplying.set(true);\n try {\n const rect = cropRect(image, this.aspect(), this.framing());\n const blob = await encodeFramed(drawFramed(bitmap, rect, output));\n const original = this.file();\n this.settle({\n file: new File([blob], renameForType(original.name, blob.type), {\n type: blob.type,\n lastModified: Date.now(),\n }),\n });\n } catch {\n this.settle({ unreadable: true });\n }\n };\n\n /** Screen pixels dragged, moved into source pixels at the current scale. */\n private panBy = (dx: number, dy: number): void => {\n const image = this.imageSize();\n const stage = this.stageWidth();\n if (!image || !stage) return;\n const rect = cropRect(image, this.aspect(), this.framing());\n const perPixel = rect.width / stage;\n this.updateFraming((framing) => ({\n ...framing,\n cx: framing.cx - dx * perPixel,\n cy: framing.cy - dy * perPixel,\n }));\n };\n\n private zoomBy = (factor: number): void => {\n this.updateFraming((framing) => ({\n ...framing,\n zoom: framing.zoom * factor,\n }));\n };\n\n private updateFraming = (change: (framing: Framing) => Framing): void => {\n const image = this.imageSize();\n if (!image) return;\n this.framing.update((framing) =>\n clampFraming(image, this.aspect(), change(framing))\n );\n };\n\n private settle = (result: ImageEditorResult | undefined): void => {\n if (this.#settled) return;\n this.#settled = true;\n this.#modalRef.close(result);\n };\n}\n"],"names":[],"mappings":";;;;AAyCA,MAAM,eAAe,GAAG,MAAM;AAE9B,MAAM,QAAQ,GAAG,CAAC,CAAQ,EAAE,CAAQ,KAClC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CA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EAAA,QAAA,EAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CT,EAAA,OAAA,EACQ,CAAC,eAAe,EAAE,eAAe,EAAE,mBAAmB,CAAC,EAAA,eAAA,EAE/C,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,0wBAAA,CAAA,EAAA;4UAQgB,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"magmonium-one-image-editor-DU8ACxaB.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/file-upload-input/image-editor.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ButtonComponent } from '../../../button/ui/button';\nimport { HeaderComponent } from '../../../header';\nimport { RangeInputComponent } from '../range/range';\nimport { InputType, RangeInput } from '../../model/input';\nimport { MODAL_REF, ModalRef } from '../../../../config/modal-ref';\nimport {\n clampFraming,\n cropRect,\n drawFramed,\n encodeFramed,\n Framing,\n FrameSize,\n initialFraming,\n MAX_ZOOM,\n MIN_ZOOM,\n outputSize,\n parseRatio,\n renameForType,\n} from './image-frame';\n\n/**\n * What an ImageEditor closes with. The framed file on an apply, `unreadable`\n * when the picture never decoded, and neither for a dismissal — a flat object\n * rather than a union, so the web-component build (no `strict`) reads it too.\n */\nexport type ImageEditorResult = { file?: File; unreadable?: boolean };\n\ntype Point = { x: number; y: number };\n\nconst WHEEL_ZOOM_RATE = 0.0015;\n\nconst distance = (a: Point, b: Point): number =>\n Math.hypot(a.x - b.x, a.y - b.y);\n\n@Component({\n selector: 'm-image-editor',\n template: `\n <div class=\"image-editor\">\n <m-header\n [level]=\"3\"\n label=\"edit-image-size\"\n [params]=\"sizeParams()\"\n />\n <div\n #stage\n class=\"image-editor__stage\"\n [style.aspect-ratio]=\"aspect()\"\n [style.--m-image-editor-aspect]=\"aspect()\"\n [class.image-editor__stage--panning]=\"isPanning()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (wheel)=\"onWheel($event)\"\n >\n @if (sourceUrl(); as url) {\n <img\n class=\"image-editor__image\"\n [src]=\"url\"\n alt=\"\"\n draggable=\"false\"\n [style.width.px]=\"imageBox().width\"\n [style.height.px]=\"imageBox().height\"\n [style.transform]=\"imageBox().transform\"\n />\n }\n </div>\n <m-range\n [config]=\"zoomConfig()\"\n [value]=\"zoomPercent()\"\n (valueChange)=\"onZoom($event)\"\n />\n <!-- asset: buttons/okay.yml. No cancel beside it: the Modal's own close\n is the cancel, and it drops the image the same way. -->\n <m-one-button\n name=\"okay\"\n label=\"apply\"\n [disabled]=\"!source() || isApplying()\"\n (clicked)=\"apply()\"\n />\n </div>\n `,\n imports: [ButtonComponent, HeaderComponent, RangeInputComponent],\n styleUrl: './image-editor.sass',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ImageEditorComponent {\n readonly file = input.required<File>();\n readonly ratio = input.required<string>();\n readonly width = input.required<number>();\n\n readonly #modalRef = inject<ModalRef<ImageEditorResult | undefined>>(MODAL_REF);\n private readonly stage = viewChild<ElementRef<HTMLDivElement>>('stage');\n\n protected readonly source = signal<ImageBitmap | undefined>(undefined);\n protected readonly sourceUrl = signal<string | undefined>(undefined);\n protected readonly isApplying = signal(false);\n private readonly framing = signal<Framing>({ cx: 0, cy: 0, zoom: MIN_ZOOM });\n private readonly stageWidth = signal(0);\n private readonly pointers = new Map<number, Point>();\n protected readonly isPanning = signal(false);\n #settled = false;\n\n protected readonly zoomConfig = computed<RangeInput>(() => ({\n name: 'zoom',\n label: 'zoom',\n type: InputType.RANGE,\n min: MIN_ZOOM * 100,\n max: MAX_ZOOM * 100,\n }));\n\n protected readonly aspect = computed(() => parseRatio(this.ratio()) ?? 1);\n\n private readonly output = computed<FrameSize | undefined>(() =>\n outputSize(this.ratio(), this.width())\n );\n\n protected readonly sizeParams = computed(() => {\n const size = this.output();\n return {\n width: String(size?.width ?? ''),\n height: String(size?.height ?? ''),\n };\n });\n\n private readonly imageSize = computed<FrameSize | undefined>(() => {\n const bitmap = this.source();\n return bitmap ? { width: bitmap.width, height: bitmap.height } : undefined;\n });\n\n protected readonly zoomPercent = computed(() =>\n String(Math.round(this.framing().zoom * 100))\n );\n\n /** The whole picture laid out so the box shows exactly the crop. */\n protected readonly imageBox = computed(() => {\n const image = this.imageSize();\n const stage = this.stageWidth();\n if (!image || !stage) return { width: 0, height: 0, transform: 'none' };\n const rect = cropRect(image, this.aspect(), this.framing());\n const scale = stage / rect.width;\n return {\n width: image.width * scale,\n height: image.height * scale,\n transform: `translate(${-rect.x * scale}px, ${-rect.y * scale}px)`,\n };\n });\n\n private readonly load = effect((onCleanup) => {\n const file = this.file();\n let cancelled = false;\n const url = URL.createObjectURL(file);\n this.sourceUrl.set(url);\n // EXIF orientation applied here, so the geometry below and the <img> the\n // stage draws agree on which way is up.\n createImageBitmap(file, { imageOrientation: 'from-image' })\n .then((bitmap) => {\n if (cancelled) {\n bitmap.close();\n return;\n }\n this.framing.set(\n initialFraming({ width: bitmap.width, height: bitmap.height })\n );\n this.source.set(bitmap);\n })\n .catch(() => {\n if (!cancelled) this.settle({ unreadable: true });\n });\n onCleanup(() => {\n cancelled = true;\n URL.revokeObjectURL(url);\n this.source()?.close();\n });\n });\n\n private readonly measure = effect((onCleanup) => {\n const stage = this.stage()?.nativeElement;\n if (!stage) return;\n this.stageWidth.set(stage.clientWidth);\n if (typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(([entry]) =>\n this.stageWidth.set(entry.contentRect.width)\n );\n observer.observe(stage);\n onCleanup(() => observer.disconnect());\n });\n\n // The Modal's own close affordance destroys the body without a word, and a\n // dismissal is a cancel: whoever opened the editor is still waiting.\n private readonly reportDismissal = inject(DestroyRef).onDestroy(() =>\n this.settle(undefined)\n );\n\n protected onPointerDown = (event: PointerEvent): void => {\n if (!this.source()) return;\n (event.currentTarget as HTMLElement).setPointerCapture?.(event.pointerId);\n this.pointers.set(event.pointerId, { x: event.clientX, y: event.clientY });\n this.isPanning.set(true);\n };\n\n protected onPointerMove = (event: PointerEvent): void => {\n const previous = this.pointers.get(event.pointerId);\n if (!previous) return;\n const next = { x: event.clientX, y: event.clientY };\n const others = [...this.pointers.entries()].filter(\n ([id]) => id !== event.pointerId\n );\n if (others.length === 1) {\n // Pinch: the gap between two fingers is the zoom.\n const anchor = others[0][1];\n const before = distance(previous, anchor);\n if (before > 0) this.zoomBy(distance(next, anchor) / before);\n } else if (others.length === 0) {\n this.panBy(next.x - previous.x, next.y - previous.y);\n }\n this.pointers.set(event.pointerId, next);\n };\n\n protected onPointerUp = (event: PointerEvent): void => {\n this.pointers.delete(event.pointerId);\n this.isPanning.set(this.pointers.size > 0);\n };\n\n protected onWheel = (event: WheelEvent): void => {\n if (!this.source()) return;\n event.preventDefault();\n this.zoomBy(Math.exp(-event.deltaY * WHEEL_ZOOM_RATE));\n };\n\n protected onZoom = (percent: string): void => {\n const zoom = Number(percent) / 100;\n if (!Number.isFinite(zoom)) return;\n this.updateFraming((framing) => ({ ...framing, zoom }));\n };\n\n protected apply = async (): Promise<void> => {\n const bitmap = this.source();\n const image = this.imageSize();\n const output = this.output();\n if (!bitmap || !image || !output || this.isApplying()) return;\n this.isApplying.set(true);\n try {\n const rect = cropRect(image, this.aspect(), this.framing());\n const blob = await encodeFramed(drawFramed(bitmap, rect, output));\n const original = this.file();\n this.settle({\n file: new File([blob], renameForType(original.name, blob.type), {\n type: blob.type,\n lastModified: Date.now(),\n }),\n });\n } catch {\n this.settle({ unreadable: true });\n }\n };\n\n /** Screen pixels dragged, moved into source pixels at the current scale. */\n private panBy = (dx: number, dy: number): void => {\n const image = this.imageSize();\n const stage = this.stageWidth();\n if (!image || !stage) return;\n const rect = cropRect(image, this.aspect(), this.framing());\n const perPixel = rect.width / stage;\n this.updateFraming((framing) => ({\n ...framing,\n cx: framing.cx - dx * perPixel,\n cy: framing.cy - dy * perPixel,\n }));\n };\n\n private zoomBy = (factor: number): void => {\n this.updateFraming((framing) => ({\n ...framing,\n zoom: framing.zoom * factor,\n }));\n };\n\n private updateFraming = (change: (framing: Framing) => Framing): void => {\n const image = this.imageSize();\n if (!image) return;\n this.framing.update((framing) =>\n clampFraming(image, this.aspect(), change(framing))\n );\n };\n\n private settle = (result: ImageEditorResult | undefined): void => {\n if (this.#settled) return;\n this.#settled = true;\n this.#modalRef.close(result);\n };\n}\n"],"names":[],"mappings":";;;;AAyCA,MAAM,eAAe,GAAG,MAAM;AAE9B,MAAM,QAAQ,GAAG,CAAC,CAAQ,EAAE,CAAQ,KAClC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;MAsDrB,oBAAoB,CAAA;AACtB,IAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,0EAAQ;AAC7B,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;AAChC,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;AAEhC,IAAA,SAAS,GAAG,MAAM,CAA0C,SAAS,CAAC;AAC9D,IAAA,KAAK,GAAG,SAAS,CAA6B,OAAO,4EAAC;AAEpD,IAAA,MAAM,GAAG,MAAM,CAA0B,SAAS,6EAAC;AACnD,IAAA,SAAS,GAAG,MAAM,CAAqB,SAAS,gFAAC;AACjD,IAAA,UAAU,GAAG,MAAM,CAAC,KAAK,iFAAC;AAC5B,IAAA,OAAO,GAAG,MAAM,CAAU,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,8EAAC;AAC3D,IAAA,UAAU,GAAG,MAAM,CAAC,CAAC,iF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,SAAA,EAAA,QAAA,EAAA,cAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,OAAA,EAAA,CAAA,cAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,eAAe,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,MAAA,EAAA,cAAA,EAAA,aAAA,EAAA,aAAA,EAAA,QAAA,CAAA,EAAA,OAAA,EAAA,CAAA,aAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,mBAAmB,EAAA,QAAA,EAAA,SAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAIpD,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBApDhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,EAAA,QAAA,EAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CT,EAAA,OAAA,EACQ,CAAC,eAAe,EAAE,eAAe,EAAE,mBAAmB,CAAC,EAAA,eAAA,EAE/C,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,0wBAAA,CAAA,EAAA;4UAQgB,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;;;"}
|
|
@@ -7675,7 +7675,7 @@ class SectionFormItemComponent extends ConfigComponent {
|
|
|
7675
7675
|
break;
|
|
7676
7676
|
}
|
|
7677
7677
|
case InputType.TOGGLE: {
|
|
7678
|
-
const { ToggleInputComponent } = await import('./magmonium-one-toggle-
|
|
7678
|
+
const { ToggleInputComponent } = await import('./magmonium-one-toggle-LayGvIH-.mjs');
|
|
7679
7679
|
this.createDynamicComponent(seq, ToggleInputComponent, [], true);
|
|
7680
7680
|
break;
|
|
7681
7681
|
}
|
|
@@ -7687,12 +7687,12 @@ class SectionFormItemComponent extends ConfigComponent {
|
|
|
7687
7687
|
break;
|
|
7688
7688
|
}
|
|
7689
7689
|
case InputType.PASSWORD: {
|
|
7690
|
-
const { PasswordInputComponent } = await import('./magmonium-one-password-
|
|
7690
|
+
const { PasswordInputComponent } = await import('./magmonium-one-password-Bm_Vl_rl.mjs');
|
|
7691
7691
|
this.createDynamicComponent(seq, PasswordInputComponent);
|
|
7692
7692
|
break;
|
|
7693
7693
|
}
|
|
7694
7694
|
case InputType.OTP: {
|
|
7695
|
-
const { OtpInputComponent } = await import('./magmonium-one-otp-
|
|
7695
|
+
const { OtpInputComponent } = await import('./magmonium-one-otp-3YsGc7F5.mjs');
|
|
7696
7696
|
this.createDynamicComponent(seq, OtpInputComponent);
|
|
7697
7697
|
break;
|
|
7698
7698
|
}
|
|
@@ -22352,7 +22352,7 @@ class WrapperInputComponent extends ConfigComponent {
|
|
|
22352
22352
|
break;
|
|
22353
22353
|
}
|
|
22354
22354
|
case InputType.TOGGLE: {
|
|
22355
|
-
const { ToggleInputComponent } = await import('./magmonium-one-toggle-
|
|
22355
|
+
const { ToggleInputComponent } = await import('./magmonium-one-toggle-LayGvIH-.mjs');
|
|
22356
22356
|
this.createDynamicComponent(seq, ToggleInputComponent, [], true);
|
|
22357
22357
|
break;
|
|
22358
22358
|
}
|
|
@@ -22364,12 +22364,12 @@ class WrapperInputComponent extends ConfigComponent {
|
|
|
22364
22364
|
break;
|
|
22365
22365
|
}
|
|
22366
22366
|
case InputType.PASSWORD: {
|
|
22367
|
-
const { PasswordInputComponent } = await import('./magmonium-one-password-
|
|
22367
|
+
const { PasswordInputComponent } = await import('./magmonium-one-password-Bm_Vl_rl.mjs');
|
|
22368
22368
|
this.createDynamicComponent(seq, PasswordInputComponent);
|
|
22369
22369
|
break;
|
|
22370
22370
|
}
|
|
22371
22371
|
case InputType.OTP: {
|
|
22372
|
-
const { OtpInputComponent } = await import('./magmonium-one-otp-
|
|
22372
|
+
const { OtpInputComponent } = await import('./magmonium-one-otp-3YsGc7F5.mjs');
|
|
22373
22373
|
this.createDynamicComponent(seq, OtpInputComponent);
|
|
22374
22374
|
break;
|
|
22375
22375
|
}
|
|
@@ -24076,7 +24076,7 @@ class FileUploadInputComponent extends BaseInputComponent {
|
|
|
24076
24076
|
const modalStore = this.modalStore;
|
|
24077
24077
|
if (!modalStore)
|
|
24078
24078
|
return undefined;
|
|
24079
|
-
const { ImageEditorComponent } = await import('./magmonium-one-image-editor-
|
|
24079
|
+
const { ImageEditorComponent } = await import('./magmonium-one-image-editor-DU8ACxaB.mjs');
|
|
24080
24080
|
const ratio = String(this.config()?.ratio ?? '');
|
|
24081
24081
|
return new Promise((resolve) => {
|
|
24082
24082
|
const modalRef = new ModalRef();
|
|
@@ -26783,6 +26783,29 @@ const splitPath = (path) => {
|
|
|
26783
26783
|
query: Object.fromEntries(new URLSearchParams(rawQuery)),
|
|
26784
26784
|
};
|
|
26785
26785
|
};
|
|
26786
|
+
/** The query keys a Remote path names — `coins?sort=desc&q=a` → `sort`, `q`. */
|
|
26787
|
+
const queryKeysOf = (path) => Object.keys(splitPath(path).query);
|
|
26788
|
+
/** Two Remote paths naming the same segments and query, whatever the key order. */
|
|
26789
|
+
const samePath = (a, b) => {
|
|
26790
|
+
const x = splitPath(a);
|
|
26791
|
+
const y = splitPath(b);
|
|
26792
|
+
const keys = Object.keys(x.query);
|
|
26793
|
+
return (x.segments.join('/') === y.segments.join('/') &&
|
|
26794
|
+
keys.length === Object.keys(y.query).length &&
|
|
26795
|
+
keys.every((k) => x.query[k] === y.query[k]));
|
|
26796
|
+
};
|
|
26797
|
+
/**
|
|
26798
|
+
* The host URL's query as a Remote path's query string, `?`-led or empty. The
|
|
26799
|
+
* Murl param is the host's panel state, never the Remote's (ADR 0013).
|
|
26800
|
+
*/
|
|
26801
|
+
const hostQueryOf = (tree) => {
|
|
26802
|
+
const params = new URLSearchParams();
|
|
26803
|
+
Object.entries(tree.queryParams)
|
|
26804
|
+
.filter(([k]) => k !== MURL_PARAM)
|
|
26805
|
+
.forEach(([k, v]) => (Array.isArray(v) ? v : [v]).forEach((one) => params.append(k, String(one))));
|
|
26806
|
+
const query = params.toString();
|
|
26807
|
+
return query ? `?${query}` : '';
|
|
26808
|
+
};
|
|
26786
26809
|
/**
|
|
26787
26810
|
* Where one mounted Remote's route lives in the host URL, read and written
|
|
26788
26811
|
* through the Router — the primary path below a NavTail, or an auxiliary
|
|
@@ -26805,14 +26828,22 @@ class RemoteUrl {
|
|
|
26805
26828
|
segmentsNow = (tree) => this.mode === 'outlet'
|
|
26806
26829
|
? (tree.root.children[this.name]?.segments ?? []).map((s) => s.path)
|
|
26807
26830
|
: this.tail.split('/').filter(Boolean);
|
|
26808
|
-
/**
|
|
26809
|
-
|
|
26831
|
+
/**
|
|
26832
|
+
* Whether the host URL already says `path` — its segments, every query key it
|
|
26833
|
+
* names, and none of the `dropped` keys the Remote has stopped naming.
|
|
26834
|
+
*/
|
|
26835
|
+
holds = (path, dropped = []) => {
|
|
26810
26836
|
const tree = this.tree();
|
|
26811
26837
|
const { segments, query } = splitPath(path);
|
|
26812
26838
|
return (this.segmentsNow(tree).join('/') === segments.join('/') &&
|
|
26813
|
-
Object.entries(query).every(([k, v]) => tree.queryParams[k] === v)
|
|
26839
|
+
Object.entries(query).every(([k, v]) => tree.queryParams[k] === v) &&
|
|
26840
|
+
dropped.every((k) => !(k in tree.queryParams)));
|
|
26814
26841
|
};
|
|
26815
|
-
|
|
26842
|
+
/**
|
|
26843
|
+
* The host's query is shared, so `path`'s keys are merged into it: only the
|
|
26844
|
+
* `dropped` keys — ones this Remote wrote and no longer names — leave it.
|
|
26845
|
+
*/
|
|
26846
|
+
write = (path, replaceUrl, dropped = []) => {
|
|
26816
26847
|
if (this.mode === 'none')
|
|
26817
26848
|
return;
|
|
26818
26849
|
const tree = this.tree();
|
|
@@ -26831,13 +26862,14 @@ class RemoteUrl {
|
|
|
26831
26862
|
const base = (primary?.segments ?? []).slice(0, (primary?.segments.length ?? 0) - own);
|
|
26832
26863
|
children['primary'] = new UrlSegmentGroup([...base, ...next], primary?.children ?? {});
|
|
26833
26864
|
}
|
|
26834
|
-
const
|
|
26865
|
+
const kept = Object.fromEntries(Object.entries(tree.queryParams).filter(([k]) => !dropped.includes(k)));
|
|
26866
|
+
const url = new UrlTree(new UrlSegmentGroup([], children), { ...kept, ...query }, tree.fragment);
|
|
26835
26867
|
this.router.navigateByUrl(url, { replaceUrl });
|
|
26836
26868
|
};
|
|
26837
26869
|
/** An outlet leaving takes its segment with it; a tail leaves with its route. */
|
|
26838
|
-
clear = () => {
|
|
26870
|
+
clear = (dropped = []) => {
|
|
26839
26871
|
if (this.mode === 'outlet' && this.tree().root.children[this.name]) {
|
|
26840
|
-
this.write('', true);
|
|
26872
|
+
this.write('', true, dropped);
|
|
26841
26873
|
}
|
|
26842
26874
|
};
|
|
26843
26875
|
}
|
|
@@ -26914,9 +26946,15 @@ class RemoteComponent {
|
|
|
26914
26946
|
/** The remote's own last word on where it stands, never echoed back to it. */
|
|
26915
26947
|
lastReported;
|
|
26916
26948
|
lastSent;
|
|
26949
|
+
/** The query keys the last report wrote into the host URL — the ones it may drop. */
|
|
26950
|
+
queryKeys = [];
|
|
26917
26951
|
registeredName;
|
|
26918
26952
|
state = signal('idle', ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
26919
26953
|
failure = signal({}, ...(ngDevMode ? [{ debugName: "failure" }] : /* istanbul ignore next */ []));
|
|
26954
|
+
/** The host URL's query, as of the last navigation — a `tail` mount's to read. */
|
|
26955
|
+
hostQuery = this.router
|
|
26956
|
+
? toSignal(this.router.events.pipe(filter((e) => e instanceof NavigationEnd), map(() => this.currentQuery())), { initialValue: this.currentQuery() })
|
|
26957
|
+
: signal('');
|
|
26920
26958
|
/** The host's primary path, segment by segment, as of the last navigation. */
|
|
26921
26959
|
hostSegments = this.router
|
|
26922
26960
|
? toSignal(this.router.events.pipe(filter((e) => e instanceof NavigationEnd), map(() => this.primarySegments())), { initialValue: this.primarySegments() })
|
|
@@ -26936,7 +26974,19 @@ class RemoteComponent {
|
|
|
26936
26974
|
equal: (a, b) => a?.appLink === b?.appLink && a?.navUrl === b?.navUrl && a?.base === b?.base });
|
|
26937
26975
|
/** The AppLink loaded: the bound one, else the one the URL names. */
|
|
26938
26976
|
appLink = computed(() => this.link() || this.mountMatch()?.appLink, ...(ngDevMode ? [{ debugName: "appLink" }] : /* istanbul ignore next */ []));
|
|
26939
|
-
|
|
26977
|
+
/**
|
|
26978
|
+
* Whether the host URL's query is the Remote's: a MountPattern mount owns the
|
|
26979
|
+
* page, so its navUrl carries the query in and out. A bound `path` is the
|
|
26980
|
+
* host's own mapping, and carries whatever it says.
|
|
26981
|
+
*/
|
|
26982
|
+
carriesQuery = computed(() => this.path() === undefined && !!this.mountMatch(), ...(ngDevMode ? [{ debugName: "carriesQuery" }] : /* istanbul ignore next */ []));
|
|
26983
|
+
remotePath = computed(() => {
|
|
26984
|
+
const path = this.path();
|
|
26985
|
+
if (path !== undefined)
|
|
26986
|
+
return path;
|
|
26987
|
+
const navUrl = this.mountMatch()?.navUrl;
|
|
26988
|
+
return navUrl === undefined ? undefined : `${navUrl}${this.hostQuery()}`;
|
|
26989
|
+
}, ...(ngDevMode ? [{ debugName: "remotePath" }] : /* istanbul ignore next */ []));
|
|
26940
26990
|
ownTail = computed(() => this.mountMatch()?.navUrl ?? this.tail(), ...(ngDevMode ? [{ debugName: "ownTail" }] : /* istanbul ignore next */ []));
|
|
26941
26991
|
constructor() {
|
|
26942
26992
|
// Reload when config or login state changes
|
|
@@ -27002,10 +27052,14 @@ class RemoteComponent {
|
|
|
27002
27052
|
}
|
|
27003
27053
|
ngOnDestroy() {
|
|
27004
27054
|
this.dismountElement();
|
|
27005
|
-
this.url()?.clear();
|
|
27055
|
+
this.url()?.clear(this.queryKeys);
|
|
27006
27056
|
this.unregister();
|
|
27007
27057
|
}
|
|
27008
27058
|
mountName = () => this.name() ?? this.appLink();
|
|
27059
|
+
/** A method, not an arrow field: `hostQuery` calls it during field init. */
|
|
27060
|
+
currentQuery() {
|
|
27061
|
+
return this.router ? hostQueryOf(this.router.parseUrl(this.router.url)) : '';
|
|
27062
|
+
}
|
|
27009
27063
|
/** A method, not an arrow field: `hostSegments` calls it during field init. */
|
|
27010
27064
|
primarySegments() {
|
|
27011
27065
|
return this.router
|
|
@@ -27024,9 +27078,23 @@ class RemoteComponent {
|
|
|
27024
27078
|
this.navRef?.unregisterMount?.(this.registeredName);
|
|
27025
27079
|
this.registeredName = undefined;
|
|
27026
27080
|
};
|
|
27081
|
+
/**
|
|
27082
|
+
* Whether the host path is the remote's own last report. A path that carries
|
|
27083
|
+
* no query — a bound `path` — matches a report by its segments alone: sending
|
|
27084
|
+
* it would move the remote off the query it just set.
|
|
27085
|
+
*/
|
|
27086
|
+
isLastReport = (path) => {
|
|
27087
|
+
const reported = this.lastReported;
|
|
27088
|
+
if (reported === undefined)
|
|
27089
|
+
return false;
|
|
27090
|
+
return untracked(() => this.carriesQuery()) || path.includes('?')
|
|
27091
|
+
? samePath(path, reported)
|
|
27092
|
+
: path === reported.split('?')[0];
|
|
27093
|
+
};
|
|
27027
27094
|
sendPath = (path) => {
|
|
27028
27095
|
const el = this.loadedElement;
|
|
27029
|
-
|
|
27096
|
+
const sent = this.lastSent;
|
|
27097
|
+
if (!el || this.isLastReport(path) || (sent !== undefined && samePath(path, sent)))
|
|
27030
27098
|
return;
|
|
27031
27099
|
this.lastSent = path;
|
|
27032
27100
|
el.dispatchEvent(new CustomEvent(WC_NAVIGATE_EVENT, { detail: { path } }));
|
|
@@ -27045,7 +27113,8 @@ class RemoteComponent {
|
|
|
27045
27113
|
const path = raw.replace(/^\//, '');
|
|
27046
27114
|
// The remote arriving where the host sent it is an echo, not a move: writing
|
|
27047
27115
|
// it back through `out` is what spins a pair that does not round-trip.
|
|
27048
|
-
const
|
|
27116
|
+
const sent = this.lastSent;
|
|
27117
|
+
const echo = sent !== undefined && samePath(path, sent);
|
|
27049
27118
|
this.lastReported = path;
|
|
27050
27119
|
this.lastSent = undefined;
|
|
27051
27120
|
if (echo && this.reported)
|
|
@@ -27056,9 +27125,12 @@ class RemoteComponent {
|
|
|
27056
27125
|
const url = this.url();
|
|
27057
27126
|
const replace = !this.reported;
|
|
27058
27127
|
this.reported = true;
|
|
27059
|
-
|
|
27128
|
+
const keys = queryKeysOf(target);
|
|
27129
|
+
const dropped = this.queryKeys.filter((k) => !keys.includes(k));
|
|
27130
|
+
this.queryKeys = keys;
|
|
27131
|
+
if (!url || url.holds(target, dropped))
|
|
27060
27132
|
return;
|
|
27061
|
-
url.write(target, replace);
|
|
27133
|
+
url.write(target, replace, dropped);
|
|
27062
27134
|
};
|
|
27063
27135
|
loadRemoteComponent = async (config, link) => {
|
|
27064
27136
|
const host = this.elementRef.nativeElement;
|
|
@@ -27067,9 +27139,10 @@ class RemoteComponent {
|
|
|
27067
27139
|
// Another app's path means nothing to this one: its segment starts over.
|
|
27068
27140
|
if (this.mountedLink !== undefined && this.mountedLink !== link) {
|
|
27069
27141
|
const url = this.url();
|
|
27070
|
-
if (url && !url.holds(''))
|
|
27071
|
-
url.write('', true);
|
|
27142
|
+
if (url && !url.holds('', this.queryKeys))
|
|
27143
|
+
url.write('', true, this.queryKeys);
|
|
27072
27144
|
}
|
|
27145
|
+
this.queryKeys = [];
|
|
27073
27146
|
this.mountedLink = link;
|
|
27074
27147
|
this.reported = false;
|
|
27075
27148
|
this.lastReported = undefined;
|
|
@@ -39324,4 +39397,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
39324
39397
|
*/
|
|
39325
39398
|
|
|
39326
39399
|
export { ClipboardService as $, ACCESS_DOMAINS as A, ButtonComponent as B, Assets as C, AuthActivityPageComponent as D, AuthApiService as E, AuthStore as F, AutosizeDirective as G, HeaderComponent$1 as H, InputType as I, BadgeComponent as J, BandingComponent as K, LabelComponent as L, MODAL_REF as M, BaseArrayInputComponent as N, BaseRootWebComponent as O, BaseWebComponent as P, ButtonGroupComponent as Q, RangeInputComponent as R, COMPONENT_INPUT_REGISTRY as S, TranslatePipe as T, CardComponent as U, CardWrapperComponent as V, CarouselComponent as W, ChartComponent as X, ChatBubbleComponent as Y, CheckboxInputComponent as Z, ClearableInputComponent as _, MIN_ZOOM as a, ImgComponent as a$, ColComponent as a0, ColorPickerInputComponent as a1, CommentItemComponent as a2, CommentsApiService as a3, CommentsComponent as a4, CommentsStore as a5, CompactNumberPipe as a6, ComponentInputComponent as a7, ComponentStepperComponent as a8, ConfigComponent as a9, Domain as aA, DotGridComponent as aB, DragListDirective as aC, DragListItemDirective as aD, DraggableDirective as aE, DropdownInputComponent as aF, FILTER_GROUP_CONTEXT as aG, FILTER_RANGE_MODES as aH, FILTER_VARIANTS as aI, FLEX_VARIANTS as aJ, FOLDER_PICK_LISTENER as aK, FORM_ASSET_FOLDER as aL, FileService as aM, FileUploadDirective as aN, FileUploadInputComponent as aO, FlexComponent as aP, FlexItemComponent as aQ, FormGroupComponent as aR, FrameComponent as aS, FreezeService as aT, GRID_BREAKPOINTS as aU, GetNavService as aV, HighlightDirective as aW, HttpService as aX, ICON_SOURCE as aY, IS_SIDE_PANEL as aZ, IconComponent as a_, ConfirmComponent as aa, ContextMenuComponent as ab, CustomIconClass as ac, CustomIconEditComponent as ad, DEFAULT_DENIAL as ae, DEFAULT_DOC_DENSITY as af, DEFAULT_DOC_VARIANT as ag, DEFAULT_FILTER_RANGE_MODE as ah, DEFAULT_FILTER_VARIANT as ai, DEFAULT_NAV_PARAM as aj, DEFAULT_NAV_SEGMENT as ak, DEFAULT_SIZE as al, DOCK_MIN_PAGE_REMAINDER as am, DOCS_FOLDER as an, DOC_ACTION_ICONS as ao, DOC_DENSITIES as ap, DOC_EDIT_ACTIONS as aq, DOC_TOOLBAR_GROUPS as ar, DOC_VARIANTS as as, DashboardCardComponent as at, DateInputComponent as au, DatePickerComponent as av, DeviceService as aw, DocComponent as ax, DocEditorComponent as ay, DomService as az, MAX_ZOOM as b, PercentagePipe as b$, InstrumentScoreComponent as b0, InterceptorObservables as b1, JumbotronComponent as b2, KeyValueComponent as b3, LAYOUT_ASSET_FOLDER as b4, LOGIN_COMPONENT as b5, LOGIN_STORE as b6, LanguageComponent as b7, ListComponent as b8, LogoComponent as b9, NavDetailsComponent as bA, NavHeaderComponent as bB, NavMenuComponent as bC, NavStore as bD, NavTrailComponent as bE, NothingComponent as bF, NotificationElementComponent as bG, NotificationGroupComponent as bH, NotificationPopupComponent as bI, NotificationService as bJ, NotificationStore as bK, NotificationType as bL, NotificationWidgetComponent as bM, ONE_ASSET_BASE_URL as bN, OPTIONS_SOURCE as bO, OVERLAY_WIDGETS as bP, OneApp as bQ, OptionsSourceDirective as bR, OverlayBodyComponent as bS, OverlayRef as bT, OverlayService as bU, PLATFORM_BUTTON_NAV_IDS as bV, PLATFORM_EXTENSIBLE_NAV_IDS as bW, PLATFORM_NAV_MAP as bX, PLATFORM_ROOT_CHILDREN as bY, PaginationComponent as bZ, PanelComponent as b_, MAG_SOCKET_EVENT as ba, MHeroColorDirective as bb, MHeroComponent as bc, MODAL_STORE_REF as bd, MOUNT_STATIC_SEGMENT as be, MOUNT_TOKEN as bf, MRefDirective as bg, MStepComponent as bh, MURL_PARAM as bi, MURL_SEP as bj, ManifestEnrichmentService as bk, MenuComponent as bl, ModalDirective as bm, ModalRef as bn, ModalStore as bo, MoneyPipe as bp, MultiRangeInputComponent as bq, MurlUrlSerializer as br, NAV_DEFAULT_MURL as bs, NAV_ID_SEP as bt, NAV_MAIN_BUTTONS as bu, NAV_SEGMENT_RE as bv, NAV_STORE_REF as bw, NAV_WC_COMPONENTS as bx, NAV_WIDGET_MAP as by, NavComponent as bz, cropRect as c, SocketStore as c$, PlaygroundComponent as c0, PositionDirective as c1, PwaInstallComponent as c2, REMOTE_PAGE_RELOAD as c3, ROOT_NAV$1 as c4, RadioGroupComponent as c5, RadioInputComponent as c6, RatingInputComponent as c7, ReactiveElementComponent as c8, RemoteComponent as c9, SectionFilterGroupComponent as cA, SectionFilterMenuComponent as cB, SectionFilterPanelComponent as cC, SectionFilterRangePanelComponent as cD, SectionFooterComponent as cE, SectionFormComponent as cF, SectionFormItemComponent as cG, SectionHeaderComponent as cH, SectionHeroComponent as cI, SectionPaginationComponent as cJ, SectionSearchComponent as cK, SectionStepperComponent as cL, SectionTableCellComponent as cM, SectionTableComponent as cN, SectionTableRowComponent as cO, SectionTableSortPipe as cP, SectionTabsComponent as cQ, SectionToggleComponent as cR, SectionToggleItemDirective as cS, SelectableCardInputComponent as cT, SelectorDirective as cU, SettingsSearchBarComponent as cV, SettingsSearchService as cW, ShapeComponent as cX, SharedStoreRegistry as cY, SidePanelDirective as cZ, Size as c_, RemoteLoaderService as ca, ResizeElementComponent as cb, RouteContainer as cc, RowComponent as cd, SEARCH_QUERY as ce, SEARCH_RESULTS_EVENT as cf, SECTION_ACCORDION_GROUP as cg, SECTION_FORM_CONTEXT as ch, SECTION_TABLE_VARIANTS as ci, SHARED_ICONS as cj, SIZE_CONTEXT as ck, ScoreComponent as cl, ScrollComponent as cm, ScrollService as cn, SearchPanelComponent as co, SearchStore as cp, SearchUserPanelComponent as cq, SectionAccordionDirective as cr, SectionAccordionGroupDirective as cs, SectionBackComponent as ct, SectionBadgesComponent as cu, SectionButtonGroupComponent as cv, SectionCardComponent as cw, SectionCarouselComponent as cx, SectionComponent as cy, SectionFilterComponent as cz, drawFramed as d, childNavId as d$, SortComponent as d0, StatComponent as d1, StepComponent as d2, StepperComponent as d3, StepsComponent as d4, StorageService as d5, StrokeLinecap as d6, StrokeLinejoin as d7, SummaryComponent as d8, SvgGeneratorComponent as d9, UserApiService as dA, UserAvatarComponent as dB, UserComponent as dC, UserNavComponent as dD, UserSettingsComponent as dE, UserStore as dF, WC_BUNDLE as dG, WC_NAVIGATE_EVENT as dH, WC_ROUTE_CHANGED_EVENT as dI, WC_SEARCH_GROUPS as dJ, WIN_USER_TAB_HOOK as dK, WIN_USER_TAB_KEY as dL, WatermarkComponent as dM, WcRouterStore as dN, WrapperInputComponent as dO, anchorNavId as dP, applyColorsToElement as dQ, applyDocEdit as dR, assetOptions as dS, bootstrapMagApp as dT, bootstrapPwaInstall as dU, buildWcBaseUrl as dV, calculateLuminance as dW, calculateRanks as dX, cellText as dY, checkDoc as dZ, checkFilterCondition as d_, SvgGeneratorService as da, SvgService as db, TOTAL_COLUMNS as dc, TRANSLATION_SOURCE as dd, TableComponent as de, TechnicalMeterComponent as df, TextInputComponent as dg, TextareaInputComponent as dh, ThemeComponent as di, ThemeDataService as dj, ThemeService as dk, ThemeStore as dl, TimeAgoPipe as dm, TimelineComponent as dn, ToggleButtonComponent as dp, ToggleInputComponent as dq, ToggleRadioInputComponent as dr, ToolTipDirective as ds, TooltipComponent as dt, TranslateService as du, TreeGridComponent as dv, URL_SEP as dw, USER_STORE_REF as dx, USER_TAB_MAP as dy, UniverseComponent as dz, encodeFramed as e, isJson as e$, claimDenial as e0, classListSignal as e1, coerceSize as e2, cornerEdge as e3, cornerSide as e4, createMap as e5, createPlatformNavMap as e6, definedWcTierOf as e7, deriveAvatarGradient as e8, deriveContrastColor as e9, flattenTreeGridRows as eA, formatBadgeCount as eB, fullName as eC, generateClipPath as eD, generateTransform as eE, getClassList as eF, getProperty as eG, getScrollParent as eH, getTierFromPreviewPath as eI, getTreeGridRow as eJ, getUniqueId as eK, getValue as eL, hasErrorComputed as eM, hexToRgb as eN, hslToRgb$1 as eO, initMagmoniumApp as eP, initialNotificationState as eQ, initialState$2 as eR, initials as eS, injectAuthenticate as eT, injectDefaultDenial as eU, injectInstallApp as eV, injectParentSize as eW, injectScrollSticky as eX, isButtonName as eY, isCancelledComputed as eZ, isExtensiblePlatformNavId as e_, deriveOppositeColor as ea, derivePropertyName as eb, docActionKey as ec, docAssetCandidates as ed, docProblemKey as ee, docRemotePath as ef, emailValidation as eg, evaluate as eh, evaluateBool as ei, fieldBoolean as ej, fieldNumber as ek, fieldString as el, filterHoldsList as em, filterHoldsOneBound as en, filterHoldsOptions as eo, filterHoldsRange as ep, filterList as eq, filterNumber as er, filterNumberList as es, filterOne as et, filterPanelOf as eu, filterPanelWidth as ev, filterRange as ew, filterTreeGridRows as ex, filterValueList as ey, filterValues as ez, clampFraming as f, provideMurlUrlSerializer as f$, isLoadingComputed as f0, isLocalhost as f1, isNavInstanceConfig as f2, isNavMenuConfig as f3, isNavRowsConfig as f4, isNavVisibilityConfig as f5, isPlatformNavId as f6, isSize as f7, isTierPreview as f8, isUrlLocalhost as f9, navIdFor as fA, navIdSegment as fB, navIdToRoutePath as fC, navIdToSegments as fD, navParamOf as fE, navTailMatcher as fF, navToId as fG, navVisibilityGuard as fH, nextSectionTableSort as fI, normalizeAssetOptions as fJ, offsetOfLine as fK, parentNavId as fL, parseAddress as fM, parseColor as fN, parseMountPattern as fO, parsePatternNames as fP, patternValidation as fQ, patternsValidation as fR, permissionRefusal as fS, platformNavWidgets as fT, privateGuard as fU, processImageToSvg as fV, provideAppContext as fW, provideMagAppConfig as fX, provideMagWcConfig as fY, provideMagWcRoutes as fZ, provideModalComponents as f_, isValidNavId as fa, isValidNavSegment as fb, isWebComponent as fc, linkToId as fd, linkToNav as fe, loadingActions as ff, mInterceptor as fg, manualValidation as fh, matchFieldValidation as fi, matchMount as fj, maxLengthValidation as fk, maxValidation as fl, mergePlatformNav as fm, mergeUnique as fn, mergeUniqueBy as fo, mergeUniqueWith as fp, minAgeValidation as fq, minLengthValidation as fr, minValidation as fs, miniMarkToHtml as ft, mountFor as fu, mountPatternProblem as fv, mountPatternText as fw, mountSegmentOf as fx, mountTokenOf as fy, navIdChain as fz, BaseInputComponent as g, provideNavWidgets as g0, provideOverlayWidgets as g1, providePlatformNavWidgets as g2, provideSearch as g3, provideSizeContext as g4, provideUserTabs as g5, publicGuard as g6, readFieldPatterns as g7, recordDefinedWcTier as g8, remoteOutletRoute as g9, toAttrNumber as gA, toCssLength as gB, toHostNavId as gC, toLength$1 as gD, toLocalNavId as gE, toggleTreeGridRow as gF, unfetchedPlatformNav as gG, ungroupedDocActions as gH, urlValidation as gI, wcTierOf as gJ, renderAddress as ga, renderDocument as gb, requiredValidation as gc, resolveConfigAsset as gd, resolveIconSize as ge, resolvePallet as gf, resolvePatternRules as gg, resolveSize as gh, rgbToHex as gi, rgbToHsl as gj, rowHasChildren as gk, samePatterns as gl, sectionTableColumnId as gm, sectionTableColumnWidths as gn, sectionTableFrozenCount as go, segmentsToNavId as gp, setProperty as gq, setTreeGridChildren as gr, setWcTier as gs, settingsWidgets as gt, shouldShowBadge as gu, sortSectionTableRows as gv, splitNavId as gw, splitOnMatch as gx, stringToColor as gy, toAttrBool as gz, BaseTextInputComponent as h, initialFraming as i, TextOutputComponent as j, IS_DESIGN_MODE as k, APP_CONTEXT_REF as l, ASSET_BASE_URL as m, AccordionBodyDirective as n, outputSize as o, parseRatio as p, AccordionComponent as q, renameForType as r, AccordionGroupComponent as s, ActionComponent as t, AnimatedGraphsComponent as u, AppCardComponent as v, AppRelationType as w, AppTileComponent as x, AssetStore as y, AssetUrlPipe as z };
|
|
39327
|
-
//# sourceMappingURL=magmonium-one-magmonium-one-
|
|
39400
|
+
//# sourceMappingURL=magmonium-one-magmonium-one-BuqkK2mJ.mjs.map
|