@everymatrix/stage-mm-verification-report 1.1.59 → 1.1.62

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/component-lib.js CHANGED
@@ -41823,47 +41823,62 @@ function DmSelectLibComponent_Conditional_4_Template(rf, ctx) {
41823
41823
  \u0275\u0275property("editable", false)("loading", ctx_r1.loading)("showClear", ctx_r1.showClear)("filterPlaceholder", ctx_r1.filterPlaceHolder)("options", ctx_r1.selectOptions)("filter", ctx_r1.filter)("disabled", ctx_r1.isDisabled)("optionValue", ctx_r1.optionValue)("optionLabel", ctx_r1.optionLabel)("optionDisabled", ctx_r1.optionDisabled)("emptyFilterMessage", ctx_r1.emptyFilterMessage)("placeholder", "Select " + ctx_r1.placeholder)("formControl", ctx_r1.selectControl)("appendTo", ctx_r1.appendToBody ? "body" : null)("virtualScroll", ctx_r1.virtualScroll)("virtualScrollItemSize", ctx_r1.virtualScroll ? 38 : null)("group", ctx_r1.isGrouped)("filterBy", ctx_r1.filterBy ? ctx_r1.filterBy : ctx_r1.optionLabel)("dataKey", ctx_r1.optionValue);
41824
41824
  }
41825
41825
  }
