@magmonium/one 0.4.96 → 0.4.97
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/package.json
CHANGED
package/types/magmonium-one.d.ts
CHANGED
|
@@ -8406,7 +8406,7 @@ declare class DropdownBoxComponent {
|
|
|
8406
8406
|
}
|
|
8407
8407
|
/** The trigger both option Fields draw: a searchable text input and a chevron. */
|
|
8408
8408
|
declare const DROPDOWN_TEMPLATE = "\n @if (config(); as dropdown) {\n @if (dropdown.label) {\n <m-label\n [for]=\"dropdown.name ?? ''\"\n [placeholder]=\"dropdown.label\"\n [params]=\"dropdown.params\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n />\n }\n <div\n class=\"trigger-wrap\"\n #wrapper\n [mSelector]=\"selectorConfig()\"\n [disabled]=\"disabled() || readonly() || !!config()?.readonly\"\n (opened)=\"onOpened()\"\n (closed)=\"onClosed()\"\n (focusin)=\"isFocused.set(true)\"\n (focusout)=\"isFocused.set(false)\"\n >\n <m-text-input\n [config]=\"triggerInputConfig()\"\n [value]=\"displayValue()\"\n [disabled]=\"disabled()\"\n [invalid]=\"invalid()\"\n [hideErrors]=\"true\"\n [(touched)]=\"touched\"\n [focused]=\"focused()\"\n (valueChange)=\"onInput($event)\"\n (click)=\"preventToggleWhenOpen($event)\"\n (keydown.space)=\"$event.stopPropagation()\"\n (keydown.enter)=\"onEnter($event)\"\n (keydown.arrowdown)=\"onArrow($event, 1)\"\n (keydown.arrowup)=\"onArrow($event, -1)\"\n (keydown.tab)=\"$event.stopPropagation()\"\n />\n <m-button [disabled]=\"disabled()\" [config]=\"chevron()\" />\n </div>\n @if (showErrors()) {\n @for (error of errors(); track $index) {\n <m-text-output\n variant=\"footer\"\n color=\"error\"\n [label]=\"error.message\"\n />\n }\n }\n }\n";
|
|
8409
|
-
declare const DROPDOWN_IMPORTS: (typeof ButtonComponent | typeof
|
|
8409
|
+
declare const DROPDOWN_IMPORTS: (typeof ButtonComponent | typeof LabelComponent | typeof SelectorDirective | typeof TextOutputComponent | typeof TextInputComponent)[];
|
|
8410
8410
|
/**
|
|
8411
8411
|
* Everything a Dropdown and a Multiselect share: the options, the search, the
|
|
8412
8412
|
* keyboard walk and the panel. What differs is only what the Field holds — one
|
|
@@ -10406,12 +10406,12 @@ export declare const requiredValidation: (s: Record<string, unknown>, paths: str
|
|
|
10406
10406
|
* the rule off rather than checking against nothing.
|
|
10407
10407
|
*/
|
|
10408
10408
|
export type ValidationLimit = number | (() => number | undefined);
|
|
10409
|
-
export declare const minLengthValidation: (s: Record<string, unknown>, paths: string[], len: ValidationLimit) => void;
|
|
10410
|
-
export declare const maxLengthValidation: (s: Record<string, unknown>, paths: string[], len: ValidationLimit) => void;
|
|
10411
|
-
export declare const minValidation: (s: Record<string, unknown>, paths: string[], limit: ValidationLimit) => void;
|
|
10412
|
-
export declare const maxValidation: (s: Record<string, unknown>, paths: string[], limit: ValidationLimit) => void;
|
|
10409
|
+
export declare const minLengthValidation: (s: Record<string, unknown>, paths: string[], len: ValidationLimit, message?: string, limitName?: string) => void;
|
|
10410
|
+
export declare const maxLengthValidation: (s: Record<string, unknown>, paths: string[], len: ValidationLimit, message?: string, limitName?: string) => void;
|
|
10411
|
+
export declare const minValidation: (s: Record<string, unknown>, paths: string[], limit: ValidationLimit, message?: string, limitName?: string) => void;
|
|
10412
|
+
export declare const maxValidation: (s: Record<string, unknown>, paths: string[], limit: ValidationLimit, message?: string, limitName?: string) => void;
|
|
10413
10413
|
export declare const manualValidation: (errorMap: ManualErrorValidator[]) => void;
|
|
10414
|
-
export declare const minAgeValidation: (schemaPath: SchemaPath<string>, minAge: ValidationLimit, dateFormat?: string) => void;
|
|
10414
|
+
export declare const minAgeValidation: (schemaPath: SchemaPath<string>, minAge: ValidationLimit, dateFormat?: string, message?: string, limitName?: string) => void;
|
|
10415
10415
|
export declare const matchFieldValidation: (schemaPath: SchemaPath<string>, matchSchemaPath: SchemaPath<string>, fieldLabel: string) => void;
|
|
10416
10416
|
export declare const urlValidation: (schemaPath: SchemaPath<string>) => void;
|
|
10417
10417
|
export declare const patternValidation: (schemaPath: SchemaPath<string>, regex: RegExp, message?: string) => void;
|
|
@@ -13543,7 +13543,7 @@ export type DocAiPhase = 'idle' | 'asking' | 'question' | 'outline' | 'writing'
|
|
|
13543
13543
|
*/
|
|
13544
13544
|
export declare class DocEditorComponent implements ControlValueAccessor {
|
|
13545
13545
|
protected readonly groups: readonly import("@magmonium/one").DocToolbarGroup[];
|
|
13546
|
-
protected readonly icons: Record<"
|
|
13546
|
+
protected readonly icons: Record<"list" | "code" | "link" | "table" | "strike" | "bold" | "heading" | "italic" | "quote", string>;
|
|
13547
13547
|
protected readonly docActionKey: typeof docActionKey;
|
|
13548
13548
|
private readonly translate;
|
|
13549
13549
|
protected readonly value: import("@angular/core").WritableSignal<string>;
|