@apipass/inputs 0.2.5-alpha.23 → 0.2.5-alpha.24
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/apipass-inputs.umd.js +9 -3
- package/bundles/apipass-inputs.umd.js.map +1 -1
- package/bundles/apipass-inputs.umd.min.js +1 -1
- package/bundles/apipass-inputs.umd.min.js.map +1 -1
- package/esm2015/select-box/select-box.component.js +10 -4
- package/fesm2015/apipass-inputs.js +9 -3
- package/fesm2015/apipass-inputs.js.map +1 -1
- package/package.json +1 -1
- package/select-box/select-box.component.d.ts +3 -1
|
@@ -1185,6 +1185,8 @@
|
|
|
1185
1185
|
_this.addNewItemIcon = '';
|
|
1186
1186
|
_this.addNewItemClickCloseSelect = false;
|
|
1187
1187
|
_this.closeOnBodyScroll = false;
|
|
1188
|
+
_this.initializing = false;
|
|
1189
|
+
_this.loadingText = 'Loading...';
|
|
1188
1190
|
_this.onOpenSelectBox = new i0.EventEmitter();
|
|
1189
1191
|
_this.onCloseSelectBox = new i0.EventEmitter();
|
|
1190
1192
|
_this.onSelectChange = new i0.EventEmitter();
|
|
@@ -1322,11 +1324,11 @@
|
|
|
1322
1324
|
var _t;
|
|
1323
1325
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.ngSelectComponent = _t.first);
|
|
1324
1326
|
}
|
|
1325
|
-
}, inputs: { placeholder: "placeholder", searchPlaceHolder: "searchPlaceHolder", clearText: "clearText", notFoundText: "notFoundText", enabledSearch: "enabledSearch", data: "data", disabled: "disabled", selectedItem: "selectedItem", selectProperty: "selectProperty", bindImageUrl: "bindImageUrl", bindKey: "bindKey", bindValue: "bindValue", limitItens: "limitItens", showAddNewItem: "showAddNewItem", addNewItemText: "addNewItemText", addNewItemIcon: "addNewItemIcon", addNewItemClickCloseSelect: "addNewItemClickCloseSelect", closeOnBodyScroll: "closeOnBodyScroll" }, outputs: { onOpenSelectBox: "onOpenSelectBox", onCloseSelectBox: "onCloseSelectBox", onSelectChange: "onSelectChange", onSelectClear: "onSelectClear", onAddNewItemClick: "onAddNewItemClick" }, features: [i0.ɵɵProvidersFeature([{
|
|
1327
|
+
}, inputs: { placeholder: "placeholder", searchPlaceHolder: "searchPlaceHolder", clearText: "clearText", notFoundText: "notFoundText", enabledSearch: "enabledSearch", data: "data", disabled: "disabled", selectedItem: "selectedItem", selectProperty: "selectProperty", bindImageUrl: "bindImageUrl", bindKey: "bindKey", bindValue: "bindValue", limitItens: "limitItens", showAddNewItem: "showAddNewItem", addNewItemText: "addNewItemText", addNewItemIcon: "addNewItemIcon", addNewItemClickCloseSelect: "addNewItemClickCloseSelect", closeOnBodyScroll: "closeOnBodyScroll", initializing: "initializing", loadingText: "loadingText" }, outputs: { onOpenSelectBox: "onOpenSelectBox", onCloseSelectBox: "onCloseSelectBox", onSelectChange: "onSelectChange", onSelectClear: "onSelectClear", onAddNewItemClick: "onAddNewItemClick" }, features: [i0.ɵɵProvidersFeature([{
|
|
1326
1328
|
provide: i4.NG_VALUE_ACCESSOR,
|
|
1327
1329
|
useExisting: i0.forwardRef(function () { return SelectBoxComponent; }),
|
|
1328
1330
|
multi: true
|
|
1329
|
-
}]), i0.ɵɵInheritDefinitionFeature], decls: 6, vars:
|
|
1331
|
+
}]), i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 21, consts: [["appendTo", "body", 3, "ngModel", "items", "virtualScroll", "loading", "loadingText", "placeholder", "clearAllText", "searchable", "typeToSearchText", "notFoundText", "disabled", "typeahead", "ngClass", "compareWith", "bindValue", "ngModelChange", "open", "close", "clear", "scroll", "scrollToEnd", "change"], ["ngSelectComponent", ""], [4, "ngIf"], ["ng-option-tmp", ""], ["ng-label-tmp", ""], ["class", "image", "style", "width: 40px;height: 40px; margin-right: 10px;", 4, "ngIf"], ["class", "select-text-element", 4, "ngIf"], [1, "image", 2, "width", "40px", "height", "40px", "margin-right", "10px"], ["loading", "lazy", 2, "width", "auto", "max-width", "40px", "height", "40px", 3, "src", "alt", "matTooltip"], [1, "select-text-element"], ["ng-header-tmp", ""], [1, "add-new-item-option", 2, "display", "flex", "align-items", "center", "cursor", "pointer", 3, "click"], ["style", "margin-right: 5px", 3, "title", "name", "size", 4, "ngIf"], ["class", "add-new-item-text", "style", "white-space: nowrap;overflow: hidden;text-overflow: ellipsis;", 4, "ngIf"], [2, "margin-right", "5px", 3, "title", "name", "size"], [1, "add-new-item-text", 2, "white-space", "nowrap", "overflow", "hidden", "text-overflow", "ellipsis"], [1, "select-text-element", 2, "white-space", "nowrap", "overflow", "hidden", "text-overflow", "ellipsis"]], template: function SelectBoxComponent_Template(rf, ctx) {
|
|
1330
1332
|
if (rf & 1) {
|
|
1331
1333
|
i0.ɵɵelementStart(0, "ng-select", 0, 1);
|
|
1332
1334
|
i0.ɵɵlistener("ngModelChange", function SelectBoxComponent_Template_ng_select_ngModelChange_0_listener($event) { return ctx.value = $event; })("open", function SelectBoxComponent_Template_ng_select_open_0_listener($event) { return ctx.openSelectBox($event); })("close", function SelectBoxComponent_Template_ng_select_close_0_listener($event) { return ctx.onClose($event); })("clear", function SelectBoxComponent_Template_ng_select_clear_0_listener() { return ctx.onClear(); })("scroll", function SelectBoxComponent_Template_ng_select_scroll_0_listener($event) { return ctx.onScroll($event); })("scrollToEnd", function SelectBoxComponent_Template_ng_select_scrollToEnd_0_listener() { return ctx.onScrollToEnd(); })("change", function SelectBoxComponent_Template_ng_select_change_0_listener($event) { return ctx.onSelectionChange($event); });
|
|
@@ -1337,7 +1339,7 @@
|
|
|
1337
1339
|
i0.ɵɵelementEnd();
|
|
1338
1340
|
}
|
|
1339
1341
|
if (rf & 2) {
|
|
1340
|
-
i0.ɵɵproperty("ngModel", ctx.value)("items", ctx.visibleItens)("virtualScroll", true)("loading", ctx.loading)("placeholder", ctx.placeholder)("clearAllText", ctx.clearText)("searchable", ctx.enabledSearch)("typeToSearchText", ctx.searchPlaceHolder)("notFoundText", ctx.notFoundText)("disabled", ctx.disabled)("typeahead", ctx.inputFilter)("ngClass", i0.ɵɵpureFunction2(
|
|
1342
|
+
i0.ɵɵproperty("ngModel", ctx.value)("items", ctx.visibleItens)("virtualScroll", true)("loading", ctx.loading || ctx.initializing)("loadingText", ctx.loadingText)("placeholder", ctx.placeholder)("clearAllText", ctx.clearText)("searchable", ctx.enabledSearch)("typeToSearchText", ctx.searchPlaceHolder)("notFoundText", ctx.notFoundText)("disabled", ctx.disabled)("typeahead", ctx.inputFilter)("ngClass", i0.ɵɵpureFunction2(18, _c1$2, ctx.bindImageUrl, !ctx.bindImageUrl))("compareWith", ctx.compareFn)("bindValue", ctx.selectProperty);
|
|
1341
1343
|
i0.ɵɵadvance(2);
|
|
1342
1344
|
i0.ɵɵproperty("ngIf", ctx.selectProperty && ctx.selectedItem && ctx.selectedItem[ctx.bindKey] && ctx.selectedItem[ctx.bindValue]);
|
|
1343
1345
|
i0.ɵɵadvance(1);
|
|
@@ -1397,6 +1399,10 @@
|
|
|
1397
1399
|
type: i0.Input
|
|
1398
1400
|
}], closeOnBodyScroll: [{
|
|
1399
1401
|
type: i0.Input
|
|
1402
|
+
}], initializing: [{
|
|
1403
|
+
type: i0.Input
|
|
1404
|
+
}], loadingText: [{
|
|
1405
|
+
type: i0.Input
|
|
1400
1406
|
}], onOpenSelectBox: [{
|
|
1401
1407
|
type: i0.Output
|
|
1402
1408
|
}], onCloseSelectBox: [{
|