@datarailsshared/datarailsshared 1.5.397 → 1.5.402

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.
@@ -895,8 +895,8 @@ class DrSpinnerDirective {
895
895
 
896
896
  const _c0$C = ["labelTemplate"];
897
897
  const _c1$g = ["optionTemplate"];
898
- const _c2$5 = ["optionHeaderTemplate"];
899
- const _c3$4 = ["optionFooterTemplate"];
898
+ const _c2$6 = ["optionHeaderTemplate"];
899
+ const _c3$5 = ["optionFooterTemplate"];
900
900
  const _c4$2 = function (a0) { return { item: a0 }; };
901
901
  function DrSelectComponent_2_ng_template_0_Template(rf, ctx) { if (rf & 1) {
902
902
  i0.ɵɵelementContainer(0, 6);
@@ -990,6 +990,7 @@ class DrSelectComponent {
990
990
  constructor(elementRef) {
991
991
  this.elementRef = elementRef;
992
992
  this.type = 'select';
993
+ this.clearInputTextAfterSelection = false;
993
994
  this.items = [];
994
995
  this.appendTo = 'body';
995
996
  this.loadingText = 'Loading...';
@@ -1041,6 +1042,9 @@ class DrSelectComponent {
1041
1042
  }
1042
1043
  }
1043
1044
  onValueSelected(selectedItem) {
1045
+ if (this.clearInputTextAfterSelection && this.ngSelect) {
1046
+ this.ngSelect.searchTerm = null;
1047
+ }
1044
1048
  this.onChange(selectedItem);
1045
1049
  this.change.emit(selectedItem);
1046
1050
  }
@@ -1061,8 +1065,8 @@ class DrSelectComponent {
1061
1065
  /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrSelectComponent, selectors: [["dr-select"]], contentQueries: function DrSelectComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
1062
1066
  i0.ɵɵcontentQuery(dirIndex, _c0$C, 5);
1063
1067
  i0.ɵɵcontentQuery(dirIndex, _c1$g, 5);
1064
- i0.ɵɵcontentQuery(dirIndex, _c2$5, 5);
1065
- i0.ɵɵcontentQuery(dirIndex, _c3$4, 5);
1068
+ i0.ɵɵcontentQuery(dirIndex, _c2$6, 5);
1069
+ i0.ɵɵcontentQuery(dirIndex, _c3$5, 5);
1066
1070
  } if (rf & 2) {
1067
1071
  let _t;
1068
1072
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.labelTemplate = _t.first);
@@ -1077,7 +1081,7 @@ class DrSelectComponent {
1077
1081
  } }, hostVars: 4, hostBindings: function DrSelectComponent_HostBindings(rf, ctx) { if (rf & 2) {
1078
1082
  i0.ɵɵclassMap(ctx.type);
1079
1083
  i0.ɵɵclassProp("textView", ctx.asTextView);
1080
- } }, inputs: { type: "type", className: "className", items: "items", addTag: "addTag", appendTo: "appendTo", bindLabel: "bindLabel", bindValue: "bindValue", clearable: "clearable", searchable: "searchable", searchFn: "searchFn", multiple: "multiple", multipleHeightIncreased: "multipleHeightIncreased", hideSelected: "hideSelected", placeholder: "placeholder", loading: "loading", loadingText: "loadingText", readonly: "readonly", disabled: "disabled", groupBy: "groupBy", optionWithDescription: "optionWithDescription", id: "id", keyDownFn: "keyDownFn", selectedItem: "selectedItem", dropdownClass: "dropdownClass", closeOnSelect: "closeOnSelect", textView: "textView", autofocus: "autofocus", isOpen: "isOpen", noValuePadding: "noValuePadding" }, outputs: { change: "change", open: "open", closeUp: "closeUp" }, features: [i0.ɵɵProvidersFeature([
1084
+ } }, inputs: { type: "type", clearInputTextAfterSelection: "clearInputTextAfterSelection", className: "className", items: "items", addTag: "addTag", appendTo: "appendTo", bindLabel: "bindLabel", bindValue: "bindValue", clearable: "clearable", searchable: "searchable", searchFn: "searchFn", multiple: "multiple", multipleHeightIncreased: "multipleHeightIncreased", hideSelected: "hideSelected", placeholder: "placeholder", loading: "loading", loadingText: "loadingText", readonly: "readonly", disabled: "disabled", groupBy: "groupBy", optionWithDescription: "optionWithDescription", id: "id", keyDownFn: "keyDownFn", selectedItem: "selectedItem", dropdownClass: "dropdownClass", closeOnSelect: "closeOnSelect", textView: "textView", autofocus: "autofocus", isOpen: "isOpen", noValuePadding: "noValuePadding" }, outputs: { change: "change", open: "open", closeUp: "closeUp" }, features: [i0.ɵɵProvidersFeature([
1081
1085
  {
1082
1086
  provide: NG_VALUE_ACCESSOR,
1083
1087
  useExisting: DrSelectComponent,
@@ -1130,6 +1134,8 @@ class DrSelectComponent {
1130
1134
  }, {
1131
1135
  type: HostBinding,
1132
1136
  args: ['class']
1137
+ }], clearInputTextAfterSelection: [{
1138
+ type: Input
1133
1139
  }], className: [{
1134
1140
  type: Input
1135
1141
  }], items: [{
@@ -2866,7 +2872,7 @@ class DrModelDebounceChangeDirective {
2866
2872
 
2867
2873
  const _c0$z = ["prefix"];
2868
2874
  const _c1$e = ["suffix"];
2869
- const _c2$4 = ["inputRef"];
2875
+ const _c2$5 = ["inputRef"];
2870
2876
  function DrInputComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
2871
2877
  const _r8 = i0.ɵɵgetCurrentView();
2872
2878
  i0.ɵɵelementContainerStart(0);
@@ -2911,7 +2917,7 @@ function DrInputComponent_button_7_Template(rf, ctx) { if (rf & 1) {
2911
2917
  i0.ɵɵadvance(1);
2912
2918
  i0.ɵɵtextInterpolate1(" ", ctx_r5._buttonOptions.text, "\n");
2913
2919
  } }
2914
- const _c3$3 = [[["", "prefixIcon", ""]], [["", "suffixIcon", ""]]];
2920
+ const _c3$4 = [[["", "prefixIcon", ""]], [["", "suffixIcon", ""]]];
2915
2921
  const _c4$1 = ["[prefixIcon]", "[suffixIcon]"];
2916
2922
  class DrInputComponent {
2917
2923
  set disabled(value) {
@@ -3081,7 +3087,7 @@ class DrInputComponent {
3081
3087
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.prefixIcon = _t.first);
3082
3088
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.suffixIcon = _t.first);
3083
3089
  } }, viewQuery: function DrInputComponent_Query(rf, ctx) { if (rf & 1) {
3084
- i0.ɵɵviewQuery(_c2$4, 5);
3090
+ i0.ɵɵviewQuery(_c2$5, 5);
3085
3091
  } if (rf & 2) {
3086
3092
  let _t;
3087
3093
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputElement = _t.first);
@@ -3096,7 +3102,7 @@ class DrInputComponent {
3096
3102
  multi: true,
3097
3103
  },
3098
3104
  ])], ngContentSelectors: _c4$1, decls: 8, vars: 5, consts: [[4, "ngIf", "ngIfElse"], ["maskedInput", ""], ["class", "clear-icon", 3, "click", 4, "ngIf"], ["class", "search-icon", 3, "click", 4, "ngIf"], [3, "click", 4, "ngIf"], [3, "ngModel", "disabled", "readonly", "type", "placeholder", "name", "min", "max", "minlength", "maxlength", "step", "ngModelChange", "ngModelDebounceChange", "blur", "focus"], ["inputRef", ""], [3, "ngModel", "disabled", "readonly", "type", "placeholder", "name", "min", "max", "minlength", "maxlength", "mask", "suffix", "prefix", "step", "ngModelChange", "ngModelDebounceChange", "blur", "focus"], [1, "clear-icon", 3, "click"], [1, "search-icon", 3, "click"], [3, "click"]], template: function DrInputComponent_Template(rf, ctx) { if (rf & 1) {
3099
- i0.ɵɵprojectionDef(_c3$3);
3105
+ i0.ɵɵprojectionDef(_c3$4);
3100
3106
  i0.ɵɵprojection(0);
3101
3107
  i0.ɵɵtemplate(1, DrInputComponent_ng_container_1_Template, 3, 11, "ng-container", 0);
3102
3108
  i0.ɵɵtemplate(2, DrInputComponent_ng_template_2_Template, 2, 14, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
@@ -4732,7 +4738,7 @@ function StepperComponent_ng_container_3_div_1_ng_template_6_Template(rf, ctx) {
4732
4738
  i0.ɵɵadvance(1);
4733
4739
  i0.ɵɵtextInterpolate(index_r11 + 1);
4734
4740
  } }
4735
- const _c2$3 = function (a0, a1, a2) { return { index: a0, isLast: a1, step: a2 }; };
4741
+ const _c2$4 = function (a0, a1, a2) { return { index: a0, isLast: a1, step: a2 }; };
4736
4742
  function StepperComponent_ng_container_3_div_1_ng_container_10_Template(rf, ctx) { if (rf & 1) {
4737
4743
  i0.ɵɵelementContainer(0, 25);
4738
4744
  } if (rf & 2) {
@@ -4742,7 +4748,7 @@ function StepperComponent_ng_container_3_div_1_ng_container_10_Template(rf, ctx)
4742
4748
  const step_r10 = ctx_r23.$implicit;
4743
4749
  i0.ɵɵnextContext();
4744
4750
  const _r6 = i0.ɵɵreference(8);
4745
- i0.ɵɵproperty("ngTemplateOutlet", _r6)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c2$3, index_r11, isLast_r12, step_r10));
4751
+ i0.ɵɵproperty("ngTemplateOutlet", _r6)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c2$4, index_r11, isLast_r12, step_r10));
4746
4752
  } }
4747
4753
  function StepperComponent_ng_container_3_div_1_span_11_Template(rf, ctx) { if (rf & 1) {
4748
4754
  i0.ɵɵelementStart(0, "span", 26);
@@ -4762,9 +4768,9 @@ function StepperComponent_ng_container_3_div_1_ng_container_12_Template(rf, ctx)
4762
4768
  const step_r10 = ctx_r25.$implicit;
4763
4769
  i0.ɵɵnextContext();
4764
4770
  const _r6 = i0.ɵɵreference(8);
4765
- i0.ɵɵproperty("ngTemplateOutlet", _r6)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c2$3, index_r11, isLast_r12, step_r10));
4771
+ i0.ɵɵproperty("ngTemplateOutlet", _r6)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c2$4, index_r11, isLast_r12, step_r10));
4766
4772
  } }
4767
- const _c3$2 = function (a0) { return { step: a0 }; };
4773
+ const _c3$3 = function (a0) { return { step: a0 }; };
4768
4774
  function StepperComponent_ng_container_3_div_1_Template(rf, ctx) { if (rf & 1) {
4769
4775
  const _r28 = i0.ɵɵgetCurrentView();
4770
4776
  i0.ɵɵelementStart(0, "div", 10);
@@ -4790,7 +4796,7 @@ function StepperComponent_ng_container_3_div_1_Template(rf, ctx) { if (rf & 1) {
4790
4796
  const _r4 = i0.ɵɵreference(6);
4791
4797
  i0.ɵɵclassProp("step-setup", ctx_r14.inlineLabels);
4792
4798
  i0.ɵɵadvance(1);
4793
- i0.ɵɵproperty("drTooltip", step_r10.description && _r4)("drTooltipContext", i0.ɵɵpureFunction1(21, _c3$2, step_r10))("drTooltipPosition", "bottom");
4799
+ i0.ɵɵproperty("drTooltip", step_r10.description && _r4)("drTooltipContext", i0.ɵɵpureFunction1(21, _c3$3, step_r10))("drTooltipPosition", "bottom");
4794
4800
  i0.ɵɵadvance(1);
4795
4801
  i0.ɵɵclassProp("active", ctx_r14.currentStep === step_r10)("completed", step_r10.completed);
4796
4802
  i0.ɵɵadvance(1);
@@ -5782,7 +5788,7 @@ function DrChatSuggestionsComponent_ng_template_3_Template(rf, ctx) { if (rf & 1
5782
5788
  i0.ɵɵadvance(1);
5783
5789
  i0.ɵɵproperty("ngForOf", ctx_r3.visibleValues);
5784
5790
  } }
5785
- const _c2$2 = function (a0, a1, a2, a3) { return { "chat-suggestions--three-cols": a0, "chat-suggestions--two-cols": a1, "chat-suggestions--one-col": a2, "chat-suggestions--button-mode": a3 }; };
5791
+ const _c2$3 = function (a0, a1, a2, a3) { return { "chat-suggestions--three-cols": a0, "chat-suggestions--two-cols": a1, "chat-suggestions--one-col": a2, "chat-suggestions--button-mode": a3 }; };
5786
5792
  class DrChatSuggestionsComponent {
5787
5793
  get hiddenValues() {
5788
5794
  return JSON.parse(localStorage.getItem('aiChatSuggestions')) || [];
@@ -5888,7 +5894,7 @@ class DrChatSuggestionsComponent {
5888
5894
  i0.ɵɵtemplate(3, DrChatSuggestionsComponent_ng_template_3_Template, 2, 6, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
5889
5895
  } if (rf & 2) {
5890
5896
  const _r2 = i0.ɵɵreference(4);
5891
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction4(3, _c2$2, ctx.colsCount === 3, ctx.colsCount === 2, ctx.colsCount === 1, ctx.buttonMode));
5897
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction4(3, _c2$3, ctx.colsCount === 3, ctx.colsCount === 2, ctx.colsCount === 1, ctx.buttonMode));
5892
5898
  i0.ɵɵadvance(2);
5893
5899
  i0.ɵɵproperty("ngIf", ctx.buttonMode)("ngIfElse", _r2);
5894
5900
  } }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, DrButtonComponent], styles: ["[_nghost-%COMP%]{display:flex;align-items:flex-start;justify-content:center}[_nghost-%COMP%] .chat-suggestions[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:center;max-width:956px}[_nghost-%COMP%] .chat-suggestions--button-mode[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%] .chat-suggestions--button-mode[_ngcontent-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{padding-top:32px}[_nghost-%COMP%] .chat-suggestions--one-col[_ngcontent-%COMP%]{padding-left:0;grid-template-columns:repeat(1,300px)}[_nghost-%COMP%] .chat-suggestions--one-col[_ngcontent-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{grid-template-columns:repeat(1,300px)}[_nghost-%COMP%] .chat-suggestions--two-cols[_ngcontent-%COMP%]{padding-left:0;grid-template-columns:repeat(2,300px)}[_nghost-%COMP%] .chat-suggestions--two-cols[_ngcontent-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{grid-template-columns:repeat(2,300px)}[_nghost-%COMP%] .chat-suggestions--three-cols[_ngcontent-%COMP%]{padding-left:0;grid-template-columns:repeat(3,300px)}[_nghost-%COMP%] .chat-suggestions--three-cols[_ngcontent-%COMP%] .chat-suggestions__container[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] .chat-suggestions--three-cols[_ngcontent-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{grid-template-columns:repeat(3,300px)}[_nghost-%COMP%] .chat-suggestions__container[_ngcontent-%COMP%]{display:flex;position:relative;width:auto;margin-top:12px;padding:0 16px}[_nghost-%COMP%] .chat-suggestions__container__button[_ngcontent-%COMP%]{z-index:3;background:linear-gradient(-90deg,#6969ff,#4eb7df) border-box;border-radius:2em;border:1.5px solid transparent}[_nghost-%COMP%] .chat-suggestions__container__button[_ngcontent-%COMP%] button{background:#fff;border-radius:24px;color:#4646ce;border:none;cursor:pointer}[_nghost-%COMP%] .chat-suggestions__container[_ngcontent-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{display:none;position:absolute;width:100%;bottom:0;left:0;padding-bottom:56px;z-index:2}[_nghost-%COMP%] .chat-suggestions__container--opened[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .chat-suggestions__container--opened[_ngcontent-%COMP%] .chat-suggestions__container__button[_ngcontent-%COMP%] button{color:#4646ce;background:#f2f2fb}[_nghost-%COMP%] .chat-suggestions__container--opened[_ngcontent-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{display:grid;align-items:center;justify-content:center}[_nghost-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{padding:0 16px;display:grid;gap:28px;grid-auto-rows:minmax(86px,auto);background:#ffffffb3}[_nghost-%COMP%] .chat-suggestions__items__item[_ngcontent-%COMP%]{display:inline-flex;min-height:86px;width:300px;align-items:center;justify-content:center;text-align:center;padding:16px;border-radius:8px;background:#f2f2fb;box-shadow:0 1px 2px #00000026;font-size:14px;line-height:24px;color:#25258c}[_nghost-%COMP%] .chat-suggestions__items__item[_ngcontent-%COMP%]:hover{cursor:pointer;background:#eaeaff}"], changeDetection: 0 }); }
@@ -5947,8 +5953,8 @@ function DrChatComponent_dr_chat_suggestions_7_Template(rf, ctx) { if (rf & 1) {
5947
5953
  i0.ɵɵclassProp("chat__suggestions--full-height", ctx_r3.fullScreen && !(ctx_r3.messages == null ? null : ctx_r3.messages.length));
5948
5954
  i0.ɵɵproperty("values", ctx_r3.suggestions)("fullScreen", ctx_r3.fullScreen)("waitForReply", ctx_r3.waitForReply)("buttonMode", !!(ctx_r3.messages == null ? null : ctx_r3.messages.length));
5949
5955
  } }
5950
- const _c2$1 = [[["dr-chat-alert"]], [["dr-chat-form"]], [["dr-chat-message"]]];
5951
- const _c3$1 = ["dr-chat-alert", "dr-chat-form", "dr-chat-message"];
5956
+ const _c2$2 = [[["dr-chat-alert"]], [["dr-chat-form"]], [["dr-chat-message"]]];
5957
+ const _c3$2 = ["dr-chat-alert", "dr-chat-form", "dr-chat-message"];
5952
5958
  class DrChatComponent {
5953
5959
  set contentUpdateSubject(value) {
5954
5960
  if (value) {
@@ -6041,8 +6047,8 @@ class DrChatComponent {
6041
6047
  let _t;
6042
6048
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.messagesContainer = _t.first);
6043
6049
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._chatSuggestions = _t.first);
6044
- } }, inputs: { fullScreen: "fullScreen", noMessagesPlaceholder: "noMessagesPlaceholder", contentUpdateSubject: "contentUpdateSubject", scrollBottom: "scrollBottom", suggestions: "suggestions", reopen: "reopen", waitForReply: "waitForReply" }, outputs: { suggestionSelect: "suggestionSelect" }, features: [i0.ɵɵProvidersFeature([DrChatCustomMessageService])], ngContentSelectors: _c3$1, decls: 10, vars: 6, consts: [[1, "chat"], [1, "chat__sticky-top"], [3, "ngTemplateOutlet", 4, "ngIf"], [1, "chat__alert"], ["class", "chat__empty-state", 4, "ngIf"], ["class", "chat__messages", 4, "ngIf"], ["class", "chat__suggestions", 3, "values", "fullScreen", "waitForReply", "chat__suggestions--full-height", "buttonMode", "suggestionSelect", 4, "ngIf"], [1, "form"], [3, "ngTemplateOutlet"], [1, "chat__empty-state"], [1, "chat__empty-state__text"], [1, "chat__messages"], [1, "chat__messages__container"], ["messagesContainer", ""], [1, "chat__suggestions", 3, "values", "fullScreen", "waitForReply", "buttonMode", "suggestionSelect"]], template: function DrChatComponent_Template(rf, ctx) { if (rf & 1) {
6045
- i0.ɵɵprojectionDef(_c2$1);
6050
+ } }, inputs: { fullScreen: "fullScreen", noMessagesPlaceholder: "noMessagesPlaceholder", contentUpdateSubject: "contentUpdateSubject", scrollBottom: "scrollBottom", suggestions: "suggestions", reopen: "reopen", waitForReply: "waitForReply" }, outputs: { suggestionSelect: "suggestionSelect" }, features: [i0.ɵɵProvidersFeature([DrChatCustomMessageService])], ngContentSelectors: _c3$2, decls: 10, vars: 6, consts: [[1, "chat"], [1, "chat__sticky-top"], [3, "ngTemplateOutlet", 4, "ngIf"], [1, "chat__alert"], ["class", "chat__empty-state", 4, "ngIf"], ["class", "chat__messages", 4, "ngIf"], ["class", "chat__suggestions", 3, "values", "fullScreen", "waitForReply", "chat__suggestions--full-height", "buttonMode", "suggestionSelect", 4, "ngIf"], [1, "form"], [3, "ngTemplateOutlet"], [1, "chat__empty-state"], [1, "chat__empty-state__text"], [1, "chat__messages"], [1, "chat__messages__container"], ["messagesContainer", ""], [1, "chat__suggestions", 3, "values", "fullScreen", "waitForReply", "buttonMode", "suggestionSelect"]], template: function DrChatComponent_Template(rf, ctx) { if (rf & 1) {
6051
+ i0.ɵɵprojectionDef(_c2$2);
6046
6052
  i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
6047
6053
  i0.ɵɵtemplate(2, DrChatComponent_ng_container_2_Template, 1, 1, "ng-container", 2);
6048
6054
  i0.ɵɵelementStart(3, "div", 3);
@@ -8167,7 +8173,7 @@ function DrDropdownComponent_dr_dropdown_item_4_ng_container_3_Template(rf, ctx)
8167
8173
  const act_r2 = i0.ɵɵnextContext().$implicit;
8168
8174
  i0.ɵɵproperty("ngTemplateOutlet", act_r2.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c1$8, act_r2));
8169
8175
  } }
