deep-chat-dev 9.0.26 → 9.0.28
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/README.md +1 -1
- package/custom-elements.json +161 -168
- package/dist/deepChat.bundle.js +1 -1
- package/dist/deepChat.d.ts +0 -1
- package/dist/deepChat.d.ts.map +1 -1
- package/dist/deepChat.js +17 -18
- package/package.json +1 -1
package/dist/deepChat.d.ts
CHANGED
@@ -26,7 +26,6 @@ export declare class DeepChat extends InternalHTML {
|
|
26
26
|
requestInterceptor?: RequestInterceptor;
|
27
27
|
responseInterceptor?: ResponseInterceptor;
|
28
28
|
validateMessageBeforeSending?: ValidateMessageBeforeSending;
|
29
|
-
containerStyle?: CustomStyle;
|
30
29
|
attachmentContainerStyle?: CustomStyle;
|
31
30
|
dropupStyles?: DropupStyles;
|
32
31
|
inputAreaStyle?: CustomStyle;
|
package/dist/deepChat.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"deepChat.d.ts","sourceRoot":"","sources":["../../src/deepChat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,kBAAkB,EAAE,4BAA4B,EAAC,MAAM,4BAA4B,CAAC;AACtH,OAAO,EAAC,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAG1G,OAAO,EAAC,4BAA4B,EAAC,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAC,kBAAkB,EAAE,mBAAmB,EAAC,MAAM,sBAAsB,CAAC;AAG7E,OAAO,EAAC,YAAY,EAAC,MAAM,mCAAmC,CAAC;AAI/D,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAC,kBAAkB,EAAC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AAK,IAAI,CAAY;IAEtD,cAAc,EAAE,MAAM,IAAI,CAAY;IAGtC,YAAY,EAAE,YAAY,CAAY;IAGtC,eAAe,EAAE,MAAM,IAAI,CAAY;IAGvC,iBAAiB,EAAE,MAAM,IAAI,CAAY;IAGzC,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ,gBAAgB,UAAS;IAEzB,sBAAsB,UAAS;IAE/B,cAAc,CAAC,EAAE,SAAS,CAAC;IAE3B,aAAa,CAAC,EAAE,WAAW,CAAC;;IAiB5B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAc;IAE1C,OAAO,CAAC,gBAAgB;IAMf,QAAQ;CA0BlB;AAKD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
package/dist/deepChat.js
CHANGED
@@ -7689,10 +7689,10 @@ var Messages = /*#__PURE__*/function () {
|
|
7689
7689
|
return Messages;
|
7690
7690
|
}();
|
7691
7691
|
var _InputButtonStyleAdjustments = /*#__PURE__*/function () {
|
7692
|
-
function
|
7693
|
-
_classCallCheck(this,
|
7692
|
+
function T() {
|
7693
|
+
_classCallCheck(this, T);
|
7694
7694
|
}
|
7695
|
-
_createClass(
|
7695
|
+
_createClass(T, null, [{
|
7696
7696
|
key: "adjustInputPadding",
|
7697
7697
|
value: function adjustInputPadding(e, t) {
|
7698
7698
|
t["inside-left"].length > 0 && e.classList.add("text-input-inner-left-adjustment"), t["inside-right"].length > 0 && e.classList.add("text-input-inner-right-adjustment");
|
@@ -7700,7 +7700,7 @@ var _InputButtonStyleAdjustments = /*#__PURE__*/function () {
|
|
7700
7700
|
}, {
|
7701
7701
|
key: "adjustForOutsideButton",
|
7702
7702
|
value: function adjustForOutsideButton(e, t, n) {
|
7703
|
-
n["outside-right"].length === 0 && n["outside-left"].length > 0 ? (e[0].classList.add(
|
7703
|
+
n["outside-right"].length === 0 && n["outside-left"].length > 0 ? (e[0].classList.add(T.INPUT_OUTSIDE_LEFT_SMALL_ADJUSTMENT_CLASS), t.classList.add(T.INPUT_OUTSIDE_LEFT_SMALL_ADJUSTMENT_CLASS)) : n["outside-left"].length === 0 && n["outside-right"].length > 0 && (e[3].classList.add(T.INPUT_OUTSIDE_RIGHT_SMALL_ADJUSTMENT_CLASS), t.classList.add(T.INPUT_OUTSIDE_RIGHT_SMALL_ADJUSTMENT_CLASS));
|
7704
7704
|
}
|
7705
7705
|
// when submit is the only button
|
7706
7706
|
// when submit button is outside by itself - we increase the height for a better look
|
@@ -7708,10 +7708,10 @@ var _InputButtonStyleAdjustments = /*#__PURE__*/function () {
|
|
7708
7708
|
key: "adjustOutsideSubmit",
|
7709
7709
|
value: function adjustOutsideSubmit(e, t, n) {
|
7710
7710
|
if (!(n["inside-left"].length > 0 || n["inside-right"].length > 0)) {
|
7711
|
-
if (n["outside-right"].length === 0 && n["outside-left"].length > 0) return e[0].classList.add(
|
7711
|
+
if (n["outside-right"].length === 0 && n["outside-left"].length > 0) return e[0].classList.add(T.INPUT_OUTSIDE_LEFT_ADJUSTMENT_CLASS), t.classList.add(T.INPUT_OUTSIDE_LEFT_ADJUSTMENT_CLASS), n["outside-left"].map(function (s) {
|
7712
7712
|
return s.button.elementRef.classList.add("submit-button-enlarged");
|
7713
7713
|
});
|
7714
|
-
if (n["outside-left"].length === 0 && n["outside-right"].length > 0) return e[3].classList.add(
|
7714
|
+
if (n["outside-left"].length === 0 && n["outside-right"].length > 0) return e[3].classList.add(T.INPUT_OUTSIDE_RIGHT_ADJUSTMENT_CLASS), t.classList.add(T.INPUT_OUTSIDE_RIGHT_ADJUSTMENT_CLASS), n["outside-right"].map(function (s) {
|
7715
7715
|
return s.button.elementRef.classList.add("submit-button-enlarged");
|
7716
7716
|
});
|
7717
7717
|
}
|
@@ -7719,10 +7719,10 @@ var _InputButtonStyleAdjustments = /*#__PURE__*/function () {
|
|
7719
7719
|
}, {
|
7720
7720
|
key: "set",
|
7721
7721
|
value: function set(e, t, n, s) {
|
7722
|
-
!!
|
7722
|
+
!!T.adjustOutsideSubmit(t, n, s) || T.adjustForOutsideButton(t, n, s), T.adjustInputPadding(e, s);
|
7723
7723
|
}
|
7724
7724
|
}]);
|
7725
|
-
return
|
7725
|
+
return T;
|
7726
7726
|
}();
|
7727
7727
|
_InputButtonStyleAdjustments.INPUT_OUTSIDE_LEFT_ADJUSTMENT_CLASS = "text-input-container-left-adjustment";
|
7728
7728
|
_InputButtonStyleAdjustments.INPUT_OUTSIDE_RIGHT_ADJUSTMENT_CLASS = "text-input-container-right-adjustment";
|
@@ -8552,11 +8552,11 @@ var FileAttachments = /*#__PURE__*/function () {
|
|
8552
8552
|
return FileAttachments;
|
8553
8553
|
}();
|
8554
8554
|
var _Modal = /*#__PURE__*/function () {
|
8555
|
-
function
|
8556
|
-
_classCallCheck(this,
|
8557
|
-
this._isOpen = !1, this._contentRef =
|
8555
|
+
function C(e, t, n) {
|
8556
|
+
_classCallCheck(this, C);
|
8557
|
+
this._isOpen = !1, this._contentRef = C.createModalContent(t, n == null ? void 0 : n.backgroundColor), this._buttonPanel = C.createButtonPanel(n == null ? void 0 : n.backgroundColor), this._elementRef = C.createContainer(this._contentRef, n), this._elementRef.appendChild(this._buttonPanel), e.appendChild(this._elementRef), this._backgroundPanelRef = C.createDarkBackgroundPanel(), e.appendChild(this._backgroundPanelRef), this.addWindowEvents();
|
8558
8558
|
}
|
8559
|
-
_createClass(
|
8559
|
+
_createClass(C, [{
|
8560
8560
|
key: "isOpen",
|
8561
8561
|
value: function isOpen() {
|
8562
8562
|
return this._isOpen;
|
@@ -8578,7 +8578,7 @@ var _Modal = /*#__PURE__*/function () {
|
|
8578
8578
|
var _this40 = this;
|
8579
8579
|
this._elementRef.classList.remove("show-modal"), this._elementRef.classList.add("hide-modal"), this._backgroundPanelRef.classList.remove("show-modal-background"), this._backgroundPanelRef.classList.add("hide-modal-background"), this._isOpen = !1, setTimeout(function () {
|
8580
8580
|
_this40._elementRef.style.display = "none", _this40._backgroundPanelRef.style.display = "none";
|
8581
|
-
},
|
8581
|
+
}, C.MODAL_CLOSE_TIMEOUT_MS);
|
8582
8582
|
}
|
8583
8583
|
}, {
|
8584
8584
|
key: "displayModalElements",
|
@@ -8594,7 +8594,7 @@ var _Modal = /*#__PURE__*/function () {
|
|
8594
8594
|
key: "addCloseButton",
|
8595
8595
|
value: function addCloseButton(e, t, n) {
|
8596
8596
|
var _this41 = this;
|
8597
|
-
var s = t ?
|
8597
|
+
var s = t ? C.createSVGButton(e) : C.createTextButton(e);
|
8598
8598
|
return this.addButtons(s), s.onclick = function () {
|
8599
8599
|
_this41.close(), setTimeout(function () {
|
8600
8600
|
n == null || n();
|
@@ -8654,12 +8654,12 @@ var _Modal = /*#__PURE__*/function () {
|
|
8654
8654
|
value: function createTextModalFunc(e, t, n) {
|
8655
8655
|
var s;
|
8656
8656
|
if (_typeof(t) == "object" && (s = t.files) != null && s.infoModal) {
|
8657
|
-
var o = new
|
8657
|
+
var o = new C(e, ["modal-content"], t.files.infoModal.containerStyle);
|
8658
8658
|
return o.addCloseButton("OK", !1, n), o.openTextModal.bind(o, t.infoModalTextMarkUp || "");
|
8659
8659
|
}
|
8660
8660
|
}
|
8661
8661
|
}]);
|
8662
|
-
return
|
8662
|
+
return C;
|
8663
8663
|
}();
|
8664
8664
|
_Modal.MODAL_CLOSE_TIMEOUT_MS = 190;
|
8665
8665
|
var Modal = _Modal;
|
@@ -10738,7 +10738,7 @@ var DeepChat = /*#__PURE__*/function (_InternalHTML2) {
|
|
10738
10738
|
key: "onRender",
|
10739
10739
|
value: function onRender() {
|
10740
10740
|
var _this$_activeService, _this$_childElement;
|
10741
|
-
(_this$_activeService = this._activeService) !== null && _this$_activeService !== void 0 ? _this$_activeService : this._activeService = ServiceIOFactory.create(this), this._activeService && (this.auxiliaryStyle && !this._auxiliaryStyleApplied && (WebComponentStyleUtils.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0),
|
10741
|
+
(_this$_activeService = this._activeService) !== null && _this$_activeService !== void 0 ? _this$_activeService : this._activeService = ServiceIOFactory.create(this), this._activeService && (this.auxiliaryStyle && !this._auxiliaryStyleApplied && (WebComponentStyleUtils.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), this._elementRef.style.cssText = this.style.cssText, this.style.cssText = "", this._activeService.key && this._activeService.validateConfigKey ? ValidateKeyPropertyView.render(this._elementRef, this.changeToChatView.bind(this), this._activeService) : !(this._activeService instanceof DirectServiceIO) || this._activeService.key ? ((_this$_childElement = this._childElement) !== null && _this$_childElement !== void 0 ? _this$_childElement : this._childElement = this.children[0], ChatView.render(this, this._elementRef, this._activeService, this._childElement)) : this._activeService instanceof DirectServiceIO && InsertKeyView.render(this._elementRef, this.changeToChatView.bind(this), this._activeService), this._hasBeenRendered = !0, FireEvents.onRender(this));
|
10742
10742
|
}
|
10743
10743
|
}]);
|
10744
10744
|
return DeepChat;
|
@@ -10750,7 +10750,6 @@ __decorateClass([Property("object")], DeepChat.prototype, "requestBodyLimits", 2
|
|
10750
10750
|
__decorateClass([Property("function")], DeepChat.prototype, "requestInterceptor", 2);
|
10751
10751
|
__decorateClass([Property("function")], DeepChat.prototype, "responseInterceptor", 2);
|
10752
10752
|
__decorateClass([Property("function")], DeepChat.prototype, "validateMessageBeforeSending", 2);
|
10753
|
-
__decorateClass([Property("object")], DeepChat.prototype, "containerStyle", 2);
|
10754
10753
|
__decorateClass([Property("object")], DeepChat.prototype, "attachmentContainerStyle", 2);
|
10755
10754
|
__decorateClass([Property("object")], DeepChat.prototype, "dropupStyles", 2);
|
10756
10755
|
__decorateClass([Property("object")], DeepChat.prototype, "inputAreaStyle", 2);
|