@everymatrix/stage-dm-select 1.0.0 → 1.0.16

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/main.js CHANGED
@@ -53927,6 +53927,7 @@ var ApiHandlerService = class _ApiHandlerService {
53927
53927
 
53928
53928
  // libs/shared/data-access/utils/src/lib/services/session.service.ts
53929
53929
  var SessionService = class _SessionService {
53930
+ intervalSub = null;
53930
53931
  sessionDataSubject = new BehaviorSubject(null);
53931
53932
  sessionData$ = this.sessionDataSubject.asObservable();
53932
53933
  get sessionData() {
@@ -53955,8 +53956,16 @@ var SessionService = class _SessionService {
53955
53956
  this.sessionDataSubject.next(newSessionData);
53956
53957
  }
53957
53958
  };
53959
+ resetSession() {
53960
+ this.setInitData(null);
53961
+ this.setupHeaders();
53962
+ }
53963
+ setInitData(data) {
53964
+ this.sessionDataSubject.next(data);
53965
+ }
53958
53966
  setupHeaders() {
53959
- interval(12e5).pipe(startWith(0)).subscribe(() => this.getHeaders());
53967
+ this.intervalSub?.unsubscribe();
53968
+ this.intervalSub = interval(12e5).pipe(startWith(0)).subscribe(() => this.getHeaders());
53960
53969
  }
53961
53970
  static \u0275fac = function SessionService_Factory(__ngFactoryType__) {
53962
53971
  return new (__ngFactoryType__ || _SessionService)();
@@ -54072,6 +54081,20 @@ var uiGridCustomStyles = `
54072
54081
  ui-grid-menu-button .ui-grid-menu .ui-grid-menu-mid {
54073
54082
  overflow: scroll;
54074
54083
  }
54084
+
54085
+ .ui-grid-viewport {
54086
+ &::-webkit-scrollbar {
54087
+ width: 6px;
54088
+ height: 6px;
54089
+ background: #fff;
54090
+ z-index: 999999;
54091
+ }
54092
+
54093
+ &::-webkit-scrollbar-thumb {
54094
+ border-radius: 5px;
54095
+ background: #9aa6bc;
54096
+ }
54097
+ }
54075
54098
  `;
54076
54099
 
54077
54100
  // libs/shared/data-access/utils/src/lib/services/shadow-dom-style-injector.service.ts
@@ -54205,13 +54228,14 @@ var UiGridCommonService = class _UiGridCommonService {
54205
54228
  return {
54206
54229
  restrict: "E",
54207
54230
  scope: {},
54208
- template: `<div ui-grid="options" class="grid ui-grid-selectable" ng-show="options.isVisible"
54231
+ template: `<div ui-grid="options" class="grid ui-grid-selectable" ng-show="options.isVisible" ng-style="{ 'height': (options.scrollHeight || 360) + 'px' }"
54209
54232
  ui-grid-grouping
54210
54233
  ui-grid-auto-resize
54211
54234
  ui-grid-infinite-scroll
54212
54235
  ui-grid-resize-columns
54213
54236
  ui-grid-pinning
54214
54237
  ui-grid-selection
54238
+ ui-grid-pagination
54215
54239
  ui-grid-move-columns>
54216
54240
  <div class="data-loading-board" ng-if="options.dataLoading">Loading data ...</div>
54217
54241
  <div class="watermark-board" ng-if="!options.dataLoading && !options.data.length">No data available</div>
@@ -54263,6 +54287,22 @@ var UiGridCommonService = class _UiGridCommonService {
54263
54287
  return ngAppEl.getAttribute("ng-app");
54264
54288
  return null;
54265
54289
  }
54290
+ static init(element2, module2) {
54291
+ try {
54292
+ if (!_UiGridCommonService.getAngularJsMainModuleName()) {
54293
+ if (!_UiGridCommonService.isAngularjsModuleDefined(module2)) {
54294
+ _UiGridCommonService.initAngularjsApp(module2);
54295
+ }
54296
+ if (!_UiGridCommonService.isElementBootstrapped(element2)) {
54297
+ _UiGridCommonService.bootstrapAngularjsApp(element2, module2);
54298
+ }
54299
+ } else {
54300
+ _UiGridCommonService.compileAngularjsApp(element2);
54301
+ }
54302
+ } catch (error) {
54303
+ console.error(`Failed to init angularjs module ${module2}: `, error);
54304
+ }
54305
+ }
54266
54306
  getUniqueId() {
54267
54307
  const id = Date.now().toString(36) + Math.random().toString(36).substring(2);
54268
54308
  if (this._uniqueIds.includes(id))
@@ -54418,7 +54458,6 @@ var TemplateService = class _TemplateService {
54418
54458
  if (template && (template.errorCode || template.successful === "false")) {
54419
54459
  throw new Error(template.message);
54420
54460
  }
54421
- this.template.set(template || null);
54422
54461
  return template;
54423
54462
  }));
54424
54463
  }
@@ -54446,13 +54485,41 @@ var TemplateService = class _TemplateService {
54446
54485
  };
54447
54486
  return this.apiHandlerService.Post(url, body);
54448
54487
  }
54449
- setUrlTemplateId(templateId) {
54488
+ setSearchParams(params) {
54450
54489
  const url = new URL(window.location.href);
54451
- if (url.searchParams.get("templateId") !== templateId) {
54452
- url.searchParams.set("templateId", templateId);
54490
+ const currentQueryParams = Object.keys(params).reduce((acc, key) => {
54491
+ acc[key] = url.searchParams.get(key);
54492
+ return acc;
54493
+ }, {});
54494
+ Object.keys(params).forEach((key) => params[key] ? url.searchParams.set(key, params[key]) : url.searchParams.delete(key));
54495
+ const updatedQueryParams = Object.keys(params).reduce((acc, key) => {
54496
+ acc[key] = url.searchParams.get(key);
54497
+ return acc;
54498
+ }, {});
54499
+ const isParamsChanged = Object.keys(params).some((key) => currentQueryParams[key] !== updatedQueryParams[key]);
54500
+ if (isParamsChanged) {
54453
54501
  window.history.pushState({}, "", url.toString());
54454
54502
  }
54455
54503
  }
54504
+ updateTemplateList(template) {
54505
+ this.templatesList.update((arr) => {
54506
+ const list = [...arr];
54507
+ const index = list.findIndex((t) => t.template_id === template.template_id);
54508
+ if (index !== -1) {
54509
+ list[index] = template;
54510
+ } else {
54511
+ list.push(template);
54512
+ }
54513
+ return list;
54514
+ });
54515
+ }
54516
+ baseTemplate() {
54517
+ const url = new URL(window.location.href);
54518
+ const templateName = url.searchParams.get("templateName");
54519
+ const modificationId = url.searchParams.get("modificationId");
54520
+ const templateId = url.searchParams.get("templateId");
54521
+ return templateName && modificationId && templateId ? this.templatesList().find((item) => item.template_id === templateId && !item.is_temporary) : null;
54522
+ }
54456
54523
  get templateChangedSubject() {
54457
54524
  return this.templateChanged;
54458
54525
  }
@@ -54479,7 +54546,8 @@ var REPORTS = {
54479
54546
  MM_VERIFICATION: {
54480
54547
  reportId: 100,
54481
54548
  reportName: "Verification Report",
54482
- reportKey: "mm_verification_report"
54549
+ reportKey: "mm_verification_report",
54550
+ exportReportName: "verification_report"
54483
54551
  }
54484
54552
  };
54485
54553
 
@@ -54558,6 +54626,12 @@ var SendingService = class _SendingService {
54558
54626
  apiHandlerService = inject(ApiHandlerService);
54559
54627
  sessionService = inject(SessionService);
54560
54628
  httpClient = inject(HttpClient);
54629
+ fileNameVariables = [
54630
+ { "id": "template_name", "name": "template_name" },
54631
+ { "id": "schedule_name", "name": "schedule_name" },
54632
+ { "id": "timestamp", "name": "timestamp" },
54633
+ { "id": "uuid", "name": "uuid" }
54634
+ ];
54561
54635
  getSchedules(reportId, templateId, domainId) {
54562
54636
  const url = this.apiHandlerService.getACSBaseUrl("get_report_schedules", "ce");
54563
54637
  const body = {
@@ -54600,7 +54674,7 @@ var SendingService = class _SendingService {
54600
54674
  connection_type: destination,
54601
54675
  connection_id: connectionId,
54602
54676
  folder_name: folderName,
54603
- filename_format: fileName,
54677
+ filename_format: this.convertString(fileName, this.fileNameVariables),
54604
54678
  timestamp_format: dateTimeFormat
54605
54679
  };
54606
54680
  const report = Object.values(REPORTS).find((r) => r.reportId === report_id);
@@ -54677,12 +54751,12 @@ var SendingService = class _SendingService {
54677
54751
  return response;
54678
54752
  }));
54679
54753
  }
54680
- deleteSchedule(domainId, scheduleId) {
54754
+ deleteSchedule(domainId, scheduleId, scheduleGroupId) {
54681
54755
  const body = {
54682
54756
  p_report_params: {
54683
54757
  p_domains: [domainId],
54684
54758
  p_operation_type: "2",
54685
- p_schedule_group_id: null,
54759
+ p_schedule_group_id: scheduleGroupId,
54686
54760
  p_schedule_id: scheduleId
54687
54761
  }
54688
54762
  };
@@ -54733,6 +54807,16 @@ var SendingService = class _SendingService {
54733
54807
  }
54734
54808
  return;
54735
54809
  }
54810
+ convertString(inputString, variablesArray) {
54811
+ let result = inputString;
54812
+ const sortedVariables = [...variablesArray].sort((a, b) => b.id.length - a.id.length);
54813
+ for (const variable of sortedVariables) {
54814
+ const regex = new RegExp(`#${variable.id}(?=[^a-zA-Z]|$)`, "g");
54815
+ result = result ? result.replace(regex, `{${variable.id}}`) : "";
54816
+ }
54817
+ result = result ? result.replace(/##/g, "#") : "";
54818
+ return result;
54819
+ }
54736
54820
  static \u0275fac = function SendingService_Factory(__ngFactoryType__) {
54737
54821
  return new (__ngFactoryType__ || _SendingService)();
54738
54822
  };
@@ -54745,6 +54829,49 @@ var SendingService = class _SendingService {
54745
54829
  }], null, null);
54746
54830
  })();
54747
54831
 
54832
+ // libs/shared/data-access/utils/src/lib/services/tracing-info.service.ts
54833
+ var TracingInfoService = class _TracingInfoService {
54834
+ intervalSub = null;
54835
+ tracingInfoSubject = new BehaviorSubject(null);
54836
+ tracingInfoData$ = this.tracingInfoSubject.asObservable();
54837
+ constructor() {
54838
+ this.setupTracingInfo();
54839
+ }
54840
+ getTracingInfo() {
54841
+ window.postMessage({ type: "GetTracingInfo" }, "*");
54842
+ window.addEventListener("message", this.listener);
54843
+ }
54844
+ listener = (e) => {
54845
+ if (e.data?.type === "SetTracingInfo") {
54846
+ window.removeEventListener("message", this.listener);
54847
+ this.tracingInfoSubject.next(e.data.payload);
54848
+ }
54849
+ };
54850
+ resetTracingInfo() {
54851
+ this.setInitData(null);
54852
+ this.setupTracingInfo();
54853
+ }
54854
+ setInitData(data) {
54855
+ this.tracingInfoSubject.next(data);
54856
+ }
54857
+ setupTracingInfo() {
54858
+ this.intervalSub?.unsubscribe();
54859
+ this.intervalSub = interval(12e5).pipe(startWith(0)).subscribe(() => this.getTracingInfo());
54860
+ }
54861
+ static \u0275fac = function TracingInfoService_Factory(__ngFactoryType__) {
54862
+ return new (__ngFactoryType__ || _TracingInfoService)();
54863
+ };
54864
+ static \u0275prov = /* @__PURE__ */ \u0275\u0275defineInjectable({ token: _TracingInfoService, factory: _TracingInfoService.\u0275fac, providedIn: "root" });
54865
+ };
54866
+ (() => {
54867
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(TracingInfoService, [{
54868
+ type: Injectable,
54869
+ args: [{
54870
+ providedIn: "root"
54871
+ }]
54872
+ }], () => [], null);
54873
+ })();
54874
+
54748
54875
  // node_modules/@angular/platform-browser/fesm2022/animations/async.mjs
54749
54876
  var ANIMATION_PREFIX = "@";
54750
54877
  var AsyncAnimationRendererFactory = class _AsyncAnimationRendererFactory {
@@ -60755,7 +60882,7 @@ var commonSelectStyles = `
60755
60882
  }
60756
60883
  }
60757
60884
 
60758
- .p-multiselect-list-container, .p-select-list-container {
60885
+ .p-multiselect-list-container, .p-select-list-container, .p-autocomplete-list-container {
60759
60886
  font-size: 14px;
60760
60887
  &::-webkit-scrollbar {
60761
60888
  width: 6px;
@@ -60826,12 +60953,12 @@ var primengCustomPreset = definePreset(lara_default, {
60826
60953
  paddingX: "12px",
60827
60954
  paddingY: "8px",
60828
60955
  css: () => `
60829
- .form-control-field {
60956
+ .form-control-field, .p-autocomplete-input {
60830
60957
  &:focus-visible {
60831
60958
  box-shadow: 0px 0px 0px 4px rgba(0, 118, 221, 0.16)!important;
60832
60959
  }
60833
60960
  }
60834
- .form-control-field:focus-visible {
60961
+ .form-control-field:focus-visible, .p-autocomplete-input:focus-visible, {
60835
60962
  box-shadow: 0px 0px 0px 4px rgba(0, 118, 221, 0.16)!important;
60836
60963
  }
60837
60964
  .input:focus-visible {
@@ -61009,7 +61136,7 @@ var primengCustomPreset = definePreset(lara_default, {
61009
61136
  height: 16px;
61010
61137
  top: 50%;
61011
61138
  margin: 0;
61012
- transform: translateY(-50%);
61139
+ transform: translate(-4px, -50%);
61013
61140
  }
61014
61141
  }
61015
61142
 
@@ -61115,8 +61242,13 @@ var primengCustomPreset = definePreset(lara_default, {
61115
61242
 
61116
61243
  .datepicker-wrapper, .p-datepicker {
61117
61244
  .p-inputtext {
61118
- padding-inline: 32px;
61119
- }
61245
+ padding-inline: 32px;
61246
+ &:placeholder-shown {
61247
+ padding-inline: unset;
61248
+ padding-inline-start: 32px;
61249
+ padding-inline-end: 12px;
61250
+ }
61251
+ }
61120
61252
  }
61121
61253
 
61122
61254
  .p-datepicker-input-icon-container {
@@ -61248,7 +61380,8 @@ var primengCustomPreset = definePreset(lara_default, {
61248
61380
  }
61249
61381
 
61250
61382
  .p-dialog-content {
61251
- padding: 0 24px 24px 24px;
61383
+ padding: 0 24px 19px 24px;
61384
+ margin-bottom: 5px;
61252
61385
  &::-webkit-scrollbar {
61253
61386
  width: 6px;
61254
61387
  height: 6px;
@@ -61261,6 +61394,10 @@ var primengCustomPreset = definePreset(lara_default, {
61261
61394
  }
61262
61395
  }
61263
61396
 
61397
+ .dialog-content-overflow-visible.p-dialog-content {
61398
+ overflow: visible !important;
61399
+ }
61400
+
61264
61401
  .p-dialog-close-button {
61265
61402
  border-radius: 4px!important;
61266
61403
  &:hover {
@@ -61758,21 +61895,131 @@ function patchDomHandlerGetScrollableParents() {
61758
61895
  }
61759
61896
 
61760
61897
  // libs/shared/data-access/utils/src/lib/strategies/mm-reports/verification-request-body.ts
61898
+ var import_moment3 = __toESM(require_moment());
61899
+
61900
+ // libs/shared/data-access/utils/src/lib/utils/date-hints.ts
61761
61901
  var import_moment2 = __toESM(require_moment());
61902
+ var TimePeriod;
61903
+ (function(TimePeriod2) {
61904
+ TimePeriod2["Today"] = "today";
61905
+ TimePeriod2["Yesterday"] = "yesterday";
61906
+ TimePeriod2["CurrentWeek"] = "current_week";
61907
+ TimePeriod2["CurrentMonth"] = "current_month";
61908
+ TimePeriod2["CurrentQuarter"] = "current_quarter";
61909
+ TimePeriod2["LastMonth"] = "last_month";
61910
+ TimePeriod2["LastQuarter"] = "last_quarter";
61911
+ TimePeriod2["Last30Days"] = "last_30_days";
61912
+ TimePeriod2["CurrentYear"] = "current_year";
61913
+ TimePeriod2["Custom"] = "custom";
61914
+ })(TimePeriod || (TimePeriod = {}));
61915
+ var DATE_HINTS = [
61916
+ {
61917
+ name: "Today",
61918
+ dateAlias: TimePeriod.Today,
61919
+ interval: {
61920
+ start: (0, import_moment2.default)().startOf("day").toDate(),
61921
+ end: (0, import_moment2.default)().endOf("day").toDate()
61922
+ }
61923
+ },
61924
+ {
61925
+ name: "Yesterday",
61926
+ dateAlias: TimePeriod.Yesterday,
61927
+ interval: {
61928
+ start: (0, import_moment2.default)().subtract(1, "days").startOf("day").toDate(),
61929
+ end: (0, import_moment2.default)().subtract(1, "days").endOf("day").toDate()
61930
+ }
61931
+ },
61932
+ {
61933
+ name: "Current Week",
61934
+ dateAlias: TimePeriod.CurrentWeek,
61935
+ interval: {
61936
+ start: (0, import_moment2.default)().startOf("isoWeek").startOf("day").toDate(),
61937
+ end: (0, import_moment2.default)().endOf("day").toDate()
61938
+ }
61939
+ },
61940
+ {
61941
+ name: "Current Month",
61942
+ dateAlias: TimePeriod.CurrentMonth,
61943
+ interval: {
61944
+ start: (0, import_moment2.default)().startOf("month").startOf("day").toDate(),
61945
+ end: (0, import_moment2.default)().endOf("day").toDate()
61946
+ }
61947
+ },
61948
+ {
61949
+ name: "Current Quarter",
61950
+ dateAlias: TimePeriod.CurrentQuarter,
61951
+ interval: {
61952
+ start: (0, import_moment2.default)().startOf("quarter").startOf("day").toDate(),
61953
+ end: (0, import_moment2.default)().endOf("day").toDate()
61954
+ }
61955
+ },
61956
+ {
61957
+ name: "Last Month",
61958
+ dateAlias: TimePeriod.LastMonth,
61959
+ interval: {
61960
+ start: (0, import_moment2.default)().subtract(1, "months").startOf("month").startOf("day").toDate(),
61961
+ end: (0, import_moment2.default)().subtract(1, "months").endOf("month").endOf("day").toDate()
61962
+ }
61963
+ },
61964
+ {
61965
+ name: "Last Quarter",
61966
+ dateAlias: TimePeriod.LastQuarter,
61967
+ interval: {
61968
+ start: (0, import_moment2.default)().subtract(1, "quarter").startOf("quarter").startOf("day").toDate(),
61969
+ end: (0, import_moment2.default)().subtract(1, "quarter").endOf("quarter").endOf("day").toDate()
61970
+ }
61971
+ },
61972
+ {
61973
+ name: "Last 30 Days",
61974
+ dateAlias: TimePeriod.Last30Days,
61975
+ interval: {
61976
+ start: (0, import_moment2.default)().subtract(30, "days").startOf("day").toDate(),
61977
+ end: (0, import_moment2.default)().subtract(1, "day").endOf("day").toDate()
61978
+ }
61979
+ },
61980
+ {
61981
+ name: "Current Year",
61982
+ dateAlias: TimePeriod.CurrentYear,
61983
+ interval: {
61984
+ start: (0, import_moment2.default)().startOf("year").startOf("day").toDate(),
61985
+ end: (0, import_moment2.default)().endOf("day").toDate()
61986
+ }
61987
+ }
61988
+ ];
61989
+
61990
+ // libs/shared/data-access/utils/src/lib/functions/date-transform.ts
61991
+ var dateTransform = (dateType, key) => {
61992
+ const updatedTime = DATE_HINTS.find((item) => item.dateAlias === dateType);
61993
+ return updatedTime?.interval[key];
61994
+ };
61995
+
61996
+ // libs/shared/data-access/utils/src/lib/strategies/mm-reports/verification-request-body.ts
61762
61997
  var VerificationRequestBodyStrategy = class _VerificationRequestBodyStrategy {
61763
61998
  sessionService = inject(SessionService);
61764
61999
  csvLimit = 1e7;
61765
62000
  pageLimit = 100;
61766
- buildRequestBody(config) {
61767
- const { offset = 0, limit, allFilters, formData, columns, executionType, isGrandTotal = false, sorting, template } = config;
62001
+ buildRequestBody(config, tracingInfo) {
62002
+ const { offset = 0, limit, allFilters, formData, columns, executionType, isGrandTotal = false, sorting, template, exportReportName, isSending } = config;
62003
+ let templateName = "";
62004
+ const name = template?.template_name;
62005
+ if (executionType === "csv_load") {
62006
+ if (!name) {
62007
+ templateName = exportReportName;
62008
+ } else if (name.includes(exportReportName) || isSending) {
62009
+ templateName = name;
62010
+ } else {
62011
+ templateName = `${exportReportName}_${name}`;
62012
+ }
62013
+ } else {
62014
+ templateName = name;
62015
+ }
61768
62016
  const result = {
61769
62017
  p_columns: columns,
61770
62018
  p_additional_params: {},
61771
- p_tracing_info: {
61772
- p_template_name: template ? template.template_name : null,
61773
- p_template_id: template ? template.template_id : null,
61774
- p_user_id: this.sessionService.sessionData?.Username
61775
- },
62019
+ p_tracing_info: Object.assign({
62020
+ p_template_name: templateName || null,
62021
+ p_template_id: template ? template.template_id : null
62022
+ }, tracingInfo),
61776
62023
  p_advanced_filtering: {
61777
62024
  p_offset: offset || 0,
61778
62025
  p_limit: executionType === "csv_load" ? this.csvLimit : limit === null ? this.pageLimit : limit,
@@ -61791,17 +62038,23 @@ var VerificationRequestBodyStrategy = class _VerificationRequestBodyStrategy {
61791
62038
  }
61792
62039
  let value;
61793
62040
  if (field_id === "merchant") {
61794
- value = formData["merchant_name"] ?? null;
62041
+ value = this.nullUndefinedOrEmpty(formData["merchant_name"]) ? null : formData["merchant_name"];
61795
62042
  } else {
61796
- value = formData[field_id] ?? null;
62043
+ value = this.nullUndefinedOrEmpty(formData[field_id]) ? null : formData[field_id];
61797
62044
  }
61798
62045
  const prefixedKey = field_id === "merchant_name" ? "p_domains" : `p_${field_id}`;
61799
62046
  if (field.field_data_type === "TIMESTAMP" && value) {
61800
- const { start, end } = value;
61801
- if (start && end) {
62047
+ const { start, end, alias } = value;
62048
+ if (start && end || alias) {
62049
+ let startDate = start;
62050
+ let endDate = end;
62051
+ if (alias && alias !== "custom") {
62052
+ startDate = dateTransform(alias, "start");
62053
+ endDate = dateTransform(alias, "end");
62054
+ }
61802
62055
  value = [
61803
- (0, import_moment2.default)(start).format("YYYY-MM-DD HH:mm:ss.SSS"),
61804
- (0, import_moment2.default)(end).format("YYYY-MM-DD HH:mm:ss.SSS")
62056
+ (0, import_moment3.default)(startDate).format("YYYY-MM-DD HH:mm:ss.SSS"),
62057
+ (0, import_moment3.default)(endDate).format("YYYY-MM-DD HH:mm:ss.SSS")
61805
62058
  ];
61806
62059
  }
61807
62060
  }
@@ -61813,6 +62066,9 @@ var VerificationRequestBodyStrategy = class _VerificationRequestBodyStrategy {
61813
62066
  });
61814
62067
  return result;
61815
62068
  }
62069
+ nullUndefinedOrEmpty(value) {
62070
+ return value === null || value === void 0 || value === "";
62071
+ }
61816
62072
  static \u0275fac = function VerificationRequestBodyStrategy_Factory(__ngFactoryType__) {
61817
62073
  return new (__ngFactoryType__ || _VerificationRequestBodyStrategy)();
61818
62074
  };
@@ -61872,13 +62128,15 @@ function DmSelectLibComponent_Conditional_4_Template(rf, ctx) {
61872
62128
  })("click", function DmSelectLibComponent_Conditional_4_Template_p_select_click_0_listener() {
61873
62129
  \u0275\u0275restoreView(_r1);
61874
62130
  const select_r3 = \u0275\u0275reference(1);
61875
- return \u0275\u0275resetView(select_r3.show());
62131
+ const ctx_r1 = \u0275\u0275nextContext();
62132
+ select_r3.show();
62133
+ return \u0275\u0275resetView(ctx_r1.onClick());
61876
62134
  });
61877
62135
  \u0275\u0275elementEnd();
61878
62136
  }
61879
62137
  if (rf & 2) {
61880
62138
  const ctx_r1 = \u0275\u0275nextContext();
61881
- \u0275\u0275property("editable", true)("loading", ctx_r1.loading)("showClear", ctx_r1.showClear)("filterPlaceholder", ctx_r1.filterPlaceHolder)("options", ctx_r1.selectOptions)("filter", ctx_r1.filter)("disabled", ctx_r1.disabled)("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);
62139
+ \u0275\u0275property("editable", true)("loading", ctx_r1.loading)("showClear", ctx_r1.showClear)("filterPlaceholder", ctx_r1.filterPlaceHolder)("options", ctx_r1.selectOptions)("filter", ctx_r1.filter)("disabled", ctx_r1.disabled)("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);
61882
62140
  }
61883
62141
  }
61884
62142
  function DmSelectLibComponent_Conditional_5_Template(rf, ctx) {
@@ -61901,12 +62159,16 @@ function DmSelectLibComponent_Conditional_5_Template(rf, ctx) {
61901
62159
  \u0275\u0275restoreView(_r4);
61902
62160
  const ctx_r1 = \u0275\u0275nextContext();
61903
62161
  return \u0275\u0275resetView(ctx_r1.isFocused = true);
62162
+ })("click", function DmSelectLibComponent_Conditional_5_Template_p_multiselect_click_0_listener() {
62163
+ \u0275\u0275restoreView(_r4);
62164
+ const ctx_r1 = \u0275\u0275nextContext();
62165
+ return \u0275\u0275resetView(ctx_r1.onClick());
61904
62166
  });
61905
62167
  \u0275\u0275elementEnd();
61906
62168
  }
61907
62169
  if (rf & 2) {
61908
62170
  const ctx_r1 = \u0275\u0275nextContext();
61909
- \u0275\u0275property("loading", ctx_r1.loading)("options", ctx_r1.selectOptions)("filter", ctx_r1.filter)("showClear", ctx_r1.showClear)("filterPlaceHolder", ctx_r1.filterPlaceHolder)("disabled", ctx_r1.disabled)("optionValue", ctx_r1.optionValue)("optionLabel", ctx_r1.optionLabel)("optionDisabled", ctx_r1.optionDisabled)("emptyFilterMessage", ctx_r1.emptyFilterMessage)("placeholder", "Select " + ctx_r1.placeholder)("selectedItemsLabel", ctx_r1.selectedItemsLabel)("formControl", ctx_r1.selectControl);
62171
+ \u0275\u0275property("loading", ctx_r1.loading)("options", ctx_r1.selectOptions)("filter", ctx_r1.filter)("showClear", ctx_r1.showClear)("filterPlaceHolder", ctx_r1.filterPlaceHolder)("disabled", ctx_r1.disabled)("optionValue", ctx_r1.optionValue)("optionLabel", ctx_r1.optionLabel)("optionDisabled", ctx_r1.optionDisabled)("emptyFilterMessage", ctx_r1.emptyFilterMessage)("placeholder", "Select " + ctx_r1.placeholder)("selectedItemsLabel", ctx_r1.selectedItemsLabel)("formControl", ctx_r1.selectControl)("appendTo", ctx_r1.appendToBody ? "body" : null);
61910
62172
  }
61911
62173
  }
61912
62174
  function DmSelectLibComponent_Conditional_6_Template(rf, ctx) {
@@ -62042,10 +62304,15 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
62042
62304
  isFocused = false;
62043
62305
  showClear = true;
62044
62306
  attachedToShadowDom = signal(false);
62307
+ appendToBody = false;
62045
62308
  onChange = () => {
62046
62309
  };
62047
62310
  onTouched = () => {
62048
62311
  };
62312
+ /**
62313
+ * Emits when dropdown is opened
62314
+ */
62315
+ openState = new EventEmitter();
62049
62316
  constructor(elementRef, shadowDomStyleInjectorService) {
62050
62317
  this.elementRef = elementRef;
62051
62318
  this.shadowDomStyleInjectorService = shadowDomStyleInjectorService;
@@ -62092,21 +62359,26 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
62092
62359
  this.selectControl.enable();
62093
62360
  }
62094
62361
  }
62362
+ onClick() {
62363
+ setTimeout(() => {
62364
+ this.openState.emit();
62365
+ });
62366
+ }
62095
62367
  static \u0275fac = function DmSelectLibComponent_Factory(__ngFactoryType__) {
62096
62368
  return new (__ngFactoryType__ || _DmSelectLibComponent)(\u0275\u0275directiveInject(ElementRef), \u0275\u0275directiveInject(ShadowDomStyleInjectorService));
62097
62369
  };
62098
- static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _DmSelectLibComponent, selectors: [["lib-dm-select-lib"]], inputs: { label: "label", placeholder: "placeholder", disabled: [2, "disabled", "disabled", booleanAttribute], isRequired: [2, "isRequired", "isRequired", booleanAttribute], isMultiSelect: [2, "isMultiSelect", "isMultiSelect", booleanAttribute], filter: [2, "filter", "filter", booleanAttribute], value: "value", options: "options", optionValue: "optionValue", optionLabel: "optionLabel", optionDisabled: "optionDisabled", emptyFilterMessage: "emptyFilterMessage", filterPlaceHolder: "filterPlaceHolder", loading: "loading", hint: [1, "hint"], permanentHint: [1, "permanentHint"] }, features: [\u0275\u0275ProvidersFeature([
62370
+ static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _DmSelectLibComponent, selectors: [["lib-dm-select-lib"]], inputs: { label: "label", placeholder: "placeholder", disabled: [2, "disabled", "disabled", booleanAttribute], isRequired: [2, "isRequired", "isRequired", booleanAttribute], isMultiSelect: [2, "isMultiSelect", "isMultiSelect", booleanAttribute], filter: [2, "filter", "filter", booleanAttribute], value: "value", options: "options", optionValue: "optionValue", optionLabel: "optionLabel", optionDisabled: "optionDisabled", emptyFilterMessage: "emptyFilterMessage", filterPlaceHolder: "filterPlaceHolder", loading: "loading", hint: [1, "hint"], permanentHint: [1, "permanentHint"], appendToBody: [2, "appendToBody", "appendToBody", booleanAttribute] }, outputs: { openState: "openState" }, features: [\u0275\u0275ProvidersFeature([
62099
62371
  {
62100
62372
  provide: NG_VALUE_ACCESSOR,
62101
62373
  useExisting: forwardRef(() => _DmSelectLibComponent),
62102
62374
  multi: true
62103
62375
  }
62104
- ]), \u0275\u0275InputTransformsFeature, \u0275\u0275NgOnChangesFeature], decls: 9, vars: 8, consts: [["wrapper", ""], ["select", ""], ["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"], ["inputId", "selectId", 3, "loading", "options", "filter", "showClear", "filterPlaceHolder", "disabled", "optionValue", "optionLabel", "optionDisabled", "emptyFilterMessage", "placeholder", "selectedItemsLabel", "formControl"], ["inputId", "selectId", 3, "onShow", "onHide", "blur", "focus", "click", "editable", "loading", "showClear", "filterPlaceholder", "options", "filter", "disabled", "optionValue", "optionLabel", "optionDisabled", "emptyFilterMessage", "placeholder", "formControl"], ["inputId", "selectId", 3, "onPanelShow", "onPanelHide", "blur", "focus", "loading", "options", "filter", "showClear", "filterPlaceHolder", "disabled", "optionValue", "optionLabel", "optionDisabled", "emptyFilterMessage", "placeholder", "selectedItemsLabel", "formControl"], [1, "form-control-error-message"], [1, "form-control-hint-message"]], template: function DmSelectLibComponent_Template(rf, ctx) {
62376
+ ]), \u0275\u0275InputTransformsFeature, \u0275\u0275NgOnChangesFeature], decls: 9, vars: 8, consts: [["wrapper", ""], ["select", ""], ["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"], ["inputId", "selectId", 3, "loading", "options", "filter", "showClear", "filterPlaceHolder", "disabled", "optionValue", "optionLabel", "optionDisabled", "emptyFilterMessage", "placeholder", "selectedItemsLabel", "formControl", "appendTo"], ["inputId", "selectId", 3, "onShow", "onHide", "blur", "focus", "click", "editable", "loading", "showClear", "filterPlaceholder", "options", "filter", "disabled", "optionValue", "optionLabel", "optionDisabled", "emptyFilterMessage", "placeholder", "formControl", "appendTo"], ["inputId", "selectId", 3, "onPanelShow", "onPanelHide", "blur", "focus", "click", "loading", "options", "filter", "showClear", "filterPlaceHolder", "disabled", "optionValue", "optionLabel", "optionDisabled", "emptyFilterMessage", "placeholder", "selectedItemsLabel", "formControl", "appendTo"], [1, "form-control-error-message"], [1, "form-control-hint-message"]], template: function DmSelectLibComponent_Template(rf, ctx) {
62105
62377
  if (rf & 1) {
62106
62378
  \u0275\u0275elementStart(0, "div", 3, 0)(2, "label", 4);
62107
62379
  \u0275\u0275text(3);
62108
62380
  \u0275\u0275elementEnd();
62109
- \u0275\u0275template(4, DmSelectLibComponent_Conditional_4_Template, 2, 13, "p-select", 5)(5, DmSelectLibComponent_Conditional_5_Template, 2, 13, "p-multiselect", 6)(6, DmSelectLibComponent_Conditional_6_Template, 3, 0, "div")(7, DmSelectLibComponent_Conditional_7_Template, 3, 1, "div")(8, DmSelectLibComponent_Conditional_8_Template, 3, 1, "div");
62381
+ \u0275\u0275template(4, DmSelectLibComponent_Conditional_4_Template, 2, 14, "p-select", 5)(5, DmSelectLibComponent_Conditional_5_Template, 2, 14, "p-multiselect", 6)(6, DmSelectLibComponent_Conditional_6_Template, 3, 0, "div")(7, DmSelectLibComponent_Conditional_7_Template, 3, 1, "div")(8, DmSelectLibComponent_Conditional_8_Template, 3, 1, "div");
62110
62382
  \u0275\u0275elementEnd();
62111
62383
  }
62112
62384
  if (rf & 2) {
@@ -62122,7 +62394,7 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
62122
62394
  \u0275\u0275advance();
62123
62395
  \u0275\u0275conditional(ctx.hint() && ctx.permanentHint() && !ctx.selectControl.invalid ? 8 : -1);
62124
62396
  }
62125
- }, dependencies: [SelectModule, Select, MultiSelectModule, MultiSelect, ReactiveFormsModule, NgControlStatus, FormControlDirective, NgStyle], styles: ['/* node_modules/modern-normalize/modern-normalize.css */\n*,\n::before,\n::after {\n box-sizing: border-box;\n}\nhtml {\n font-family:\n system-ui,\n "Segoe UI",\n Roboto,\n Helvetica,\n Arial,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji";\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n tab-size: 4;\n}\nbody {\n margin: 0;\n}\nb,\nstrong {\n font-weight: bolder;\n}\ncode,\nkbd,\nsamp,\npre {\n font-family:\n ui-monospace,\n SFMono-Regular,\n Consolas,\n "Liberation Mono",\n Menlo,\n monospace;\n font-size: 1em;\n}\nsmall {\n font-size: 80%;\n}\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsub {\n bottom: -0.25em;\n}\nsup {\n top: -0.5em;\n}\ntable {\n border-color: currentcolor;\n}\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n}\nbutton,\n[type=button],\n[type=reset],\n[type=submit] {\n -webkit-appearance: button;\n}\nlegend {\n padding: 0;\n}\nprogress {\n vertical-align: baseline;\n}\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n[type=search] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n}\nsummary {\n display: list-item;\n}\n\n/* libs/components/dm-select-lib/src/lib/dm-select-lib/dm-select-lib.component.scss */\n* {\n font-family:\n Inter,\n Arial,\n serif;\n caret-color: transparent !important;\n}\ninput,\ntextarea,\n[contenteditable=true] {\n caret-color: auto !important;\n}\nbody {\n margin: 0;\n padding: 0;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin: 0;\n padding: 0;\n}\n.input:focus-visible {\n box-shadow: 0px 0px 0px 4px rgba(0, 118, 221, 0.16) !important;\n}\n.form-control-container {\n display: flex;\n flex-direction: column;\n gap: 4px;\n font-size: 14px;\n line-height: 18px;\n font-variant-numeric: lining-nums tabular-nums;\n font-weight: 400;\n cursor: pointer;\n position: relative;\n}\n.form-control-container .form-control-label {\n color: #4a5469;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 18px;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n position: relative;\n}\n.form-control-container .form-control-field {\n font-size: 14px;\n color: #252a34;\n font-weight: 400;\n line-height: 18px;\n font-style: normal;\n font-variant-numeric: lining-nums tabular-nums;\n width: 100%;\n}\n.form-control-container .form-control-error-message {\n font-size: 12px;\n color: #d6421e;\n margin-top: 2px;\n}\n.form-control-container .form-control-hint-message {\n color: #4a5469;\n font-size: 12px;\n margin-top: 2px;\n}\n/*! Bundled license information:\n\nmodern-normalize/modern-normalize.css:\n (*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize *)\n*/\n/*# sourceMappingURL=dm-select-lib.component.css.map */\n'], encapsulation: 3, changeDetection: 0 });
62397
+ }, dependencies: [SelectModule, Select, MultiSelectModule, MultiSelect, ReactiveFormsModule, NgControlStatus, FormControlDirective, NgStyle], styles: ['/* node_modules/modern-normalize/modern-normalize.css */\n*,\n::before,\n::after {\n box-sizing: border-box;\n}\nhtml {\n font-family:\n system-ui,\n "Segoe UI",\n Roboto,\n Helvetica,\n Arial,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji";\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n tab-size: 4;\n}\nbody {\n margin: 0;\n}\nb,\nstrong {\n font-weight: bolder;\n}\ncode,\nkbd,\nsamp,\npre {\n font-family:\n ui-monospace,\n SFMono-Regular,\n Consolas,\n "Liberation Mono",\n Menlo,\n monospace;\n font-size: 1em;\n}\nsmall {\n font-size: 80%;\n}\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsub {\n bottom: -0.25em;\n}\nsup {\n top: -0.5em;\n}\ntable {\n border-color: currentcolor;\n}\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n}\nbutton,\n[type=button],\n[type=reset],\n[type=submit] {\n -webkit-appearance: button;\n}\nlegend {\n padding: 0;\n}\nprogress {\n vertical-align: baseline;\n}\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n[type=search] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n}\nsummary {\n display: list-item;\n}\n\n/* libs/components/dm-select-lib/src/lib/dm-select-lib/dm-select-lib.component.scss */\n* {\n font-family:\n Inter,\n Arial,\n serif;\n caret-color: transparent !important;\n}\ninput,\ntextarea,\n[contenteditable=true] {\n caret-color: auto !important;\n}\nbody {\n margin: 0;\n padding: 0;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin: 0;\n padding: 0;\n}\n.input:focus-visible {\n box-shadow: 0px 0px 0px 4px rgba(0, 118, 221, 0.16) !important;\n}\n.form-control-container {\n display: flex;\n flex-direction: column;\n gap: 4px;\n font-size: 14px;\n line-height: 18px;\n font-variant-numeric: lining-nums tabular-nums;\n font-weight: 400;\n cursor: pointer;\n position: relative;\n}\n.form-control-container .form-control-label {\n color: #4a5469;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 18px;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n position: relative;\n}\n.form-control-container .form-control-field,\n.form-control-container .p-autocomplete-input {\n font-size: 14px;\n color: #252a34;\n font-weight: 400;\n line-height: 18px;\n font-style: normal;\n font-variant-numeric: lining-nums tabular-nums;\n width: 100%;\n}\n.form-control-container .form-control-error-message {\n font-size: 12px;\n color: #d6421e;\n margin-top: 2px;\n}\n.form-control-container .form-control-hint-message {\n color: #4a5469;\n font-size: 12px;\n margin-top: 2px;\n}\n/*! Bundled license information:\n\nmodern-normalize/modern-normalize.css:\n (*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize *)\n*/\n/*# sourceMappingURL=dm-select-lib.component.css.map */\n'], encapsulation: 3, changeDetection: 0 });
62126
62398
  };
62127
62399
  (() => {
62128
62400
  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(DmSelectLibComponent, [{
@@ -62163,7 +62435,8 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
62163
62435
  (onHide)="isDropdownOpen = false"
62164
62436
  (blur)="isFocused = false"
62165
62437
  (focus)="isFocused = true"
62166
- (click)="select.show()"
62438
+ (click)="select.show(); onClick()"
62439
+ [appendTo]="appendToBody ? 'body' : null"
62167
62440
  />
62168
62441
  } @else {
62169
62442
  <p-multiselect
@@ -62186,6 +62459,8 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
62186
62459
  (onPanelHide)="isDropdownOpen = false"
62187
62460
  (blur)="isFocused = false"
62188
62461
  (focus)="isFocused = true"
62462
+ [appendTo]="appendToBody ? 'body' : null"
62463
+ (click)="onClick()"
62189
62464
  ></p-multiselect>
62190
62465
  } @if (selectControl.invalid && selectControl.touched && !isDropdownOpen) {
62191
62466
  <div>
@@ -62201,7 +62476,7 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
62201
62476
  </div>
62202
62477
  }
62203
62478
  </div>
62204
- `, styles: ['/* node_modules/modern-normalize/modern-normalize.css */\n*,\n::before,\n::after {\n box-sizing: border-box;\n}\nhtml {\n font-family:\n system-ui,\n "Segoe UI",\n Roboto,\n Helvetica,\n Arial,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji";\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n tab-size: 4;\n}\nbody {\n margin: 0;\n}\nb,\nstrong {\n font-weight: bolder;\n}\ncode,\nkbd,\nsamp,\npre {\n font-family:\n ui-monospace,\n SFMono-Regular,\n Consolas,\n "Liberation Mono",\n Menlo,\n monospace;\n font-size: 1em;\n}\nsmall {\n font-size: 80%;\n}\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsub {\n bottom: -0.25em;\n}\nsup {\n top: -0.5em;\n}\ntable {\n border-color: currentcolor;\n}\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n}\nbutton,\n[type=button],\n[type=reset],\n[type=submit] {\n -webkit-appearance: button;\n}\nlegend {\n padding: 0;\n}\nprogress {\n vertical-align: baseline;\n}\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n[type=search] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n}\nsummary {\n display: list-item;\n}\n\n/* libs/components/dm-select-lib/src/lib/dm-select-lib/dm-select-lib.component.scss */\n* {\n font-family:\n Inter,\n Arial,\n serif;\n caret-color: transparent !important;\n}\ninput,\ntextarea,\n[contenteditable=true] {\n caret-color: auto !important;\n}\nbody {\n margin: 0;\n padding: 0;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin: 0;\n padding: 0;\n}\n.input:focus-visible {\n box-shadow: 0px 0px 0px 4px rgba(0, 118, 221, 0.16) !important;\n}\n.form-control-container {\n display: flex;\n flex-direction: column;\n gap: 4px;\n font-size: 14px;\n line-height: 18px;\n font-variant-numeric: lining-nums tabular-nums;\n font-weight: 400;\n cursor: pointer;\n position: relative;\n}\n.form-control-container .form-control-label {\n color: #4a5469;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 18px;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n position: relative;\n}\n.form-control-container .form-control-field {\n font-size: 14px;\n color: #252a34;\n font-weight: 400;\n line-height: 18px;\n font-style: normal;\n font-variant-numeric: lining-nums tabular-nums;\n width: 100%;\n}\n.form-control-container .form-control-error-message {\n font-size: 12px;\n color: #d6421e;\n margin-top: 2px;\n}\n.form-control-container .form-control-hint-message {\n color: #4a5469;\n font-size: 12px;\n margin-top: 2px;\n}\n/*! Bundled license information:\n\nmodern-normalize/modern-normalize.css:\n (*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize *)\n*/\n/*# sourceMappingURL=dm-select-lib.component.css.map */\n'] }]
62479
+ `, styles: ['/* node_modules/modern-normalize/modern-normalize.css */\n*,\n::before,\n::after {\n box-sizing: border-box;\n}\nhtml {\n font-family:\n system-ui,\n "Segoe UI",\n Roboto,\n Helvetica,\n Arial,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji";\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n tab-size: 4;\n}\nbody {\n margin: 0;\n}\nb,\nstrong {\n font-weight: bolder;\n}\ncode,\nkbd,\nsamp,\npre {\n font-family:\n ui-monospace,\n SFMono-Regular,\n Consolas,\n "Liberation Mono",\n Menlo,\n monospace;\n font-size: 1em;\n}\nsmall {\n font-size: 80%;\n}\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsub {\n bottom: -0.25em;\n}\nsup {\n top: -0.5em;\n}\ntable {\n border-color: currentcolor;\n}\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n}\nbutton,\n[type=button],\n[type=reset],\n[type=submit] {\n -webkit-appearance: button;\n}\nlegend {\n padding: 0;\n}\nprogress {\n vertical-align: baseline;\n}\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n[type=search] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n}\nsummary {\n display: list-item;\n}\n\n/* libs/components/dm-select-lib/src/lib/dm-select-lib/dm-select-lib.component.scss */\n* {\n font-family:\n Inter,\n Arial,\n serif;\n caret-color: transparent !important;\n}\ninput,\ntextarea,\n[contenteditable=true] {\n caret-color: auto !important;\n}\nbody {\n margin: 0;\n padding: 0;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin: 0;\n padding: 0;\n}\n.input:focus-visible {\n box-shadow: 0px 0px 0px 4px rgba(0, 118, 221, 0.16) !important;\n}\n.form-control-container {\n display: flex;\n flex-direction: column;\n gap: 4px;\n font-size: 14px;\n line-height: 18px;\n font-variant-numeric: lining-nums tabular-nums;\n font-weight: 400;\n cursor: pointer;\n position: relative;\n}\n.form-control-container .form-control-label {\n color: #4a5469;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 18px;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n position: relative;\n}\n.form-control-container .form-control-field,\n.form-control-container .p-autocomplete-input {\n font-size: 14px;\n color: #252a34;\n font-weight: 400;\n line-height: 18px;\n font-style: normal;\n font-variant-numeric: lining-nums tabular-nums;\n width: 100%;\n}\n.form-control-container .form-control-error-message {\n font-size: 12px;\n color: #d6421e;\n margin-top: 2px;\n}\n.form-control-container .form-control-hint-message {\n color: #4a5469;\n font-size: 12px;\n margin-top: 2px;\n}\n/*! Bundled license information:\n\nmodern-normalize/modern-normalize.css:\n (*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize *)\n*/\n/*# sourceMappingURL=dm-select-lib.component.css.map */\n'] }]
62205
62480
  }], () => [{ type: ElementRef }, { type: ShadowDomStyleInjectorService }], { label: [{
62206
62481
  type: Input
62207
62482
  }], placeholder: [{
@@ -62234,10 +62509,15 @@ var DmSelectLibComponent = class _DmSelectLibComponent {
62234
62509
  type: Input
62235
62510
  }], loading: [{
62236
62511
  type: Input
62512
+ }], appendToBody: [{
62513
+ type: Input,
62514
+ args: [{ transform: booleanAttribute }]
62515
+ }], openState: [{
62516
+ type: Output
62237
62517
  }] });
62238
62518
  })();
62239
62519
  (() => {
62240
- (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(DmSelectLibComponent, { className: "DmSelectLibComponent", filePath: "libs/components/dm-select-lib/src/lib/dm-select-lib/dm-select-lib.component.ts", lineNumber: 42 });
62520
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(DmSelectLibComponent, { className: "DmSelectLibComponent", filePath: "libs/components/dm-select-lib/src/lib/dm-select-lib/dm-select-lib.component.ts", lineNumber: 44 });
62241
62521
  })();
62242
62522
 
62243
62523
  // apps/web-components/dm-select/src/app.module.ts