41826
- function DmSelectLibComponent_Conditional_5_ng_template_2_Conditional_0_Template(rf, ctx) {
41826
+ function DmSelectLibComponent_Conditional_5_ng_template_2_Template(rf, ctx) {
41827
+ if (rf & 1) {
41828
+ \u0275\u0275elementStart(0, "span");
41829
+ \u0275\u0275text(1);
41830
+ \u0275\u0275elementEnd();
41831
+ }
41832
+ if (rf & 2) {
41833
+ const ctx_r1 = \u0275\u0275nextContext(2);
41834
+ \u0275\u0275advance();
41835
+ \u0275\u0275textInterpolate(ctx_r1.selectedItemsLabel);
41836
+ }
41837
+ }
41838
+ function DmSelectLibComponent_Conditional_5_ng_template_3_Conditional_0_Template(rf, ctx) {
41827
41839
  if (rf & 1) {
41828
41840
  const _r5 = \u0275\u0275getCurrentView();
41829
- \u0275\u0275elementStart(0, "div", 15)(1, "p-checkbox", 16);
41830
- \u0275\u0275listener("onChange", function DmSelectLibComponent_Conditional_5_ng_template_2_Conditional_0_Template_p_checkbox_onChange_1_listener($event) {
41841
+ \u0275\u0275elementStart(0, "div", 16)(1, "p-checkbox", 17);
41842
+ \u0275\u0275listener("onChange", function DmSelectLibComponent_Conditional_5_ng_template_3_Conditional_0_Template_p_checkbox_onChange_1_listener($event) {
41831
41843
  \u0275\u0275restoreView(_r5);
41832
41844
  const ctx_r1 = \u0275\u0275nextContext(3);
41833
41845
  return \u0275\u0275resetView(ctx_r1.toggleSelectAll($event));
41834
41846
  });
41835
41847
  \u0275\u0275elementEnd();
41836
- \u0275\u0275elementStart(2, "div", 17)(3, "div", 18)(4, "input", 19);
41837
- \u0275\u0275listener("input", function DmSelectLibComponent_Conditional_5_ng_template_2_Conditional_0_Template_input_input_4_listener($event) {
41848
+ \u0275\u0275elementStart(2, "div", 18)(3, "div", 19)(4, "input", 20);
41849
+ \u0275\u0275listener("input", function DmSelectLibComponent_Conditional_5_ng_template_3_Conditional_0_Template_input_input_4_listener($event) {
41838
41850
  \u0275\u0275restoreView(_r5);
41839
41851
  const ctx_r1 = \u0275\u0275nextContext(3);
41840
- return \u0275\u0275resetView(ctx_r1.onCustomSearch($event));
41852
+ return \u0275\u0275resetView(ctx_r1.onCustomSearch(ctx_r1.getInputValue($event)));
41853
+ })("click", function DmSelectLibComponent_Conditional_5_ng_template_3_Conditional_0_Template_input_click_4_listener($event) {
41854
+ \u0275\u0275restoreView(_r5);
41855
+ return \u0275\u0275resetView($event.stopPropagation());
41841
41856
  });
41842
41857
  \u0275\u0275elementEnd();
41843
- \u0275\u0275elementStart(5, "span", 20);
41858
+ \u0275\u0275elementStart(5, "span", 21);
41844
41859
  \u0275\u0275namespaceSVG();
41845
- \u0275\u0275elementStart(6, "svg", 21);
41846
- \u0275\u0275element(7, "path", 22)(8, "path", 23);
41860
+ \u0275\u0275elementStart(6, "svg", 22);
41861
+ \u0275\u0275element(7, "path", 23)(8, "path", 24);
41847
41862
  \u0275\u0275elementEnd()()()()();
41848
41863
  }
41849
41864
  if (rf & 2) {
41850
41865
  const ctx_r1 = \u0275\u0275nextContext(3);
41851
41866
  \u0275\u0275advance();
41852
- \u0275\u0275property("binary", true)("ngModel", ctx_r1.isAllSelectedSignal());
41867
+ \u0275\u0275property("binary", true)("ngModel", ctx_r1.isAllSelectedSignal())("disabled", !ctx_r1.allRawOptions().length);
41853
41868
  \u0275\u0275advance(3);
41854
41869
  \u0275\u0275property("placeholder", ctx_r1.filterPlaceHolder);
41855
41870
  }
41856
41871
  }
41857
- function DmSelectLibComponent_Conditional_5_ng_template_2_Template(rf, ctx) {
41872
+ function DmSelectLibComponent_Conditional_5_ng_template_3_Template(rf, ctx) {
41858
41873
  if (rf & 1) {
41859
- \u0275\u0275template(0, DmSelectLibComponent_Conditional_5_ng_template_2_Conditional_0_Template, 9, 3, "div", 15);
41874
+ \u0275\u0275template(0, DmSelectLibComponent_Conditional_5_ng_template_3_Conditional_0_Template, 9, 4, "div", 16);
41860
41875
  }
41861
41876
  if (rf & 2) {
41862
41877
  const ctx_r1 = \u0275\u0275nextContext(2);
41863
41878
  \u0275\u0275conditional(ctx_r1.filter ? 0 : -1);
41864
41879
  }
41865
41880
  }
41866
- function DmSelectLibComponent_Conditional_5_ng_template_3_Template(rf, ctx) {
41881
+ function DmSelectLibComponent_Conditional_5_ng_template_4_Template(rf, ctx) {
41867
41882
  if (rf & 1) {
41868
41883
  \u0275\u0275element(0, "p-progress-spinner", 10);
41869
41884
  }
@@ -41871,7 +41886,7 @@ function DmSelectLibComponent_Conditional_5_ng_template_3_Template(rf, ctx) {
41871
41886
  \u0275\u0275styleMap(\u0275\u0275pureFunction0(2, _c130));
41872
41887
  }
41873
41888
  }
41874
- function DmSelectLibComponent_Conditional_5_ng_template_4_Conditional_0_Template(rf, ctx) {
41889
+ function DmSelectLibComponent_Conditional_5_ng_template_5_Conditional_0_Template(rf, ctx) {
41875
41890
  if (rf & 1) {
41876
41891
  \u0275\u0275elementStart(0, "div", 11)(1, "span");
41877
41892
  \u0275\u0275text(2);
@@ -41883,14 +41898,14 @@ function DmSelectLibComponent_Conditional_5_ng_template_4_Conditional_0_Template
41883
41898
  \u0275\u0275textInterpolate(group_r6.label);
41884
41899
  }
41885
41900
  }
41886
- function DmSelectLibComponent_Conditional_5_ng_template_4_Conditional_1_Template(rf, ctx) {
41901
+ function DmSelectLibComponent_Conditional_5_ng_template_5_Conditional_1_Template(rf, ctx) {
41887
41902
  if (rf & 1) {
41888
41903
  \u0275\u0275element(0, "span", 12);
41889
41904
  }
41890
41905
  }
41891
- function DmSelectLibComponent_Conditional_5_ng_template_4_Template(rf, ctx) {
41906
+ function DmSelectLibComponent_Conditional_5_ng_template_5_Template(rf, ctx) {
41892
41907
  if (rf & 1) {
41893
- \u0275\u0275template(0, DmSelectLibComponent_Conditional_5_ng_template_4_Conditional_0_Template, 3, 1, "div", 11)(1, DmSelectLibComponent_Conditional_5_ng_template_4_Conditional_1_Template, 1, 0, "span", 12);
41908
+ \u0275\u0275template(0, DmSelectLibComponent_Conditional_5_ng_template_5_Conditional_0_Template, 3, 1, "div", 11)(1, DmSelectLibComponent_Conditional_5_ng_template_5_Conditional_1_Template, 1, 0, "span", 12);
41894
41909
  }
41895
41910
  if (rf & 2) {
41896
41911
  const group_r6 = ctx.$implicit;
@@ -41908,7 +41923,8 @@ function DmSelectLibComponent_Conditional_5_Template(rf, ctx) {
41908
41923
  })("onPanelHide", function DmSelectLibComponent_Conditional_5_Template_p_multiselect_onPanelHide_0_listener() {
41909
41924
  \u0275\u0275restoreView(_r4);
41910
41925
  const ctx_r1 = \u0275\u0275nextContext();
41911
- return \u0275\u0275resetView(ctx_r1.isDropdownOpen = false);
41926
+ ctx_r1.isDropdownOpen = false;
41927
+ return \u0275\u0275resetView(ctx_r1.onCustomSearch(""));
41912
41928
  })("blur", function DmSelectLibComponent_Conditional_5_Template_p_multiselect_blur_0_listener() {
41913
41929
  \u0275\u0275restoreView(_r4);
41914
41930
  const ctx_r1 = \u0275\u0275nextContext();
@@ -41930,7 +41946,7 @@ function DmSelectLibComponent_Conditional_5_Template(rf, ctx) {
41930
41946
  const ctx_r1 = \u0275\u0275nextContext();
41931
41947
  return \u0275\u0275resetView(ctx_r1.onSelectChange.emit());
41932
41948
  });
41933
- \u0275\u0275template(2, DmSelectLibComponent_Conditional_5_ng_template_2_Template, 1, 1, "ng-template", 14)(3, DmSelectLibComponent_Conditional_5_ng_template_3_Template, 1, 3, "ng-template", 9)(4, DmSelectLibComponent_Conditional_5_ng_template_4_Template, 2, 1, "ng-template", null, 2, \u0275\u0275templateRefExtractor);
41949
+ \u0275\u0275template(2, DmSelectLibComponent_Conditional_5_ng_template_2_Template, 2, 1, "ng-template", 14)(3, DmSelectLibComponent_Conditional_5_ng_template_3_Template, 1, 1, "ng-template", 15)(4, DmSelectLibComponent_Conditional_5_ng_template_4_Template, 1, 3, "ng-template", 9)(5, DmSelectLibComponent_Conditional_5_ng_template_5_Template, 2, 1, "ng-template", null, 2, \u0275\u0275templateRefExtractor);
41934
41950
  \u0275\u0275elementEnd();
41935
41951
  }
41936
41952
  if (rf & 2) {
@@ -41940,14 +41956,14 @@ function DmSelectLibComponent_Conditional_5_Template(rf, ctx) {
41940
41956
  }
41941
41957
  function DmSelectLibComponent_Conditional_6_Template(rf, ctx) {
41942
41958
  if (rf & 1) {
41943
- \u0275\u0275elementStart(0, "div")(1, "p", 24);
41959
+ \u0275\u0275elementStart(0, "div")(1, "p", 25);
41944
41960
  \u0275\u0275text(2, "This field is required.");
41945
41961
  \u0275\u0275elementEnd()();
41946
41962
  }
41947
41963
  }
41948
41964
  function DmSelectLibComponent_Conditional_7_Template(rf, ctx) {
41949
41965
  if (rf & 1) {
41950
- \u0275\u0275elementStart(0, "div")(1, "p", 25);
41966
+ \u0275\u0275elementStart(0, "div")(1, "p", 26);
41951
41967
  \u0275\u0275text(2);
41952
41968
  \u0275\u0275elementEnd()();
41953
41969
  }
@@ -41959,7 +41975,7 @@ function DmSelectLibComponent_Conditional_7_Template(rf, ctx) {
41959
41975
  }
41960
41976
  function DmSelectLibComponent_Conditional_8_Template(rf, ctx) {
41961
41977
  if (rf & 1) {
41962
- \u0275\u0275elementStart(0, "div")(1, "p", 25);
41978
+ \u0275\u0275elementStart(0, "div")(1, "p", 26);
41963
41979
  \u0275\u0275text(2);
41964
41980
  \u0275\u0275elementEnd()();
41965
41981
  }
@@ -42032,8 +42048,8 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
42032
42048
  if (value && typeof value === "string") {
42033
42049
  parsed = JSON.parse(value);
42034
42050
  }
42035
- this.selectOptions = parsed || [];
42036
- this.allRawOptions.set(parsed || []);
42051
+ this.selectOptions = Array.isArray(parsed) ? [...parsed] : [];
42052
+ this.allRawOptions.set(Array.isArray(parsed) ? [...parsed] : []);
42037
42053
  }
42038
42054
  /**
42039
42055
  * Name of the value field of an option.
@@ -42098,7 +42114,7 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
42098
42114
  this.shadowDomStyleInjectorService = shadowDomStyleInjectorService;
42099
42115
  this.selectControl.valueChanges.subscribe((value) => {
42100
42116
  if (this.isMultiSelect) {
42101
- this.selectedItemsLabel = `Selected ${this.label}: ${value?.length ?? 0}`;
42117
+ this.updateSelectedLabels(value);
42102
42118
  this.formValueSignal.set(value ?? []);
42103
42119
  }
42104
42120
  this.onChange(value);
@@ -42149,30 +42165,61 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
42149
42165
  }
42150
42166
  isAllSelectedSignal = computed(() => {
42151
42167
  const currentValues = this.formValueSignal();
42152
- if (!Array.isArray(currentValues) || currentValues.length === 0)
42168
+ const rawOptions = this.allRawOptions();
42169
+ if (!Array.isArray(currentValues) || !currentValues.length || !Array.isArray(rawOptions) || !rawOptions.length) {
42153
42170
  return false;
42154
- return currentValues.length === this.allRawOptions().length;
42171
+ }
42172
+ if (this.isGrouped) {
42173
+ const totalElementsCount = rawOptions.reduce((sum, group) => {
42174
+ return sum + (Array.isArray(group.items) ? group.items.length : 0);
42175
+ }, 0);
42176
+ return currentValues.length === totalElementsCount;
42177
+ }
42178
+ return currentValues.length === rawOptions.length;
42155
42179
  });
42156
- onCustomSearch(event2) {
42180
+ getInputValue(event2) {
42157
42181
  const input2 = event2.target;
42158
- const text = (input2.value || "").toLowerCase().trim();
42182
+ return input2.value || "";
42183
+ }
42184
+ onCustomSearch(value) {
42185
+ const text = value.toLowerCase().trim();
42159
42186
  const raw = this.allRawOptions();
42160
42187
  if (!text) {
42161
- this.selectOptions = raw;
42188
+ this.selectOptions = [...raw];
42162
42189
  return;
42163
42190
  }
42164
42191
  const filterFields = (this.filterBy ? this.filterBy : this.optionLabel).split(",").map((field) => field.trim());
42165
- this.selectOptions = raw.filter((opt) => {
42192
+ const matchElement = (opt) => {
42166
42193
  return filterFields.some((field) => {
42167
42194
  const fieldValue = opt[field];
42168
42195
  return fieldValue !== void 0 && fieldValue !== null && String(fieldValue).toLowerCase().includes(text);
42169
42196
  });
42170
- });
42197
+ };
42198
+ if (this.isGrouped) {
42199
+ this.selectOptions = raw.map((group) => {
42200
+ const filteredItems = Array.isArray(group.items) ? group.items.filter((item) => matchElement(item)) : [];
42201
+ return __spreadProps(__spreadValues({}, group), { items: filteredItems });
42202
+ }).filter((group) => group.items.length > 0);
42203
+ } else {
42204
+ this.selectOptions = raw.filter((opt) => matchElement(opt));
42205
+ }
42171
42206
  }
42172
42207
  toggleSelectAll(event2) {
42173
42208
  const isChecked = typeof event2 === "boolean" ? event2 : event2?.checked;
42174
42209
  if (isChecked) {
42175
- const allIds = this.allRawOptions().map((opt) => opt[this.optionValue]);
42210
+ const rawOptions = this.allRawOptions();
42211
+ let allIds = [];
42212
+ if (this.isGrouped) {
42213
+ allIds = rawOptions.reduce((acc, group) => {
42214
+ if (Array.isArray(group.items)) {
42215
+ const groupIds = group.items.map((item) => item[this.optionValue]);
42216
+ return acc.concat(groupIds);
42217
+ }
42218
+ return acc;
42219
+ }, []);
42220
+ } else {
42221
+ allIds = rawOptions.map((opt) => opt[this.optionValue]);
42222
+ }
42176
42223
  this.selectControl.setValue(allIds);
42177
42224
  this.formValueSignal.set(allIds);
42178
42225
  } else {
@@ -42181,6 +42228,38 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
42181
42228
  }
42182
42229
  this.onSelectChange.emit();
42183
42230
  }
42231
+ updateSelectedLabels(value) {
42232
+ const selectedValues = value || [];
42233
+ if (!selectedValues.length) {
42234
+ this.selectedItemsLabel = "";
42235
+ return;
42236
+ }
42237
+ if (selectedValues.length > 3) {
42238
+ this.selectedItemsLabel = `Selected ${this.label}: ${selectedValues.length}`;
42239
+ return;
42240
+ }
42241
+ const rawOptions = this.allRawOptions();
42242
+ const selectedLabels = [];
42243
+ const selectedSet = new Set(selectedValues.map((id) => id));
42244
+ if (this.isGrouped) {
42245
+ for (const group of rawOptions) {
42246
+ if (Array.isArray(group.items)) {
42247
+ for (const item of group.items) {
42248
+ if (selectedSet.has(item[this.optionValue])) {
42249
+ selectedLabels.push(item[this.optionLabel]);
42250
+ }
42251
+ }
42252
+ }
42253
+ }
42254
+ } else {
42255
+ for (const opt of rawOptions) {
42256
+ if (selectedSet.has(opt[this.optionValue])) {
42257
+ selectedLabels.push(opt[this.optionLabel]);
42258
+ }
42259
+ }
42260
+ }
42261
+ this.selectedItemsLabel = selectedLabels.length > 0 ? selectedLabels.join(", ") : `Selected ${this.label}: ${selectedValues.length}`;
42262
+ }
42184
42263
  static \u0275fac = function DmSelectLibComponent_Factory(__ngFactoryType__) {
42185
42264
  return new (__ngFactoryType__ || _DmSelectLibComponent)(\u0275\u0275directiveInject(ElementRef), \u0275\u0275directiveInject(ShadowDomStyleInjectorService));
42186
42265
  };
@@ -42190,12 +42269,12 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
42190
42269
  useExisting: forwardRef(() => _DmSelectLibComponent),
42191
42270
  multi: true
42192
42271
  }
42193
- ]), \u0275\u0275InputTransformsFeature, \u0275\u0275NgOnChangesFeature], decls: 9, vars: 8, consts: [["wrapper", ""], ["select", ""], ["group", ""], ["multiSelect", ""], [1, "form-control-container", 3, "ngStyle"], ["for", "selectId", 1, "form-control-label"], ["inputId", "selectId", 3, "editable", "loading", "showClear", "filterPlaceholder", "options", "filter", "disabled", "optionValue", "optionLabel", "optionDisabled", "emptyFilterMessage", "placeholder", "formControl", "appendTo", "virtualScroll", "virtualScrollItemSize", "group", "filterBy", "dataKey"], ["inputId", "selectId", 3, "loading", "options", "showClear", "filterPlaceHolder", "disabled", "optionValue", "optionLabel", "optionDisabled", "emptyFilterMessage", "placeholder", "selectedItemsLabel", "formControl", "appendTo", "virtualScroll", "virtualScrollItemSize", "group", "filterBy", "dataKey", "filter", "showToggleAll", "showHeader"], ["inputId", "selectId", 3, "onShow", "onHide", "blur", "focus", "click", "onChange", "editable", "loading", "showClear", "filterPlaceholder", "options", "filter", "disabled", "optionValue", "optionLabel", "optionDisabled", "emptyFilterMessage", "placeholder", "formControl", "appendTo", "virtualScroll", "virtualScrollItemSize", "group", "filterBy", "dataKey"], ["pTemplate", "loadingicon"], ["strokeWidth", "6", "styleClass", "grey-color"], [1, "flex", "items-center"], [1, "ungrouped"], ["inputId", "selectId", 3, "onPanelShow", "onPanelHide", "blur", "focus", "click", "onChange", "onClear", "loading", "options", "showClear", "filterPlaceHolder", "disabled", "optionValue", "optionLabel", "optionDisabled", "emptyFilterMessage", "placeholder", "selectedItemsLabel", "formControl", "appendTo", "virtualScroll", "virtualScrollItemSize", "group", "filterBy", "dataKey", "filter", "showToggleAll", "showHeader"], ["pTemplate", "header"], [1, "p-multiselect-header"], ["ariaLabel", "Toggle All", 3, "onChange", "binary", "ngModel"], [1, "p-multiselect-filter-container"], [1, "p-iconfield", "p-iconfield-left"], ["type", "text", "role", "searchbox", "autocomplete", "off", 1, "p-inputtext", "p-component", "p-multiselect-filter", 3, "input", "placeholder"], [1, "p-inputicon"], ["width", "14", "height", "14", "viewBox", "0 0 14 14", "fill", "none", "xmlns", "http://w3.org", 1, "p-component", "p-iconwrapper", "p-multiselect-filter-icon"], ["d", "M11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5Z", "stroke", "currentColor", "stroke-width", "1"], ["d", "M10 10L13 13", "stroke", "currentColor", "stroke-width", "1.5", "stroke-linecap", "round"], [1, "form-control-error-message"], [1, "form-control-hint-message"]], template: function DmSelectLibComponent_Template(rf, ctx) {
42272
+ ]), \u0275\u0275InputTransformsFeature, \u0275\u0275NgOnChangesFeature], decls: 9, vars: 8, consts: [["wrapper", ""], ["select", ""], ["group", ""], ["multiSelect", ""], [1, "form-control-container", 3, "ngStyle"], ["for", "selectId", 1, "form-control-label"], ["inputId", "selectId", 3, "editable", "loading", "showClear", "filterPlaceholder", "options", "filter", "disabled", "optionValue", "optionLabel", "optionDisabled", "emptyFilterMessage", "placeholder", "formControl", "appendTo", "virtualScroll", "virtualScrollItemSize", "group", "filterBy", "dataKey"], ["inputId", "selectId", 3, "loading", "options", "showClear", "filterPlaceHolder", "disabled", "optionValue", "optionLabel", "optionDisabled", "emptyFilterMessage", "placeholder", "selectedItemsLabel", "formControl", "appendTo", "virtualScroll", "virtualScrollItemSize", "group", "filterBy", "dataKey", "filter", "showToggleAll", "showHeader"], ["inputId", "selectId", 3, "onShow", "onHide", "blur", "focus", "click", "onChange", "editable", "loading", "showClear", "filterPlaceholder", "options", "filter", "disabled", "optionValue", "optionLabel", "optionDisabled", "emptyFilterMessage", "placeholder", "formControl", "appendTo", "virtualScroll", "virtualScrollItemSize", "group", "filterBy", "dataKey"], ["pTemplate", "loadingicon"], ["strokeWidth", "6", "styleClass", "grey-color"], [1, "flex", "items-center"], [1, "ungrouped"], ["inputId", "selectId", 3, "onPanelShow", "onPanelHide", "blur", "focus", "click", "onChange", "onClear", "loading", "options", "showClear", "filterPlaceHolder", "disabled", "optionValue", "optionLabel", "optionDisabled", "emptyFilterMessage", "placeholder", "selectedItemsLabel", "formControl", "appendTo", "virtualScroll", "virtualScrollItemSize", "group", "filterBy", "dataKey", "filter", "showToggleAll", "showHeader"], ["pTemplate", "selectedItems"], ["pTemplate", "header"], [1, "p-multiselect-header"], ["ariaLabel", "Toggle All", 3, "onChange", "binary", "ngModel", "disabled"], [1, "p-multiselect-filter-container"], [1, "p-iconfield", "p-iconfield-left"], ["type", "text", "role", "searchbox", "autocomplete", "off", 1, "p-inputtext", "p-component", "p-multiselect-filter", 3, "input", "click", "placeholder"], [1, "p-inputicon"], ["width", "14", "height", "14", "viewBox", "0 0 14 14", "fill", "none", "xmlns", "http://w3.org", 1, "p-component", "p-iconwrapper", "p-multiselect-filter-icon"], ["d", "M11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5Z", "stroke", "currentColor", "stroke-width", "1"], ["d", "M10 10L13 13", "stroke", "currentColor", "stroke-width", "1.5", "stroke-linecap", "round"], [1, "form-control-error-message"], [1, "form-control-hint-message"]], template: function DmSelectLibComponent_Template(rf, ctx) {
42194
42273
  if (rf & 1) {
42195
42274
  \u0275\u0275elementStart(0, "div", 4, 0)(2, "label", 5);
42196
42275
  \u0275\u0275text(3);
42197
42276
  \u0275\u0275elementEnd();
42198
- \u0275\u0275template(4, DmSelectLibComponent_Conditional_4_Template, 5, 19, "p-select", 6)(5, DmSelectLibComponent_Conditional_5_Template, 6, 21, "p-multiselect", 7)(6, DmSelectLibComponent_Conditional_6_Template, 3, 0, "div")(7, DmSelectLibComponent_Conditional_7_Template, 3, 1, "div")(8, DmSelectLibComponent_Conditional_8_Template, 3, 1, "div");
42277
+ \u0275\u0275template(4, DmSelectLibComponent_Conditional_4_Template, 5, 19, "p-select", 6)(5, DmSelectLibComponent_Conditional_5_Template, 7, 21, "p-multiselect", 7)(6, DmSelectLibComponent_Conditional_6_Template, 3, 0, "div")(7, DmSelectLibComponent_Conditional_7_Template, 3, 1, "div")(8, DmSelectLibComponent_Conditional_8_Template, 3, 1, "div");
42199
42278
  \u0275\u0275elementEnd();
42200
42279
  }
42201
42280
  if (rf & 2) {
@@ -42295,7 +42374,7 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
42295
42374
  [selectedItemsLabel]="selectedItemsLabel"
42296
42375
  [formControl]="selectControl"
42297
42376
  (onPanelShow)="isDropdownOpen = true"
42298
- (onPanelHide)="isDropdownOpen = false"
42377
+ (onPanelHide)="isDropdownOpen = false; onCustomSearch('')"
42299
42378
  (blur)="isFocused = false"
42300
42379
  (focus)="isFocused = true"
42301
42380
  [appendTo]="appendToBody ? 'body' : null"
@@ -42311,6 +42390,9 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
42311
42390
  [showToggleAll]="false"
42312
42391
  [showHeader]="false"
42313
42392
  >
42393
+ <ng-template pTemplate="selectedItems">
42394
+ <span>{{ selectedItemsLabel }}</span>
42395
+ </ng-template>
42314
42396
  <ng-template pTemplate="header">
42315
42397
  @if(filter) {
42316
42398
  <div class="p-multiselect-header">
@@ -42319,8 +42401,8 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
42319
42401
  [ngModel]="isAllSelectedSignal()"
42320
42402
  (onChange)="toggleSelectAll($event)"
42321
42403
  ariaLabel="Toggle All"
42404
+ [disabled]="!allRawOptions().length"
42322
42405
  />
42323
-
42324
42406
  <div class="p-multiselect-filter-container">
42325
42407
  <div class="p-iconfield p-iconfield-left">
42326
42408
 
@@ -42328,9 +42410,10 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
42328
42410
  type="text"
42329
42411
  role="searchbox"
42330
42412
  [placeholder]="filterPlaceHolder"
42331
- (input)="onCustomSearch($event)"
42413
+ (input)="onCustomSearch(getInputValue($event))"
42332
42414
  class="p-inputtext p-component p-multiselect-filter"
42333
42415
  autocomplete="off"
42416
+ (click)="$event.stopPropagation()"
42334
42417
  />
42335
42418
 
42336
42419
  <span class="p-inputicon">