8170
- const _c2 = function () { return { withoutArrow: true }; };
8176
+ const _c2$1 = function () { return { withoutArrow: true }; };
8171
8177
  function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1) {
8172
8178
  const _r18 = i0.ɵɵgetCurrentView();
8173
8179
  i0.ɵɵelementStart(0, "dr-dropdown-item", 4);
@@ -8179,7 +8185,7 @@ function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1)
8179
8185
  } if (rf & 2) {
8180
8186
  const act_r2 = ctx.$implicit;
8181
8187
  const ctx_r1 = i0.ɵɵnextContext();
8182
- i0.ɵɵproperty("drTooltip", ctx_r1.tooltipToShow(act_r2))("drTooltipPosition", "left")("drTooltipOptions", i0.ɵɵpureFunction0(14, _c2))("drTooltipClass", "dr-dropdown__tooltip")("drDropdown", ctx_r1.hasChildren(act_r2) && act_r2.children)("drDropdownClass", act_r2.childOptions == null ? null : act_r2.childOptions.class)("drDropdownInHover", true)("drDropdownPosition", act_r2.childOptions == null ? null : act_r2.childOptions.position)("disabled", ctx_r1.disabled(act_r2))("selected", ctx_r1.selected(act_r2))("divider", act_r2.separateLine);
8188
+ i0.ɵɵproperty("drTooltip", ctx_r1.tooltipToShow(act_r2))("drTooltipPosition", "left")("drTooltipOptions", i0.ɵɵpureFunction0(14, _c2$1))("drTooltipClass", "dr-dropdown__tooltip")("drDropdown", ctx_r1.hasChildren(act_r2) && act_r2.children)("drDropdownClass", act_r2.childOptions == null ? null : act_r2.childOptions.class)("drDropdownInHover", true)("drDropdownPosition", act_r2.childOptions == null ? null : act_r2.childOptions.position)("disabled", ctx_r1.disabled(act_r2))("selected", ctx_r1.selected(act_r2))("divider", act_r2.separateLine);
8183
8189
  i0.ɵɵadvance(1);
8184
8190
  i0.ɵɵproperty("ngIf", !act_r2.templateRef);
8185
8191
  i0.ɵɵadvance(1);
@@ -8187,7 +8193,7 @@ function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1)
8187
8193
  i0.ɵɵadvance(1);
