@datarailsshared/datarailsshared 1.5.397 → 1.5.399
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/datarailsshared-datarailsshared-1.5.399.tgz +0 -0
- package/esm2022/lib/dr-accordion/accordion-item-header.component.mjs +63 -28
- package/esm2022/lib/dr-accordion/accordion-item.component.mjs +1 -1
- package/esm2022/lib/dr-accordion/accordion.component.mjs +13 -5
- package/fesm2022/datarailsshared-datarailsshared.mjs +95 -52
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/dr-accordion/accordion-item-header.component.d.ts +12 -2
- package/lib/dr-accordion/accordion-item.component.d.ts +1 -1
- package/lib/dr-accordion/accordion.component.d.ts +3 -1
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.5.397.tgz +0 -0
|
@@ -895,8 +895,8 @@ class DrSpinnerDirective {
|
|
|
895
895
|
|
|
896
896
|
const _c0$C = ["labelTemplate"];
|
|
897
897
|
const _c1$g = ["optionTemplate"];
|
|
898
|
-
const _c2$
|
|
899
|
-
const _c3$
|
|
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);
|
|
@@ -1061,8 +1061,8 @@ class DrSelectComponent {
|
|
|
1061
1061
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrSelectComponent, selectors: [["dr-select"]], contentQueries: function DrSelectComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
1062
1062
|
i0.ɵɵcontentQuery(dirIndex, _c0$C, 5);
|
|
1063
1063
|
i0.ɵɵcontentQuery(dirIndex, _c1$g, 5);
|
|
1064
|
-
i0.ɵɵcontentQuery(dirIndex, _c2$
|
|
1065
|
-
i0.ɵɵcontentQuery(dirIndex, _c3$
|
|
1064
|
+
i0.ɵɵcontentQuery(dirIndex, _c2$6, 5);
|
|
1065
|
+
i0.ɵɵcontentQuery(dirIndex, _c3$5, 5);
|
|
1066
1066
|
} if (rf & 2) {
|
|
1067
1067
|
let _t;
|
|
1068
1068
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.labelTemplate = _t.first);
|
|
@@ -2866,7 +2866,7 @@ class DrModelDebounceChangeDirective {
|
|
|
2866
2866
|
|
|
2867
2867
|
const _c0$z = ["prefix"];
|
|
2868
2868
|
const _c1$e = ["suffix"];
|
|
2869
|
-
const _c2$
|
|
2869
|
+
const _c2$5 = ["inputRef"];
|
|
2870
2870
|
function DrInputComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
2871
2871
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
2872
2872
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -2911,7 +2911,7 @@ function DrInputComponent_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
2911
2911
|
i0.ɵɵadvance(1);
|
|
2912
2912
|
i0.ɵɵtextInterpolate1(" ", ctx_r5._buttonOptions.text, "\n");
|
|
2913
2913
|
} }
|
|
2914
|
-
const _c3$
|
|
2914
|
+
const _c3$4 = [[["", "prefixIcon", ""]], [["", "suffixIcon", ""]]];
|
|
2915
2915
|
const _c4$1 = ["[prefixIcon]", "[suffixIcon]"];
|
|
2916
2916
|
class DrInputComponent {
|
|
2917
2917
|
set disabled(value) {
|
|
@@ -3081,7 +3081,7 @@ class DrInputComponent {
|
|
|
3081
3081
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.prefixIcon = _t.first);
|
|
3082
3082
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.suffixIcon = _t.first);
|
|
3083
3083
|
} }, viewQuery: function DrInputComponent_Query(rf, ctx) { if (rf & 1) {
|
|
3084
|
-
i0.ɵɵviewQuery(_c2$
|
|
3084
|
+
i0.ɵɵviewQuery(_c2$5, 5);
|
|
3085
3085
|
} if (rf & 2) {
|
|
3086
3086
|
let _t;
|
|
3087
3087
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputElement = _t.first);
|
|
@@ -3096,7 +3096,7 @@ class DrInputComponent {
|
|
|
3096
3096
|
multi: true,
|
|
3097
3097
|
},
|
|
3098
3098
|
])], 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$
|
|
3099
|
+
i0.ɵɵprojectionDef(_c3$4);
|
|
3100
3100
|
i0.ɵɵprojection(0);
|
|
3101
3101
|
i0.ɵɵtemplate(1, DrInputComponent_ng_container_1_Template, 3, 11, "ng-container", 0);
|
|
3102
3102
|
i0.ɵɵtemplate(2, DrInputComponent_ng_template_2_Template, 2, 14, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
@@ -4732,7 +4732,7 @@ function StepperComponent_ng_container_3_div_1_ng_template_6_Template(rf, ctx) {
|
|
|
4732
4732
|
i0.ɵɵadvance(1);
|
|
4733
4733
|
i0.ɵɵtextInterpolate(index_r11 + 1);
|
|
4734
4734
|
} }
|
|
4735
|
-
const _c2$
|
|
4735
|
+
const _c2$4 = function (a0, a1, a2) { return { index: a0, isLast: a1, step: a2 }; };
|
|
4736
4736
|
function StepperComponent_ng_container_3_div_1_ng_container_10_Template(rf, ctx) { if (rf & 1) {
|
|
4737
4737
|
i0.ɵɵelementContainer(0, 25);
|
|
4738
4738
|
} if (rf & 2) {
|
|
@@ -4742,7 +4742,7 @@ function StepperComponent_ng_container_3_div_1_ng_container_10_Template(rf, ctx)
|
|
|
4742
4742
|
const step_r10 = ctx_r23.$implicit;
|
|
4743
4743
|
i0.ɵɵnextContext();
|
|
4744
4744
|
const _r6 = i0.ɵɵreference(8);
|
|
4745
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r6)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c2$
|
|
4745
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r6)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c2$4, index_r11, isLast_r12, step_r10));
|
|
4746
4746
|
} }
|
|
4747
4747
|
function StepperComponent_ng_container_3_div_1_span_11_Template(rf, ctx) { if (rf & 1) {
|
|
4748
4748
|
i0.ɵɵelementStart(0, "span", 26);
|
|
@@ -4762,9 +4762,9 @@ function StepperComponent_ng_container_3_div_1_ng_container_12_Template(rf, ctx)
|
|
|
4762
4762
|
const step_r10 = ctx_r25.$implicit;
|
|
4763
4763
|
i0.ɵɵnextContext();
|
|
4764
4764
|
const _r6 = i0.ɵɵreference(8);
|
|
4765
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r6)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c2$
|
|
4765
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r6)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c2$4, index_r11, isLast_r12, step_r10));
|
|
4766
4766
|
} }
|
|
4767
|
-
const _c3$
|
|
4767
|
+
const _c3$3 = function (a0) { return { step: a0 }; };
|
|
4768
4768
|
function StepperComponent_ng_container_3_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
4769
4769
|
const _r28 = i0.ɵɵgetCurrentView();
|
|
4770
4770
|
i0.ɵɵelementStart(0, "div", 10);
|
|
@@ -4790,7 +4790,7 @@ function StepperComponent_ng_container_3_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
4790
4790
|
const _r4 = i0.ɵɵreference(6);
|
|
4791
4791
|
i0.ɵɵclassProp("step-setup", ctx_r14.inlineLabels);
|
|
4792
4792
|
i0.ɵɵadvance(1);
|
|
4793
|
-
i0.ɵɵproperty("drTooltip", step_r10.description && _r4)("drTooltipContext", i0.ɵɵpureFunction1(21, _c3$
|
|
4793
|
+
i0.ɵɵproperty("drTooltip", step_r10.description && _r4)("drTooltipContext", i0.ɵɵpureFunction1(21, _c3$3, step_r10))("drTooltipPosition", "bottom");
|
|
4794
4794
|
i0.ɵɵadvance(1);
|
|
4795
4795
|
i0.ɵɵclassProp("active", ctx_r14.currentStep === step_r10)("completed", step_r10.completed);
|
|
4796
4796
|
i0.ɵɵadvance(1);
|
|
@@ -5782,7 +5782,7 @@ function DrChatSuggestionsComponent_ng_template_3_Template(rf, ctx) { if (rf & 1
|
|
|
5782
5782
|
i0.ɵɵadvance(1);
|
|
5783
5783
|
i0.ɵɵproperty("ngForOf", ctx_r3.visibleValues);
|
|
5784
5784
|
} }
|
|
5785
|
-
const _c2$
|
|
5785
|
+
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
5786
|
class DrChatSuggestionsComponent {
|
|
5787
5787
|
get hiddenValues() {
|
|
5788
5788
|
return JSON.parse(localStorage.getItem('aiChatSuggestions')) || [];
|
|
@@ -5888,7 +5888,7 @@ class DrChatSuggestionsComponent {
|
|
|
5888
5888
|
i0.ɵɵtemplate(3, DrChatSuggestionsComponent_ng_template_3_Template, 2, 6, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
5889
5889
|
} if (rf & 2) {
|
|
5890
5890
|
const _r2 = i0.ɵɵreference(4);
|
|
5891
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction4(3, _c2$
|
|
5891
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction4(3, _c2$3, ctx.colsCount === 3, ctx.colsCount === 2, ctx.colsCount === 1, ctx.buttonMode));
|
|
5892
5892
|
i0.ɵɵadvance(2);
|
|
5893
5893
|
i0.ɵɵproperty("ngIf", ctx.buttonMode)("ngIfElse", _r2);
|
|
5894
5894
|
} }, 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 +5947,8 @@ function DrChatComponent_dr_chat_suggestions_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
5947
5947
|
i0.ɵɵclassProp("chat__suggestions--full-height", ctx_r3.fullScreen && !(ctx_r3.messages == null ? null : ctx_r3.messages.length));
|
|
5948
5948
|
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
5949
|
} }
|
|
5950
|
-
const _c2$
|
|
5951
|
-
const _c3$
|
|
5950
|
+
const _c2$2 = [[["dr-chat-alert"]], [["dr-chat-form"]], [["dr-chat-message"]]];
|
|
5951
|
+
const _c3$2 = ["dr-chat-alert", "dr-chat-form", "dr-chat-message"];
|
|
5952
5952
|
class DrChatComponent {
|
|
5953
5953
|
set contentUpdateSubject(value) {
|
|
5954
5954
|
if (value) {
|
|
@@ -6041,8 +6041,8 @@ class DrChatComponent {
|
|
|
6041
6041
|
let _t;
|
|
6042
6042
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.messagesContainer = _t.first);
|
|
6043
6043
|
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$
|
|
6045
|
-
i0.ɵɵprojectionDef(_c2$
|
|
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$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) {
|
|
6045
|
+
i0.ɵɵprojectionDef(_c2$2);
|
|
6046
6046
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
6047
6047
|
i0.ɵɵtemplate(2, DrChatComponent_ng_container_2_Template, 1, 1, "ng-container", 2);
|
|
6048
6048
|
i0.ɵɵelementStart(3, "div", 3);
|
|
@@ -8167,7 +8167,7 @@ function DrDropdownComponent_dr_dropdown_item_4_ng_container_3_Template(rf, ctx)
|
|
|
8167
8167
|
const act_r2 = i0.ɵɵnextContext().$implicit;
|
|
8168
8168
|
i0.ɵɵproperty("ngTemplateOutlet", act_r2.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c1$8, act_r2));
|
|
8169
8169
|
} }
|
|
8170
|
-
const _c2 = function () { return { withoutArrow: true }; };
|
|
8170
|
+
const _c2$1 = function () { return { withoutArrow: true }; };
|
|
8171
8171
|
function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1) {
|
|
8172
8172
|
const _r18 = i0.ɵɵgetCurrentView();
|
|
8173
8173
|
i0.ɵɵelementStart(0, "dr-dropdown-item", 4);
|
|
@@ -8179,7 +8179,7 @@ function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1)
|
|
|
8179
8179
|
} if (rf & 2) {
|
|
8180
8180
|
const act_r2 = ctx.$implicit;
|
|
8181
8181
|
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);
|
|
8182
|
+
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
8183
|
i0.ɵɵadvance(1);
|
|
8184
8184
|
i0.ɵɵproperty("ngIf", !act_r2.templateRef);
|
|
8185
8185
|
i0.ɵɵadvance(1);
|
|
@@ -8187,7 +8187,7 @@ function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1)
|
|
|
8187
8187
|
i0.ɵɵadvance(1);
|
|
8188
8188
|
i0.ɵɵproperty("ngIf", act_r2.templateRef);
|
|
8189
8189
|
} }
|
|
8190
|
-
const _c3 = [[["dr-dropdown-item"]]];
|
|
8190
|
+
const _c3$1 = [[["dr-dropdown-item"]]];
|
|
8191
8191
|
const _c4 = ["dr-dropdown-item"];
|
|
8192
8192
|
class DrDropdownComponent {
|
|
8193
8193
|
set options(data) {
|
|
@@ -8301,7 +8301,7 @@ class DrDropdownComponent {
|
|
|
8301
8301
|
let _t;
|
|
8302
8302
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.menuContainer = _t.first);
|
|
8303
8303
|
} }, 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);
|
|
8304
|
+
i0.ɵɵprojectionDef(_c3$1);
|
|
8305
8305
|
i0.ɵɵelementStart(0, "div", 0, 1)(2, "div", 2);
|
|
8306
8306
|
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
8307
|
i0.ɵɵprojection(3);
|
|
@@ -8751,6 +8751,7 @@ const _c1$6 = ["dr-accordion-item"];
|
|
|
8751
8751
|
class DrAccordionComponent {
|
|
8752
8752
|
constructor() {
|
|
8753
8753
|
this.openCloseItems = new Subject();
|
|
8754
|
+
this.theme = 'regular';
|
|
8754
8755
|
this.multiValue = false;
|
|
8755
8756
|
}
|
|
8756
8757
|
/**
|
|
@@ -8777,17 +8778,24 @@ class DrAccordionComponent {
|
|
|
8777
8778
|
this.openCloseItems.next(true);
|
|
8778
8779
|
}
|
|
8779
8780
|
/** @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"]],
|
|
8781
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAccordionComponent, selectors: [["dr-accordion"]], hostVars: 2, hostBindings: function DrAccordionComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
8782
|
+
i0.ɵɵclassMap(ctx.theme);
|
|
8783
|
+
} }, inputs: { multi: "multi", theme: "theme" }, ngContentSelectors: _c1$6, decls: 1, vars: 0, template: function DrAccordionComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8781
8784
|
i0.ɵɵprojectionDef(_c0$c);
|
|
8782
8785
|
i0.ɵɵprojection(0);
|
|
8783
|
-
} }, styles: ["[_nghost-%COMP%]{display:block;box-shadow:#2c33491a 0 5px 10px}"], changeDetection: 0 }); }
|
|
8786
|
+
} }, styles: ["[_nghost-%COMP%]{display:block;box-shadow:#2c33491a 0 5px 10px}.borderless[_nghost-%COMP%]{box-shadow:none}"], changeDetection: 0 }); }
|
|
8784
8787
|
}
|
|
8785
8788
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrAccordionComponent, [{
|
|
8786
8789
|
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"] }]
|
|
8790
|
+
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
8791
|
}], null, { multi: [{
|
|
8789
8792
|
type: Input,
|
|
8790
8793
|
args: ['multi']
|
|
8794
|
+
}], theme: [{
|
|
8795
|
+
type: Input
|
|
8796
|
+
}, {
|
|
8797
|
+
type: HostBinding,
|
|
8798
|
+
args: ['class']
|
|
8791
8799
|
}] }); })();
|
|
8792
8800
|
|
|
8793
8801
|
const _c0$b = [[["dr-accordion-item-header"]], [["dr-accordion-item-body"]]];
|
|
@@ -8927,14 +8935,27 @@ class DrAccordionItemComponent {
|
|
|
8927
8935
|
type: Output
|
|
8928
8936
|
}] }); })();
|
|
8929
8937
|
|
|
8930
|
-
function
|
|
8931
|
-
i0.ɵɵelement(0, "i"
|
|
8938
|
+
function DrAccordionItemHeaderComponent_i_0_Template(rf, ctx) { if (rf & 1) {
|
|
8939
|
+
i0.ɵɵelement(0, "i");
|
|
8932
8940
|
} if (rf & 2) {
|
|
8933
8941
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
8934
|
-
i0.ɵɵ
|
|
8942
|
+
i0.ɵɵclassMap("dr-accordion-item-header-icon " + ctx_r0.icon);
|
|
8943
|
+
i0.ɵɵclassProp("dr-accordion-item-header-icon--additional-padding", ctx_r0.chevronPosition === "left");
|
|
8944
|
+
} }
|
|
8945
|
+
const _c0$a = function (a0) { return { rotationDegree: a0 }; };
|
|
8946
|
+
const _c1$4 = function (a0, a1) { return { value: a0, params: a1 }; };
|
|
8947
|
+
function DrAccordionItemHeaderComponent_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
8948
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
8949
|
+
i0.ɵɵelementStart(0, "i", 2);
|
|
8950
|
+
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()); });
|
|
8951
|
+
i0.ɵɵelementEnd();
|
|
8952
|
+
} if (rf & 2) {
|
|
8953
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
8954
|
+
i0.ɵɵclassMap(ctx_r1.chevronIconClass);
|
|
8955
|
+
i0.ɵɵproperty("@expansionIndicator", i0.ɵɵpureFunction2(5, _c1$4, ctx_r1.state, i0.ɵɵpureFunction1(3, _c0$a, ctx_r1.chevronRotationDegree)));
|
|
8935
8956
|
} }
|
|
8936
|
-
const
|
|
8937
|
-
const
|
|
8957
|
+
const _c2 = [[["dr-accordion-item-title"]], [["dr-accordion-item-description"]], "*"];
|
|
8958
|
+
const _c3 = ["dr-accordion-item-title", "dr-accordion-item-description", "*"];
|
|
8938
8959
|
class DrAccordionItemHeaderComponent {
|
|
8939
8960
|
get isCollapsed() {
|
|
8940
8961
|
return this.accordionItem.collapsed;
|
|
@@ -8949,6 +8970,8 @@ class DrAccordionItemHeaderComponent {
|
|
|
8949
8970
|
return this.accordionItem.disabled;
|
|
8950
8971
|
}
|
|
8951
8972
|
toggle() {
|
|
8973
|
+
if (this.toggleOnChevronClick)
|
|
8974
|
+
return;
|
|
8952
8975
|
this.accordionItem.toggle();
|
|
8953
8976
|
}
|
|
8954
8977
|
get state() {
|
|
@@ -8961,34 +8984,48 @@ class DrAccordionItemHeaderComponent {
|
|
|
8961
8984
|
this.accordionItem = accordionItem;
|
|
8962
8985
|
this.cd = cd;
|
|
8963
8986
|
this.destroy$ = new Subject();
|
|
8987
|
+
this.chevronOrientation = 'vertical';
|
|
8988
|
+
this.chevronPosition = 'right';
|
|
8989
|
+
this.toggleOnChevronClick = false;
|
|
8990
|
+
this.theme = accordionItem?.accordion?.theme || 'regular';
|
|
8964
8991
|
}
|
|
8965
8992
|
ngOnInit() {
|
|
8966
8993
|
this.accordionItem.accordionItemInvalidate.pipe(takeUntil(this.destroy$)).subscribe(() => this.cd.markForCheck());
|
|
8994
|
+
this.chevronIconClass = this.getChevronIconClass();
|
|
8995
|
+
this.chevronRotationDegree = this.chevronOrientation === 'vertical' ? 180 : 90;
|
|
8967
8996
|
}
|
|
8968
8997
|
ngOnDestroy() {
|
|
8969
8998
|
this.destroy$.next();
|
|
8970
8999
|
this.destroy$.complete();
|
|
8971
9000
|
}
|
|
9001
|
+
getChevronIconClass() {
|
|
9002
|
+
return ('expansion-indicator ' +
|
|
9003
|
+
(this.chevronOrientation === 'vertical' ? 'dr-icon-arrow-down' : 'dr-icon-arrow-right') +
|
|
9004
|
+
` expansion-indicator--${this.chevronPosition}`);
|
|
9005
|
+
}
|
|
8972
9006
|
/** @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:
|
|
9007
|
+
/** @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
9008
|
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
9009
|
} if (rf & 2) {
|
|
8976
9010
|
i0.ɵɵattribute("aria-expanded", ctx.expanded)("tabindex", ctx.tabbable)("aria-disabled", ctx.disabled);
|
|
9011
|
+
i0.ɵɵclassMap(ctx.theme);
|
|
8977
9012
|
i0.ɵɵclassProp("accordion-item-header-collapsed", ctx.isCollapsed)("accordion-item-header-expanded", ctx.expanded);
|
|
8978
|
-
} }, ngContentSelectors:
|
|
8979
|
-
i0.ɵɵprojectionDef(
|
|
8980
|
-
i0.ɵɵ
|
|
8981
|
-
i0.ɵɵ
|
|
8982
|
-
i0.ɵɵprojection(2
|
|
8983
|
-
i0.ɵɵ
|
|
9013
|
+
} }, 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) {
|
|
9014
|
+
i0.ɵɵprojectionDef(_c2);
|
|
9015
|
+
i0.ɵɵtemplate(0, DrAccordionItemHeaderComponent_i_0_Template, 1, 4, "i", 0);
|
|
9016
|
+
i0.ɵɵtemplate(1, DrAccordionItemHeaderComponent_i_1_Template, 1, 8, "i", 1);
|
|
9017
|
+
i0.ɵɵprojection(2);
|
|
9018
|
+
i0.ɵɵprojection(3, 1);
|
|
9019
|
+
i0.ɵɵprojection(4, 2);
|
|
8984
9020
|
} if (rf & 2) {
|
|
8985
|
-
i0.ɵɵ
|
|
9021
|
+
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
9022
|
+
i0.ɵɵadvance(1);
|
|
8986
9023
|
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:
|
|
9024
|
+
} }, 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
9025
|
trigger('expansionIndicator', [
|
|
8989
9026
|
state('expanded', style({
|
|
8990
|
-
transform: 'rotate(
|
|
8991
|
-
})),
|
|
9027
|
+
transform: 'rotate({{ rotationDegree }}deg)',
|
|
9028
|
+
}), { params: { rotationDegree: '180' } }),
|
|
8992
9029
|
transition('collapsed => expanded', animate('100ms ease-in')),
|
|
8993
9030
|
transition('expanded => collapsed', animate('100ms ease-out')),
|
|
8994
9031
|
]),
|
|
@@ -8996,23 +9033,26 @@ class DrAccordionItemHeaderComponent {
|
|
|
8996
9033
|
}
|
|
8997
9034
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrAccordionItemHeaderComponent, [{
|
|
8998
9035
|
type: Component,
|
|
8999
|
-
args: [{ selector: 'dr-accordion-item-header',
|
|
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: [
|
|
9036
|
+
args: [{ selector: 'dr-accordion-item-header', animations: [
|
|
9005
9037
|
trigger('expansionIndicator', [
|
|
9006
9038
|
state('expanded', style({
|
|
9007
|
-
transform: 'rotate(
|
|
9008
|
-
})),
|
|
9039
|
+
transform: 'rotate({{ rotationDegree }}deg)',
|
|
9040
|
+
}), { params: { rotationDegree: '180' } }),
|
|
9009
9041
|
transition('collapsed => expanded', animate('100ms ease-in')),
|
|
9010
9042
|
transition('expanded => collapsed', animate('100ms ease-out')),
|
|
9011
9043
|
]),
|
|
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:
|
|
9044
|
+
], 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
9045
|
}], function () { return [{ type: DrAccordionItemComponent, decorators: [{
|
|
9014
9046
|
type: Host
|
|
9015
|
-
}] }, { type: i0.ChangeDetectorRef }]; }, {
|
|
9047
|
+
}] }, { type: i0.ChangeDetectorRef }]; }, { chevronOrientation: [{
|
|
9048
|
+
type: Input
|
|
9049
|
+
}], chevronPosition: [{
|
|
9050
|
+
type: Input
|
|
9051
|
+
}], icon: [{
|
|
9052
|
+
type: Input
|
|
9053
|
+
}], toggleOnChevronClick: [{
|
|
9054
|
+
type: Input
|
|
9055
|
+
}], isCollapsed: [{
|
|
9016
9056
|
type: HostBinding,
|
|
9017
9057
|
args: ['class.accordion-item-header-collapsed']
|
|
9018
9058
|
}], expanded: [{
|
|
@@ -9027,6 +9067,9 @@ class DrAccordionItemHeaderComponent {
|
|
|
9027
9067
|
}], disabled: [{
|
|
9028
9068
|
type: HostBinding,
|
|
9029
9069
|
args: ['attr.aria-disabled']
|
|
9070
|
+
}], theme: [{
|
|
9071
|
+
type: HostBinding,
|
|
9072
|
+
args: ['class']
|
|
9030
9073
|
}], toggle: [{
|
|
9031
9074
|
type: HostListener,
|
|
9032
9075
|
args: ['click']
|