@inspark/inspark-components 19.0.20 → 19.0.22
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.
|
@@ -4049,8 +4049,7 @@ class SharedUiModule {
|
|
|
4049
4049
|
const _c0$b = ["autocomplete"];
|
|
4050
4050
|
const _c1$4 = [[["", "itemTemplate", ""]], [["", "selectedItemTemplate", ""]]];
|
|
4051
4051
|
const _c2 = ["[itemTemplate]", "[selectedItemTemplate]"];
|
|
4052
|
-
|
|
4053
|
-
function AutoCompleteComponent_ng_template_4_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
4052
|
+
function AutoCompleteComponent_ng_template_2_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
4054
4053
|
i0.ɵɵelementStart(0, "span");
|
|
4055
4054
|
i0.ɵɵtext(1);
|
|
4056
4055
|
i0.ɵɵelementEnd();
|
|
@@ -4060,15 +4059,15 @@ function AutoCompleteComponent_ng_template_4_span_1_Template(rf, ctx) { if (rf &
|
|
|
4060
4059
|
i0.ɵɵadvance();
|
|
4061
4060
|
i0.ɵɵtextInterpolate1(" ", item_r2 == null ? null : item_r2[ctx_r2.optionLabel], " ");
|
|
4062
4061
|
} }
|
|
4063
|
-
function
|
|
4062
|
+
function AutoCompleteComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
4064
4063
|
i0.ɵɵprojection(0);
|
|
4065
|
-
i0.ɵɵtemplate(1,
|
|
4064
|
+
i0.ɵɵtemplate(1, AutoCompleteComponent_ng_template_2_span_1_Template, 2, 1, "span", 4);
|
|
4066
4065
|
} if (rf & 2) {
|
|
4067
4066
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
4068
4067
|
i0.ɵɵadvance();
|
|
4069
4068
|
i0.ɵɵproperty("ngIf", !ctx_r2.itemTemplate);
|
|
4070
4069
|
} }
|
|
4071
|
-
function
|
|
4070
|
+
function AutoCompleteComponent_ng_template_3_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
4072
4071
|
i0.ɵɵelementStart(0, "span");
|
|
4073
4072
|
i0.ɵɵtext(1);
|
|
4074
4073
|
i0.ɵɵelementEnd();
|
|
@@ -4078,9 +4077,9 @@ function AutoCompleteComponent_ng_template_5_span_1_Template(rf, ctx) { if (rf &
|
|
|
4078
4077
|
i0.ɵɵadvance();
|
|
4079
4078
|
i0.ɵɵtextInterpolate1(" ", item_r4 == null ? null : item_r4[ctx_r2.optionLabel], " ");
|
|
4080
4079
|
} }
|
|
4081
|
-
function
|
|
4080
|
+
function AutoCompleteComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
4082
4081
|
i0.ɵɵprojection(0, 1);
|
|
4083
|
-
i0.ɵɵtemplate(1,
|
|
4082
|
+
i0.ɵɵtemplate(1, AutoCompleteComponent_ng_template_3_span_1_Template, 2, 1, "span", 4);
|
|
4084
4083
|
} if (rf & 2) {
|
|
4085
4084
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
4086
4085
|
i0.ɵɵadvance();
|
|
@@ -4178,21 +4177,20 @@ class AutoCompleteComponent {
|
|
|
4178
4177
|
useExisting: forwardRef(() => AutoCompleteComponent),
|
|
4179
4178
|
multi: true
|
|
4180
4179
|
}
|
|
4181
|
-
])], ngContentSelectors: _c2, decls:
|
|
4180
|
+
])], ngContentSelectors: _c2, decls: 4, vars: 21, consts: [["autocomplete", ""], [3, "ngModelChange", "completeMethod", "onSelect", "onUnselect", "onFocus", "onBlur", "onDropdownClick", "styleClass", "ngModel", "suggestions", "placeholder", "field", "dropdown", "multiple", "forceSelection", "minLength", "delay", "disabled", "appendTo", "dropdownMode", "virtualScroll", "virtualScrollItemSize", "emptyMessage", "inputStyle", "inputStyleClass", "dropdownIcon"], ["pTemplate", "item"], ["pTemplate", "selectedItem"], [4, "ngIf"]], template: function AutoCompleteComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4182
4181
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
4183
4182
|
i0.ɵɵprojectionDef(_c1$4);
|
|
4184
|
-
i0.ɵɵelementStart(0, "
|
|
4185
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
4186
|
-
i0.ɵɵlistener("completeMethod", function
|
|
4187
|
-
i0.ɵɵtemplate(
|
|
4188
|
-
i0.ɵɵelementEnd()
|
|
4183
|
+
i0.ɵɵelementStart(0, "p-autoComplete", 1, 0);
|
|
4184
|
+
i0.ɵɵtwoWayListener("ngModelChange", function AutoCompleteComponent_Template_p_autoComplete_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.value, $event) || (ctx.value = $event); return i0.ɵɵresetView($event); });
|
|
4185
|
+
i0.ɵɵlistener("completeMethod", function AutoCompleteComponent_Template_p_autoComplete_completeMethod_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleComplete($event)); })("onSelect", function AutoCompleteComponent_Template_p_autoComplete_onSelect_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleSelect($event)); })("onUnselect", function AutoCompleteComponent_Template_p_autoComplete_onUnselect_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleUnselect($event)); })("onFocus", function AutoCompleteComponent_Template_p_autoComplete_onFocus_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onFocus.emit($event)); })("onBlur", function AutoCompleteComponent_Template_p_autoComplete_onBlur_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleBlur($event)); })("onDropdownClick", function AutoCompleteComponent_Template_p_autoComplete_onDropdownClick_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onDropdownClick.emit($event)); });
|
|
4186
|
+
i0.ɵɵtemplate(2, AutoCompleteComponent_ng_template_2_Template, 2, 1, "ng-template", 2)(3, AutoCompleteComponent_ng_template_3_Template, 2, 1, "ng-template", 3);
|
|
4187
|
+
i0.ɵɵelementEnd();
|
|
4189
4188
|
} if (rf & 2) {
|
|
4190
|
-
i0.ɵɵ
|
|
4191
|
-
i0.ɵɵproperty("
|
|
4192
|
-
i0.ɵɵadvance(2);
|
|
4189
|
+
i0.ɵɵstyleMap(ctx.style);
|
|
4190
|
+
i0.ɵɵproperty("styleClass", ctx.styleClass);
|
|
4193
4191
|
i0.ɵɵtwoWayProperty("ngModel", ctx.value);
|
|
4194
4192
|
i0.ɵɵproperty("suggestions", ctx.suggestions)("placeholder", ctx.placeholder)("field", ctx.field)("dropdown", ctx.dropdown)("multiple", ctx.multiple)("forceSelection", ctx.forceSelection)("minLength", ctx.minLength)("delay", ctx.delay)("disabled", ctx.disabled)("appendTo", ctx.appendTo)("dropdownMode", ctx.dropdownMode)("virtualScroll", ctx.virtualScroll)("virtualScrollItemSize", ctx.virtualScrollItemSize)("emptyMessage", ctx.emptyMessage)("inputStyle", ctx.inputStyle)("inputStyleClass", ctx.inputStyleClass)("dropdownIcon", ctx.dropdownIcon);
|
|
4195
|
-
} }, dependencies: [i1$2.
|
|
4193
|
+
} }, dependencies: [i1$2.NgIf, i2$1.NgControlStatus, i2$1.NgModel, i3.AutoComplete, i2.PrimeTemplate], styles: ["[_nghost-%COMP%]{display:block}"] }); }
|
|
4196
4194
|
}
|
|
4197
4195
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AutoCompleteComponent, [{
|
|
4198
4196
|
type: Component,
|
|
@@ -4202,7 +4200,7 @@ class AutoCompleteComponent {
|
|
|
4202
4200
|
useExisting: forwardRef(() => AutoCompleteComponent),
|
|
4203
4201
|
multi: true
|
|
4204
4202
|
}
|
|
4205
|
-
], template: "<
|
|
4203
|
+
], template: "<p-autoComplete\r\n #autocomplete\r\n\r\n [style]=\"style\"\r\n [styleClass]=\"styleClass\"\r\n\r\n [(ngModel)]=\"value\"\r\n\r\n [suggestions]=\"suggestions\"\r\n [placeholder]=\"placeholder\"\r\n [field]=\"field\"\r\n [dropdown]=\"dropdown\"\r\n [multiple]=\"multiple\"\r\n [forceSelection]=\"forceSelection\"\r\n [minLength]=\"minLength\"\r\n [delay]=\"delay\"\r\n [disabled]=\"disabled\"\r\n [appendTo]=\"appendTo\"\r\n [dropdownMode]=\"dropdownMode\"\r\n [virtualScroll]=\"virtualScroll\"\r\n [virtualScrollItemSize]=\"virtualScrollItemSize\"\r\n [emptyMessage]=\"emptyMessage\"\r\n [inputStyle]=\"inputStyle\"\r\n [inputStyleClass]=\"inputStyleClass\"\r\n [dropdownIcon]=\"dropdownIcon\"\r\n\r\n (completeMethod)=\"handleComplete($event)\"\r\n (onSelect)=\"handleSelect($event)\"\r\n (onUnselect)=\"handleUnselect($event)\"\r\n (onFocus)=\"onFocus.emit($event)\"\r\n (onBlur)=\"handleBlur($event)\"\r\n (onDropdownClick)=\"onDropdownClick.emit($event)\"\r\n>\r\n\r\n <ng-template\r\n pTemplate=\"item\"\r\n let-item\r\n >\r\n\r\n <ng-content\r\n select=\"[itemTemplate]\"\r\n ></ng-content>\r\n\r\n <span *ngIf=\"!itemTemplate\">\r\n {{ item?.[optionLabel] }}\r\n </span>\r\n\r\n </ng-template>\r\n\r\n <ng-template\r\n pTemplate=\"selectedItem\"\r\n let-item\r\n >\r\n\r\n <ng-content\r\n select=\"[selectedItemTemplate]\"\r\n ></ng-content>\r\n\r\n <span *ngIf=\"!selectedItemTemplate\">\r\n {{ item?.[optionLabel] }}\r\n </span>\r\n\r\n </ng-template>\r\n\r\n</p-autoComplete>\r\n", styles: [":host{display:block}\n"] }]
|
|
4206
4204
|
}], null, { autocomplete: [{
|
|
4207
4205
|
type: ViewChild,
|
|
4208
4206
|
args: ['autocomplete']
|