8188
8194
  i0.ɵɵproperty("ngIf", act_r2.templateRef);
8189
8195
  } }
8190
- const _c3 = [[["dr-dropdown-item"]]];
8196
+ const _c3$1 = [[["dr-dropdown-item"]]];
8191
8197
  const _c4 = ["dr-dropdown-item"];
8192
8198
  class DrDropdownComponent {
8193
8199
  set options(data) {
@@ -8301,7 +8307,7 @@ class DrDropdownComponent {
8301
8307
  let _t;
8302
8308
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.menuContainer = _t.first);
8303
8309
  } }, inputs: { options: "options" }, outputs: { onAction: "action" }, features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c4, decls: 6, vars: 5, consts: [[1, "dr-dropdown"], ["menuContainer", ""], ["tabindex", "-1", "role", "listbox", 1, "dr-dropdown__container", 3, "mouseenter", "mouseleave"], ["drDropdownChild", "", "role", "option", "tabindex", "0", 3, "drTooltip", "drTooltipPosition", "drTooltipOptions", "drTooltipClass", "drDropdown", "drDropdownClass", "drDropdownInHover", "drDropdownPosition", "disabled", "selected", "divider", "mousedown", 4, "ngFor", "ngForOf"], ["drDropdownChild", "", "role", "option", "tabindex", "0", 3, "drTooltip", "drTooltipPosition", "drTooltipOptions", "drTooltipClass", "drDropdown", "drDropdownClass", "drDropdownInHover", "drDropdownPosition", "disabled", "selected", "divider", "mousedown"], ["dropdownItemContent", "", 4, "ngIf"], ["dropdownItemActions", "", 4, "ngIf"], ["dropdownItemContent", "", 3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], ["dropdownItemContent", ""], [3, "class", 4, "ngIf"], [1, "dr-dropdown__text"], ["dropdownItemActions", ""], [3, "class", "showOnHover", "mousedown", 4, "ngFor", "ngForOf"], ["class", "dr-icon-arrow-right", 4, "ngIf"], [3, "mousedown"], [1, "dr-icon-arrow-right"], ["dropdownItemContent", "", 3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function DrDropdownComponent_Template(rf, ctx) { if (rf & 1) {
8304
- i0.ɵɵprojectionDef(_c3);
8310
+ i0.ɵɵprojectionDef(_c3$1);
8305
8311
  i0.ɵɵelementStart(0, "div", 0, 1)(2, "div", 2);
8306
8312
  i0.ɵɵlistener("mouseenter", function DrDropdownComponent_Template_div_mouseenter_2_listener() { return ctx.onMouseenter(); })("mouseleave", function DrDropdownComponent_Template_div_mouseleave_2_listener() { return ctx.onMouseleave(); });
8307
8313
  i0.ɵɵprojection(3);
@@ -8751,6 +8757,7 @@ const _c1$6 = ["dr-accordion-item"];
8751
8757
  class DrAccordionComponent {
8752
8758
  constructor() {
8753
8759
  this.openCloseItems = new Subject();
8760
+ this.theme = 'regular';
8754
8761
  this.multiValue = false;
8755
8762
  }
8756
8763
  /**
@@ -8777,17 +8784,24 @@ class DrAccordionComponent {
8777
8784
  this.openCloseItems.next(true);
8778
8785
  }
8779
8786
  /** @nocollapse */ static { this.ɵfac = function DrAccordionComponent_Factory(t) { return new (t || DrAccordionComponent)(); }; }
8780
- /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAccordionComponent, selectors: [["dr-accordion"]], inputs: { multi: "multi" }, ngContentSelectors: _c1$6, decls: 1, vars: 0, template: function DrAccordionComponent_Template(rf, ctx) { if (rf & 1) {
8787
+ /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAccordionComponent, selectors: [["dr-accordion"]], hostVars: 2, hostBindings: function DrAccordionComponent_HostBindings(rf, ctx) { if (rf & 2) {
8788
+ i0.ɵɵclassMap(ctx.theme);
8789
+ } }, inputs: { multi: "multi", theme: "theme" }, ngContentSelectors: _c1$6, decls: 1, vars: 0, template: function DrAccordionComponent_Template(rf, ctx) { if (rf & 1) {
8781
8790
  i0.ɵɵprojectionDef(_c0$c);
8782
8791
  i0.ɵɵprojection(0);
8783
- } }, styles: ["[_nghost-%COMP%]{display:block;box-shadow:#2c33491a 0 5px 10px}"], changeDetection: 0 }); }
8792
+ } }, styles: ["[_nghost-%COMP%]{display:block;box-shadow:#2c33491a 0 5px 10px}.borderless[_nghost-%COMP%]{box-shadow:none}"], changeDetection: 0 }); }
8784
8793
  }
