@magmonium/one 0.4.55 → 0.4.56
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/assets/i18n/af.json +103 -47
- package/assets/i18n/am.json +111 -59
- package/assets/i18n/ar.json +84 -59
- package/assets/i18n/as.json +105 -50
- package/assets/i18n/az.json +106 -50
- package/assets/i18n/ba.json +94 -45
- package/assets/i18n/be.json +105 -49
- package/assets/i18n/bg.json +99 -43
- package/assets/i18n/bn.json +104 -54
- package/assets/i18n/br.json +91 -43
- package/assets/i18n/brx.json +97 -29
- package/assets/i18n/bs.json +100 -43
- package/assets/i18n/ca.json +103 -47
- package/assets/i18n/ceb.json +99 -40
- package/assets/i18n/cnr.json +83 -43
- package/assets/i18n/co.json +105 -47
- package/assets/i18n/cs.json +98 -43
- package/assets/i18n/cy.json +83 -48
- package/assets/i18n/da.json +89 -35
- package/assets/i18n/de.json +75 -53
- package/assets/i18n/doi.json +107 -45
- package/assets/i18n/el.json +93 -44
- package/assets/i18n/en.json +2 -1
- package/assets/i18n/eo.json +98 -44
- package/assets/i18n/es.json +59 -46
- package/assets/i18n/et.json +97 -42
- package/assets/i18n/eu.json +106 -48
- package/assets/i18n/fa.json +79 -43
- package/assets/i18n/fi.json +91 -37
- package/assets/i18n/fr.json +78 -53
- package/assets/i18n/fy.json +96 -43
- package/assets/i18n/ga.json +89 -45
- package/assets/i18n/gd.json +84 -47
- package/assets/i18n/gl.json +95 -45
- package/assets/i18n/gu.json +103 -52
- package/assets/i18n/ha.json +93 -45
- package/assets/i18n/haw.json +95 -45
- package/assets/i18n/he.json +84 -34
- package/assets/i18n/hi.json +84 -61
- package/assets/i18n/hmn.json +88 -38
- package/assets/i18n/hr.json +100 -43
- package/assets/i18n/hu.json +90 -45
- package/assets/i18n/hy.json +106 -51
- package/assets/i18n/id.json +77 -31
- package/assets/i18n/ie.json +78 -24
- package/assets/i18n/ig.json +88 -40
- package/assets/i18n/ilo.json +86 -29
- package/assets/i18n/is.json +89 -44
- package/assets/i18n/it.json +69 -48
- package/assets/i18n/iw.json +85 -38
- package/assets/i18n/ja.json +67 -48
- package/assets/i18n/jw.json +81 -34
- package/assets/i18n/ka.json +93 -43
- package/assets/i18n/kk.json +87 -42
- package/assets/i18n/km.json +85 -41
- package/assets/i18n/kn.json +105 -51
- package/assets/i18n/ko.json +68 -51
- package/assets/i18n/kok.json +104 -42
- package/assets/i18n/ks.json +94 -27
- package/assets/i18n/ku.json +84 -40
- package/assets/i18n/ky.json +84 -41
- package/assets/i18n/la.json +81 -37
- package/assets/i18n/lb.json +80 -39
- package/assets/i18n/lo.json +81 -39
- package/assets/i18n/lt.json +82 -43
- package/assets/i18n/lv.json +81 -42
- package/assets/i18n/ma.json +93 -28
- package/assets/i18n/mai.json +98 -35
- package/assets/i18n/me.json +67 -20
- package/assets/i18n/mg.json +82 -39
- package/assets/i18n/mi.json +86 -42
- package/assets/i18n/mk.json +81 -40
- package/assets/i18n/ml.json +98 -42
- package/assets/i18n/mn.json +81 -40
- package/assets/i18n/mni.json +92 -27
- package/assets/i18n/mr.json +100 -44
- package/assets/i18n/ms.json +77 -35
- package/assets/i18n/mt.json +79 -37
- package/assets/i18n/my.json +80 -39
- package/assets/i18n/ne.json +76 -35
- package/assets/i18n/nl.json +80 -47
- package/assets/i18n/no.json +71 -30
- package/assets/i18n/ny.json +100 -37
- package/assets/i18n/or.json +105 -49
- package/assets/i18n/pa.json +100 -45
- package/assets/i18n/pl.json +65 -45
- package/assets/i18n/ps.json +75 -33
- package/assets/i18n/pt.json +61 -44
- package/assets/i18n/rm.json +71 -26
- package/assets/i18n/ro.json +74 -34
- package/assets/i18n/ru.json +62 -45
- package/assets/i18n/sa.json +98 -36
- package/assets/i18n/sat.json +98 -37
- package/assets/i18n/sc.json +70 -25
- package/assets/i18n/sd.json +95 -31
- package/assets/i18n/si.json +72 -34
- package/assets/i18n/sk.json +71 -31
- package/assets/i18n/sl.json +70 -32
- package/assets/i18n/sm.json +71 -30
- package/assets/i18n/sn.json +66 -25
- package/assets/i18n/so.json +66 -26
- package/assets/i18n/sq.json +95 -39
- package/assets/i18n/sr.json +68 -29
- package/assets/i18n/st.json +68 -27
- package/assets/i18n/su.json +64 -24
- package/assets/i18n/sv.json +66 -25
- package/assets/i18n/sw.json +60 -20
- package/assets/i18n/ta.json +92 -42
- package/assets/i18n/te.json +95 -39
- package/assets/i18n/tg.json +69 -31
- package/assets/i18n/th.json +65 -27
- package/assets/i18n/tl.json +86 -26
- package/assets/i18n/tr.json +63 -46
- package/assets/i18n/uk.json +64 -26
- package/assets/i18n/ur.json +93 -33
- package/assets/i18n/uz.json +64 -25
- package/assets/i18n/vi.json +64 -26
- package/assets/i18n/xh.json +65 -25
- package/assets/i18n/yi.json +66 -28
- package/assets/i18n/yo.json +65 -26
- package/assets/i18n/zh.json +71 -37
- package/assets/i18n/zu.json +63 -25
- package/fesm2022/{magmonium-one-base-dropdown-Tf6PltuH.mjs → magmonium-one-base-dropdown-B6jwgjjx.mjs} +4 -4
- package/fesm2022/{magmonium-one-base-dropdown-Tf6PltuH.mjs.map → magmonium-one-base-dropdown-B6jwgjjx.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-directives-C_i3gUFT.mjs → magmonium-one-directives-Dbe0pfCf.mjs} +2 -2
- package/fesm2022/magmonium-one-directives-Dbe0pfCf.mjs.map +1 -0
- package/fesm2022/{magmonium-one-file.service-Bo06pU3_.mjs → magmonium-one-file.service-D39FjShR.mjs} +2 -1
- package/fesm2022/magmonium-one-file.service-D39FjShR.mjs.map +1 -0
- package/fesm2022/{magmonium-one-group-C7alQqSj.mjs → magmonium-one-group-BPhM2IIa.mjs} +2 -2
- package/fesm2022/{magmonium-one-group-C7alQqSj.mjs.map → magmonium-one-group-BPhM2IIa.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-image-editor-DHlktZ6z.mjs → magmonium-one-image-editor-C0vNiH0J.mjs} +2 -2
- package/fesm2022/{magmonium-one-image-editor-DHlktZ6z.mjs.map → magmonium-one-image-editor-C0vNiH0J.mjs.map} +1 -1
- package/fesm2022/magmonium-one-input-DqHPorA1.mjs.map +1 -1
- package/fesm2022/{magmonium-one-menu-DmZJi88Y.mjs → magmonium-one-menu-CxswmD0O.mjs} +2 -2
- package/fesm2022/{magmonium-one-menu-DmZJi88Y.mjs.map → magmonium-one-menu-CxswmD0O.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-multi-range-BnWtK-O0.mjs → magmonium-one-multi-range-BJ8LafrI.mjs} +2 -2
- package/fesm2022/{magmonium-one-multi-range-BnWtK-O0.mjs.map → magmonium-one-multi-range-BJ8LafrI.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-range-DPR659yG.mjs → magmonium-one-range-C5vn9zlY.mjs} +4 -2
- package/fesm2022/magmonium-one-range-C5vn9zlY.mjs.map +1 -0
- package/fesm2022/{magmonium-one-selector-CXZMCqmO.mjs → magmonium-one-selector-Do0PsJBx.mjs} +2 -2
- package/fesm2022/{magmonium-one-selector-CXZMCqmO.mjs.map → magmonium-one-selector-Do0PsJBx.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-text-Bo4XPBXB.mjs → magmonium-one-text-xar0qfsQ.mjs} +3 -1
- package/fesm2022/magmonium-one-text-xar0qfsQ.mjs.map +1 -0
- package/fesm2022/magmonium-one.mjs +410 -87
- package/fesm2022/magmonium-one.mjs.map +1 -1
- package/package.json +1 -1
- package/types/magmonium-one.d.ts +117 -1
- package/fesm2022/magmonium-one-directives-C_i3gUFT.mjs.map +0 -1
- package/fesm2022/magmonium-one-file.service-Bo06pU3_.mjs.map +0 -1
- package/fesm2022/magmonium-one-range-DPR659yG.mjs.map +0 -1
- package/fesm2022/magmonium-one-text-Bo4XPBXB.mjs.map +0 -1
package/package.json
CHANGED
package/types/magmonium-one.d.ts
CHANGED
|
@@ -415,6 +415,8 @@ interface FileUploadConfig {
|
|
|
415
415
|
accept?: string[];
|
|
416
416
|
multiple?: boolean;
|
|
417
417
|
maxSize?: number;
|
|
418
|
+
/** Picks a folder and answers every file inside it; `accept` is ignored. */
|
|
419
|
+
directory?: boolean;
|
|
418
420
|
}
|
|
419
421
|
interface FileUploadEvent {
|
|
420
422
|
files: File[];
|
|
@@ -3905,6 +3907,14 @@ export type PatternRule = {
|
|
|
3905
3907
|
export type Input = Config & {
|
|
3906
3908
|
type: InputType;
|
|
3907
3909
|
label: string;
|
|
3910
|
+
/**
|
|
3911
|
+
* The label is authored text, not an i18n key: a control or option name the
|
|
3912
|
+
* dictionary has never heard of (`Look strength`, `Zoom`). `m-label` draws it
|
|
3913
|
+
* verbatim instead of resolving it. Set it where the words are ours to write
|
|
3914
|
+
* and no asset exists yet — a control name that reads as English is better
|
|
3915
|
+
* than a key that reads as nothing.
|
|
3916
|
+
*/
|
|
3917
|
+
noTranslate?: boolean;
|
|
3908
3918
|
required?: true;
|
|
3909
3919
|
/**
|
|
3910
3920
|
* Accepted shapes, any one of which passes (libs/one ADR 0017). Authored as
|
|
@@ -4074,6 +4084,7 @@ export type DropdownInput = Input & {
|
|
|
4074
4084
|
};
|
|
4075
4085
|
export type ColorInput = Input & {
|
|
4076
4086
|
type: InputType.COLOR;
|
|
4087
|
+
themeKeys?: boolean;
|
|
4077
4088
|
};
|
|
4078
4089
|
export type RangeInput = Input & {
|
|
4079
4090
|
type: InputType.RANGE;
|
|
@@ -7547,6 +7558,13 @@ declare class ColorPickerBoxComponent implements AfterViewInit, OnDestroy {
|
|
|
7547
7558
|
#private;
|
|
7548
7559
|
private readonly themeStore;
|
|
7549
7560
|
selected: import("@angular/core").InputSignal<string | undefined>;
|
|
7561
|
+
/**
|
|
7562
|
+
* Offers the theme's tones as swatches above the free picker; picking one
|
|
7563
|
+
* emits its ThemeColor key rather than a hex, so the colour follows the
|
|
7564
|
+
* theme. Off for a field whose value must be a literal colour — a theme's
|
|
7565
|
+
* own token values, which a key would make circular.
|
|
7566
|
+
*/
|
|
7567
|
+
readonly themeKeys: import("@angular/core").InputSignal<boolean>;
|
|
7550
7568
|
readonly selectColorChange: import("@angular/core").OutputEmitterRef<string>;
|
|
7551
7569
|
imageColors: import("@angular/core").WritableSignal<ExtractedColor[]>;
|
|
7552
7570
|
colorArea: ElementRef<HTMLDivElement>;
|
|
@@ -7555,6 +7573,10 @@ declare class ColorPickerBoxComponent implements AfterViewInit, OnDestroy {
|
|
|
7555
7573
|
protected readonly _fileUploadConfig: import("@magmonium/one").FileUploadConfig;
|
|
7556
7574
|
protected readonly _eyedropperConfig: import("@magmonium/one").Button;
|
|
7557
7575
|
protected readonly _headerContextMenu: ContextMenu;
|
|
7576
|
+
protected readonly themeSwatches: import("@angular/core").Signal<{
|
|
7577
|
+
key: "text" | "error" | "focus" | "mm" | "mmLite" | "mmDark" | "background" | "border" | "textSecondary" | "errorLight" | "warning" | "successLite" | "success" | "highlight" | "wealth";
|
|
7578
|
+
color: string;
|
|
7579
|
+
}[]>;
|
|
7558
7580
|
hue: import("@angular/core").WritableSignal<number>;
|
|
7559
7581
|
saturation: import("@angular/core").WritableSignal<number>;
|
|
7560
7582
|
lightness: import("@angular/core").WritableSignal<number>;
|
|
@@ -7562,6 +7584,7 @@ declare class ColorPickerBoxComponent implements AfterViewInit, OnDestroy {
|
|
|
7562
7584
|
opacityTip: import("@angular/core").Signal<string>;
|
|
7563
7585
|
_opacityGradient: import("@angular/core").Signal<string>;
|
|
7564
7586
|
_selected: import("@angular/core").Signal<string>;
|
|
7587
|
+
private formatHsla;
|
|
7565
7588
|
colorFormat: import("@angular/core").WritableSignal<string>;
|
|
7566
7589
|
maxArea: import("@angular/core").WritableSignal<Position>;
|
|
7567
7590
|
hueArea: import("@angular/core").WritableSignal<Position>;
|
|
@@ -7608,6 +7631,11 @@ declare class ColorPickerBoxComponent implements AfterViewInit, OnDestroy {
|
|
|
7608
7631
|
"required": false;
|
|
7609
7632
|
"isSignal": true;
|
|
7610
7633
|
};
|
|
7634
|
+
"themeKeys": {
|
|
7635
|
+
"alias": "themeKeys";
|
|
7636
|
+
"required": false;
|
|
7637
|
+
"isSignal": true;
|
|
7638
|
+
};
|
|
7611
7639
|
}, {
|
|
7612
7640
|
"selectColorChange": "selectColorChange";
|
|
7613
7641
|
}, never, never, true, never>;
|
|
@@ -7625,6 +7653,7 @@ export declare class ColorPickerInputComponent extends BaseTextInputComponent<Co
|
|
|
7625
7653
|
type: "button";
|
|
7626
7654
|
tabindex: number;
|
|
7627
7655
|
}>;
|
|
7656
|
+
private readonly themeKeys;
|
|
7628
7657
|
protected readonly selectorConfig: import("@angular/core").Signal<import("@magmonium/one").SelectorConfig<ColorPickerBoxComponent>>;
|
|
7629
7658
|
protected readonly onOpened: () => void;
|
|
7630
7659
|
protected readonly onClosed: () => void;
|
|
@@ -7864,6 +7893,12 @@ export interface FileUploadInput extends Omit<TextInput, 'type'> {
|
|
|
7864
7893
|
maxSize?: number;
|
|
7865
7894
|
/** Holds a list, and a new pick appends to it rather than replacing it. */
|
|
7866
7895
|
multiple?: boolean;
|
|
7896
|
+
/**
|
|
7897
|
+
* A `multiple` Field that also takes folders: a dropped folder brings every
|
|
7898
|
+
* file inside it, and a **Choose folder** button picks one. What `accept`
|
|
7899
|
+
* refuses inside a folder is skipped, not reported.
|
|
7900
|
+
*/
|
|
7901
|
+
folders?: boolean;
|
|
7867
7902
|
/** Renders a DropZone in place of the picker button. */
|
|
7868
7903
|
dropZone?: boolean;
|
|
7869
7904
|
/**
|
|
@@ -8272,6 +8307,7 @@ export declare class FileUploadInputComponent extends BaseInputComponent<FileUpl
|
|
|
8272
8307
|
private readonly syncPickedNames;
|
|
8273
8308
|
private readonly isFolderMode;
|
|
8274
8309
|
protected readonly isMultiple: import("@angular/core").Signal<boolean>;
|
|
8310
|
+
protected readonly takesFolders: import("@angular/core").Signal<boolean>;
|
|
8275
8311
|
protected readonly hasDropZone: import("@angular/core").Signal<boolean>;
|
|
8276
8312
|
private readonly readsText;
|
|
8277
8313
|
private readonly accept;
|
|
@@ -8293,6 +8329,7 @@ export declare class FileUploadInputComponent extends BaseInputComponent<FileUpl
|
|
|
8293
8329
|
private readonly acceptLabel;
|
|
8294
8330
|
protected readonly dropPlaceholder: import("@angular/core").Signal<string>;
|
|
8295
8331
|
protected readonly removeButton: import("@angular/core").Signal<Button>;
|
|
8332
|
+
protected readonly folderButton: import("@angular/core").Signal<Button>;
|
|
8296
8333
|
protected readonly rejectionMessages: import("@angular/core").Signal<RejectionMessage[]>;
|
|
8297
8334
|
protected readonly buttonConfig: import("@angular/core").Signal<Button>;
|
|
8298
8335
|
protected openPicker: () => void;
|
|
@@ -8301,6 +8338,11 @@ export declare class FileUploadInputComponent extends BaseInputComponent<FileUpl
|
|
|
8301
8338
|
protected onDrop: (event: DragEvent) => void;
|
|
8302
8339
|
protected removeAt: (index: number, event: Event) => void;
|
|
8303
8340
|
private pickFiles;
|
|
8341
|
+
protected openFolderPicker: () => void;
|
|
8342
|
+
/**
|
|
8343
|
+
* `incoming` was picked or dropped as itself, so a refusal is reported;
|
|
8344
|
+
* `nested` came inside a folder, where a file `accept` refuses is skipped.
|
|
8345
|
+
*/
|
|
8304
8346
|
private take;
|
|
8305
8347
|
/**
|
|
8306
8348
|
* The files this Field keeps. Without an ImageEditor, `accept` and `maxSize`
|
|
@@ -9005,6 +9047,7 @@ export declare class SectionFormItemComponent extends ConfigComponent<Input> imp
|
|
|
9005
9047
|
variant?: string;
|
|
9006
9048
|
type?: InputType | undefined;
|
|
9007
9049
|
label?: string | undefined;
|
|
9050
|
+
noTranslate?: boolean;
|
|
9008
9051
|
required?: true;
|
|
9009
9052
|
patterns?: PatternRule[];
|
|
9010
9053
|
patternMessage?: string;
|
|
@@ -12766,6 +12809,70 @@ export declare class StatComponent {
|
|
|
12766
12809
|
*/
|
|
12767
12810
|
export declare const cornerSide: (position: StatCornerPosition) => StatCornerSide;
|
|
12768
12811
|
export declare const cornerEdge: (position: StatCornerPosition) => StatCornerEdge;
|
|
12812
|
+
/**
|
|
12813
|
+
* How round a HeatSwatch's corners are. The only shape setting it takes: the
|
|
12814
|
+
* block fills whatever holds it, so size is the holder's to give.
|
|
12815
|
+
*/
|
|
12816
|
+
type HeatSwatchRadius = 'none' | 'sm' | 'md' | 'full';
|
|
12817
|
+
/**
|
|
12818
|
+
* A solid block whose colour says where a value sits between 0 and 100
|
|
12819
|
+
* (GLOSSARY.md HeatSwatch): `fromColor` at 0, `toColor` at 100, the blend of
|
|
12820
|
+
* the two in between. A leaf that fills whatever holds it and says nothing —
|
|
12821
|
+
* a figure a reader needs is a TextOutput beside it — so it is hidden from
|
|
12822
|
+
* assistive technology rather than given a name.
|
|
12823
|
+
*/
|
|
12824
|
+
export declare class HeatSwatchComponent {
|
|
12825
|
+
/**
|
|
12826
|
+
* Where the swatch sits, 0–100; outside that it paints as the nearer end.
|
|
12827
|
+
* Takes a string too, a tag written by codegen spelling a typed figure as a
|
|
12828
|
+
* plain attribute. Missing — unset, `null`, not a number — paints neutral.
|
|
12829
|
+
*/
|
|
12830
|
+
readonly value: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
12831
|
+
/** A ThemeColor key or any CSS colour: what the swatch is at 0. */
|
|
12832
|
+
readonly fromColor: import("@angular/core").InputSignal<string | undefined>;
|
|
12833
|
+
/** Same, at 100. */
|
|
12834
|
+
readonly toColor: import("@angular/core").InputSignal<string | undefined>;
|
|
12835
|
+
readonly radius: import("@angular/core").InputSignal<HeatSwatchRadius>;
|
|
12836
|
+
private readonly themeStore;
|
|
12837
|
+
protected readonly paint: import("@angular/core").Signal<string | undefined>;
|
|
12838
|
+
private resolve;
|
|
12839
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeatSwatchComponent, never>;
|
|
12840
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeatSwatchComponent, "m-heat-swatch", never, {
|
|
12841
|
+
"value": {
|
|
12842
|
+
"alias": "value";
|
|
12843
|
+
"required": false;
|
|
12844
|
+
"isSignal": true;
|
|
12845
|
+
};
|
|
12846
|
+
"fromColor": {
|
|
12847
|
+
"alias": "fromColor";
|
|
12848
|
+
"required": false;
|
|
12849
|
+
"isSignal": true;
|
|
12850
|
+
};
|
|
12851
|
+
"toColor": {
|
|
12852
|
+
"alias": "toColor";
|
|
12853
|
+
"required": false;
|
|
12854
|
+
"isSignal": true;
|
|
12855
|
+
};
|
|
12856
|
+
"radius": {
|
|
12857
|
+
"alias": "radius";
|
|
12858
|
+
"required": false;
|
|
12859
|
+
"isSignal": true;
|
|
12860
|
+
};
|
|
12861
|
+
}, {}, never, never, true, never>;
|
|
12862
|
+
}
|
|
12863
|
+
/**
|
|
12864
|
+
* The share of `toColor` in a HeatSwatch's blend, as a whole percentage — the
|
|
12865
|
+
* value clamped to 0–100, or `undefined` where there is no value to place.
|
|
12866
|
+
* Missing is its own answer rather than 0: a swatch whose StateProperty has not
|
|
12867
|
+
* loaded paints neutral, never as the `fromColor` end.
|
|
12868
|
+
*/
|
|
12869
|
+
export declare const heatShare: (value: number) => number | undefined;
|
|
12870
|
+
/**
|
|
12871
|
+
* The CSS colour a HeatSwatch paints: the two resolved endpoints mixed in
|
|
12872
|
+
* `oklab` in proportion to the value, so a red-to-green swatch passes through
|
|
12873
|
+
* an even midpoint rather than the muddy brown an `srgb` mix gives.
|
|
12874
|
+
*/
|
|
12875
|
+
export declare const heatColor: (value: number, from: string, to: string) => string | undefined;
|
|
12769
12876
|
interface PwaManifest {
|
|
12770
12877
|
name: string;
|
|
12771
12878
|
short_name: string;
|
|
@@ -13348,6 +13455,11 @@ export type NavBadge = {
|
|
|
13348
13455
|
count: number;
|
|
13349
13456
|
variant?: 'default' | 'primary' | 'danger';
|
|
13350
13457
|
};
|
|
13458
|
+
/**
|
|
13459
|
+
* How a row's subject stands, worn as a dot beside its label — a status, not a
|
|
13460
|
+
* count, so it has no figure and the tones a NavBadge lacks.
|
|
13461
|
+
*/
|
|
13462
|
+
export type NavTone = 'info' | 'warning' | 'error' | 'success';
|
|
13351
13463
|
export type BreadcrumbTrail = {
|
|
13352
13464
|
label: string;
|
|
13353
13465
|
icon?: string;
|
|
@@ -13391,6 +13503,8 @@ export type BreadcrumbTrail = {
|
|
|
13391
13503
|
* registration words a Nav the same wherever it is drawn.
|
|
13392
13504
|
*/
|
|
13393
13505
|
badge?: NavBadge;
|
|
13506
|
+
/** The tone its NavRow named, drawn as a dot beside the label. */
|
|
13507
|
+
tone?: NavTone;
|
|
13394
13508
|
};
|
|
13395
13509
|
export type BreadCrumb = {
|
|
13396
13510
|
trail?: BreadcrumbTrail[];
|
|
@@ -13453,6 +13567,8 @@ export type NavRow = {
|
|
|
13453
13567
|
icon?: string;
|
|
13454
13568
|
/** A row standing for an app draws its AppLogo instead of `icon`. */
|
|
13455
13569
|
appLogo?: BreadcrumbTrail['appLogo'];
|
|
13570
|
+
/** How the row's subject stands, as the dot its menu row wears. */
|
|
13571
|
+
tone?: BreadcrumbTrail['tone'];
|
|
13456
13572
|
};
|
|
13457
13573
|
/**
|
|
13458
13574
|
* The parameter name a `dynamic` Nav carries when it authored none. One
|
|
@@ -17067,4 +17183,4 @@ export declare const toggleUid: (audience: Audience, uid: string) => Audience;
|
|
|
17067
17183
|
export declare const toggleGroup: (audience: Audience, groupId: string) => Audience;
|
|
17068
17184
|
/** How many Users and Groups an Audience names. */
|
|
17069
17185
|
export declare const pickCount: (audience: Audience) => number;
|
|
17070
|
-
export type { Accordion, AccordionGroup, AccordionVariant, AppCardData, AppCardInputs, AppCardVariant, AppLogoTone, AppLogoVariant, AppManifest, AppTileData, AssetOption, Audience, AudienceLevel, AudienceMember, AudiencePicker, AuthResult, Badge, BadgeCount, BadgePosition, BadgeVariant, Button, ButtonGroup, CellChangeEvent, CellClickEvent, ColBreakpoint, ColSpan, ColorPallet, ColumnDef, Comment, CommentItem, Config, ContextMenu, ContextMenuEvent, Cursor, CustomIcon, DragListReorder, Draggable, DraggableState, FileUploadConfig, FileUploadEvent, FilterGroupContext, FilterGroupMember, FilterOption, FilterPanel, FilterPanelIo, FilterRangeMode, FilterSelectionMap, FilterValue, FilterVariant, FilteredTreeGrid, FlatTreeGridRow, FlexAlign, FlexAlignSelf, FlexConfig, FlexDirection, FlexItemConfig, FlexJustify, FlexVariant, GridAlignX, GridAlignY, GroupActionEvent, GroupDropEvent, GroupKind, GroupMenuEvent, Header, HeaderLevel, Icon, KeyValueVariant, LabelSegment, ListConfig, ListContext, ListItem, ListOrientation, ListVariant, MenuItem, MoneySystem, NavCountConfig, NavInstanceConfig, NavMenuConfig, NavRowsConfig, NavVisibilityConfig, NavVisibleAnswer, NavWidgetConfig, NavWidgetEntry, NavWidgetMap, OverlayWidgetLoader, OverlayWidgetMap, PageChangeEvent, Pagination, PaginationWindow, ResolvedUserTab, RowDropEvent, SearchChangeEvent, SectionAccordion, SectionAccordionGroup, SectionAccordionGroupContext, SectionAccordionRef, SectionButtonGroupConfig, SectionFilterGroupConfig, SectionHero, SectionHeroVariant, SectionTableAlign, SectionTableColumn, SectionTableConfig, SectionTableDataType, SectionTableSort, SectionTableSortDirection, SectionTableVariant, SectionToggleItem, SectionToggleItemContext, SelectionAction, SelectionActionEvent, SelectionChangeEvent, SelectorConfig, SharingClient, SharingGroup, SocketMessage, Sort, SortChange, SortChangeEvent, SortOption, SortOrder, SourceAudience, SpacingInward, SqueezeMode, StatAlign, StatCornerEdge, StatCornerPosition, StatCornerSide, StatSurface, StatVariant, TabGroup, TableConfig, TableFilterCondition, TableFilterDef, TableGroup, TextOrNumberInput, Timeline, TimelineItem, TreeGridCellClickEvent, TreeGridLoadChildrenEvent, TreeGridRow, TreeGridRowSelectEvent, TreeGridToggleEvent, User };
|
|
17186
|
+
export type { Accordion, AccordionGroup, AccordionVariant, AppCardData, AppCardInputs, AppCardVariant, AppLogoTone, AppLogoVariant, AppManifest, AppTileData, AssetOption, Audience, AudienceLevel, AudienceMember, AudiencePicker, AuthResult, Badge, BadgeCount, BadgePosition, BadgeVariant, Button, ButtonGroup, CellChangeEvent, CellClickEvent, ColBreakpoint, ColSpan, ColorPallet, ColumnDef, Comment, CommentItem, Config, ContextMenu, ContextMenuEvent, Cursor, CustomIcon, DragListReorder, Draggable, DraggableState, FileUploadConfig, FileUploadEvent, FilterGroupContext, FilterGroupMember, FilterOption, FilterPanel, FilterPanelIo, FilterRangeMode, FilterSelectionMap, FilterValue, FilterVariant, FilteredTreeGrid, FlatTreeGridRow, FlexAlign, FlexAlignSelf, FlexConfig, FlexDirection, FlexItemConfig, FlexJustify, FlexVariant, GridAlignX, GridAlignY, GroupActionEvent, GroupDropEvent, GroupKind, GroupMenuEvent, Header, HeaderLevel, HeatSwatchRadius, Icon, KeyValueVariant, LabelSegment, ListConfig, ListContext, ListItem, ListOrientation, ListVariant, MenuItem, MoneySystem, NavCountConfig, NavInstanceConfig, NavMenuConfig, NavRowsConfig, NavVisibilityConfig, NavVisibleAnswer, NavWidgetConfig, NavWidgetEntry, NavWidgetMap, OverlayWidgetLoader, OverlayWidgetMap, PageChangeEvent, Pagination, PaginationWindow, ResolvedUserTab, RowDropEvent, SearchChangeEvent, SectionAccordion, SectionAccordionGroup, SectionAccordionGroupContext, SectionAccordionRef, SectionButtonGroupConfig, SectionFilterGroupConfig, SectionHero, SectionHeroVariant, SectionTableAlign, SectionTableColumn, SectionTableConfig, SectionTableDataType, SectionTableSort, SectionTableSortDirection, SectionTableVariant, SectionToggleItem, SectionToggleItemContext, SelectionAction, SelectionActionEvent, SelectionChangeEvent, SelectorConfig, SharingClient, SharingGroup, SocketMessage, Sort, SortChange, SortChangeEvent, SortOption, SortOrder, SourceAudience, SpacingInward, SqueezeMode, StatAlign, StatCornerEdge, StatCornerPosition, StatCornerSide, StatSurface, StatVariant, TabGroup, TableConfig, TableFilterCondition, TableFilterDef, TableGroup, TextOrNumberInput, Timeline, TimelineItem, TreeGridCellClickEvent, TreeGridLoadChildrenEvent, TreeGridRow, TreeGridRowSelectEvent, TreeGridToggleEvent, User };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-directives-C_i3gUFT.mjs","names":[],"sources":["../../../../libs/one/src/lib/shared/directives/spacing/spacing.ts","../../../../libs/one/src/lib/shared/directives/draggable/lib/function/position.ts","../../../../libs/one/src/lib/shared/directives/draggable/lib/function/cursor.ts","../../../../libs/one/src/lib/shared/directives/draggable/draggable.ts","../../../../libs/one/src/lib/shared/directives/drag-list/drag-list.ts","../../../../libs/one/src/lib/shared/directives/drag-list/drag-list-item.ts","../../../../libs/one/src/lib/shared/directives/autosize/autosize.ts","../../../../libs/one/src/lib/shared/directives/file-upload/file-upload.ts","../../../../libs/one/src/lib/shared/directives/tooltip/tooltip.ts","../../../../libs/one/src/lib/shared/directives/position/position.ts","../../../../libs/one/src/lib/shared/ui/table/lib/directives/highlight.ts","../../../../libs/one/src/lib/shared/functions/string/color.ts","../../../../libs/one/src/lib/shared/directives/color/m-hero-color.directive.ts"],"sourcesContent":["import {\n computed,\n Directive,\n inject,\n InjectionToken,\n input,\n} from '@angular/core';\nimport { resolveSpacing } from '../../functions/size/size-converter';\n\ntype SpacingValue = number | string | undefined | null;\n\n/**\n * Which of the two spacings a primitive takes inward rather than on its host.\n * Provided in a component's own `providers`, so the directive on that host\n * reads it from the same element and nowhere else.\n *\n * `padding` — the primitive draws a box of its own inside the host (a Card's\n * header, main and footer) and pads that box from `--m-padding-inline` /\n * `--m-padding-block` in place of its built-in padding. Padding the host too\n * would pad it twice.\n *\n * `margin` — the primitive stretches to its container's width, so a margin on\n * the host pushes it past the edge. It reads `--m-margin-inline` and narrows\n * itself instead.\n */\nexport type SpacingInward = { padding?: boolean; margin?: boolean };\n\nexport const SPACING_INWARD = new InjectionToken<SpacingInward>(\n 'SPACING_INWARD'\n);\n\n// A blank axis is unset, not a value: an inspector form hands back every\n// untouched text field as `''`, and `??` alone would let it blank the\n// shorthand the User did type.\nconst isBlank = (value: SpacingValue): boolean =>\n value === undefined ||\n value === null ||\n (typeof value === 'string' && value.trim() === '');\n\nconst axis = (own: SpacingValue, shorthand: SpacingValue): string | undefined =>\n resolveSpacing(isBlank(own) ? shorthand : own);\n\n/**\n * Space inside any element. A bare number is `em`, any other CSS length\n * passes through; the axis inputs win over the shorthand on their own axis.\n * Always writes the resolved lengths as `--m-padding-inline` /\n * `--m-padding-block`, and pads the host itself unless the host takes padding\n * inward (`SPACING_INWARD`).\n */\n@Directive({\n selector: '[mPadding],[mPaddingX],[mPaddingY]',\n host: {\n class: 'm-padded',\n '[style.--m-padding-inline]': 'inline()',\n '[style.--m-padding-block]': 'block()',\n '[style.padding-inline]': 'inward ? null : inline()',\n '[style.padding-block]': 'inward ? null : block()',\n },\n})\nexport class PaddingDirective {\n readonly mPadding = input<SpacingValue>(undefined);\n readonly mPaddingX = input<SpacingValue>(undefined);\n readonly mPaddingY = input<SpacingValue>(undefined);\n\n protected readonly inward = !!inject(SPACING_INWARD, {\n self: true,\n optional: true,\n })?.padding;\n\n protected readonly inline = computed(() =>\n axis(this.mPaddingX(), this.mPadding())\n );\n protected readonly block = computed(() =>\n axis(this.mPaddingY(), this.mPadding())\n );\n}\n\n/**\n * Space around any element, on `PaddingDirective`'s scale. Writes\n * `--m-margin-inline` / `--m-margin-block` always; the block margin is set on\n * the host always, the inline one only when the host does not take it inward\n * (`SPACING_INWARD`) — a full-width host narrows by it instead.\n */\n@Directive({\n selector: '[mMargin],[mMarginX],[mMarginY]',\n host: {\n class: 'm-spaced',\n '[style.--m-margin-inline]': 'inline()',\n '[style.--m-margin-block]': 'block()',\n '[style.margin-inline]': 'inward ? null : inline()',\n '[style.margin-block]': 'block()',\n },\n})\nexport class MarginDirective {\n readonly mMargin = input<SpacingValue>(undefined);\n readonly mMarginX = input<SpacingValue>(undefined);\n readonly mMarginY = input<SpacingValue>(undefined);\n\n protected readonly inward = !!inject(SPACING_INWARD, {\n self: true,\n optional: true,\n })?.margin;\n\n protected readonly inline = computed(() =>\n axis(this.mMarginX(), this.mMargin())\n );\n protected readonly block = computed(() =>\n axis(this.mMarginY(), this.mMargin())\n );\n}\n","import { Draggable } from '../../type';\nimport { Position } from '../../../../type/screen/position';\n\nfunction isWithinBoundary(\n value: number,\n draggable: Draggable,\n axis: 'x' | 'y'\n): boolean {\n const maxVal =\n draggable.max?.[axis] ??\n (axis === 'x' ? window.innerWidth : window.innerHeight);\n const minVal = draggable.min?.[axis] ?? 0;\n return value <= maxVal && value >= minVal;\n}\n\nexport function getNewPosition(\n draggable: Draggable,\n event: MouseEvent | TouchEvent,\n delta: Position\n): Position {\n let { x, y } = draggable.position;\n\n const isTouch = 'touches' in event;\n const touch = isTouch ? event.touches[0] || event.changedTouches[0] : null;\n const screenX = touch ? touch.screenX : (event as MouseEvent).screenX;\n const screenY = touch ? touch.screenY : (event as MouseEvent).screenY;\n\n if (draggable.direction !== 'y') {\n const dx = screenX - (delta.x ?? 0);\n if (isWithinBoundary(dx, draggable, 'x')) {\n x = dx;\n }\n }\n\n if (draggable.direction !== 'x') {\n const dy = screenY - (delta.y ?? 0);\n if (isWithinBoundary(dy, draggable, 'y')) {\n y = dy;\n }\n }\n\n return { x, y };\n}\n","import { Draggable } from '../../type';\n\nexport function getCursor({ direction }: Draggable) {\n switch (direction) {\n case 'x':\n return 'ew-resize';\n case 'y':\n return 'ns-resize';\n default:\n return 'move';\n }\n}\n","import { computed, Directive, HostListener, Input, model, input, output } from '@angular/core';\nimport { Draggable, DraggableState } from './type';\nimport { getCursor, getNewPosition } from './lib';\n// The type's own file rather than the shared barrel: that barrel reaches every\n// UI slice, so a directive importing it is a cycle back into the components\n// that declare this directive — and a half-initialised cycle leaves\n// `DraggableDirective` undefined in whichever of them is evaluated first.\nimport { Position } from '../../type/screen/position';\n\n/** Buttons/links inside a handle must keep their click — not start a drag. */\nconst INTERACTIVE_SELECTOR =\n 'button, a, input, textarea, select, [role=\"button\"], [contenteditable=\"true\"]';\n\nconst shouldIgnorePointer = (target: HTMLElement): boolean =>\n target.tagName === 'INPUT' ||\n target.tagName === 'TEXTAREA' ||\n target.tagName === 'SELECT' ||\n target.isContentEditable ||\n !!target.closest(INTERACTIVE_SELECTOR);\n\n@Directive({\n selector: '[mDraggable]',\n host: {\n '[class.draggable]': \"mDraggable()?.direction !== 'none'\",\n '[class.dragging]': 'this.state.dragging',\n '[style.position]':\n \"mDraggable()?.direction !== 'none' ? (mDraggable()?.positionType ?? 'absolute') : null\",\n '[style.top.px]':\n \"mDraggable()?.direction !== 'none' && mDraggable()?.direction !== 'x' ? mDraggable()?.position?.y : null\",\n '[style.left.px]':\n \"mDraggable()?.direction !== 'none' && mDraggable()?.direction !== 'y' ? mDraggable()?.position?.x : null\",\n '[style.cursor]': \"mDraggable()?.direction !== 'none' ? cursor() : null\",\n },\n})\nexport class DraggableDirective {\n mDraggable = model.required<Draggable>();\n handleSelector = input<string>();\n\n /**\n * The bounds, read at drag time and never written into `mDraggable`.\n *\n * They used to be merged in by a setter, which lost them the moment a parent\n * replaced its Draggable — a `linkedSignal` recomputed from the value the\n * drag itself writes back, which is what both Ranges do. Angular memoizes an\n * inline object literal in a template, so `[min]=\"{ x: 0, y: 3 }\"` is the\n * same reference on the next pass and its setter never fires again to put\n * the bound back. The config then had no `max`, `isWithinBoundary` fell\n * through to `window.innerWidth`, and the thumb slid off the track.\n *\n * A bound is what the caller says the drag may not pass, not state the drag\n * mutates — so it stays an input and the two never share an object.\n */\n readonly min = input<Position | undefined>(undefined);\n readonly max = input<Position | undefined>(undefined);\n\n readonly dragStart = output<void>();\n readonly dragEnd = output<void>();\n\n protected readonly cursor = computed(() => getCursor(this.mDraggable()));\n protected state = <DraggableState>{\n dragging: false,\n delta: { x: 0, y: 0 },\n };\n\n @Input() set pos(position: Position) {\n this.mDraggable.update((config) => ({\n ...config,\n position,\n }));\n }\n\n /**\n * The config a move is clamped against: the bounds on the tag win, and a\n * caller that carries them inside its own Draggable keeps working.\n */\n private readonly bounded = (config: Draggable): Draggable => ({\n ...config,\n min: this.min() ?? config.min,\n max: this.max() ?? config.max,\n });\n\n @HostListener('mousedown', ['$event'])\n protected handleMouseDown(event: MouseEvent) {\n const target = event.target as HTMLElement;\n if (\n this.mDraggable()?.direction === 'none' ||\n shouldIgnorePointer(target)\n ) {\n return;\n }\n const selector = this.handleSelector();\n if (selector && !target.closest(selector)) {\n return;\n }\n event.stopPropagation();\n event.preventDefault();\n this.state.dragging = true;\n this.dragStart.emit();\n const { screenX, screenY } = event;\n const { x, y } = this.mDraggable()?.position ?? {};\n this.state.delta.x = screenX - (x ?? 0);\n this.state.delta.y = screenY - (y ?? 0);\n }\n\n @HostListener('window:mousemove', ['$event'])\n protected handleMouseMove(event: MouseEvent): void {\n if (!this.state.dragging) {\n return;\n }\n event.preventDefault();\n event.stopPropagation();\n this.mDraggable.update((config) => ({\n ...config,\n position: getNewPosition(this.bounded(config), event, this.state.delta),\n }));\n }\n\n @HostListener('window:mouseup', ['$event'])\n protected handleMouseUp(event: MouseEvent): void {\n if (!this.state.dragging) {\n return;\n }\n event.stopPropagation();\n event.preventDefault();\n this.state.dragging = false;\n this.dragEnd.emit();\n }\n\n @HostListener('touchstart', ['$event'])\n protected handleTouchStart(event: TouchEvent) {\n const target = event.target as HTMLElement;\n if (\n this.mDraggable()?.direction === 'none' ||\n shouldIgnorePointer(target)\n ) {\n return;\n }\n const selector = this.handleSelector();\n if (selector && !target.closest(selector)) {\n return;\n }\n event.stopPropagation();\n this.state.dragging = true;\n this.dragStart.emit();\n const touch = event.touches[0];\n const { screenX, screenY } = touch;\n const { x, y } = this.mDraggable()?.position ?? {};\n this.state.delta.x = screenX - (x ?? 0);\n this.state.delta.y = screenY - (y ?? 0);\n }\n\n @HostListener('window:touchmove', ['$event'])\n protected handleTouchMove(event: TouchEvent): void {\n if (!this.state.dragging) {\n return;\n }\n if (event.cancelable) {\n event.preventDefault();\n }\n event.stopPropagation();\n this.mDraggable.update((config) => ({\n ...config,\n position: getNewPosition(this.bounded(config), event, this.state.delta),\n }));\n }\n\n @HostListener('window:touchend', ['$event'])\n protected handleTouchEnd(event: TouchEvent): void {\n if (!this.state.dragging) {\n return;\n }\n event.stopPropagation();\n event.preventDefault();\n this.state.dragging = false;\n this.dragEnd.emit();\n }\n}\n","import {\n booleanAttribute,\n Directive,\n ElementRef,\n inject,\n input,\n OnDestroy,\n output,\n signal,\n} from '@angular/core';\n\nexport interface DragListReorder {\n from: number;\n to: number;\n}\n\n/**\n * Container side of HTML5 drag-to-reorder. Put on the element wrapping the\n * items, pair with [mDragListItem] on each item. Emits (reordered) with\n * {from, to} — the consumer owns the array move. Auto-scrolls any scrollable\n * ancestor (and the viewport) while the pointer is within 150px of its edge.\n * With removeOnDragOut, dropping an item outside the container emits\n * (removed) with its index — the consumer owns the actual removal.\n */\n@Directive({\n selector: '[mDragList]',\n host: {\n '(dragover)': 'onContainerDragOver($event)',\n },\n})\nexport class DragListDirective implements OnDestroy {\n readonly removeOnDragOut = input(false, { transform: booleanAttribute });\n\n readonly reordered = output<DragListReorder>();\n readonly removed = output<number>();\n\n readonly draggedIndex = signal<number | null>(null);\n readonly dragOverIndex = signal<number | null>(null);\n\n readonly #elementRef = inject(ElementRef);\n\n #scrollAnimationFrameId: number | null = null;\n #dragPointerX = 0;\n #dragPointerY = 0;\n #scrollContainers: HTMLElement[] = [];\n\n readonly startDrag = (index: number, clientX: number, clientY: number): void => {\n this.draggedIndex.set(index);\n this.#dragPointerX = clientX;\n this.#dragPointerY = clientY;\n this.#startScrollLoop();\n };\n\n readonly trackPointer = (clientX: number, clientY: number): void => {\n // Firefox reports client coords 0 on drag events — ignore those samples.\n if (clientX !== 0 || clientY !== 0) {\n this.#dragPointerX = clientX;\n this.#dragPointerY = clientY;\n }\n };\n\n readonly endDrag = (): void => {\n this.draggedIndex.set(null);\n this.dragOverIndex.set(null);\n this.#stopScrollLoop();\n };\n\n // Called on dragend — fires only when no drop() consumed the drag (drop on\n // an item clears draggedIndex first). Pointer outside the container at\n // release means the item was dragged out.\n readonly dragEnded = (event: DragEvent): void => {\n const from = this.draggedIndex();\n if (from !== null && this.removeOnDragOut() && this.#isPointerOutside(event)) {\n this.endDrag();\n this.removed.emit(from);\n return;\n }\n this.endDrag();\n };\n\n readonly #isPointerOutside = (event: DragEvent): boolean => {\n const x = event.clientX || this.#dragPointerX;\n const y = event.clientY || this.#dragPointerY;\n const rect = (this.#elementRef.nativeElement as HTMLElement).getBoundingClientRect();\n return x < rect.left || x > rect.right || y < rect.top || y > rect.bottom;\n };\n\n readonly drop = (index: number): void => {\n const from = this.draggedIndex();\n this.endDrag();\n if (from !== null && from !== index) {\n this.reordered.emit({ from, to: index });\n }\n };\n\n protected readonly onContainerDragOver = (event: DragEvent): void => {\n event.preventDefault();\n this.trackPointer(event.clientX, event.clientY);\n };\n\n readonly #getScrollContainers = (): HTMLElement[] => {\n const list: HTMLElement[] = [];\n let el: HTMLElement | null = this.#elementRef.nativeElement;\n while (el && el !== document.body) {\n const style = window.getComputedStyle(el);\n const overflowY = style.overflowY || style.overflow;\n const isScrollable =\n overflowY === 'auto' || overflowY === 'scroll' || overflowY === 'hidden';\n if (isScrollable && el.scrollHeight > el.clientHeight) {\n list.push(el);\n }\n el = el.parentElement;\n }\n list.push(document.documentElement);\n return list;\n };\n\n readonly #startScrollLoop = (): void => {\n this.#stopScrollLoop();\n this.#scrollContainers = this.#getScrollContainers();\n\n window.addEventListener('dragover', this.#onGlobalDragOver, true);\n window.addEventListener('drag', this.#onGlobalDrag, true);\n\n const loop = (): void => {\n if (this.draggedIndex() === null) {\n this.#stopScrollLoop();\n return;\n }\n\n for (const container of this.#scrollContainers) {\n const isRoot = container === document.documentElement;\n const rect = container.getBoundingClientRect();\n const topThreshold = isRoot ? 150 : rect.top + 150;\n const bottomThreshold = isRoot\n ? window.innerHeight - 150\n : rect.bottom - 150;\n\n if (this.#dragPointerY < topThreshold) {\n const diff = topThreshold - this.#dragPointerY;\n const speed = Math.min(25, Math.max(2, Math.floor(diff / 4)));\n if (isRoot) {\n window.scrollBy(0, -speed);\n } else {\n container.scrollTop -= speed;\n }\n } else if (this.#dragPointerY > bottomThreshold) {\n const diff = this.#dragPointerY - bottomThreshold;\n const speed = Math.min(25, Math.max(2, Math.floor(diff / 4)));\n if (isRoot) {\n window.scrollBy(0, speed);\n } else {\n container.scrollTop += speed;\n }\n }\n }\n\n this.#scrollAnimationFrameId = requestAnimationFrame(loop);\n };\n\n this.#scrollAnimationFrameId = requestAnimationFrame(loop);\n };\n\n readonly #stopScrollLoop = (): void => {\n window.removeEventListener('dragover', this.#onGlobalDragOver, true);\n window.removeEventListener('drag', this.#onGlobalDrag, true);\n if (this.#scrollAnimationFrameId !== null) {\n cancelAnimationFrame(this.#scrollAnimationFrameId);\n this.#scrollAnimationFrameId = null;\n }\n this.#scrollContainers = [];\n };\n\n // Global listeners: dragover fires reliably everywhere once preventDefault'd,\n // drag covers browsers that skip dragover outside drop targets.\n readonly #onGlobalDragOver = (event: DragEvent): void => {\n event.preventDefault();\n this.trackPointer(event.clientX, event.clientY);\n };\n\n readonly #onGlobalDrag = (event: DragEvent): void => {\n this.trackPointer(event.clientX, event.clientY);\n };\n\n ngOnDestroy(): void {\n this.#stopScrollLoop();\n }\n}\n","import { computed, Directive, ElementRef, inject, input } from '@angular/core';\nimport { DragListDirective } from './drag-list';\n\n/**\n * Item side of HTML5 drag-to-reorder. Put on each repeated element inside an\n * [mDragList] container, bound to the item's index: [mDragListItem]=\"i\".\n * Adds `is-dragging` on the dragged item and `is-drag-over` on the current\n * drop target — style them in the consumer.\n */\n@Directive({\n selector: '[mDragListItem]',\n host: {\n draggable: 'true',\n '[class.is-dragging]': 'isDragging()',\n '[class.is-drag-over]': 'isDragOver()',\n '(dragstart)': 'onDragStart($event)',\n '(dragover)': 'onDragOver($event)',\n '(dragenter)': 'onDragEnter()',\n '(dragleave)': 'onDragLeave()',\n '(dragend)': 'onDragEnd($event)',\n '(drop)': 'onDrop($event)',\n '(drag)': 'onDrag($event)',\n },\n})\nexport class DragListItemDirective {\n readonly mDragListItem = input.required<number>();\n\n readonly #list = inject(DragListDirective);\n readonly #elementRef = inject(ElementRef);\n\n protected readonly isDragging = computed(\n () => this.#list.draggedIndex() === this.mDragListItem()\n );\n protected readonly isDragOver = computed(\n () => this.#list.dragOverIndex() === this.mDragListItem()\n );\n\n protected readonly onDragStart = (event: DragEvent): void => {\n if (event.dataTransfer) {\n event.dataTransfer.effectAllowed = 'move';\n event.dataTransfer.setData('text/plain', this.mDragListItem().toString());\n this.#setDragGhost(event);\n }\n this.#list.startDrag(this.mDragListItem(), event.clientX, event.clientY);\n };\n\n // Replaces the browser's flat snapshot ghost with a lifted, tilted clone so\n // the item visibly \"picks up\". Clone keeps _ngcontent attributes, so the\n // consumer's scoped styles still apply to it.\n readonly #setDragGhost = (event: DragEvent): void => {\n const host = this.#elementRef.nativeElement as HTMLElement;\n const rect = host.getBoundingClientRect();\n const padding = 24;\n\n const ghost = host.cloneNode(true) as HTMLElement;\n ghost.style.width = `${rect.width}px`;\n ghost.style.margin = '0';\n ghost.style.transform = 'rotate(2.5deg) scale(1.04)';\n ghost.style.boxShadow = '0 16px 40px rgba(0, 0, 0, 0.4)';\n ghost.style.opacity = '0.95';\n\n // Wrapper gives the rotation and shadow room to render without clipping;\n // must be in the document (offscreen) for setDragImage to rasterize it.\n const wrapper = document.createElement('div');\n wrapper.style.position = 'fixed';\n wrapper.style.top = '-10000px';\n wrapper.style.left = '-10000px';\n wrapper.style.padding = `${padding}px`;\n wrapper.style.pointerEvents = 'none';\n wrapper.appendChild(ghost);\n document.body.appendChild(wrapper);\n\n event.dataTransfer?.setDragImage(\n wrapper,\n event.clientX - rect.left + padding,\n event.clientY - rect.top + padding\n );\n\n // Browser rasterizes the ghost synchronously within dragstart — safe to\n // drop the DOM node right after.\n setTimeout(() => wrapper.remove(), 0);\n };\n\n protected readonly onDrag = (event: DragEvent): void => {\n this.#list.trackPointer(event.clientX, event.clientY);\n };\n\n protected readonly onDragOver = (event: DragEvent): void => {\n if (this.#list.draggedIndex() === this.mDragListItem()) return;\n event.preventDefault();\n this.#list.trackPointer(event.clientX, event.clientY);\n };\n\n protected readonly onDragEnter = (): void => {\n if (this.#list.draggedIndex() === this.mDragListItem()) return;\n this.#list.dragOverIndex.set(this.mDragListItem());\n };\n\n protected readonly onDragLeave = (): void => {\n if (this.#list.dragOverIndex() === this.mDragListItem()) {\n this.#list.dragOverIndex.set(null);\n }\n };\n\n protected readonly onDragEnd = (event: DragEvent): void => {\n this.#list.dragEnded(event);\n };\n\n protected readonly onDrop = (event: DragEvent): void => {\n event.preventDefault();\n this.#list.drop(this.mDragListItem());\n };\n}\n","import {\n AfterViewChecked,\n Directive,\n ElementRef,\n HostListener,\n inject,\n} from '@angular/core';\nimport { IS_DESIGN_MODE } from '../../config/tokens';\n\n@Directive({\n selector: '[mAutosize]',\n})\nexport class AutosizeDirective implements AfterViewChecked {\n readonly _el = inject(ElementRef);\n\n // DesignMode: the canvas runs change detection on every hover, select and\n // drag, and each pass re-measured the field — collapsing it to `0px` and\n // growing it back — so the editor's overlay chased a box that kept\n // resizing and flickered. On the canvas the field keeps its intrinsic\n // `rows` height and is never resized.\n readonly #isDesignMode = !!inject(IS_DESIGN_MODE, { optional: true });\n\n // What the height was last measured against. Outside the canvas, change\n // detection still runs on every hover, select and drag; re-measuring on each\n // pass collapsed the field to `0px` for a moment, which clamps the scrollTop\n // of any scrolling ancestor — the panel jumped and the field flickered. Only\n // a new value or a new width can change the height, so nothing else measures.\n #measuredValue: string | null = null;\n #measuredWidth = -1;\n\n @HostListener('input', [])\n @HostListener('window:resize', [])\n onInput(): void {\n if (!this.#isDesignMode) this.#adjust();\n }\n\n ngAfterViewChecked(): void {\n if (this.#isDesignMode) return;\n if (this._el.nativeElement.offsetParent != null) setTimeout(this.#adjust);\n }\n\n // `0px`, not `auto`, as the height the text is measured against. `auto` is an\n // indefinite cross size, so any ancestor that stretches its children —\n // `.m-section__body` is `align-items: stretch`, and a Screen nests those —\n // resolves it to the stretched box, and `scrollHeight` then reports that\n // box rather than the text in it. Written back on every `ngAfterViewChecked`,\n // that ratchets the field up to whatever caps the chain: inside a Modal, the\n // pop-up's own `max-height`, at which point the field *is* the modal and the\n // Screen around it is scrolled out of reach. `0px` is definite, so nothing\n // stretches it and `scrollHeight` is the content alone.\n #adjust = (): void => {\n const el = this._el.nativeElement as HTMLTextAreaElement;\n const width = el.clientWidth;\n if (el.value === this.#measuredValue && width === this.#measuredWidth) {\n return;\n }\n this.#measuredValue = el.value;\n this.#measuredWidth = width;\n el.style.overflow = 'hidden';\n el.style.height = '0px';\n el.style.height = `${el.scrollHeight}px`;\n };\n}\n","import {\n Directive,\n ElementRef,\n HostListener,\n inject,\n input,\n output,\n} from '@angular/core';\n\nexport interface FileUploadConfig {\n accept?: string[];\n multiple?: boolean;\n maxSize?: number;\n}\n\nexport interface FileUploadEvent {\n files: File[];\n}\n\n@Directive({\n selector: '[mFileUpload]',\n host: {\n '[style.cursor]': '\"pointer\"',\n },\n})\nexport class FileUploadDirective {\n mFileUpload = input<FileUploadConfig>({});\n readonly fileSelect = output<FileUploadEvent>();\n\n private readonly elementRef = inject(ElementRef);\n private fileInput: HTMLInputElement | null = null;\n\n @HostListener('click')\n protected openFilePicker(): void {\n if (!this.fileInput) {\n this.fileInput = document.createElement('input');\n this.fileInput.type = 'file';\n this.fileInput.style.display = 'none';\n this.fileInput.addEventListener('change', this.onFileChange);\n this.elementRef.nativeElement.appendChild(this.fileInput);\n }\n\n const config = this.mFileUpload();\n this.fileInput.accept = config.accept?.join(',') ?? '*';\n this.fileInput.multiple = config.multiple ?? false;\n this.fileInput.click();\n }\n\n private readonly onFileChange = (event: Event): void => {\n const input = event.target as HTMLInputElement;\n const files = Array.from(input.files ?? []);\n\n if (files.length === 0) return;\n\n const config = this.mFileUpload();\n const maxSize = config.maxSize;\n\n const validFiles = maxSize ? files.filter((f) => f.size <= maxSize) : files;\n\n if (validFiles.length > 0) {\n this.fileSelect.emit({ files: validFiles });\n }\n\n input.value = '';\n };\n}\n","import {\n Directive,\n ElementRef,\n HostListener,\n inject,\n input,\n OnDestroy,\n} from '@angular/core';\n\n@Directive({\n selector: '[mToolTip]',\n})\nexport class ToolTipDirective implements OnDestroy {\n mToolTip = input<string>('');\n\n private readonly elementRef = inject(ElementRef);\n private tooltipElement: HTMLElement | null = null;\n\n @HostListener('mouseenter')\n protected showTooltip(): void {\n const text = this.mToolTip();\n if (!text) return;\n\n this.tooltipElement = document.createElement('div');\n this.tooltipElement.textContent = text;\n Object.assign(this.tooltipElement.style, {\n position: 'fixed',\n background: 'rgba(0, 0, 0, 0.8)',\n color: '#fff',\n padding: '4px 8px',\n borderRadius: '4px',\n fontSize: '12px',\n zIndex: '10000',\n pointerEvents: 'none',\n whiteSpace: 'nowrap',\n });\n\n document.body.appendChild(this.tooltipElement);\n this.positionTooltip();\n }\n\n @HostListener('mouseleave')\n protected hideTooltip(): void {\n this.removeTooltip();\n }\n\n ngOnDestroy(): void {\n this.removeTooltip();\n }\n\n private positionTooltip(): void {\n if (!this.tooltipElement) return;\n const rect = this.elementRef.nativeElement.getBoundingClientRect();\n const tooltipRect = this.tooltipElement.getBoundingClientRect();\n this.tooltipElement.style.left = `${rect.left + rect.width / 2 - tooltipRect.width / 2}px`;\n this.tooltipElement.style.top = `${rect.top - tooltipRect.height - 6}px`;\n }\n\n private removeTooltip(): void {\n this.tooltipElement?.remove();\n this.tooltipElement = null;\n }\n}\n","import {\n Directive,\n ElementRef,\n HostListener,\n inject,\n signal,\n} from '@angular/core';\n\ntype Direction = 'above' | 'below' | 'left' | 'right';\n\n@Directive({\n selector: '[mPosition]',\n host: {\n '[class.m-pos--above]': 'direction() === \"above\"',\n '[class.m-pos--below]': 'direction() === \"below\"',\n '[class.m-pos--left]': 'direction() === \"left\"',\n '[class.m-pos--right]': 'direction() === \"right\"',\n },\n})\nexport class PositionDirective {\n private readonly el = inject(ElementRef<HTMLElement>);\n protected readonly direction = signal<Direction>('below');\n\n @HostListener('mouseenter')\n detect(): void {\n const rect = this.el.nativeElement.getBoundingClientRect();\n const spaces: Record<Direction, number> = {\n below: window.innerHeight - rect.bottom,\n above: rect.top,\n right: window.innerWidth - rect.right,\n left: rect.left,\n };\n const best = (Object.entries(spaces) as [Direction, number][]).reduce(\n (best, [dir, space]) => (space > best.space ? { dir, space } : best),\n { dir: 'below' as Direction, space: spaces.below }\n );\n this.direction.set(best.dir);\n }\n}\n","import {\n afterRenderEffect,\n Directive,\n ElementRef,\n inject,\n input,\n} from '@angular/core';\n\n@Directive({\n selector: '[mHighlight]',\n})\nexport class HighlightDirective {\n readonly mHighlight = input<string>('');\n readonly mHighlightText = input<string>('');\n\n private readonly el = inject(ElementRef);\n\n constructor() {\n afterRenderEffect(() => {\n const query = this.mHighlight().trim();\n const text = this.mHighlightText();\n if (!query) {\n this.el.nativeElement.innerHTML = this.escapeHtml(text);\n return;\n }\n const escaped = query.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n const regex = new RegExp(`(${escaped})`, 'gi');\n this.el.nativeElement.innerHTML = this.escapeHtml(text).replace(\n regex,\n '<mark class=\"m-table__highlight\">$1</mark>'\n );\n });\n }\n\n private readonly escapeHtml = (str: string): string =>\n String(str ?? '')\n .replace(/&/g, '&')\n .replace(/</g, '<')\n .replace(/>/g, '>')\n .replace(/\"/g, '"');\n}\n","/**\n * Generates a consistent HSL color based on the input string.\n * Used for wallet backgrounds and other items where visual consistency is needed.\n */\nexport function stringToColor(str: string): string {\n let hash = 0;\n for (let i = 0; i < str.length; i++) {\n hash = (Math.imul(31, hash) + str.charCodeAt(i)) | 0;\n }\n\n // Use hash to generate H, S, L\n const h = Math.abs(hash) % 360;\n const s = 65 + (Math.abs(hash >> 8) % 20); // 65-85% saturation for vibrancy\n const l = 45 + (Math.abs(hash >> 16) % 15); // 45-60% lightness for readability\n\n return `hsl(${h}, ${s}%, ${l}%)`;\n}\n","import {\n Directive,\n ElementRef,\n inject,\n input,\n effect,\n Renderer2,\n} from '@angular/core';\nimport { stringToColor } from '../../functions/string/color';\n\n@Directive({\n selector: '[mHeroColor]',\n})\nexport class MHeroColorDirective {\n /** The string to generate the color from (e.g., coin name, wallet name) */\n mHeroColor = input.required<string>();\n\n /** The CSS variable name to set (defaults to --hero-accent-color) */\n mHeroColorVar = input<string>('--hero-accent-color');\n\n #el = inject(ElementRef);\n #renderer = inject(Renderer2);\n\n constructor() {\n effect(() => {\n const source = this.mHeroColor();\n const varName = this.mHeroColorVar();\n\n if (source) {\n const color = stringToColor(source);\n this.#renderer.setStyle(this.#el.nativeElement, varName, color);\n }\n });\n }\n}\n"],"mappings":";;;;;AA2BA,MAAa,iBAAiB,IAAI,eAChC,gBAAgB;AAMlB,MAAM,WAAW,UACf,UAAU,UACV,UAAU,QACT,OAAO,UAAU,YAAY,MAAM,KAAI,MAAO;AAEjD,MAAM,QAAQ,KAAmB,cAC/B,eAAe,QAAQ,GAAG,IAAI,YAAY,GAAG;AAmB/C,IAAa,mBAAb,MAAa,iBAAgB;CAClB,WAAW,MAAoB,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CACzC,YAAY,MAAoB,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAC1C,YAAY,MAAoB,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAEhC,SAAS,CAAC,CAAC,OAAO,gBAAgB;EACnD,MAAM;EACN,UAAU;CACX,CAAA,CAAC,EAAE;CAEe,SAAS,eAC1B,KAAK,KAAK,UAAS,GAAI,KAAK,SAAQ,CAAE,GACvC,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CACkB,QAAQ,eACzB,KAAK,KAAK,UAAS,GAAI,KAAK,SAAQ,CAAE,GACvC,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAfU,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAgB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAhB,OAAA,OAAA,GAAA,qBAAA;EAAA,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B,MAAA;EAAU,MAAA,CAAA,EACT,UAAU,eACX,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-file.service-Bo06pU3_.mjs","names":[],"sources":["../../../../libs/one/src/lib/shared/services/file.service.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport {\n FileUploadConfig,\n FileUploadEvent,\n} from '../directives/file-upload/file-upload';\n\nexport type { FileUploadConfig, FileUploadEvent };\n\ntype PickerWindow = Window & {\n showDirectoryPicker?: (options?: {\n mode?: 'read' | 'readwrite';\n }) => Promise<{ name: string }>;\n};\n\nexport type FolderPickResult = {\n name: string;\n handle: unknown;\n};\n\n@Injectable({ providedIn: 'root' })\nexport class FileService {\n folderPickSupported(): boolean {\n return (\n typeof window !== 'undefined' &&\n typeof (window as PickerWindow).showDirectoryPicker === 'function'\n );\n }\n\n async pickFolder(): Promise<FolderPickResult | undefined> {\n const picker = (window as PickerWindow).showDirectoryPicker;\n if (!picker) return undefined;\n try {\n const handle = await picker({ mode: 'read' });\n return { name: handle.name, handle };\n } catch {\n return undefined;\n }\n }\n\n async getFiles(config?: FileUploadConfig): Promise<FileUploadEvent> {\n return new Promise((resolve) => {\n const input = document.createElement('input');\n input.type = 'file';\n input.accept = config?.accept?.join(',') ?? '*';\n input.multiple = config?.multiple ?? false;\n input.style.display = 'none';\n\n input.addEventListener('change', () => {\n const files = Array.from(input.files ?? []);\n const maxSize = config?.maxSize;\n const validFiles = maxSize\n ? files.filter((f) => f.size <= maxSize)\n : files;\n resolve({ files: validFiles });\n input.remove();\n });\n\n document.body.appendChild(input);\n input.click();\n });\n }\n}\n"],"mappings":";;AAoBA,IAAa,cAAb,MAAa,YAAW;CACtB,sBAAmB;EACjB,OACE,OAAO,WAAW,eAClB,OAAQ,OAAwB,wBAAwB;CAE5D;CAEA,MAAM,aAAU;EACd,MAAM,SAAU,OAAwB;EACxC,IAAI,CAAC,QAAQ,OAAO;EACpB,IAAI;GACF,MAAM,SAAS,MAAM,OAAO,EAAE,MAAM,OAAM,CAAE;GAC5C,OAAO;IAAE,MAAM,OAAO;IAAM;GAAM;EACpC,QAAQ;GACN;EACF;CACF;CAEA,MAAM,SAAS,QAAyB;EACtC,OAAO,IAAI,SAAS,YAAW;GAC7B,MAAM,QAAQ,SAAS,cAAc,OAAO;GAC5C,MAAM,OAAO;GACb,MAAM,SAAS,QAAQ,QAAQ,KAAK,GAAG,KAAK;GAC5C,MAAM,WAAW,QAAQ,YAAY;GACrC,MAAM,MAAM,UAAU;GAEtB,MAAM,iBAAiB,gBAAe;IACpC,MAAM,QAAQ,MAAM,KAAK,MAAM,SAAS,CAAA,CAAE;IAC1C,MAAM,UAAU,QAAQ;IAIxB,QAAQ,EAAE,OAHS,UACf,MAAM,QAAQ,MAAM,EAAE,QAAQ,OAAO,IACrC,MACuB,CAAE;IAC7B,MAAM,OAAM;GACd,CAAC;GAED,SAAS,KAAK,YAAY,KAAK;GAC/B,MAAM,MAAK;EACb,CAAC;CACH;CAxCW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAW,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAX,OAAA,QAAA,GAAA,sBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAW,YADE;CAAM,CAAA;;AACnB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAW,YAAA,CAAA;EADvB,MAAA;EAAW,MAAA,CAAA,EAAE,YAAY,OAAM,CAAE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-range-DPR659yG.mjs","names":[],"sources":["../../../../libs/one/src/lib/shared/ui/input/ui/range/range.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n HostListener,\n linkedSignal,\n signal,\n viewChild,\n} from '@angular/core';\nimport { BaseTextInputComponent } from '../text/base-text';\nimport { DraggableDirective, Draggable } from '../../../../directives';\nimport { LabelComponent } from '../label';\nimport { RangeInput } from '../../model/input';\nimport { Direction } from '../../../../type';\n\n@Component({\n selector: 'm-range',\n imports: [DraggableDirective, LabelComponent],\n template: `\n @if (config(); as range) {\n <div class=\"m-range\">\n <m-label\n class=\"m-range__label\"\n [placeholder]=\"range.label\"\n [params]=\"range.params\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n />\n <div class=\"m-range__control\">\n <div class=\"m-range__track\" #track>\n <div\n class=\"m-range__fill\"\n [style.width.px]=\"thumbDraggable().position.x\"\n ></div>\n <div\n class=\"m-range__thumb\"\n [(mDraggable)]=\"thumbDraggable\"\n [min]=\"{ x: 0, y: _TRACK_HALF_H }\"\n [max]=\"{ x: _trackWidth(), y: _TRACK_HALF_H }\"\n ></div>\n </div>\n <span class=\"m-range__value\" [class.hidden]=\"_displayValue() === 0\">{{ _displayValue() !== 0 ? _displayValue() : '' }}</span>\n </div>\n </div>\n }\n `,\n styleUrl: './range.sass',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class RangeInputComponent extends BaseTextInputComponent<RangeInput> {\n private readonly _track = viewChild<ElementRef<HTMLDivElement>>('track');\n protected readonly _trackWidth = signal(0);\n protected readonly _TRACK_HALF_H = 3;\n\n /**\n * Measured live rather than once. The track shares its row with the value\n * readout and opens inside panels that animate in, and a width read mid\n * animation is the scaled one — `getBoundingClientRect` counts transforms\n * where a ResizeObserver's box does not. A stale width is a thumb that stops\n * short of the track's end or, before the bounds became inputs on the\n * Draggable, ran clean past it.\n */\n private readonly _measure = effect((onCleanup) => {\n const track = this._track();\n if (!track) return;\n\n const el = track.nativeElement;\n this._trackWidth.set(el.getBoundingClientRect().width);\n\n // Absent under jsdom, where the window resize below is the only signal.\n if (typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(([entry]) =>\n this._trackWidth.set(entry.contentRect.width)\n );\n observer.observe(el);\n onCleanup(() => observer.disconnect());\n });\n\n thumbDraggable = linkedSignal({\n source: () => ({\n val: this.value(),\n tw: this._trackWidth(),\n cfg: this.config(),\n }),\n computation: ({\n val,\n tw,\n cfg,\n }: {\n val: string;\n tw: number;\n cfg: unknown;\n }): Draggable => {\n const rangeCfg = cfg as RangeInput | undefined;\n const min = rangeCfg?.min ?? 0;\n const max = rangeCfg?.max ?? 100;\n const numVal = Number(val) || min;\n const x = tw > 0 ? (tw * (numVal - min)) / (max - min) : 0;\n return {\n direction: 'x' as Direction,\n position: { x, y: this._TRACK_HALF_H },\n };\n },\n });\n\n readonly _displayValue = computed(() => {\n const cfg = this.config() as RangeInput | undefined;\n const min = cfg?.min ?? 0;\n const max = cfg?.max ?? 100;\n const tw = this._trackWidth();\n if (tw === 0) return Number(this.value()) || min;\n const x = this.thumbDraggable().position.x ?? 0;\n return Math.round(min + ((max - min) * x) / tw);\n });\n\n constructor() {\n super();\n effect(() => {\n const pos = this.thumbDraggable().position;\n const cfg = this.config() as RangeInput | undefined;\n const min = cfg?.min ?? 0;\n const max = cfg?.max ?? 100;\n const tw = this._trackWidth();\n if (tw === 0) return;\n const numVal = Number(this.value()) || min;\n const expectedX = tw > 0 ? (tw * (numVal - min)) / (max - min) : 0;\n if (pos.x !== expectedX) {\n const val = Math.round(min + ((max - min) * (pos.x ?? 0)) / tw);\n this.setValue(String(val));\n }\n });\n }\n\n @HostListener('window:resize')\n protected _onResize(): void {\n const track = this._track();\n if (track) {\n this._trackWidth.set(track.nativeElement.getBoundingClientRect().width);\n }\n }\n}\n"],"mappings":";;;;;;;AAmDA,IAAa,sBAAb,MAAa,4BAA4B,uBAAkC;CACxD,SAAS,UAAsC,SAAQ,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CACrD,cAAc,OAAO,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CACvB,gBAAgB;CAUlB,WAAW,QAAQ,c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IAAA;IAAA;GAAA;EAAA,GAAA;GAAA,MAAA;GAAA,MAAE;GAAc,UAAA;GAAA,QAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;GAAA;EAAA,CAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAgCjC,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAmB,YAAA,CAAA;EAlC/B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAS,SACV,CAAC,oBAAoB,cAAc;GAAC,UACnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BT,iBAEgB,wBAAwB;GAAM,QAAA,CAAA,soFAAA;EAAA,CAAA;CAGiB,CAAA;CAAA,sBAAA,CAAA;CAAA,gBAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAmFtE,MAAA;GAAa,MAAA,CAAA,eAAe"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-text-Bo4XPBXB.mjs","names":[],"sources":["../../../../libs/one/src/lib/shared/ui/input/ui/text/text.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n model,\n} from '@angular/core';\nimport { LabelComponent } from '../label';\nimport { TextOutputComponent } from '../../../text-output';\nimport { BaseTextInputComponent } from './base-text';\nimport { IconComponent } from '../../../icon';\nimport { TranslatePipe } from '../../../../pipe';\nimport { Input, InputType, NumberInput } from '../../model/input';\nimport { ValidationError, WithOptionalFieldTree } from '@angular/forms/signals';\n\n/**\n * What this one component draws: a line of text, or the same line typed\n * `number`. WrapperInputComponent has no case for a `number` Field, so it\n * lands here — and the figures a NumberInput carries have to be readable off\n * the config the template already holds.\n */\nexport type TextOrNumberInput = Omit<Input, 'type'> &\n Pick<NumberInput, 'min' | 'max' | 'step'> & {\n type: InputType.TEXT | InputType.NUMBER;\n };\n\n@Component({\n selector: 'm-text-input',\n template: `\n @if (config(); as text) {\n @if (text.label) {\n <m-label\n [for]=\"text.name ?? ''\"\n [placeholder]=\"text.label\"\n [params]=\"text.params\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n />\n }\n <div class=\"input-wrapper\">\n @if (text.icon) {\n <m-icon\n [name]=\"text.icon\"\n [color]=\"iconColor()\"\n [one]=\"text.one\"\n />\n }\n @if (text.prefix) {\n <span class=\"input-prefix\">{{ text.prefix }}</span>\n }\n <input\n [id]=\"text.name ?? ''\"\n [attr.data-testid]=\"text.testid ?? (text.name ? text.name + '-input' : null)\"\n [value]=\"value()\"\n #inputElement\n [class.error]=\"showErrors()\"\n [class.has-icon]=\"!!text.icon\"\n [class.has-prefix]=\"!!text.prefix\"\n [disabled]=\"disabled()\"\n [readOnly]=\"readonly() || config()?.readonly\"\n [placeholder]=\"text.placeholder ?? '' | translate: text.params\"\n (input)=\"onInput($event)\"\n (focus)=\"isFocused.set(true)\"\n (blur)=\"isFocused.set(false); touched.set(true)\"\n [type]=\"isNumber() ? 'number' : 'text'\"\n [attr.min]=\"isNumber() ? text.min ?? null : null\"\n [attr.max]=\"isNumber() ? text.max ?? null : null\"\n [attr.step]=\"isNumber() ? text.step ?? null : null\"\n />\n @if (config()?.status; as status) {\n <div class=\"input-indicator\" [class]=\"'input-indicator--' + status\">\n @if (status === 'checking') {\n <span class=\"spinner\"></span>\n } @else if (status === 'available') {\n <m-icon name=\"check\" color=\"success\" />\n }\n </div>\n }\n @if (text.suffix) {\n <span class=\"input-suffix\">{{ text.suffix }}</span>\n }\n </div>\n @if (showErrors() && !hideErrors()) {\n @for (error of errors(); track $index) {\n <m-text-output\n variant=\"footer\"\n color=\"error\"\n [label]=\"error.message\"\n />\n }\n }\n }\n `,\n imports: [LabelComponent, TextOutputComponent, IconComponent, TranslatePipe],\n styleUrl: './text.sass',\n host: {\n '[class]': \"config()?.variant ? 'm-input--' + config()?.variant : ''\",\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TextInputComponent extends BaseTextInputComponent<TextOrNumberInput> {\n public override value = model<string>('');\n public override config = input<Partial<TextOrNumberInput> | 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 public override showErrors = computed(() => this.touched() && this.invalid());\n readonly hideErrors = input<boolean>(false);\n\n // A `number` Field draws this same component (WrapperInputComponent has no\n // case of its own for it), so the type it declares decides the element it\n // draws. What *leaves* the field is coerced a level up, in the wrapper: an\n // `<input>` reads its value as text whatever its type, and every other\n // component on this base is a string field.\n protected readonly isNumber = computed(() => {\n const config = this.config();\n return !!config && config.type === InputType.NUMBER;\n });\n\n protected onInput(event: Event): void {\n const target = event.target as HTMLInputElement;\n this.setValue(target?.value ?? '');\n }\n}\n"],"mappings":";;;;;;;;;;AAoGA,IAAa,qBAAb,MAAa,2BAA2B,uBAAyC;CAC/D,QAAQ,MAAc,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACzB,SAAS,MAA+C,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CACxD,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,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAC/B,UAAU,MAAe,OAAM,GAAA,YAAA,CAAA,EA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