@crowdfarming/oliva-ds 1.96.0-rc.1 → 1.96.0
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.
|
@@ -4771,7 +4771,6 @@ class InputCounterComponent {
|
|
|
4771
4771
|
placeholder = input('');
|
|
4772
4772
|
helperText = input('');
|
|
4773
4773
|
alertText = input('');
|
|
4774
|
-
requiredText = input('Field Required');
|
|
4775
4774
|
successText = input('');
|
|
4776
4775
|
error = input(false);
|
|
4777
4776
|
success = input(false);
|
|
@@ -4811,8 +4810,8 @@ class InputCounterComponent {
|
|
|
4811
4810
|
regexError = signal(false);
|
|
4812
4811
|
// Combined error state: external `error` input OR an internal validation
|
|
4813
4812
|
hasError = computed(() => this.error() || this.requiredError() || this.regexError());
|
|
4814
|
-
// Message shown under the input:
|
|
4815
|
-
errorMessage = computed(() => this.
|
|
4813
|
+
// Message shown under the input: any error state surfaces `alertText`
|
|
4814
|
+
errorMessage = computed(() => this.alertText());
|
|
4816
4815
|
effectiveInputmode = computed(() => this.allowDecimals() ? 'decimal' : 'numeric');
|
|
4817
4816
|
regexPattern = computed(() => {
|
|
4818
4817
|
const negative = this.allowNegative() ? '-?' : '';
|
|
@@ -4949,7 +4948,7 @@ class InputCounterComponent {
|
|
|
4949
4948
|
onBlur() {
|
|
4950
4949
|
const raw = this.displayValue().trim();
|
|
4951
4950
|
const parsed = this.parseNumber(raw);
|
|
4952
|
-
// Empty field: allowed when optional, flagged with
|
|
4951
|
+
// Empty field: allowed when optional, flagged with alertText when required
|
|
4953
4952
|
if (raw === '') {
|
|
4954
4953
|
const changed = this.value() !== null;
|
|
4955
4954
|
this.value.set(null);
|
|
@@ -5026,7 +5025,7 @@ class InputCounterComponent {
|
|
|
5026
5025
|
return this.decimalSeparator() === 'comma' ? str.replace('.', ',') : str;
|
|
5027
5026
|
}
|
|
5028
5027
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: InputCounterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5029
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.7", type: InputCounterComponent, isStandalone: true, selector: "lib-input-counter", inputs: { initialValue: { classPropertyName: "initialValue", publicName: "initialValue", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, alertText: { classPropertyName: "alertText", publicName: "alertText", isSignal: true, isRequired: false, transformFunction: null },
|
|
5028
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.7", type: InputCounterComponent, isStandalone: true, selector: "lib-input-counter", inputs: { initialValue: { classPropertyName: "initialValue", publicName: "initialValue", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, alertText: { classPropertyName: "alertText", publicName: "alertText", isSignal: true, isRequired: false, transformFunction: null }, successText: { classPropertyName: "successText", publicName: "successText", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, success: { classPropertyName: "success", publicName: "success", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, isLoading: { classPropertyName: "isLoading", publicName: "isLoading", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fullWidth: { classPropertyName: "fullWidth", publicName: "fullWidth", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, optionalLabel: { classPropertyName: "optionalLabel", publicName: "optionalLabel", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, minimum: { classPropertyName: "minimum", publicName: "minimum", isSignal: true, isRequired: false, transformFunction: null }, maximum: { classPropertyName: "maximum", publicName: "maximum", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, allowDelete: { classPropertyName: "allowDelete", publicName: "allowDelete", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, allowDecimals: { classPropertyName: "allowDecimals", publicName: "allowDecimals", isSignal: true, isRequired: false, transformFunction: null }, allowNegative: { classPropertyName: "allowNegative", publicName: "allowNegative", isSignal: true, isRequired: false, transformFunction: null }, decimalSeparator: { classPropertyName: "decimalSeparator", publicName: "decimalSeparator", isSignal: true, isRequired: false, transformFunction: null }, maxDecimals: { classPropertyName: "maxDecimals", publicName: "maxDecimals", isSignal: true, isRequired: false, transformFunction: null }, regex: { classPropertyName: "regex", publicName: "regex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { emitValue: "emitValue" }, providers: [
|
|
5030
5029
|
{
|
|
5031
5030
|
provide: NG_VALUE_ACCESSOR,
|
|
5032
5031
|
useExisting: forwardRef(() => InputCounterComponent),
|