8785
8794
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrAccordionComponent, [{
8786
8795
  type: Component,
8787
- args: [{ selector: 'dr-accordion', template: '<ng-content select="dr-accordion-item"></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;box-shadow:#2c33491a 0 5px 10px}\n"] }]
8796
+ args: [{ selector: 'dr-accordion', template: '<ng-content select="dr-accordion-item"></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;box-shadow:#2c33491a 0 5px 10px}:host.borderless{box-shadow:none}\n"] }]
8788
8797
  }], null, { multi: [{
8789
8798
  type: Input,
8790
8799
  args: ['multi']
8800
+ }], theme: [{
8801
+ type: Input
8802
+ }, {
8803
+ type: HostBinding,
8804
+ args: ['class']
8791
8805
  }] }); })();
8792
8806
 
8793
8807
  const _c0$b = [[["dr-accordion-item-header"]], [["dr-accordion-item-body"]]];
@@ -8927,14 +8941,27 @@ class DrAccordionItemComponent {
8927
8941
  type: Output
8928
8942
  }] }); })();
8929
8943
 
8930
- function DrAccordionItemHeaderComponent_i_3_Template(rf, ctx) { if (rf & 1) {
8931
- i0.ɵɵelement(0, "i", 1);
8944
+ function DrAccordionItemHeaderComponent_i_0_Template(rf, ctx) { if (rf & 1) {
8945
+ i0.ɵɵelement(0, "i");
8932
8946
  } if (rf & 2) {
8933
8947
  const ctx_r0 = i0.ɵɵnextContext();
8934
- i0.ɵɵproperty("@expansionIndicator", ctx_r0.state);
8948
+ i0.ɵɵclassMap("dr-accordion-item-header-icon " + ctx_r0.icon);
8949
+ i0.ɵɵclassProp("dr-accordion-item-header-icon--additional-padding", ctx_r0.chevronPosition === "left");
8950
+ } }
8951
+ const _c0$a = function (a0) { return { rotationDegree: a0 }; };
8952
+ const _c1$4 = function (a0, a1) { return { value: a0, params: a1 }; };
8953
+ function DrAccordionItemHeaderComponent_i_1_Template(rf, ctx) { if (rf & 1) {
8954
+ const _r3 = i0.ɵɵgetCurrentView();
8955
+ i0.ɵɵelementStart(0, "i", 2);
8956
+ i0.ɵɵlistener("click", function DrAccordionItemHeaderComponent_i_1_Template_i_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.toggleOnChevronClick && ctx_r2.accordionItem.toggle()); });
8957
+ i0.ɵɵelementEnd();
8958
+ } if (rf & 2) {
8959
+ const ctx_r1 = i0.ɵɵnextContext();
8960
+ i0.ɵɵclassMap(ctx_r1.chevronIconClass);
8961
+ i0.ɵɵproperty("@expansionIndicator", i0.ɵɵpureFunction2(5, _c1$4, ctx_r1.state, i0.ɵɵpureFunction1(3, _c0$a, ctx_r1.chevronRotationDegree)));
8935
8962
  } }
