@shineuix/angular 1.1.0 → 1.2.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.
- package/fesm2022/shineuix-angular.mjs +9 -4
- package/fesm2022/shineuix-angular.mjs.map +1 -1
- package/index.d.ts +61 -37
- package/package.json +2 -2
|
@@ -2879,12 +2879,12 @@ let SuiInputNumber = /*@__PURE__*/ (() => { let SuiInputNumber = class SuiInputN
|
|
|
2879
2879
|
this.el = r.nativeElement;
|
|
2880
2880
|
}
|
|
2881
2881
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.34", ngImport: i0, type: SuiInputNumber, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2882
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.34", type: SuiInputNumber, isStandalone: true, selector: "sui-input-number", inputs: { align: "align", autocomplete: "autocomplete", currency: "currency", decimals: "decimals", disabled: "disabled", error: "error", help: "help", hideButtons: "hideButtons", invalid: "invalid", label: "label", locale: "locale", max: "max", min: "min", money: "money", name: "name", placeholder: "placeholder", prefixText: "prefixText", readOnly: "readOnly", required: "required", size: "size", step: "step", suffixText: "suffixText", tone: "tone", value: "value", variant: "variant" }, outputs: { suiChange: "suiChange", suiInput: "suiInput", suiFocus: "suiFocus", suiBlur: "suiBlur" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2882
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.34", type: SuiInputNumber, isStandalone: true, selector: "sui-input-number", inputs: { align: "align", autocomplete: "autocomplete", currency: "currency", decimals: "decimals", disabled: "disabled", error: "error", help: "help", hideButtons: "hideButtons", invalid: "invalid", label: "label", locale: "locale", max: "max", maxDecimals: "maxDecimals", min: "min", money: "money", name: "name", placeholder: "placeholder", prefixText: "prefixText", readOnly: "readOnly", required: "required", size: "size", step: "step", suffixText: "suffixText", tone: "tone", value: "value", variant: "variant" }, outputs: { suiChange: "suiChange", suiInput: "suiInput", suiFocus: "suiFocus", suiBlur: "suiBlur" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2883
2883
|
};
|
|
2884
2884
|
SuiInputNumber = __decorate([
|
|
2885
2885
|
ProxyCmp({
|
|
2886
2886
|
defineCustomElementFn: defineCustomElement$1b,
|
|
2887
|
-
inputs: ['align', 'autocomplete', 'currency', 'decimals', 'disabled', 'error', 'help', 'hideButtons', 'invalid', 'label', 'locale', 'max', 'min', 'money', 'name', 'placeholder', 'prefixText', 'readOnly', 'required', 'size', 'step', 'suffixText', 'tone', 'value', 'variant'],
|
|
2887
|
+
inputs: ['align', 'autocomplete', 'currency', 'decimals', 'disabled', 'error', 'help', 'hideButtons', 'invalid', 'label', 'locale', 'max', 'maxDecimals', 'min', 'money', 'name', 'placeholder', 'prefixText', 'readOnly', 'required', 'size', 'step', 'suffixText', 'tone', 'value', 'variant'],
|
|
2888
2888
|
methods: ['select', 'setFocus']
|
|
2889
2889
|
})
|
|
2890
2890
|
], SuiInputNumber);
|
|
@@ -2895,7 +2895,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.34", ngImpo
|
|
|
2895
2895
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2896
2896
|
template: '<ng-content></ng-content>',
|
|
2897
2897
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
2898
|
-
inputs: ['align', 'autocomplete', 'currency', 'decimals', 'disabled', 'error', 'help', 'hideButtons', 'invalid', 'label', 'locale', 'max', 'min', 'money', 'name', 'placeholder', 'prefixText', 'readOnly', 'required', 'size', 'step', 'suffixText', 'tone', 'value', 'variant'],
|
|
2898
|
+
inputs: ['align', 'autocomplete', 'currency', 'decimals', 'disabled', 'error', 'help', 'hideButtons', 'invalid', 'label', 'locale', 'max', 'maxDecimals', 'min', 'money', 'name', 'placeholder', 'prefixText', 'readOnly', 'required', 'size', 'step', 'suffixText', 'tone', 'value', 'variant'],
|
|
2899
2899
|
outputs: ['suiChange', 'suiInput', 'suiFocus', 'suiBlur'],
|
|
2900
2900
|
}]
|
|
2901
2901
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { suiChange: [{
|
|
@@ -5644,6 +5644,10 @@ const emptyNumber = (el) => (el.tagName === 'SUI-RATING' ? 0 : null);
|
|
|
5644
5644
|
* parseFloat. The model is a number, a range slider's `[low, high]` pair, or null: null, an empty
|
|
5645
5645
|
* string and NaN all report null, so a cleared required field is invalid. Keep the selector equal
|
|
5646
5646
|
* to `NUMBER_ELEMENTS` there; `scripts/check-value-accessors.mjs` fails when they differ.
|
|
5647
|
+
*
|
|
5648
|
+
* The model follows suiInput as well as suiChange, as `NUMBER_ELEMENTS` says: a number field's model
|
|
5649
|
+
* that waited for the commit sent the old amount from a save that ran before the field lost focus.
|
|
5650
|
+
* The rating fires no suiInput; `handleChangeEvent` skips a value it already has.
|
|
5647
5651
|
*/
|
|
5648
5652
|
class NumericValueAccessor extends ValueAccessor {
|
|
5649
5653
|
constructor(el) {
|
|
@@ -5658,7 +5662,7 @@ class NumericValueAccessor extends ValueAccessor {
|
|
|
5658
5662
|
super.registerOnChange((value) => fn(toModel(value)));
|
|
5659
5663
|
}
|
|
5660
5664
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.34", ngImport: i0, type: NumericValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5661
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.34", type: NumericValueAccessor, isStandalone: true, selector: "sui-input-number, sui-slider, sui-rating, sui-knob", host: { listeners: { "suiChange": "handleChangeEvent($event.target?.[\"value\"])" } }, providers: [
|
|
5665
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.34", type: NumericValueAccessor, isStandalone: true, selector: "sui-input-number, sui-slider, sui-rating, sui-knob", host: { listeners: { "suiInput": "handleChangeEvent($event.target?.[\"value\"])", "suiChange": "handleChangeEvent($event.target?.[\"value\"])" } }, providers: [
|
|
5662
5666
|
{
|
|
5663
5667
|
provide: NG_VALUE_ACCESSOR,
|
|
5664
5668
|
useExisting: forwardRef(() => NumericValueAccessor),
|
|
@@ -5672,6 +5676,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.34", ngImpo
|
|
|
5672
5676
|
/* tslint:disable-next-line:directive-selector */
|
|
5673
5677
|
selector: 'sui-input-number, sui-slider, sui-rating, sui-knob',
|
|
5674
5678
|
host: {
|
|
5679
|
+
'(suiInput)': 'handleChangeEvent($event.target?.["value"])',
|
|
5675
5680
|
'(suiChange)': 'handleChangeEvent($event.target?.["value"])',
|
|
5676
5681
|
},
|
|
5677
5682
|
providers: [
|