@ngx-smz/core 21.1.0 → 21.1.1
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/ngx-smz-core.mjs +527 -390
- package/fesm2022/ngx-smz-core.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ngx-smz-core.d.ts +62 -4
package/package.json
CHANGED
package/types/ngx-smz-core.d.ts
CHANGED
|
@@ -355,6 +355,18 @@ declare namespace SmzBreakpoints {
|
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
+
interface LabelTooltip {
|
|
359
|
+
value: string;
|
|
360
|
+
position: 'top' | 'bottom' | 'left' | 'right';
|
|
361
|
+
styleClass: string;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
interface LabelPopover {
|
|
365
|
+
content: string;
|
|
366
|
+
buttonStyleClass: string;
|
|
367
|
+
buttonIcon: string;
|
|
368
|
+
}
|
|
369
|
+
|
|
358
370
|
interface SmzFormsBaseControl {
|
|
359
371
|
readonly propertyName?: string;
|
|
360
372
|
readonly type?: SmzControlType;
|
|
@@ -373,7 +385,9 @@ interface SmzFormsBaseControl {
|
|
|
373
385
|
};
|
|
374
386
|
visibilityFunction?: (formValues: any) => boolean;
|
|
375
387
|
warningFunction?: (formValues: any) => string | null;
|
|
376
|
-
warning?: WritableSignal<
|
|
388
|
+
warning?: WritableSignal<LabelTooltip | null>;
|
|
389
|
+
tooltip?: WritableSignal<LabelTooltip | null>;
|
|
390
|
+
popover?: WritableSignal<LabelPopover | null>;
|
|
377
391
|
dataDependency?: {
|
|
378
392
|
propertyName: string;
|
|
379
393
|
condition: 'some' | 'none';
|
|
@@ -4171,9 +4185,11 @@ declare class LabelComponent {
|
|
|
4171
4185
|
text: string;
|
|
4172
4186
|
propertyName: string;
|
|
4173
4187
|
showLabel: boolean;
|
|
4174
|
-
warning?:
|
|
4188
|
+
warning?: LabelTooltip;
|
|
4189
|
+
help?: LabelTooltip;
|
|
4190
|
+
popover?: LabelPopover;
|
|
4175
4191
|
static ɵfac: i0.ɵɵFactoryDeclaration<LabelComponent, never>;
|
|
4176
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LabelComponent, "smz-label", never, { "text": { "alias": "text"; "required": false; }; "propertyName": { "alias": "propertyName"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "warning": { "alias": "warning"; "required": false; }; }, {}, never, never, true, never>;
|
|
4192
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LabelComponent, "smz-label", never, { "text": { "alias": "text"; "required": false; }; "propertyName": { "alias": "propertyName"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "warning": { "alias": "warning"; "required": false; }; "help": { "alias": "help"; "required": false; }; "popover": { "alias": "popover"; "required": false; }; }, {}, never, never, true, never>;
|
|
4177
4193
|
}
|
|
4178
4194
|
|
|
4179
4195
|
declare const defaultFormsModuleConfig: SmzFormsConfig;
|
|
@@ -6606,6 +6622,45 @@ declare class SmzTreeNodeUtilityBuilder<TBuilder> extends SmzBuilderUtilities<Sm
|
|
|
6606
6622
|
get tree(): TBuilder;
|
|
6607
6623
|
}
|
|
6608
6624
|
|
|
6625
|
+
declare class SmzFormCustomTooltipBuilder<TInput, TResponse> {
|
|
6626
|
+
private readonly inputBuilder;
|
|
6627
|
+
private readonly inputRef;
|
|
6628
|
+
private readonly message;
|
|
6629
|
+
private styleClass;
|
|
6630
|
+
private position;
|
|
6631
|
+
constructor(inputBuilder: TInput, inputRef: SmzFormsBaseControl, message: string);
|
|
6632
|
+
private applyTooltip;
|
|
6633
|
+
withStyleClass(styleClass: string): SmzFormCustomTooltipBuilder<TInput, TResponse>;
|
|
6634
|
+
withPosition(position: 'top' | 'bottom' | 'left' | 'right'): SmzFormCustomTooltipBuilder<TInput, TResponse>;
|
|
6635
|
+
get input(): TInput;
|
|
6636
|
+
}
|
|
6637
|
+
|
|
6638
|
+
declare class SmzFormPopoverBuilder<TInput, TResponse> {
|
|
6639
|
+
private readonly inputBuilder;
|
|
6640
|
+
private readonly inputRef;
|
|
6641
|
+
private readonly content;
|
|
6642
|
+
private buttonIcon;
|
|
6643
|
+
private buttonStyleClass;
|
|
6644
|
+
constructor(inputBuilder: TInput, inputRef: SmzFormsBaseControl, content: string);
|
|
6645
|
+
private applyPopover;
|
|
6646
|
+
withButtonIcon(buttonIcon: string): SmzFormPopoverBuilder<TInput, TResponse>;
|
|
6647
|
+
withButtonStyleClass(buttonStyleClass: string): SmzFormPopoverBuilder<TInput, TResponse>;
|
|
6648
|
+
get input(): TInput;
|
|
6649
|
+
}
|
|
6650
|
+
|
|
6651
|
+
declare class SmzFormTooltipHelpBuilder<TInput, TResponse> {
|
|
6652
|
+
private readonly inputBuilder;
|
|
6653
|
+
private readonly inputRef;
|
|
6654
|
+
private readonly message;
|
|
6655
|
+
private styleClass;
|
|
6656
|
+
private position;
|
|
6657
|
+
constructor(inputBuilder: TInput, inputRef: SmzFormsBaseControl, message: string);
|
|
6658
|
+
private applyTooltip;
|
|
6659
|
+
withStyleClass(styleClass: string): SmzFormTooltipHelpBuilder<TInput, TResponse>;
|
|
6660
|
+
withPosition(position: 'top' | 'bottom' | 'left' | 'right'): SmzFormTooltipHelpBuilder<TInput, TResponse>;
|
|
6661
|
+
get input(): TInput;
|
|
6662
|
+
}
|
|
6663
|
+
|
|
6609
6664
|
declare class SmzFormGroupBuilder<TResponse> extends SmzBuilderUtilities<SmzFormGroupBuilder<TResponse>> {
|
|
6610
6665
|
formBuilderRef: SmzFormBuilder<TResponse>;
|
|
6611
6666
|
group: SmzFormGroup;
|
|
@@ -6658,6 +6713,10 @@ declare class SmzFormInputBuilder<TInput, TResponse> {
|
|
|
6658
6713
|
disable(condition?: boolean): TInput;
|
|
6659
6714
|
excludeFromResponse(): TInput;
|
|
6660
6715
|
overrideResponseFormat(format: 'AppendIdSuffix' | 'IdOnly' | 'Raw'): TInput;
|
|
6716
|
+
withWarning(warning: (formValues: any) => string | null, styleClass?: string, position?: 'top' | 'bottom' | 'left' | 'right'): TInput;
|
|
6717
|
+
withHelp(message: string): SmzFormTooltipHelpBuilder<TInput, TResponse>;
|
|
6718
|
+
withCustomTooltip(message: string): SmzFormCustomTooltipBuilder<TInput, TResponse>;
|
|
6719
|
+
withPopover(content: string): SmzFormPopoverBuilder<TInput, TResponse>;
|
|
6661
6720
|
setVisibilityCondition(inputDependencyName: string, reversed: boolean, conditions?: unknown[]): TInput;
|
|
6662
6721
|
setVisibilityFunction(callback: (formValues: TResponse) => boolean): TInput;
|
|
6663
6722
|
addDataDependency(inputDependencyName: string, condition: 'some' | 'none', matchValues: unknown[], callback: (control: SmzFormsBaseControl) => void): TInput;
|
|
@@ -6893,7 +6952,6 @@ declare class SmzFormInputValidatorBuilder<TInput, TResponse> {
|
|
|
6893
6952
|
private inputRef;
|
|
6894
6953
|
groupBuilderRef: SmzFormGroupBuilder<TResponse>;
|
|
6895
6954
|
constructor(inputRefBuilder: TInput, inputRef: SmzFormsBaseControl, groupBuilderRef: SmzFormGroupBuilder<TResponse>);
|
|
6896
|
-
withWarning(warning: (formValues: any) => string | null): SmzFormInputValidatorBuilder<TInput, TResponse>;
|
|
6897
6955
|
required(): SmzFormInputValidatorBuilder<TInput, TResponse>;
|
|
6898
6956
|
length(min: number, max: number): SmzFormInputValidatorBuilder<TInput, TResponse>;
|
|
6899
6957
|
range(min: number, max: number): SmzFormInputValidatorBuilder<TInput, TResponse>;
|