8936
- const _c0$a = [[["dr-accordion-item-title"]], [["dr-accordion-item-description"]], "*"];
8937
- const _c1$4 = ["dr-accordion-item-title", "dr-accordion-item-description", "*"];
8963
+ const _c2 = [[["dr-accordion-item-title"]], [["dr-accordion-item-description"]], "*"];
8964
+ const _c3 = ["dr-accordion-item-title", "dr-accordion-item-description", "*"];
8938
8965
  class DrAccordionItemHeaderComponent {
8939
8966
  get isCollapsed() {
8940
8967
  return this.accordionItem.collapsed;
@@ -8949,6 +8976,8 @@ class DrAccordionItemHeaderComponent {
8949
8976
  return this.accordionItem.disabled;
8950
8977
  }
8951
8978
  toggle() {
8979
+ if (this.toggleOnChevronClick)
8980
+ return;
8952
8981
  this.accordionItem.toggle();
8953
8982
  }
8954
8983
  get state() {
@@ -8961,34 +8990,48 @@ class DrAccordionItemHeaderComponent {
8961
8990
  this.accordionItem = accordionItem;
8962
8991
  this.cd = cd;
8963
8992
  this.destroy$ = new Subject();
8993
+ this.chevronOrientation = 'vertical';
8994
+ this.chevronPosition = 'right';
8995
+ this.toggleOnChevronClick = false;
8996
+ this.theme = accordionItem?.accordion?.theme || 'regular';
8964
8997
  }
8965
8998
  ngOnInit() {
8966
8999
  this.accordionItem.accordionItemInvalidate.pipe(takeUntil(this.destroy$)).subscribe(() => this.cd.markForCheck());
9000
+ this.chevronIconClass = this.getChevronIconClass();
9001
+ this.chevronRotationDegree = this.chevronOrientation === 'vertical' ? 180 : 90;
8967
9002
  }
8968
9003
  ngOnDestroy() {
8969
9004
  this.destroy$.next();
8970
9005
  this.destroy$.complete();
8971
9006
  }
9007
+ getChevronIconClass() {
9008
+ return ('expansion-indicator ' +
9009
+ (this.chevronOrientation === 'vertical' ? 'dr-icon-arrow-down' : 'dr-icon-arrow-right') +
9010
+ ` expansion-indicator--${this.chevronPosition}`);
9011
+ }
8972
9012
  /** @nocollapse */ static { this.ɵfac = function DrAccordionItemHeaderComponent_Factory(t) { return new (t || DrAccordionItemHeaderComponent)(i0.ɵɵdirectiveInject(DrAccordionItemComponent, 1), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
8973
- /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAccordionItemHeaderComponent, selectors: [["dr-accordion-item-header"]], hostVars: 7, hostBindings: function DrAccordionItemHeaderComponent_HostBindings(rf, ctx) { if (rf & 1) {
9013
+ /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAccordionItemHeaderComponent, selectors: [["dr-accordion-item-header"]], hostVars: 9, hostBindings: function DrAccordionItemHeaderComponent_HostBindings(rf, ctx) { if (rf & 1) {
8974
9014
  i0.ɵɵlistener("click", function DrAccordionItemHeaderComponent_click_HostBindingHandler() { return ctx.toggle(); })("keydown.space", function DrAccordionItemHeaderComponent_keydown_space_HostBindingHandler() { return ctx.toggle(); })("keydown.enter", function DrAccordionItemHeaderComponent_keydown_enter_HostBindingHandler() { return ctx.toggle(); });
8975
9015
  } if (rf & 2) {
8976
9016
  i0.ɵɵattribute("aria-expanded", ctx.expanded)("tabindex", ctx.tabbable)("aria-disabled", ctx.disabled);
9017
+ i0.ɵɵclassMap(ctx.theme);
8977
9018
  i0.ɵɵclassProp("accordion-item-header-collapsed", ctx.isCollapsed)("accordion-item-header-expanded", ctx.expanded);
8978
- } }, ngContentSelectors: _c1$4, decls: 4, vars: 1, consts: [["class", "dr-icon-arrow-down expansion-indicator", 4, "ngIf"], [1, "dr-icon-arrow-down", "expansion-indicator"]], template: function DrAccordionItemHeaderComponent_Template(rf, ctx) { if (rf & 1) {
8979
- i0.ɵɵprojectionDef(_c0$a);
8980
- i0.ɵɵprojection(0);
8981
- i0.ɵɵprojection(1, 1);
8982
- i0.ɵɵprojection(2, 2);
8983
- i0.ɵɵtemplate(3, DrAccordionItemHeaderComponent_i_3_Template, 1, 1, "i", 0);
9019
+ } }, inputs: { chevronOrientation: "chevronOrientation", chevronPosition: "chevronPosition", icon: "icon", toggleOnChevronClick: "toggleOnChevronClick" }, ngContentSelectors: _c3, decls: 5, vars: 2, consts: [[3, "class", "dr-accordion-item-header-icon--additional-padding", 4, "ngIf"], [3, "class", "click", 4, "ngIf"], [3, "click"]], template: function DrAccordionItemHeaderComponent_Template(rf, ctx) { if (rf & 1) {
9020
+ i0.ɵɵprojectionDef(_c2);
9021
+ i0.ɵɵtemplate(0, DrAccordionItemHeaderComponent_i_0_Template, 1, 4, "i", 0);
9022
+ i0.ɵɵtemplate(1, DrAccordionItemHeaderComponent_i_1_Template, 1, 8, "i", 1);
9023
+ i0.ɵɵprojection(2);
9024
+ i0.ɵɵprojection(3, 1);
9025
+ i0.ɵɵprojection(4, 2);
8984
9026
  } if (rf & 2) {
8985
- i0.ɵɵadvance(3);
9027
+ i0.ɵɵproperty("ngIf", ctx.icon);
9028
+ i0.ɵɵadvance(1);
8986
9029
  i0.ɵɵproperty("ngIf", !ctx.disabled);
8987
- } }, dependencies: [i1.NgIf], styles: ["[_nghost-%COMP%]{display:flex;align-items:center;cursor:pointer;position:relative;border-bottom:1px solid #edf1f7;color:#222b45;font-family:Poppins,sans-serif;font-size:13px;font-weight:600;line-height:1.5rem;padding:1.25rem;text-transform:capitalize}[_nghost-%COMP%]:focus{outline:0}[_nghost-%COMP%] .expansion-indicator[_ngcontent-%COMP%]{font-size:24px;position:absolute;right:10px;font-weight:700}"], data: { animation: [
9030
+ } }, dependencies: [i1.NgIf], styles: ["[_nghost-%COMP%]{display:flex;align-items:center;cursor:pointer;position:relative;border-bottom:1px solid #edf1f7;color:#222b45;font-family:Poppins,sans-serif;font-size:13px;font-weight:600;line-height:1.5rem;padding:1.25rem;text-transform:capitalize}[_nghost-%COMP%]:focus{outline:0}[_nghost-%COMP%] .expansion-indicator[_ngcontent-%COMP%]{font-size:24px;font-weight:700}[_nghost-%COMP%] .expansion-indicator--right[_ngcontent-%COMP%]{position:absolute;right:10px}[_nghost-%COMP%] .expansion-indicator--left[_ngcontent-%COMP%]{position:relative;left:-4px}[_nghost-%COMP%] .dr-accordion-item-header-icon[_ngcontent-%COMP%]{padding-right:8px}.borderless[_nghost-%COMP%]{border:none!important;padding-left:0}.borderless[_nghost-%COMP%] .expansion-indicator[_ngcontent-%COMP%]{color:#6d6e6f}.borderless[_nghost-%COMP%] .expansion-indicator[_ngcontent-%COMP%]:before{font-weight:400}"], data: { animation: [
8988
9031
  trigger('expansionIndicator', [
8989
9032
  state('expanded', style({
8990
- transform: 'rotate(180deg)',
8991
- })),
9033
+ transform: 'rotate({{ rotationDegree }}deg)',
9034
+ }), { params: { rotationDegree: '180' } }),
8992
9035
  transition('collapsed => expanded', animate('100ms ease-in')),
8993
9036
  transition('expanded => collapsed', animate('100ms ease-out')),
8994
9037
  ]),
@@ -8996,23 +9039,26 @@ class DrAccordionItemHeaderComponent {
8996
9039
  }
8997
9040
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrAccordionItemHeaderComponent, [{
8998
9041
  type: Component,
8999
- args: [{ selector: 'dr-accordion-item-header', template: `
9000
- <ng-content select="dr-accordion-item-title"></ng-content>
9001
- <ng-content select="dr-accordion-item-description"></ng-content>
9002
- <ng-content></ng-content>
9003
- <i class="dr-icon-arrow-down expansion-indicator" [@expansionIndicator]="state" *ngIf="!disabled"> </i>
9004
- `, animations: [
9042
+ args: [{ selector: 'dr-accordion-item-header', animations: [
9005
9043
  trigger('expansionIndicator', [
9006
9044
  state('expanded', style({
9007
- transform: 'rotate(180deg)',
9008
- })),
9045
+ transform: 'rotate({{ rotationDegree }}deg)',
9046
+ }), { params: { rotationDegree: '180' } }),
9009
9047
  transition('collapsed => expanded', animate('100ms ease-in')),
9010
9048
  transition('expanded => collapsed', animate('100ms ease-out')),
9011
9049
  ]),
9012
- ], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:flex;align-items:center;cursor:pointer;position:relative;border-bottom:1px solid #edf1f7;color:#222b45;font-family:Poppins,sans-serif;font-size:13px;font-weight:600;line-height:1.5rem;padding:1.25rem;text-transform:capitalize}:host:focus{outline:0}:host .expansion-indicator{font-size:24px;position:absolute;right:10px;font-weight:700}\n"] }]
9050
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<i\n *ngIf=\"icon\"\n [class]=\"'dr-accordion-item-header-icon ' + icon\"\n [class.dr-accordion-item-header-icon--additional-padding]=\"chevronPosition === 'left'\"></i>\n<i\n [class]=\"chevronIconClass\"\n [@expansionIndicator]=\"{ value: state, params: { rotationDegree: chevronRotationDegree } }\"\n (click)=\"toggleOnChevronClick && accordionItem.toggle()\"\n *ngIf=\"!disabled\"></i>\n<ng-content select=\"dr-accordion-item-title\"></ng-content>\n<ng-content select=\"dr-accordion-item-description\"></ng-content>\n<ng-content></ng-content>\n", styles: [":host{display:flex;align-items:center;cursor:pointer;position:relative;border-bottom:1px solid #edf1f7;color:#222b45;font-family:Poppins,sans-serif;font-size:13px;font-weight:600;line-height:1.5rem;padding:1.25rem;text-transform:capitalize}:host:focus{outline:0}:host .expansion-indicator{font-size:24px;font-weight:700}:host .expansion-indicator--right{position:absolute;right:10px}:host .expansion-indicator--left{position:relative;left:-4px}:host .dr-accordion-item-header-icon{padding-right:8px}:host.borderless{border:none!important;padding-left:0}:host.borderless .expansion-indicator{color:#6d6e6f}:host.borderless .expansion-indicator:before{font-weight:400}\n"] }]
9013
9051
  }], function () { return [{ type: DrAccordionItemComponent, decorators: [{
9014
9052
  type: Host
9015
- }] }, { type: i0.ChangeDetectorRef }]; }, { isCollapsed: [{
9053
+ }] }, { type: i0.ChangeDetectorRef }]; }, { chevronOrientation: [{
9054
+ type: Input
9055
+ }], chevronPosition: [{
9056
+ type: Input
9057
+ }], icon: [{
9058
+ type: Input
9059
+ }], toggleOnChevronClick: [{
9060
+ type: Input
9061
+ }], isCollapsed: [{
9016
9062
  type: HostBinding,
9017
9063
  args: ['class.accordion-item-header-collapsed']
9018
9064
  }], expanded: [{
@@ -9027,6 +9073,9 @@ class DrAccordionItemHeaderComponent {
9027
9073
  }], disabled: [{
9028
9074
  type: HostBinding,
9029
9075
  args: ['attr.aria-disabled']
9076
+ }], theme: [{
9077
+ type: HostBinding,
9078
+ args: ['class']
9030
9079
  }], toggle: [{
9031
9080
  type: HostListener,
9032
9081
  args: ['click']