@seniorsistemas/angular-components 17.13.0 → 17.14.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/bundles/seniorsistemas-angular-components.umd.js +345 -177
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +2 -2
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/checkbox/checkbox.component.d.ts +16 -0
- package/components/checkbox/checkbox.module.d.ts +2 -0
- package/components/checkbox/index.d.ts +3 -0
- package/components/checkbox/models/checkbox-data.d.ts +4 -0
- package/components/checkbox/models/checkbox-state.d.ts +6 -0
- package/components/checkbox/models/index.d.ts +2 -0
- package/components/dynamic-form/components/fields/base-field-component.d.ts +6 -5
- package/components/dynamic-form/components/fields/checkbox/checkbox-field.component.d.ts +7 -0
- package/components/dynamic-form/components/fields/checkbox/checkbox-field.module.d.ts +2 -0
- package/components/dynamic-form/components/fields/index.d.ts +1 -0
- package/components/dynamic-form/configurations/field-type.d.ts +1 -0
- package/components/dynamic-form/configurations/fields/checkbox-field.d.ts +9 -0
- package/components/dynamic-form/configurations/fields/index.d.ts +1 -0
- package/components/dynamic-form/configurations/fields/lookup-field.d.ts +1 -0
- package/components/index.d.ts +1 -0
- package/esm2015/components/checkbox/checkbox.component.js +104 -0
- package/esm2015/components/checkbox/checkbox.module.js +16 -0
- package/esm2015/components/checkbox/index.js +3 -0
- package/esm2015/components/checkbox/models/checkbox-data.js +1 -0
- package/esm2015/components/checkbox/models/checkbox-state.js +1 -0
- package/esm2015/components/checkbox/models/index.js +1 -0
- package/esm2015/components/dynamic-form/components/fields/base-field-component.js +1 -1
- package/esm2015/components/dynamic-form/components/fields/checkbox/checkbox-field.component.js +17 -0
- package/esm2015/components/dynamic-form/components/fields/checkbox/checkbox-field.module.js +17 -0
- package/esm2015/components/dynamic-form/components/fields/index.js +2 -1
- package/esm2015/components/dynamic-form/components/fields/lookup/lookup-field.component.js +2 -2
- package/esm2015/components/dynamic-form/configurations/field-type.js +2 -1
- package/esm2015/components/dynamic-form/configurations/fields/checkbox-field.js +8 -0
- package/esm2015/components/dynamic-form/configurations/fields/index.js +2 -1
- package/esm2015/components/dynamic-form/configurations/fields/lookup-field.js +1 -1
- package/esm2015/components/dynamic-form/configurations/form-field.js +4 -2
- package/esm2015/components/dynamic-form/dynamic-form.js +4 -1
- package/esm2015/components/dynamic-form/dynamic-form.module.js +3 -1
- package/esm2015/components/index.js +2 -1
- package/esm2015/seniorsistemas-angular-components.js +66 -64
- package/esm5/components/checkbox/checkbox.component.js +109 -0
- package/esm5/components/checkbox/checkbox.module.js +19 -0
- package/esm5/components/checkbox/index.js +3 -0
- package/esm5/components/checkbox/models/checkbox-data.js +1 -0
- package/esm5/components/checkbox/models/checkbox-state.js +1 -0
- package/esm5/components/checkbox/models/index.js +1 -0
- package/esm5/components/dynamic-form/components/fields/base-field-component.js +1 -1
- package/esm5/components/dynamic-form/components/fields/checkbox/checkbox-field.component.js +20 -0
- package/esm5/components/dynamic-form/components/fields/checkbox/checkbox-field.module.js +20 -0
- package/esm5/components/dynamic-form/components/fields/index.js +2 -1
- package/esm5/components/dynamic-form/components/fields/lookup/lookup-field.component.js +2 -2
- package/esm5/components/dynamic-form/configurations/field-type.js +2 -1
- package/esm5/components/dynamic-form/configurations/fields/checkbox-field.js +13 -0
- package/esm5/components/dynamic-form/configurations/fields/index.js +2 -1
- package/esm5/components/dynamic-form/configurations/fields/lookup-field.js +1 -1
- package/esm5/components/dynamic-form/configurations/form-field.js +4 -2
- package/esm5/components/dynamic-form/dynamic-form.js +4 -1
- package/esm5/components/dynamic-form/dynamic-form.module.js +3 -1
- package/esm5/components/index.js +2 -1
- package/esm5/seniorsistemas-angular-components.js +66 -64
- package/fesm2015/seniorsistemas-angular-components.js +251 -104
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +281 -117
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.d.ts +65 -63
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -34,7 +34,7 @@ import { Dialog, DialogModule } from 'primeng/dialog';
|
|
|
34
34
|
import { Table, RowToggler, TableService, TableModule as TableModule$1 } from 'primeng/table';
|
|
35
35
|
import { CurrencyMaskDirective as CurrencyMaskDirective$1 } from 'ng2-currency-mask';
|
|
36
36
|
import { ButtonModule as ButtonModule$1 } from 'primeng/button';
|
|
37
|
-
import { CheckboxModule } from 'primeng/checkbox';
|
|
37
|
+
import { CheckboxModule as CheckboxModule$1 } from 'primeng/checkbox';
|
|
38
38
|
import { ChipsModule } from 'primeng/chips';
|
|
39
39
|
import { DropdownModule } from 'primeng/dropdown';
|
|
40
40
|
import { FieldsetModule } from 'primeng/fieldset';
|
|
@@ -3064,6 +3064,124 @@ var CardModule = /** @class */ (function () {
|
|
|
3064
3064
|
return CardModule;
|
|
3065
3065
|
}());
|
|
3066
3066
|
|
|
3067
|
+
var CheckboxComponent = /** @class */ (function () {
|
|
3068
|
+
function CheckboxComponent() {
|
|
3069
|
+
this.state = {
|
|
3070
|
+
checked: false,
|
|
3071
|
+
indeterminate: false,
|
|
3072
|
+
children: {},
|
|
3073
|
+
};
|
|
3074
|
+
this._onChange = function () { };
|
|
3075
|
+
this._onTouched = function () { };
|
|
3076
|
+
}
|
|
3077
|
+
CheckboxComponent_1 = CheckboxComponent;
|
|
3078
|
+
CheckboxComponent.prototype.writeValue = function (value) {
|
|
3079
|
+
if (value) {
|
|
3080
|
+
this.state = value;
|
|
3081
|
+
}
|
|
3082
|
+
else {
|
|
3083
|
+
this.state = {
|
|
3084
|
+
checked: false,
|
|
3085
|
+
indeterminate: false,
|
|
3086
|
+
disabled: false,
|
|
3087
|
+
children: this._initializeChildren(this.data),
|
|
3088
|
+
};
|
|
3089
|
+
}
|
|
3090
|
+
};
|
|
3091
|
+
CheckboxComponent.prototype.registerOnChange = function (onChange) {
|
|
3092
|
+
this._onChange = onChange;
|
|
3093
|
+
};
|
|
3094
|
+
CheckboxComponent.prototype.registerOnTouched = function (onTouched) {
|
|
3095
|
+
this._onTouched = onTouched;
|
|
3096
|
+
};
|
|
3097
|
+
CheckboxComponent.prototype._initializeChildren = function (item) {
|
|
3098
|
+
var _this = this;
|
|
3099
|
+
var childrenState = {};
|
|
3100
|
+
if (item.children) {
|
|
3101
|
+
item.children.forEach(function (child) {
|
|
3102
|
+
childrenState[child.label] = {
|
|
3103
|
+
checked: false,
|
|
3104
|
+
indeterminate: false,
|
|
3105
|
+
children: _this._initializeChildren(child),
|
|
3106
|
+
};
|
|
3107
|
+
});
|
|
3108
|
+
}
|
|
3109
|
+
return childrenState;
|
|
3110
|
+
};
|
|
3111
|
+
CheckboxComponent.prototype.updateParent = function () {
|
|
3112
|
+
var _this = this;
|
|
3113
|
+
if (this.data.children && this.data.children.length > 0) {
|
|
3114
|
+
var allChecked = this.data.children.every(function (child) { var _a; return (_a = _this.state.children[child.label]) === null || _a === void 0 ? void 0 : _a.checked; });
|
|
3115
|
+
var someChecked = this.data.children.some(function (child) { var _a, _b; return ((_a = _this.state.children[child.label]) === null || _a === void 0 ? void 0 : _a.checked) || ((_b = _this.state.children[child.label]) === null || _b === void 0 ? void 0 : _b.indeterminate); });
|
|
3116
|
+
this.state.checked = allChecked;
|
|
3117
|
+
this.state.indeterminate = !allChecked && someChecked;
|
|
3118
|
+
}
|
|
3119
|
+
this._onChange(this.state);
|
|
3120
|
+
this._onTouched();
|
|
3121
|
+
};
|
|
3122
|
+
CheckboxComponent.prototype.onCheckboxChange = function () {
|
|
3123
|
+
if (this.state.disabled)
|
|
3124
|
+
return;
|
|
3125
|
+
this.state.checked = !this.state.checked;
|
|
3126
|
+
this.state.indeterminate = false;
|
|
3127
|
+
this._toggleChildrenCheck(this.data, this.state, this.state.checked);
|
|
3128
|
+
this._onChange(this.state);
|
|
3129
|
+
this._onTouched();
|
|
3130
|
+
};
|
|
3131
|
+
CheckboxComponent.prototype._toggleChildrenCheck = function (item, state, checked) {
|
|
3132
|
+
var _this = this;
|
|
3133
|
+
var _a;
|
|
3134
|
+
if ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3135
|
+
item.children.forEach(function (child) {
|
|
3136
|
+
if (!state.children[child.label]) {
|
|
3137
|
+
state.children[child.label] = {
|
|
3138
|
+
checked: false,
|
|
3139
|
+
indeterminate: false,
|
|
3140
|
+
children: _this._initializeChildren(child),
|
|
3141
|
+
};
|
|
3142
|
+
}
|
|
3143
|
+
state.children[child.label].checked = checked;
|
|
3144
|
+
state.children[child.label].indeterminate = false;
|
|
3145
|
+
if (child.children) {
|
|
3146
|
+
_this._toggleChildrenCheck(child, state.children[child.label], checked);
|
|
3147
|
+
}
|
|
3148
|
+
});
|
|
3149
|
+
}
|
|
3150
|
+
};
|
|
3151
|
+
var CheckboxComponent_1;
|
|
3152
|
+
__decorate([
|
|
3153
|
+
Input()
|
|
3154
|
+
], CheckboxComponent.prototype, "data", void 0);
|
|
3155
|
+
CheckboxComponent = CheckboxComponent_1 = __decorate([
|
|
3156
|
+
Component({
|
|
3157
|
+
selector: "s-checkbox",
|
|
3158
|
+
template: "<div class=\"checkbox\">\n <label>\n <div\n class=\"checkbox-wrapper\"\n [ngClass]=\"{ 'checkbox-wrapper--disabled': state.disabled }\">\n <input\n type=\"checkbox\"\n class=\"checkbox-input\"\n [disabled]=\"state.disabled\"\n [ngClass]=\"{\n 'checkbox-input--checked': state.checked,\n 'checkbox-input--indeterminate': state.indeterminate\n }\"\n (change)=\"onCheckboxChange()\"\n [attr.aria-checked]=\"state.indeterminate ? 'mixed' : state.checked\"\n [attr.aria-disabled]=\"state.disabled\"\n role=\"checkbox\" />\n {{ data.label }}\n </div>\n </label>\n <div *ngIf=\"data.children && data.children.length\" class=\"checkbox-children\">\n <s-checkbox\n *ngFor=\"let child of data.children\"\n [data]=\"child\"\n [ngModel]=\"state.children[child.label]\"\n (ngModelChange)=\"updateParent()\">\n </s-checkbox>\n </div>\n</div>\n",
|
|
3159
|
+
providers: [
|
|
3160
|
+
{
|
|
3161
|
+
provide: NG_VALUE_ACCESSOR,
|
|
3162
|
+
useExisting: forwardRef(function () { return CheckboxComponent_1; }),
|
|
3163
|
+
multi: true,
|
|
3164
|
+
},
|
|
3165
|
+
],
|
|
3166
|
+
styles: [".checkbox{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:10px;margin-bottom:10px}.checkbox .checkbox-wrapper{-ms-flex-align:center;align-items:center;color:#212533;display:-ms-flexbox;display:flex;font-family:\"Open Sans\" sans-serif;font-size:14px;gap:12px}.checkbox .checkbox-wrapper .checkbox-input{-webkit-appearance:none;appearance:none;background-color:#fff;border:1px solid #c1c1cc;border-radius:4px;cursor:pointer;-ms-flex-negative:0;flex-shrink:0;height:20px;width:20px;position:relative}.checkbox .checkbox-wrapper .checkbox-input--checked{background-color:#428bca;border-color:#428bca}.checkbox .checkbox-wrapper .checkbox-input--checked::after{border:solid #fff;border-width:0 2px 2px 0;content:\"\";height:12px;left:6px;position:absolute;top:2px;transform:rotate(45deg);width:6px}.checkbox .checkbox-wrapper .checkbox-input--indeterminate{background-color:#428bca;border-color:#428bca}.checkbox .checkbox-wrapper .checkbox-input--indeterminate::after{background-color:#fff;content:\"\";height:2px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:10px}.checkbox .checkbox-wrapper:not(.checkbox-wrapper--disabled) .checkbox-input:not(.checkbox-input--checked):hover{background-color:#e5eaea;border-color:#ccc}.checkbox .checkbox-wrapper--disabled{opacity:.5;cursor:auto}.checkbox .checkbox-children{margin-left:20px}"]
|
|
3167
|
+
})
|
|
3168
|
+
], CheckboxComponent);
|
|
3169
|
+
return CheckboxComponent;
|
|
3170
|
+
}());
|
|
3171
|
+
|
|
3172
|
+
var CheckboxModule = /** @class */ (function () {
|
|
3173
|
+
function CheckboxModule() {
|
|
3174
|
+
}
|
|
3175
|
+
CheckboxModule = __decorate([
|
|
3176
|
+
NgModule({
|
|
3177
|
+
imports: [CommonModule, FormsModule],
|
|
3178
|
+
declarations: [CheckboxComponent],
|
|
3179
|
+
exports: [CheckboxComponent],
|
|
3180
|
+
})
|
|
3181
|
+
], CheckboxModule);
|
|
3182
|
+
return CheckboxModule;
|
|
3183
|
+
}());
|
|
3184
|
+
|
|
3067
3185
|
var Languages;
|
|
3068
3186
|
(function (Languages) {
|
|
3069
3187
|
Languages["TaxCalculation"] = "TaxCalculation";
|
|
@@ -5291,6 +5409,7 @@ var FieldType;
|
|
|
5291
5409
|
FieldType["Binary"] = "Binary";
|
|
5292
5410
|
FieldType["Blob"] = "Blob";
|
|
5293
5411
|
FieldType["Boolean"] = "Boolean";
|
|
5412
|
+
FieldType["Checkbox"] = "Checkbox";
|
|
5294
5413
|
FieldType["Chips"] = "Chips";
|
|
5295
5414
|
FieldType["CountryPhonePicker"] = "CountryPhonePicker";
|
|
5296
5415
|
FieldType["Custom"] = "Custom";
|
|
@@ -5911,6 +6030,16 @@ var SliderField = /** @class */ (function (_super) {
|
|
|
5911
6030
|
return SliderField;
|
|
5912
6031
|
}(Field));
|
|
5913
6032
|
|
|
6033
|
+
var CheckboxField = /** @class */ (function (_super) {
|
|
6034
|
+
__extends(CheckboxField, _super);
|
|
6035
|
+
function CheckboxField(config) {
|
|
6036
|
+
var _this = _super.call(this, config) || this;
|
|
6037
|
+
_this.data = config.data;
|
|
6038
|
+
return _this;
|
|
6039
|
+
}
|
|
6040
|
+
return CheckboxField;
|
|
6041
|
+
}(Field));
|
|
6042
|
+
|
|
5914
6043
|
var CountryPhonePickerField = /** @class */ (function (_super) {
|
|
5915
6044
|
__extends(CountryPhonePickerField, _super);
|
|
5916
6045
|
function CountryPhonePickerField(config) {
|
|
@@ -5995,6 +6124,8 @@ var FormField = /** @class */ (function () {
|
|
|
5995
6124
|
return new LookupField(config);
|
|
5996
6125
|
case FieldType.Radio:
|
|
5997
6126
|
return new RadioButtonField(config);
|
|
6127
|
+
case FieldType.Checkbox:
|
|
6128
|
+
return new CheckboxField(config);
|
|
5998
6129
|
case FieldType.Chips:
|
|
5999
6130
|
return new ChipsField(config);
|
|
6000
6131
|
case FieldType.CountryPhonePicker:
|
|
@@ -10433,7 +10564,7 @@ var LookupFieldComponent = /** @class */ (function () {
|
|
|
10433
10564
|
], LookupFieldComponent.prototype, "formControl", void 0);
|
|
10434
10565
|
LookupFieldComponent = __decorate([
|
|
10435
10566
|
Component({
|
|
10436
|
-
template: "<s-field-label [field]=\"field\"></s-field-label>\n\n<div [sTooltip]=\"field.tooltip\" tooltipPosition=\"top\" [showDelay]=\"500\">\n <s-lookup\n [id]=\"field.id || field.name\"\n [multiple]=\"field.multiple\"\n [formControl]=\"formControl\"\n [lookupSuggestions]=\"field.lookupSuggestions\"\n [dataKey]=\"field.dataKey\"\n [placeholder]=\"field.placeholder\"\n [showSearch]=\"field.showSearch\"\n [searchFields]=\"field.searchFields\"\n [searchGridFields]=\"field.searchGridFields\"\n [searchGridData]=\"field.gridData\"\n (onLookupRequest)=\"field.onLookupRequest($event)\"\n (onSearchRequest)=\"field.onSearchRequest($event)\"\n [lookupDisplayField]=\"field.lookupDisplayField\"\n [searchTotalRecords]=\"field.searchTotalRecords\"\n [searchTotalRecordsLabel]=\"field.searchTotalRecordsLabel\"\n [searchTitle]=\"field.searchTitle\"\n [selectLabel]=\"field.selectLabel\"\n [searchEmptyTitle]=\"field.searchEmptyTitle\"\n [filterLabel]=\"field.filterLabel\"\n [filterTitle]=\"field.filterTitle\"\n [clearLabel]=\"field.clearLabel\"\n [cancelLabel]=\"field.cancelLabel\"\n [emptyFieldLabel]=\"field.emptyFieldLabel\"\n (onSelect)=\"field.onSelect($event)\"\n (onUnselect)=\"field.onUnselect($event)\"\n (onClear)=\"field.onClear ? field.onClear($event) : null\"\n (onBlur)=\"field.onBlur ? field.onBlur($event) : null\"\n [lookupAppendTo]=\"field.appendTo\"\n [lookupEmptyMessage]=\"field.emptyMessage\"\n [recordLabel]=\"field.recordLabel\"\n [recordsLabel]=\"field.recordsLabel\"\n [defaultFilter]=\"field.defaultFilter\"\n [autocompleteForceSelection]=\"field.autocompleteForceSelection\"\n [showAddOption]=\"field.showAddOption\"\n [showEditOption]=\"field.showEditOption\"\n [showRemoveOption]=\"field.showRemoveOption\"\n (onAdd)=\"field.onAdd()\"\n (onEdit)=\"field.onEdit($event)\"\n (onRemove)=\"field.onRemove($event)\"\n >\n </s-lookup>\n</div>\n"
|
|
10567
|
+
template: "<s-field-label [field]=\"field\"></s-field-label>\n\n<div [sTooltip]=\"field.tooltip\" tooltipPosition=\"top\" [showDelay]=\"500\">\n <s-lookup\n [id]=\"field.id || field.name\"\n [multiple]=\"field.multiple\"\n [formControl]=\"formControl\"\n [lookupSuggestions]=\"field.lookupSuggestions\"\n [dataKey]=\"field.dataKey\"\n [placeholder]=\"field.placeholder\"\n [showSearch]=\"field.showSearch\"\n [searchFields]=\"field.searchFields\"\n [searchGridFields]=\"field.searchGridFields\"\n [searchGridData]=\"field.gridData\"\n (onLookupRequest)=\"field.onLookupRequest($event)\"\n (onSearchRequest)=\"field.onSearchRequest($event)\"\n [lookupDisplayField]=\"field.lookupDisplayField\"\n [searchTotalRecords]=\"field.searchTotalRecords\"\n [searchTotalRecordsLabel]=\"field.searchTotalRecordsLabel\"\n [searchTitle]=\"field.searchTitle\"\n [selectLabel]=\"field.selectLabel\"\n [searchEmptyTitle]=\"field.searchEmptyTitle\"\n [filterLabel]=\"field.filterLabel\"\n [filterTitle]=\"field.filterTitle\"\n [clearLabel]=\"field.clearLabel\"\n [cancelLabel]=\"field.cancelLabel\"\n [emptyFieldLabel]=\"field.emptyFieldLabel\"\n (onSelect)=\"field.onSelect($event)\"\n (onUnselect)=\"field.onUnselect($event)\"\n (onClear)=\"field.onClear ? field.onClear($event) : null\"\n (onBlur)=\"field.onBlur ? field.onBlur($event) : null\"\n [lookupAppendTo]=\"field.appendTo\"\n [lookupEmptyMessage]=\"field.emptyMessage\"\n [recordLabel]=\"field.recordLabel\"\n [recordsLabel]=\"field.recordsLabel\"\n [defaultFilter]=\"field.defaultFilter\"\n [autocompleteForceSelection]=\"field.autocompleteForceSelection\"\n [showAddOption]=\"field.showAddOption\"\n [showEditOption]=\"field.showEditOption\"\n [showRemoveOption]=\"field.showRemoveOption\"\n [sortableColumnsDisabled]=\"field.sortableColumnsDisabled\"\n (onAdd)=\"field.onAdd()\"\n (onEdit)=\"field.onEdit($event)\"\n (onRemove)=\"field.onRemove($event)\"\n >\n </s-lookup>\n</div>\n"
|
|
10437
10568
|
})
|
|
10438
10569
|
], LookupFieldComponent);
|
|
10439
10570
|
return LookupFieldComponent;
|
|
@@ -11137,6 +11268,136 @@ var TextFieldComponent = /** @class */ (function (_super) {
|
|
|
11137
11268
|
return TextFieldComponent;
|
|
11138
11269
|
}(BaseFieldComponent));
|
|
11139
11270
|
|
|
11271
|
+
var CheckboxFieldComponent = /** @class */ (function () {
|
|
11272
|
+
function CheckboxFieldComponent() {
|
|
11273
|
+
}
|
|
11274
|
+
__decorate([
|
|
11275
|
+
Input()
|
|
11276
|
+
], CheckboxFieldComponent.prototype, "field", void 0);
|
|
11277
|
+
__decorate([
|
|
11278
|
+
Input()
|
|
11279
|
+
], CheckboxFieldComponent.prototype, "formControl", void 0);
|
|
11280
|
+
CheckboxFieldComponent = __decorate([
|
|
11281
|
+
Component({
|
|
11282
|
+
template: "<s-checkbox [data]=\"field.data\"></s-checkbox>"
|
|
11283
|
+
})
|
|
11284
|
+
], CheckboxFieldComponent);
|
|
11285
|
+
return CheckboxFieldComponent;
|
|
11286
|
+
}());
|
|
11287
|
+
|
|
11288
|
+
var NumberFieldComponent = /** @class */ (function (_super) {
|
|
11289
|
+
__extends(NumberFieldComponent, _super);
|
|
11290
|
+
function NumberFieldComponent(localeService, elementRef, changeDetectorRef) {
|
|
11291
|
+
var _this = _super.call(this) || this;
|
|
11292
|
+
_this.localeService = localeService;
|
|
11293
|
+
_this.elementRef = elementRef;
|
|
11294
|
+
_this.changeDetectorRef = changeDetectorRef;
|
|
11295
|
+
_this.onInput = new EventEmitter();
|
|
11296
|
+
_this.onFocus = new EventEmitter();
|
|
11297
|
+
_this.onComplete = new EventEmitter();
|
|
11298
|
+
_this.ngUnsubscribe = new Subject();
|
|
11299
|
+
return _this;
|
|
11300
|
+
}
|
|
11301
|
+
NumberFieldComponent.prototype.ngOnInit = function () {
|
|
11302
|
+
var _this = this;
|
|
11303
|
+
this.onLocaleService();
|
|
11304
|
+
this.onFocus.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
|
|
11305
|
+
if (_this.field.onFocus)
|
|
11306
|
+
_this.field.onFocus(event);
|
|
11307
|
+
});
|
|
11308
|
+
this.onInput.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
|
|
11309
|
+
if (_this.field.onInput)
|
|
11310
|
+
_this.field.onInput(event);
|
|
11311
|
+
});
|
|
11312
|
+
this.onComplete.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
|
|
11313
|
+
if (_this.field.onComplete)
|
|
11314
|
+
_this.field.onComplete(event);
|
|
11315
|
+
});
|
|
11316
|
+
};
|
|
11317
|
+
NumberFieldComponent.prototype.ngAfterViewInit = function () {
|
|
11318
|
+
this.setInputRef();
|
|
11319
|
+
this.changeDetectorRef.detectChanges();
|
|
11320
|
+
};
|
|
11321
|
+
NumberFieldComponent.prototype.ngOnDestroy = function () {
|
|
11322
|
+
this.ngUnsubscribe.next();
|
|
11323
|
+
this.ngUnsubscribe.complete();
|
|
11324
|
+
};
|
|
11325
|
+
Object.defineProperty(NumberFieldComponent.prototype, "numberAlignmentOption", {
|
|
11326
|
+
get: function () {
|
|
11327
|
+
return NumberAlignmentOption;
|
|
11328
|
+
},
|
|
11329
|
+
enumerable: true,
|
|
11330
|
+
configurable: true
|
|
11331
|
+
});
|
|
11332
|
+
Object.defineProperty(NumberFieldComponent.prototype, "fieldType", {
|
|
11333
|
+
get: function () {
|
|
11334
|
+
return FieldType;
|
|
11335
|
+
},
|
|
11336
|
+
enumerable: true,
|
|
11337
|
+
configurable: true
|
|
11338
|
+
});
|
|
11339
|
+
NumberFieldComponent.prototype.onLocaleService = function () {
|
|
11340
|
+
var _this = this;
|
|
11341
|
+
this.localeService
|
|
11342
|
+
.getLocale()
|
|
11343
|
+
.pipe(first())
|
|
11344
|
+
.subscribe({
|
|
11345
|
+
next: function () {
|
|
11346
|
+
var _a, _b, _c;
|
|
11347
|
+
if (!((_a = _this.field.numberLocaleOptions) === null || _a === void 0 ? void 0 : _a.decimalSeparator)) {
|
|
11348
|
+
_this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { decimalSeparator: _this.localeService.getDecimalSeparator() });
|
|
11349
|
+
}
|
|
11350
|
+
if (!((_b = _this.field.numberLocaleOptions) === null || _b === void 0 ? void 0 : _b.thousandsSeparator)) {
|
|
11351
|
+
_this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { thousandsSeparator: _this.localeService.getGroupingSeparator() });
|
|
11352
|
+
}
|
|
11353
|
+
if (!((_c = _this.field.numberLocaleOptions) === null || _c === void 0 ? void 0 : _c.currencySymbol)) {
|
|
11354
|
+
_this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { currencySymbol: "R$" });
|
|
11355
|
+
}
|
|
11356
|
+
},
|
|
11357
|
+
error: function () {
|
|
11358
|
+
var _a;
|
|
11359
|
+
return (_this.field.numberLocaleOptions = (_a = _this.field.numberLocaleOptions) !== null && _a !== void 0 ? _a : {
|
|
11360
|
+
thousandsSeparator: ".",
|
|
11361
|
+
decimalSeparator: ",",
|
|
11362
|
+
currencySymbol: "R$",
|
|
11363
|
+
});
|
|
11364
|
+
},
|
|
11365
|
+
});
|
|
11366
|
+
};
|
|
11367
|
+
NumberFieldComponent.prototype.setInputRef = function () {
|
|
11368
|
+
var input = this.elementRef.nativeElement.querySelector("input");
|
|
11369
|
+
this.inputRef = input;
|
|
11370
|
+
};
|
|
11371
|
+
NumberFieldComponent.ctorParameters = function () { return [
|
|
11372
|
+
{ type: LocaleService },
|
|
11373
|
+
{ type: ElementRef },
|
|
11374
|
+
{ type: ChangeDetectorRef }
|
|
11375
|
+
]; };
|
|
11376
|
+
__decorate([
|
|
11377
|
+
Input()
|
|
11378
|
+
], NumberFieldComponent.prototype, "field", void 0);
|
|
11379
|
+
__decorate([
|
|
11380
|
+
Input()
|
|
11381
|
+
], NumberFieldComponent.prototype, "formControl", void 0);
|
|
11382
|
+
__decorate([
|
|
11383
|
+
Output()
|
|
11384
|
+
], NumberFieldComponent.prototype, "onInput", void 0);
|
|
11385
|
+
__decorate([
|
|
11386
|
+
Output()
|
|
11387
|
+
], NumberFieldComponent.prototype, "onFocus", void 0);
|
|
11388
|
+
__decorate([
|
|
11389
|
+
Output()
|
|
11390
|
+
], NumberFieldComponent.prototype, "onComplete", void 0);
|
|
11391
|
+
NumberFieldComponent = __decorate([
|
|
11392
|
+
Component({
|
|
11393
|
+
template: "<s-field-label *ngIf=\"inputRef\" [field]=\"field\"\n [fieldContainerRef]=\"inputRef\"></s-field-label>\n\n<p-inputMask #inputRef\n *ngIf=\"field.mask; else noMask\"\n type=\"text\"\n [inputId]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [mask]=\"isFunction(field.mask) ? field.mask() : field.mask\"\n [placeholder]=\"field.placeholder\"\n slotChar=\"_\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [showDelay]=\"500\"\n styleClass=\"mousetrap\"\n (onBlur)=\"field.onBlur ? field.onBlur($event) : null\"\n (onFocus)=\"onFocus.next($event)\"\n (onComplete)=\"onComplete.next($event)\"\n (onInput)=\"onInput.next($event)\"\n [formControl]=\"formControl\" >\n</p-inputMask>\n<ng-template #noMask>\n <ng-container>\n <div class=\"ui-inputgroup\">\n <ng-container *ngIf=\"field.leftAddon\">\n <span *ngIf=\"field.leftAddon.callback\" class=\"addon-button addon-button--left\">\n <s-button\n [label]=\"field.leftAddon.label\"\n [iconClass]=\"field.leftAddon.icon\"\n [priority]=\"field.leftAddon.priority\"\n [disabled]=\"isFunction(field.leftAddon.disabled) ? field.leftAddon.disabled() : field.leftAddon.disabled\"\n (onClick)=\"field.leftAddon.callback()\">\n </s-button>\n </span>\n <span *ngIf=\"!field.leftAddon.callback\" class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.leftAddon.label\">{{field.leftAddon.label}}</span>\n <span *ngIf=\"!field.leftAddon.label\" [ngClass]=\"field.leftAddon.icon\"></span>\n </span>\n </ng-container>\n\n <ng-container *ngTemplateOutlet=\"field.type === fieldType.Double && field.alignTo === numberAlignmentOption.LEFT ? localizedNumber : input\"></ng-container>\n\n <ng-container *ngIf=\"field.rightAddon\">\n <span *ngIf=\"field.rightAddon.callback\" class=\"addon-button addon-button--right\">\n <s-button\n [label]=\"field.rightAddon.label\"\n [iconClass]=\"field.rightAddon.icon\"\n [priority]=\"field.rightAddon.priority\"\n [disabled]=\"isFunction(field.rightAddon.disabled) ? field.rightAddon.disabled() : field.rightAddon.disabled\"\n (onClick)=\"field.rightAddon.callback()\">\n </s-button>\n </span>\n <span *ngIf=\"!field.rightAddon.callback\" class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.rightAddon.label\">{{field.rightAddon.label}}</span>\n <span *ngIf=\"!field.rightAddon.label\" [ngClass]=\"field.rightAddon.icon\"></span>\n </span>\n </ng-container>\n </div>\n </ng-container>\n</ng-template>\n<ng-template #input>\n <input #inputRef\n [id]=\"(field.id || field.name)\"\n type=\"text\"\n [name]=\"field.name\"\n sNumberInput\n [precision]=\"isFunction(field.precision) ? trigger(field.precision) : field.precision\"\n [scale]=\"isFunction(field.scale) ? trigger(field.scale) : field.scale\"\n [decimalSeparator]=\"field.numberLocaleOptions.decimalSeparator\"\n [thousandsSeparator]=\"field.numberLocaleOptions.thousandsSeparator\"\n [alignTo]=\"field.alignTo\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [placeholder]=\"field.placeholder\"\n [showDelay]=\"500\"\n pInputText\n [autocomplete]=\"field.browserAutocomplete ? 'on' : 'off'\"\n [ngClass]=\"'mousetrap'\"\n (blur)=\"field.onBlur ? field.onBlur($event) : null\"\n (focus)=\"onFocus.next($event)\"\n [formControl]=\"formControl\" />\n</ng-template>\n<ng-template #localizedNumber>\n <input #inputRef\n [id]=\"(field.id || field.name)\"\n type=\"text\"\n [name]=\"field.name\"\n sLocalizedNumberInput\n [precision]=\"isFunction(field.precision) ? trigger(field.precision) : field.precision\"\n [decimalSeparator]=\"field.numberLocaleOptions.decimalSeparator\"\n [thousandsSeparator]=\"field.numberLocaleOptions.thousandsSeparator\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [placeholder]=\"field.placeholder\"\n [showDelay]=\"500\"\n pInputText\n [autocomplete]=\"field.browserAutocomplete ? 'on' : 'off'\"\n [ngClass]=\"'mousetrap'\"\n (blur)=\"field.onBlur ? field.onBlur($event) : null\"\n (focus)=\"onFocus.next($event)\"\n [formControl]=\"formControl\" />\n</ng-template>\n",
|
|
11394
|
+
encapsulation: ViewEncapsulation.None,
|
|
11395
|
+
styles: ["s-number-field.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-number-field.ng-dirty.ng-invalid .ui-inputtext:hover{border-color:#e44328}.addon-button{border:1px solid #c1c1cc}.addon-button s-button .s-button-with-text,.addon-button s-button button{height:100%;min-width:40px}.addon-button--left{border-radius:5px 0 0 5px;border-right:none}.addon-button--left s-button button{border-bottom-right-radius:0;border-top-right-radius:0}.addon-button--right{border-left:none;border-radius:0 5px 5px 0}.addon-button--right s-button button{border-bottom-left-radius:0;border-top-left-radius:0}"]
|
|
11396
|
+
})
|
|
11397
|
+
], NumberFieldComponent);
|
|
11398
|
+
return NumberFieldComponent;
|
|
11399
|
+
}(BaseFieldComponent));
|
|
11400
|
+
|
|
11140
11401
|
var ProfilePictureFieldComponent = /** @class */ (function () {
|
|
11141
11402
|
function ProfilePictureFieldComponent() {
|
|
11142
11403
|
}
|
|
@@ -11243,6 +11504,8 @@ var DynamicField = /** @class */ (function (_super) {
|
|
|
11243
11504
|
return TextFieldComponent;
|
|
11244
11505
|
case FieldType.Boolean:
|
|
11245
11506
|
return this.field.representedBy === "switch" ? BooleanSwitchFieldComponent : BooleanFieldComponent;
|
|
11507
|
+
case FieldType.Checkbox:
|
|
11508
|
+
return CheckboxFieldComponent;
|
|
11246
11509
|
case FieldType.Chips:
|
|
11247
11510
|
return ChipsFieldComponent;
|
|
11248
11511
|
case FieldType.CountryPhonePicker:
|
|
@@ -11512,119 +11775,6 @@ var TextFieldModule = /** @class */ (function () {
|
|
|
11512
11775
|
return TextFieldModule;
|
|
11513
11776
|
}());
|
|
11514
11777
|
|
|
11515
|
-
var NumberFieldComponent = /** @class */ (function (_super) {
|
|
11516
|
-
__extends(NumberFieldComponent, _super);
|
|
11517
|
-
function NumberFieldComponent(localeService, elementRef, changeDetectorRef) {
|
|
11518
|
-
var _this = _super.call(this) || this;
|
|
11519
|
-
_this.localeService = localeService;
|
|
11520
|
-
_this.elementRef = elementRef;
|
|
11521
|
-
_this.changeDetectorRef = changeDetectorRef;
|
|
11522
|
-
_this.onInput = new EventEmitter();
|
|
11523
|
-
_this.onFocus = new EventEmitter();
|
|
11524
|
-
_this.onComplete = new EventEmitter();
|
|
11525
|
-
_this.ngUnsubscribe = new Subject();
|
|
11526
|
-
return _this;
|
|
11527
|
-
}
|
|
11528
|
-
NumberFieldComponent.prototype.ngOnInit = function () {
|
|
11529
|
-
var _this = this;
|
|
11530
|
-
this.onLocaleService();
|
|
11531
|
-
this.onFocus.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
|
|
11532
|
-
if (_this.field.onFocus)
|
|
11533
|
-
_this.field.onFocus(event);
|
|
11534
|
-
});
|
|
11535
|
-
this.onInput.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
|
|
11536
|
-
if (_this.field.onInput)
|
|
11537
|
-
_this.field.onInput(event);
|
|
11538
|
-
});
|
|
11539
|
-
this.onComplete.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
|
|
11540
|
-
if (_this.field.onComplete)
|
|
11541
|
-
_this.field.onComplete(event);
|
|
11542
|
-
});
|
|
11543
|
-
};
|
|
11544
|
-
NumberFieldComponent.prototype.ngAfterViewInit = function () {
|
|
11545
|
-
this.setInputRef();
|
|
11546
|
-
this.changeDetectorRef.detectChanges();
|
|
11547
|
-
};
|
|
11548
|
-
NumberFieldComponent.prototype.ngOnDestroy = function () {
|
|
11549
|
-
this.ngUnsubscribe.next();
|
|
11550
|
-
this.ngUnsubscribe.complete();
|
|
11551
|
-
};
|
|
11552
|
-
Object.defineProperty(NumberFieldComponent.prototype, "numberAlignmentOption", {
|
|
11553
|
-
get: function () {
|
|
11554
|
-
return NumberAlignmentOption;
|
|
11555
|
-
},
|
|
11556
|
-
enumerable: true,
|
|
11557
|
-
configurable: true
|
|
11558
|
-
});
|
|
11559
|
-
Object.defineProperty(NumberFieldComponent.prototype, "fieldType", {
|
|
11560
|
-
get: function () {
|
|
11561
|
-
return FieldType;
|
|
11562
|
-
},
|
|
11563
|
-
enumerable: true,
|
|
11564
|
-
configurable: true
|
|
11565
|
-
});
|
|
11566
|
-
NumberFieldComponent.prototype.onLocaleService = function () {
|
|
11567
|
-
var _this = this;
|
|
11568
|
-
this.localeService
|
|
11569
|
-
.getLocale()
|
|
11570
|
-
.pipe(first())
|
|
11571
|
-
.subscribe({
|
|
11572
|
-
next: function () {
|
|
11573
|
-
var _a, _b, _c;
|
|
11574
|
-
if (!((_a = _this.field.numberLocaleOptions) === null || _a === void 0 ? void 0 : _a.decimalSeparator)) {
|
|
11575
|
-
_this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { decimalSeparator: _this.localeService.getDecimalSeparator() });
|
|
11576
|
-
}
|
|
11577
|
-
if (!((_b = _this.field.numberLocaleOptions) === null || _b === void 0 ? void 0 : _b.thousandsSeparator)) {
|
|
11578
|
-
_this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { thousandsSeparator: _this.localeService.getGroupingSeparator() });
|
|
11579
|
-
}
|
|
11580
|
-
if (!((_c = _this.field.numberLocaleOptions) === null || _c === void 0 ? void 0 : _c.currencySymbol)) {
|
|
11581
|
-
_this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { currencySymbol: "R$" });
|
|
11582
|
-
}
|
|
11583
|
-
},
|
|
11584
|
-
error: function () {
|
|
11585
|
-
var _a;
|
|
11586
|
-
return (_this.field.numberLocaleOptions = (_a = _this.field.numberLocaleOptions) !== null && _a !== void 0 ? _a : {
|
|
11587
|
-
thousandsSeparator: ".",
|
|
11588
|
-
decimalSeparator: ",",
|
|
11589
|
-
currencySymbol: "R$",
|
|
11590
|
-
});
|
|
11591
|
-
},
|
|
11592
|
-
});
|
|
11593
|
-
};
|
|
11594
|
-
NumberFieldComponent.prototype.setInputRef = function () {
|
|
11595
|
-
var input = this.elementRef.nativeElement.querySelector("input");
|
|
11596
|
-
this.inputRef = input;
|
|
11597
|
-
};
|
|
11598
|
-
NumberFieldComponent.ctorParameters = function () { return [
|
|
11599
|
-
{ type: LocaleService },
|
|
11600
|
-
{ type: ElementRef },
|
|
11601
|
-
{ type: ChangeDetectorRef }
|
|
11602
|
-
]; };
|
|
11603
|
-
__decorate([
|
|
11604
|
-
Input()
|
|
11605
|
-
], NumberFieldComponent.prototype, "field", void 0);
|
|
11606
|
-
__decorate([
|
|
11607
|
-
Input()
|
|
11608
|
-
], NumberFieldComponent.prototype, "formControl", void 0);
|
|
11609
|
-
__decorate([
|
|
11610
|
-
Output()
|
|
11611
|
-
], NumberFieldComponent.prototype, "onInput", void 0);
|
|
11612
|
-
__decorate([
|
|
11613
|
-
Output()
|
|
11614
|
-
], NumberFieldComponent.prototype, "onFocus", void 0);
|
|
11615
|
-
__decorate([
|
|
11616
|
-
Output()
|
|
11617
|
-
], NumberFieldComponent.prototype, "onComplete", void 0);
|
|
11618
|
-
NumberFieldComponent = __decorate([
|
|
11619
|
-
Component({
|
|
11620
|
-
template: "<s-field-label *ngIf=\"inputRef\" [field]=\"field\"\n [fieldContainerRef]=\"inputRef\"></s-field-label>\n\n<p-inputMask #inputRef\n *ngIf=\"field.mask; else noMask\"\n type=\"text\"\n [inputId]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [mask]=\"isFunction(field.mask) ? field.mask() : field.mask\"\n [placeholder]=\"field.placeholder\"\n slotChar=\"_\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [showDelay]=\"500\"\n styleClass=\"mousetrap\"\n (onBlur)=\"field.onBlur ? field.onBlur($event) : null\"\n (onFocus)=\"onFocus.next($event)\"\n (onComplete)=\"onComplete.next($event)\"\n (onInput)=\"onInput.next($event)\"\n [formControl]=\"formControl\" >\n</p-inputMask>\n<ng-template #noMask>\n <ng-container>\n <div class=\"ui-inputgroup\">\n <ng-container *ngIf=\"field.leftAddon\">\n <span *ngIf=\"field.leftAddon.callback\" class=\"addon-button addon-button--left\">\n <s-button\n [label]=\"field.leftAddon.label\"\n [iconClass]=\"field.leftAddon.icon\"\n [priority]=\"field.leftAddon.priority\"\n [disabled]=\"isFunction(field.leftAddon.disabled) ? field.leftAddon.disabled() : field.leftAddon.disabled\"\n (onClick)=\"field.leftAddon.callback()\">\n </s-button>\n </span>\n <span *ngIf=\"!field.leftAddon.callback\" class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.leftAddon.label\">{{field.leftAddon.label}}</span>\n <span *ngIf=\"!field.leftAddon.label\" [ngClass]=\"field.leftAddon.icon\"></span>\n </span>\n </ng-container>\n\n <ng-container *ngTemplateOutlet=\"field.type === fieldType.Double && field.alignTo === numberAlignmentOption.LEFT ? localizedNumber : input\"></ng-container>\n\n <ng-container *ngIf=\"field.rightAddon\">\n <span *ngIf=\"field.rightAddon.callback\" class=\"addon-button addon-button--right\">\n <s-button\n [label]=\"field.rightAddon.label\"\n [iconClass]=\"field.rightAddon.icon\"\n [priority]=\"field.rightAddon.priority\"\n [disabled]=\"isFunction(field.rightAddon.disabled) ? field.rightAddon.disabled() : field.rightAddon.disabled\"\n (onClick)=\"field.rightAddon.callback()\">\n </s-button>\n </span>\n <span *ngIf=\"!field.rightAddon.callback\" class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.rightAddon.label\">{{field.rightAddon.label}}</span>\n <span *ngIf=\"!field.rightAddon.label\" [ngClass]=\"field.rightAddon.icon\"></span>\n </span>\n </ng-container>\n </div>\n </ng-container>\n</ng-template>\n<ng-template #input>\n <input #inputRef\n [id]=\"(field.id || field.name)\"\n type=\"text\"\n [name]=\"field.name\"\n sNumberInput\n [precision]=\"isFunction(field.precision) ? trigger(field.precision) : field.precision\"\n [scale]=\"isFunction(field.scale) ? trigger(field.scale) : field.scale\"\n [decimalSeparator]=\"field.numberLocaleOptions.decimalSeparator\"\n [thousandsSeparator]=\"field.numberLocaleOptions.thousandsSeparator\"\n [alignTo]=\"field.alignTo\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [placeholder]=\"field.placeholder\"\n [showDelay]=\"500\"\n pInputText\n [autocomplete]=\"field.browserAutocomplete ? 'on' : 'off'\"\n [ngClass]=\"'mousetrap'\"\n (blur)=\"field.onBlur ? field.onBlur($event) : null\"\n (focus)=\"onFocus.next($event)\"\n [formControl]=\"formControl\" />\n</ng-template>\n<ng-template #localizedNumber>\n <input #inputRef\n [id]=\"(field.id || field.name)\"\n type=\"text\"\n [name]=\"field.name\"\n sLocalizedNumberInput\n [precision]=\"isFunction(field.precision) ? trigger(field.precision) : field.precision\"\n [decimalSeparator]=\"field.numberLocaleOptions.decimalSeparator\"\n [thousandsSeparator]=\"field.numberLocaleOptions.thousandsSeparator\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [placeholder]=\"field.placeholder\"\n [showDelay]=\"500\"\n pInputText\n [autocomplete]=\"field.browserAutocomplete ? 'on' : 'off'\"\n [ngClass]=\"'mousetrap'\"\n (blur)=\"field.onBlur ? field.onBlur($event) : null\"\n (focus)=\"onFocus.next($event)\"\n [formControl]=\"formControl\" />\n</ng-template>\n",
|
|
11621
|
-
encapsulation: ViewEncapsulation.None,
|
|
11622
|
-
styles: ["s-number-field.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-number-field.ng-dirty.ng-invalid .ui-inputtext:hover{border-color:#e44328}.addon-button{border:1px solid #c1c1cc}.addon-button s-button .s-button-with-text,.addon-button s-button button{height:100%;min-width:40px}.addon-button--left{border-radius:5px 0 0 5px;border-right:none}.addon-button--left s-button button{border-bottom-right-radius:0;border-top-right-radius:0}.addon-button--right{border-left:none;border-radius:0 5px 5px 0}.addon-button--right s-button button{border-bottom-left-radius:0;border-top-left-radius:0}"]
|
|
11623
|
-
})
|
|
11624
|
-
], NumberFieldComponent);
|
|
11625
|
-
return NumberFieldComponent;
|
|
11626
|
-
}(BaseFieldComponent));
|
|
11627
|
-
|
|
11628
11778
|
var NumberFieldModule = /** @class */ (function () {
|
|
11629
11779
|
function NumberFieldModule() {
|
|
11630
11780
|
}
|
|
@@ -12460,6 +12610,19 @@ var ProfilePictureModule = /** @class */ (function () {
|
|
|
12460
12610
|
return ProfilePictureModule;
|
|
12461
12611
|
}());
|
|
12462
12612
|
|
|
12613
|
+
var CheckboxFieldModule = /** @class */ (function () {
|
|
12614
|
+
function CheckboxFieldModule() {
|
|
12615
|
+
}
|
|
12616
|
+
CheckboxFieldModule = __decorate([
|
|
12617
|
+
NgModule({
|
|
12618
|
+
imports: [CommonModule, FormsModule, ReactiveFormsModule, CheckboxModule],
|
|
12619
|
+
declarations: [CheckboxFieldComponent],
|
|
12620
|
+
exports: [CheckboxFieldComponent],
|
|
12621
|
+
})
|
|
12622
|
+
], CheckboxFieldModule);
|
|
12623
|
+
return CheckboxFieldModule;
|
|
12624
|
+
}());
|
|
12625
|
+
|
|
12463
12626
|
var EditorFieldModule = /** @class */ (function () {
|
|
12464
12627
|
function EditorFieldModule() {
|
|
12465
12628
|
}
|
|
@@ -12485,7 +12648,7 @@ var DynamicFormModule = /** @class */ (function () {
|
|
|
12485
12648
|
ButtonModule,
|
|
12486
12649
|
CalendarMaskModule,
|
|
12487
12650
|
CalendarModule,
|
|
12488
|
-
CheckboxModule,
|
|
12651
|
+
CheckboxModule$1,
|
|
12489
12652
|
ChipsModule,
|
|
12490
12653
|
CommonModule,
|
|
12491
12654
|
ControlErrorsModule,
|
|
@@ -12527,6 +12690,7 @@ var DynamicFormModule = /** @class */ (function () {
|
|
|
12527
12690
|
NumberFieldModule,
|
|
12528
12691
|
CurrencyFieldModule,
|
|
12529
12692
|
BignumberFieldModule,
|
|
12693
|
+
CheckboxFieldModule,
|
|
12530
12694
|
ProfilePictureModule,
|
|
12531
12695
|
EditorFieldModule,
|
|
12532
12696
|
FieldLabelModule
|
|
@@ -19601,5 +19765,5 @@ var fallback = {
|
|
|
19601
19765
|
* Generated bundle index. Do not edit.
|
|
19602
19766
|
*/
|
|
19603
19767
|
|
|
19604
|
-
export { AccordionComponent, AccordionModule, AccordionPanelComponent, AlertComponent, AlertModule, AngularComponentsModule, AutocompleteField, BadgeColors, BadgeComponent, BadgeModule, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, CardComponent, CardModule, CardTemplateTypes, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CountryPhonePickerComponent, CountryPhonePickerModule, CurrencyField, CurrencyService, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DebounceUtils, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, EnumSeverity, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FileUploadPermissions, FileValidation, FormField, GanttComponent, GanttModule, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, IAInsightComponent, IAInsightModule, IAInsightTemplateTypes, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, InlineEditCalendarField, InlineEditComponent, InlineEditField, InlineEditLookupField, InlineEditModule, InlineEditNumberField, InlineEditTextAreaField, InlineEditTextAreaIAField, InlineEditTextField, KanbanComponent, KanbanModule, KanbanTemplateTypes, LabelValueComponent, LabelValueModule, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationButtonComponent, NavigationButtonModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, NumericService, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, Ordination, PanelComponent, PanelModule, PasswordField, PasswordStrengthComponent, PasswordStrengthDirective, PasswordStrengthModule, PasswordStrengthPositions, PasswordStrengths, ProductHeaderComponent, ProductHeaderModule, ProfilePicturePickerComponent, ProfilePicturePickerModule, ProgressBarColors, ProgressBarComponent, ProgressBarModule, RadioButtonField, RatingScaleComponent, RatingScaleModule, RationButtonOption, RowTogllerDirective, SVGFactoryDirective, SVGFactoryModule, Section, SelectButtonComponent, SelectButtonModule, SelectField, SelectOption, SidebarComponent, SidebarModule, SlidePanelComponent, SlidePanelModule, SplitButtonComponent, SplitButtonModule, SplitButtonType, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, SwitchComponent, SwitchModule, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TemplateDirective, TemplateModule, TextAreaField, TextAreaIAComponent, TextAreaIAModule, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TieredMenuDirective, TieredMenuModule, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, TooltipModule, TooltipPosition, ValidateErrors, ViewMode, WorkspaceSwitchComponent, WorkspaceSwitchModule, convertToMomentDateFormat, countries, fallback, TooltipComponent as ɵa, TooltipDirective as ɵb, TablePagingComponent as ɵba, PasswordFieldModule as ɵbb, FieldLabelModule as ɵbc, InfoSignModule as ɵbd, FieldLabelComponent as ɵbe, PasswordFieldComponent as ɵbf, TextFieldModule as ɵbg, TextFieldComponent as ɵbh, NumberFieldModule as ɵbi, LocalizedNumberInputModule as ɵbj, NumberInputModule as ɵbk, NumberFieldComponent as ɵbl, CurrencyFieldModule as ɵbm, CurrencyFieldComponent as ɵbn, BignumberFieldModule as ɵbo, BignumberInputModule as ɵbp, BignumberFieldComponent as ɵbq,
|
|
19768
|
+
export { AccordionComponent, AccordionModule, AccordionPanelComponent, AlertComponent, AlertModule, AngularComponentsModule, AutocompleteField, BadgeColors, BadgeComponent, BadgeModule, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, CardComponent, CardModule, CardTemplateTypes, CheckboxComponent, CheckboxModule, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CountryPhonePickerComponent, CountryPhonePickerModule, CurrencyField, CurrencyService, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DebounceUtils, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, EnumSeverity, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FileUploadPermissions, FileValidation, FormField, GanttComponent, GanttModule, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, IAInsightComponent, IAInsightModule, IAInsightTemplateTypes, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, InlineEditCalendarField, InlineEditComponent, InlineEditField, InlineEditLookupField, InlineEditModule, InlineEditNumberField, InlineEditTextAreaField, InlineEditTextAreaIAField, InlineEditTextField, KanbanComponent, KanbanModule, KanbanTemplateTypes, LabelValueComponent, LabelValueModule, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationButtonComponent, NavigationButtonModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, NumericService, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, Ordination, PanelComponent, PanelModule, PasswordField, PasswordStrengthComponent, PasswordStrengthDirective, PasswordStrengthModule, PasswordStrengthPositions, PasswordStrengths, ProductHeaderComponent, ProductHeaderModule, ProfilePicturePickerComponent, ProfilePicturePickerModule, ProgressBarColors, ProgressBarComponent, ProgressBarModule, RadioButtonField, RatingScaleComponent, RatingScaleModule, RationButtonOption, RowTogllerDirective, SVGFactoryDirective, SVGFactoryModule, Section, SelectButtonComponent, SelectButtonModule, SelectField, SelectOption, SidebarComponent, SidebarModule, SlidePanelComponent, SlidePanelModule, SplitButtonComponent, SplitButtonModule, SplitButtonType, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, SwitchComponent, SwitchModule, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TemplateDirective, TemplateModule, TextAreaField, TextAreaIAComponent, TextAreaIAModule, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TieredMenuDirective, TieredMenuModule, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, TooltipModule, TooltipPosition, ValidateErrors, ViewMode, WorkspaceSwitchComponent, WorkspaceSwitchModule, convertToMomentDateFormat, countries, fallback, TooltipComponent as ɵa, TooltipDirective as ɵb, TablePagingComponent as ɵba, PasswordFieldModule as ɵbb, FieldLabelModule as ɵbc, InfoSignModule as ɵbd, FieldLabelComponent as ɵbe, PasswordFieldComponent as ɵbf, TextFieldModule as ɵbg, TextFieldComponent as ɵbh, NumberFieldModule as ɵbi, LocalizedNumberInputModule as ɵbj, NumberInputModule as ɵbk, NumberFieldComponent as ɵbl, CurrencyFieldModule as ɵbm, CurrencyFieldComponent as ɵbn, BignumberFieldModule as ɵbo, BignumberInputModule as ɵbp, BignumberFieldComponent as ɵbq, CheckboxFieldModule as ɵbr, CheckboxFieldComponent as ɵbs, ProfilePictureModule as ɵbt, ThumbnailService as ɵbu, StructureModule as ɵbv, HeaderComponent as ɵbw, FooterComponent as ɵbx, ProfilePictureFieldComponent as ɵby, EditorFieldModule as ɵbz, TieredMenuEventService as ɵc, EditorFieldComponent as ɵca, AutocompleteFieldComponent as ɵcb, BooleanFieldComponent as ɵcc, BooleanSwitchFieldComponent as ɵcd, CalendarFieldComponent as ɵce, ChipsFieldComponent as ɵcf, CountryPhonePickerFieldComponent as ɵcg, DynamicFieldComponent as ɵch, DynamicFormDirective as ɵci, FieldsetComponent as ɵcj, FileUploadComponent$1 as ɵck, LookupFieldComponent as ɵcl, RadioButtonComponent as ɵcm, RowComponent as ɵcn, SectionComponent as ɵco, SelectFieldComponent as ɵcp, SliderFieldComponent as ɵcq, TextAreaFieldComponent as ɵcr, TextAreaIAFieldComponent as ɵcs, IAssistService as ɵct, DecimalField as ɵcv, SideTableComponent as ɵcw, InfiniteScrollModule as ɵcx, InfiniteScrollDirective as ɵcy, IAInsightSidebarComponent as ɵcz, TieredMenuService as ɵd, IAInsightCardComponent as ɵda, IAInsightCardLoaderComponent as ɵdb, InlineEditItemComponent as ɵdc, LocaleService as ɵdd, InlineEditCalendarComponent as ɵde, InlineEditLookupComponent as ɵdf, InlineEditNumberComponent as ɵdg, InlineEditTextComponent as ɵdh, InlineEditTextAreaComponent as ɵdi, InlineEditTextAreaIAComponent as ɵdj, KanbanEventService as ɵdk, KanbanItemComponent as ɵdl, KanbanColumnComponent as ɵdm, KanbanItemDraggingComponent as ɵdn, NumberLocaleOptions as ɵdo, BorderButtonModule as ɵdp, BorderButtonComponent as ɵdq, ProgressBarDeterminateComponent as ɵdr, ProgressBarIndeterminateComponent as ɵds, SelectButtonItemComponent as ɵdt, SlidePanelService as ɵdu, TimelineItemModule as ɵdv, TimelineIconItemComponent as ɵdw, HorizontalTimelineModule as ɵdx, HorizontalTimelineComponent as ɵdy, VerticalTimelineModule as ɵdz, TieredMenuGlobalService as ɵe, VerticalTimelineComponent as ɵea, RangeLineComponent as ɵeb, CollapseOptionComponent as ɵec, CollapsedItemsComponent as ɵed, VerticalItemsComponent as ɵee, TieredMenuComponent as ɵf, TieredMenuNestedComponent as ɵg, TieredMenuItemComponent as ɵh, TieredMenuDividerComponent as ɵi, CustomTranslationsModule as ɵj, CodeEditorComponent as ɵk, CoreFacade as ɵl, CodeMirror6Core as ɵm, CountryPhonePickerService as ɵn, LocalizedCurrencyImpurePipe as ɵo, LocalizedBignumberPipe as ɵp, LocalizedBignumberImpurePipe as ɵq, NumericPipe as ɵr, EmptyStateGoBackComponent as ɵs, IAssistIconComponent as ɵt, SeniorIconComponent as ɵu, DotsIndicatorComponent as ɵv, LoadingIndicatorComponent as ɵw, FileUploadService as ɵx, InfoSignComponent as ɵy, TableColumnsComponent as ɵz };
|
|
19605
19769
|
//# sourceMappingURL=seniorsistemas-angular-components.js.map
|