@3kles/kles-material-dynamicforms 21.4.0 → 21.4.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.
|
@@ -224,6 +224,7 @@ class KlesFormUiControl extends KlesAbstractFormUiControl {
|
|
|
224
224
|
hint: this.field.hint,
|
|
225
225
|
placeholder: this.field.placeholder,
|
|
226
226
|
tooltip: this.field.tooltip,
|
|
227
|
+
currencyOptions: this.field.currencyOptions,
|
|
227
228
|
});
|
|
228
229
|
}
|
|
229
230
|
}
|
|
@@ -6147,6 +6148,7 @@ let KlesFormCurrencyComponent = class KlesFormCurrencyComponent extends KlesFiel
|
|
|
6147
6148
|
constructor() {
|
|
6148
6149
|
super(...arguments);
|
|
6149
6150
|
this.localeId = inject(LOCALE_ID);
|
|
6151
|
+
this.currencyOptions = computed(() => this.resolvedFieldUi()?.currencyOptions, ...(ngDevMode ? [{ debugName: "currencyOptions" }] : /* istanbul ignore next */ []));
|
|
6150
6152
|
this.defaultCurrencyCode = inject(DEFAULT_CURRENCY_CODE);
|
|
6151
6153
|
}
|
|
6152
6154
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: KlesFormCurrencyComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
@@ -6177,13 +6179,13 @@ let KlesFormCurrencyComponent = class KlesFormCurrencyComponent extends KlesFiel
|
|
|
6177
6179
|
[matTooltip]="tooltip()"
|
|
6178
6180
|
[formControlName]="field.name"
|
|
6179
6181
|
[placeholder]="placeholder()"
|
|
6180
|
-
[currency]="
|
|
6181
|
-
[locale]="
|
|
6182
|
-
[currencyDisplay]="
|
|
6183
|
-
[minimumFractionDigits]="
|
|
6184
|
-
[maximumFractionDigits]="
|
|
6185
|
-
[useGrouping]="
|
|
6186
|
-
[allowNegative]="
|
|
6182
|
+
[currency]="currencyOptions()?.code || defaultCurrencyCode"
|
|
6183
|
+
[locale]="currencyOptions()?.locale || localeId"
|
|
6184
|
+
[currencyDisplay]="currencyOptions()?.display || 'symbol'"
|
|
6185
|
+
[minimumFractionDigits]="currencyOptions()?.minimumFractionDigits"
|
|
6186
|
+
[maximumFractionDigits]="currencyOptions()?.maximumFractionDigits"
|
|
6187
|
+
[useGrouping]="currencyOptions()?.useGrouping !== false"
|
|
6188
|
+
[allowNegative]="currencyOptions()?.allowNegative !== false"
|
|
6187
6189
|
(focus)="onFocus()"
|
|
6188
6190
|
(blur)="onBlur()"
|
|
6189
6191
|
/>
|
|
@@ -6244,13 +6246,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImpo
|
|
|
6244
6246
|
[matTooltip]="tooltip()"
|
|
6245
6247
|
[formControlName]="field.name"
|
|
6246
6248
|
[placeholder]="placeholder()"
|
|
6247
|
-
[currency]="
|
|
6248
|
-
[locale]="
|
|
6249
|
-
[currencyDisplay]="
|
|
6250
|
-
[minimumFractionDigits]="
|
|
6251
|
-
[maximumFractionDigits]="
|
|
6252
|
-
[useGrouping]="
|
|
6253
|
-
[allowNegative]="
|
|
6249
|
+
[currency]="currencyOptions()?.code || defaultCurrencyCode"
|
|
6250
|
+
[locale]="currencyOptions()?.locale || localeId"
|
|
6251
|
+
[currencyDisplay]="currencyOptions()?.display || 'symbol'"
|
|
6252
|
+
[minimumFractionDigits]="currencyOptions()?.minimumFractionDigits"
|
|
6253
|
+
[maximumFractionDigits]="currencyOptions()?.maximumFractionDigits"
|
|
6254
|
+
[useGrouping]="currencyOptions()?.useGrouping !== false"
|
|
6255
|
+
[allowNegative]="currencyOptions()?.allowNegative !== false"
|
|
6254
6256
|
(focus)="onFocus()"
|
|
6255
6257
|
(blur)="onBlur()"
|
|
6256
6258
|
/>
|