@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 +121 -38
- package/main.js +121 -38
- package/main.js.map +1 -1
- package/package-stage.json +1 -1
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -39439,47 +39439,62 @@ function DmSelectLibComponent_Conditional_4_Template(rf, ctx) {
|
|
|
39439
39439
|
\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);
|
|
39440
39440
|
}
|
|
39441
39441
|
}
|
|
39442
|
-
function
|
|
39442
|
+
function DmSelectLibComponent_Conditional_5_ng_template_2_Template(rf, ctx) {
|
|
39443
|
+
if (rf & 1) {
|
|
39444
|
+
\u0275\u0275elementStart(0, "span");
|
|
39445
|
+
\u0275\u0275text(1);
|
|
39446
|
+
\u0275\u0275elementEnd();
|
|
39447
|
+
}
|
|
39448
|
+
if (rf & 2) {
|
|
39449
|
+
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
39450
|
+
\u0275\u0275advance();
|
|
39451
|
+
\u0275\u0275textInterpolate(ctx_r1.selectedItemsLabel);
|
|
39452
|
+
}
|
|
39453
|
+
}
|
|
39454
|
+
function DmSelectLibComponent_Conditional_5_ng_template_3_Conditional_0_Template(rf, ctx) {
|
|
39443
39455
|
if (rf & 1) {
|
|
39444
39456
|
const _r5 = \u0275\u0275getCurrentView();
|
|
39445
|
-
\u0275\u0275elementStart(0, "div",
|
|
39446
|
-
\u0275\u0275listener("onChange", function
|
|
39457
|
+
\u0275\u0275elementStart(0, "div", 16)(1, "p-checkbox", 17);
|
|
39458
|
+
\u0275\u0275listener("onChange", function DmSelectLibComponent_Conditional_5_ng_template_3_Conditional_0_Template_p_checkbox_onChange_1_listener($event) {
|
|
39447
39459
|
\u0275\u0275restoreView(_r5);
|
|
39448
39460
|
const ctx_r1 = \u0275\u0275nextContext(3);
|
|
39449
39461
|
return \u0275\u0275resetView(ctx_r1.toggleSelectAll($event));
|
|
39450
39462
|
});
|
|
39451
39463
|
\u0275\u0275elementEnd();
|
|
39452
|
-
\u0275\u0275elementStart(2, "div",
|
|
39453
|
-
\u0275\u0275listener("input", function
|
|
39464
|
+
\u0275\u0275elementStart(2, "div", 18)(3, "div", 19)(4, "input", 20);
|
|
39465
|
+
\u0275\u0275listener("input", function DmSelectLibComponent_Conditional_5_ng_template_3_Conditional_0_Template_input_input_4_listener($event) {
|
|
39454
39466
|
\u0275\u0275restoreView(_r5);
|
|
39455
39467
|
const ctx_r1 = \u0275\u0275nextContext(3);
|
|
39456
|
-
return \u0275\u0275resetView(ctx_r1.onCustomSearch($event));
|
|
39468
|
+
return \u0275\u0275resetView(ctx_r1.onCustomSearch(ctx_r1.getInputValue($event)));
|
|
39469
|
+
})("click", function DmSelectLibComponent_Conditional_5_ng_template_3_Conditional_0_Template_input_click_4_listener($event) {
|
|
39470
|
+
\u0275\u0275restoreView(_r5);
|
|
39471
|
+
return \u0275\u0275resetView($event.stopPropagation());
|
|
39457
39472
|
});
|
|
39458
39473
|
\u0275\u0275elementEnd();
|
|
39459
|
-
\u0275\u0275elementStart(5, "span",
|
|
39474
|
+
\u0275\u0275elementStart(5, "span", 21);
|
|
39460
39475
|
\u0275\u0275namespaceSVG();
|
|
39461
|
-
\u0275\u0275elementStart(6, "svg",
|
|
39462
|
-
\u0275\u0275element(7, "path",
|
|
39476
|
+
\u0275\u0275elementStart(6, "svg", 22);
|
|
39477
|
+
\u0275\u0275element(7, "path", 23)(8, "path", 24);
|
|
39463
39478
|
\u0275\u0275elementEnd()()()()();
|
|
39464
39479
|
}
|
|
39465
39480
|
if (rf & 2) {
|
|
39466
39481
|
const ctx_r1 = \u0275\u0275nextContext(3);
|
|
39467
39482
|
\u0275\u0275advance();
|
|
39468
|
-
\u0275\u0275property("binary", true)("ngModel", ctx_r1.isAllSelectedSignal());
|
|
39483
|
+
\u0275\u0275property("binary", true)("ngModel", ctx_r1.isAllSelectedSignal())("disabled", !ctx_r1.allRawOptions().length);
|
|
39469
39484
|
\u0275\u0275advance(3);
|
|
39470
39485
|
\u0275\u0275property("placeholder", ctx_r1.filterPlaceHolder);
|
|
39471
39486
|
}
|
|
39472
39487
|
}
|
|
39473
|
-
function
|
|
39488
|
+
function DmSelectLibComponent_Conditional_5_ng_template_3_Template(rf, ctx) {
|
|
39474
39489
|
if (rf & 1) {
|
|
39475
|
-
\u0275\u0275template(0,
|
|
39490
|
+
\u0275\u0275template(0, DmSelectLibComponent_Conditional_5_ng_template_3_Conditional_0_Template, 9, 4, "div", 16);
|
|
39476
39491
|
}
|
|
39477
39492
|
if (rf & 2) {
|
|
39478
39493
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
39479
39494
|
\u0275\u0275conditional(ctx_r1.filter ? 0 : -1);
|
|
39480
39495
|
}
|
|
39481
39496
|
}
|
|
39482
|
-
function
|
|
39497
|
+
function DmSelectLibComponent_Conditional_5_ng_template_4_Template(rf, ctx) {
|
|
39483
39498
|
if (rf & 1) {
|
|
39484
39499
|
\u0275\u0275element(0, "p-progress-spinner", 10);
|
|
39485
39500
|
}
|
|
@@ -39487,7 +39502,7 @@ function DmSelectLibComponent_Conditional_5_ng_template_3_Template(rf, ctx) {
|
|
|
39487
39502
|
\u0275\u0275styleMap(\u0275\u0275pureFunction0(2, _c130));
|
|
39488
39503
|
}
|
|
39489
39504
|
}
|
|
39490
|
-
function
|
|
39505
|
+
function DmSelectLibComponent_Conditional_5_ng_template_5_Conditional_0_Template(rf, ctx) {
|
|
39491
39506
|
if (rf & 1) {
|
|
39492
39507
|
\u0275\u0275elementStart(0, "div", 11)(1, "span");
|
|
39493
39508
|
\u0275\u0275text(2);
|
|
@@ -39499,14 +39514,14 @@ function DmSelectLibComponent_Conditional_5_ng_template_4_Conditional_0_Template
|
|
|
39499
39514
|
\u0275\u0275textInterpolate(group_r6.label);
|
|
39500
39515
|
}
|
|
39501
39516
|
}
|
|
39502
|
-
function
|
|
39517
|
+
function DmSelectLibComponent_Conditional_5_ng_template_5_Conditional_1_Template(rf, ctx) {
|
|
39503
39518
|
if (rf & 1) {
|
|
39504
39519
|
\u0275\u0275element(0, "span", 12);
|
|
39505
39520
|
}
|
|
39506
39521
|
}
|
|
39507
|
-
function
|
|
39522
|
+
function DmSelectLibComponent_Conditional_5_ng_template_5_Template(rf, ctx) {
|
|
39508
39523
|
if (rf & 1) {
|
|
39509
|
-
\u0275\u0275template(0,
|
|
39524
|
+
\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);
|
|
39510
39525
|
}
|
|
39511
39526
|
if (rf & 2) {
|
|
39512
39527
|
const group_r6 = ctx.$implicit;
|
|
@@ -39524,7 +39539,8 @@ function DmSelectLibComponent_Conditional_5_Template(rf, ctx) {
|
|
|
39524
39539
|
})("onPanelHide", function DmSelectLibComponent_Conditional_5_Template_p_multiselect_onPanelHide_0_listener() {
|
|
39525
39540
|
\u0275\u0275restoreView(_r4);
|
|
39526
39541
|
const ctx_r1 = \u0275\u0275nextContext();
|
|
39527
|
-
|
|
39542
|
+
ctx_r1.isDropdownOpen = false;
|
|
39543
|
+
return \u0275\u0275resetView(ctx_r1.onCustomSearch(""));
|
|
39528
39544
|
})("blur", function DmSelectLibComponent_Conditional_5_Template_p_multiselect_blur_0_listener() {
|
|
39529
39545
|
\u0275\u0275restoreView(_r4);
|
|
39530
39546
|
const ctx_r1 = \u0275\u0275nextContext();
|
|
@@ -39546,7 +39562,7 @@ function DmSelectLibComponent_Conditional_5_Template(rf, ctx) {
|
|
|
39546
39562
|
const ctx_r1 = \u0275\u0275nextContext();
|
|
39547
39563
|
return \u0275\u0275resetView(ctx_r1.onSelectChange.emit());
|
|
39548
39564
|
});
|
|
39549
|
-
\u0275\u0275template(2, DmSelectLibComponent_Conditional_5_ng_template_2_Template,
|
|
39565
|
+
\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);
|
|
39550
39566
|
\u0275\u0275elementEnd();
|
|
39551
39567
|
}
|
|
39552
39568
|
if (rf & 2) {
|
|
@@ -39556,14 +39572,14 @@ function DmSelectLibComponent_Conditional_5_Template(rf, ctx) {
|
|
|
39556
39572
|
}
|
|
39557
39573
|
function DmSelectLibComponent_Conditional_6_Template(rf, ctx) {
|
|
39558
39574
|
if (rf & 1) {
|
|
39559
|
-
\u0275\u0275elementStart(0, "div")(1, "p",
|
|
39575
|
+
\u0275\u0275elementStart(0, "div")(1, "p", 25);
|
|
39560
39576
|
\u0275\u0275text(2, "This field is required.");
|
|
39561
39577
|
\u0275\u0275elementEnd()();
|
|
39562
39578
|
}
|
|
39563
39579
|
}
|
|
39564
39580
|
function DmSelectLibComponent_Conditional_7_Template(rf, ctx) {
|
|
39565
39581
|
if (rf & 1) {
|
|
39566
|
-
\u0275\u0275elementStart(0, "div")(1, "p",
|
|
39582
|
+
\u0275\u0275elementStart(0, "div")(1, "p", 26);
|
|
39567
39583
|
\u0275\u0275text(2);
|
|
39568
39584
|
\u0275\u0275elementEnd()();
|
|
39569
39585
|
}
|
|
@@ -39575,7 +39591,7 @@ function DmSelectLibComponent_Conditional_7_Template(rf, ctx) {
|
|
|
39575
39591
|
}
|
|
39576
39592
|
function DmSelectLibComponent_Conditional_8_Template(rf, ctx) {
|
|
39577
39593
|
if (rf & 1) {
|
|
39578
|
-
\u0275\u0275elementStart(0, "div")(1, "p",
|
|
39594
|
+
\u0275\u0275elementStart(0, "div")(1, "p", 26);
|
|
39579
39595
|
\u0275\u0275text(2);
|
|
39580
39596
|
\u0275\u0275elementEnd()();
|
|
39581
39597
|
}
|
|
@@ -39648,8 +39664,8 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
|
|
|
39648
39664
|
if (value && typeof value === "string") {
|
|
39649
39665
|
parsed = JSON.parse(value);
|
|
39650
39666
|
}
|
|
39651
|
-
this.selectOptions = parsed
|
|
39652
|
-
this.allRawOptions.set(parsed
|
|
39667
|
+
this.selectOptions = Array.isArray(parsed) ? [...parsed] : [];
|
|
39668
|
+
this.allRawOptions.set(Array.isArray(parsed) ? [...parsed] : []);
|
|
39653
39669
|
}
|
|
39654
39670
|
/**
|
|
39655
39671
|
* Name of the value field of an option.
|
|
@@ -39714,7 +39730,7 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
|
|
|
39714
39730
|
this.shadowDomStyleInjectorService = shadowDomStyleInjectorService;
|
|
39715
39731
|
this.selectControl.valueChanges.subscribe((value) => {
|
|
39716
39732
|
if (this.isMultiSelect) {
|
|
39717
|
-
this.
|
|
39733
|
+
this.updateSelectedLabels(value);
|
|
39718
39734
|
this.formValueSignal.set(value ?? []);
|
|
39719
39735
|
}
|
|
39720
39736
|
this.onChange(value);
|
|
@@ -39765,30 +39781,61 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
|
|
|
39765
39781
|
}
|
|
39766
39782
|
isAllSelectedSignal = computed(() => {
|
|
39767
39783
|
const currentValues = this.formValueSignal();
|
|
39768
|
-
|
|
39784
|
+
const rawOptions = this.allRawOptions();
|
|
39785
|
+
if (!Array.isArray(currentValues) || !currentValues.length || !Array.isArray(rawOptions) || !rawOptions.length) {
|
|
39769
39786
|
return false;
|
|
39770
|
-
|
|
39787
|
+
}
|
|
39788
|
+
if (this.isGrouped) {
|
|
39789
|
+
const totalElementsCount = rawOptions.reduce((sum, group) => {
|
|
39790
|
+
return sum + (Array.isArray(group.items) ? group.items.length : 0);
|
|
39791
|
+
}, 0);
|
|
39792
|
+
return currentValues.length === totalElementsCount;
|
|
39793
|
+
}
|
|
39794
|
+
return currentValues.length === rawOptions.length;
|
|
39771
39795
|
});
|
|
39772
|
-
|
|
39796
|
+
getInputValue(event2) {
|
|
39773
39797
|
const input2 = event2.target;
|
|
39774
|
-
|
|
39798
|
+
return input2.value || "";
|
|
39799
|
+
}
|
|
39800
|
+
onCustomSearch(value) {
|
|
39801
|
+
const text = value.toLowerCase().trim();
|
|
39775
39802
|
const raw = this.allRawOptions();
|
|
39776
39803
|
if (!text) {
|
|
39777
|
-
this.selectOptions = raw;
|
|
39804
|
+
this.selectOptions = [...raw];
|
|
39778
39805
|
return;
|
|
39779
39806
|
}
|
|
39780
39807
|
const filterFields = (this.filterBy ? this.filterBy : this.optionLabel).split(",").map((field) => field.trim());
|
|
39781
|
-
|
|
39808
|
+
const matchElement = (opt) => {
|
|
39782
39809
|
return filterFields.some((field) => {
|
|
39783
39810
|
const fieldValue = opt[field];
|
|
39784
39811
|
return fieldValue !== void 0 && fieldValue !== null && String(fieldValue).toLowerCase().includes(text);
|
|
39785
39812
|
});
|
|
39786
|
-
}
|
|
39813
|
+
};
|
|
39814
|
+
if (this.isGrouped) {
|
|
39815
|
+
this.selectOptions = raw.map((group) => {
|
|
39816
|
+
const filteredItems = Array.isArray(group.items) ? group.items.filter((item) => matchElement(item)) : [];
|
|
39817
|
+
return __spreadProps(__spreadValues({}, group), { items: filteredItems });
|
|
39818
|
+
}).filter((group) => group.items.length > 0);
|
|
39819
|
+
} else {
|
|
39820
|
+
this.selectOptions = raw.filter((opt) => matchElement(opt));
|
|
39821
|
+
}
|
|
39787
39822
|
}
|
|
39788
39823
|
toggleSelectAll(event2) {
|
|
39789
39824
|
const isChecked = typeof event2 === "boolean" ? event2 : event2?.checked;
|
|
39790
39825
|
if (isChecked) {
|
|
39791
|
-
const
|
|
39826
|
+
const rawOptions = this.allRawOptions();
|
|
39827
|
+
let allIds = [];
|
|
39828
|
+
if (this.isGrouped) {
|
|
39829
|
+
allIds = rawOptions.reduce((acc, group) => {
|
|
39830
|
+
if (Array.isArray(group.items)) {
|
|
39831
|
+
const groupIds = group.items.map((item) => item[this.optionValue]);
|
|
39832
|
+
return acc.concat(groupIds);
|
|
39833
|
+
}
|
|
39834
|
+
return acc;
|
|
39835
|
+
}, []);
|
|
39836
|
+
} else {
|
|
39837
|
+
allIds = rawOptions.map((opt) => opt[this.optionValue]);
|
|
39838
|
+
}
|
|
39792
39839
|
this.selectControl.setValue(allIds);
|
|
39793
39840
|
this.formValueSignal.set(allIds);
|
|
39794
39841
|
} else {
|
|
@@ -39797,6 +39844,38 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
|
|
|
39797
39844
|
}
|
|
39798
39845
|
this.onSelectChange.emit();
|
|
39799
39846
|
}
|
|
39847
|
+
updateSelectedLabels(value) {
|
|
39848
|
+
const selectedValues = value || [];
|
|
39849
|
+
if (!selectedValues.length) {
|
|
39850
|
+
this.selectedItemsLabel = "";
|
|
39851
|
+
return;
|
|
39852
|
+
}
|
|
39853
|
+
if (selectedValues.length > 3) {
|
|
39854
|
+
this.selectedItemsLabel = `Selected ${this.label}: ${selectedValues.length}`;
|
|
39855
|
+
return;
|
|
39856
|
+
}
|
|
39857
|
+
const rawOptions = this.allRawOptions();
|
|
39858
|
+
const selectedLabels = [];
|
|
39859
|
+
const selectedSet = new Set(selectedValues.map((id) => id));
|
|
39860
|
+
if (this.isGrouped) {
|
|
39861
|
+
for (const group of rawOptions) {
|
|
39862
|
+
if (Array.isArray(group.items)) {
|
|
39863
|
+
for (const item of group.items) {
|
|
39864
|
+
if (selectedSet.has(item[this.optionValue])) {
|
|
39865
|
+
selectedLabels.push(item[this.optionLabel]);
|
|
39866
|
+
}
|
|
39867
|
+
}
|
|
39868
|
+
}
|
|
39869
|
+
}
|
|
39870
|
+
} else {
|
|
39871
|
+
for (const opt of rawOptions) {
|
|
39872
|
+
if (selectedSet.has(opt[this.optionValue])) {
|
|
39873
|
+
selectedLabels.push(opt[this.optionLabel]);
|
|
39874
|
+
}
|
|
39875
|
+
}
|
|
39876
|
+
}
|
|
39877
|
+
this.selectedItemsLabel = selectedLabels.length > 0 ? selectedLabels.join(", ") : `Selected ${this.label}: ${selectedValues.length}`;
|
|
39878
|
+
}
|
|
39800
39879
|
static \u0275fac = function DmSelectLibComponent_Factory(__ngFactoryType__) {
|
|
39801
39880
|
return new (__ngFactoryType__ || _DmSelectLibComponent)(\u0275\u0275directiveInject(ElementRef), \u0275\u0275directiveInject(ShadowDomStyleInjectorService));
|
|
39802
39881
|
};
|
|
@@ -39806,12 +39885,12 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
|
|
|
39806
39885
|
useExisting: forwardRef(() => _DmSelectLibComponent),
|
|
39807
39886
|
multi: true
|
|
39808
39887
|
}
|
|
39809
|
-
]), \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) {
|
|
39888
|
+
]), \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) {
|
|
39810
39889
|
if (rf & 1) {
|
|
39811
39890
|
\u0275\u0275elementStart(0, "div", 4, 0)(2, "label", 5);
|
|
39812
39891
|
\u0275\u0275text(3);
|
|
39813
39892
|
\u0275\u0275elementEnd();
|
|
39814
|
-
\u0275\u0275template(4, DmSelectLibComponent_Conditional_4_Template, 5, 19, "p-select", 6)(5, DmSelectLibComponent_Conditional_5_Template,
|
|
39893
|
+
\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");
|
|
39815
39894
|
\u0275\u0275elementEnd();
|
|
39816
39895
|
}
|
|
39817
39896
|
if (rf & 2) {
|
|
@@ -39911,7 +39990,7 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
|
|
|
39911
39990
|
[selectedItemsLabel]="selectedItemsLabel"
|
|
39912
39991
|
[formControl]="selectControl"
|
|
39913
39992
|
(onPanelShow)="isDropdownOpen = true"
|
|
39914
|
-
(onPanelHide)="isDropdownOpen = false"
|
|
39993
|
+
(onPanelHide)="isDropdownOpen = false; onCustomSearch('')"
|
|
39915
39994
|
(blur)="isFocused = false"
|
|
39916
39995
|
(focus)="isFocused = true"
|
|
39917
39996
|
[appendTo]="appendToBody ? 'body' : null"
|
|
@@ -39927,6 +40006,9 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
|
|
|
39927
40006
|
[showToggleAll]="false"
|
|
39928
40007
|
[showHeader]="false"
|
|
39929
40008
|
>
|
|
40009
|
+
<ng-template pTemplate="selectedItems">
|
|
40010
|
+
<span>{{ selectedItemsLabel }}</span>
|
|
40011
|
+
</ng-template>
|
|
39930
40012
|
<ng-template pTemplate="header">
|
|
39931
40013
|
@if(filter) {
|
|
39932
40014
|
<div class="p-multiselect-header">
|
|
@@ -39935,8 +40017,8 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
|
|
|
39935
40017
|
[ngModel]="isAllSelectedSignal()"
|
|
39936
40018
|
(onChange)="toggleSelectAll($event)"
|
|
39937
40019
|
ariaLabel="Toggle All"
|
|
40020
|
+
[disabled]="!allRawOptions().length"
|
|
39938
40021
|
/>
|
|
39939
|
-
|
|
39940
40022
|
<div class="p-multiselect-filter-container">
|
|
39941
40023
|
<div class="p-iconfield p-iconfield-left">
|
|
39942
40024
|
|
|
@@ -39944,9 +40026,10 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
|
|
|
39944
40026
|
type="text"
|
|
39945
40027
|
role="searchbox"
|
|
39946
40028
|
[placeholder]="filterPlaceHolder"
|
|
39947
|
-
(input)="onCustomSearch($event)"
|
|
40029
|
+
(input)="onCustomSearch(getInputValue($event))"
|
|
39948
40030
|
class="p-inputtext p-component p-multiselect-filter"
|
|
39949
40031
|
autocomplete="off"
|
|
40032
|
+
(click)="$event.stopPropagation()"
|
|
39950
40033
|
/>
|
|
39951
40034
|
|
|
39952
40035
|
<span class="p-inputicon">
|