deep-chat-dev 9.0.42 → 9.0.44
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/dist/deepChat.js
CHANGED
@@ -7883,7 +7883,7 @@ var R = /*#__PURE__*/function () {
|
|
7883
7883
|
key: "createCustomElement",
|
7884
7884
|
value: function createCustomElement(e, t) {
|
7885
7885
|
var r, s, o, a;
|
7886
|
-
var i = e
|
7886
|
+
var i = t == null ? void 0 : t[e];
|
7887
7887
|
if ((r = i == null ? void 0 : i.text) != null && r.content) return R.createElement((s = i == null ? void 0 : i.text) == null ? void 0 : s.content, !0);
|
7888
7888
|
if ((o = i == null ? void 0 : i.svg) != null && o.content) return R.createElement((a = i == null ? void 0 : i.svg) == null ? void 0 : a.content, !1);
|
7889
7889
|
}
|
@@ -7898,7 +7898,7 @@ var R = /*#__PURE__*/function () {
|
|
7898
7898
|
key: "createSpecificStateElement",
|
7899
7899
|
value: function createSpecificStateElement(e, t, i) {
|
7900
7900
|
var r;
|
7901
|
-
return i && (r = R.createCustomElement(
|
7901
|
+
return i && (r = R.createCustomElement(t, i)), R.processElement(e, r), r;
|
7902
7902
|
}
|
7903
7903
|
// used for creating elements that change state in a sequence
|
7904
7904
|
// prettier-ignore
|
@@ -7911,7 +7911,7 @@ var R = /*#__PURE__*/function () {
|
|
7911
7911
|
r[t[0]] = s;
|
7912
7912
|
var o = s;
|
7913
7913
|
return t.slice(1).forEach(function (a) {
|
7914
|
-
o = R.createCustomElement(
|
7914
|
+
o = R.createCustomElement(a, i) || o, r[a] = o;
|
7915
7915
|
}), r;
|
7916
7916
|
}
|
7917
7917
|
}]);
|
@@ -10394,7 +10394,7 @@ var Pe = /*#__PURE__*/function (_ot4) {
|
|
10394
10394
|
}, {
|
10395
10395
|
key: "createDisabledIconElement",
|
10396
10396
|
value: function createDisabledIconElement(e) {
|
10397
|
-
return R.
|
10397
|
+
return R.createCustomElement("disabled", this._customStyles) || e.cloneNode(!0);
|
10398
10398
|
}
|
10399
10399
|
// prettier-ignore
|
10400
10400
|
}, {
|
@@ -2,7 +2,7 @@ import { ButtonInnerElements, ButtonStateStyles } from '../../../../types/button
|
|
2
2
|
export declare class CustomButtonInnerElements {
|
3
3
|
private static createTextElement;
|
4
4
|
private static createElement;
|
5
|
-
|
5
|
+
static createCustomElement<T>(state: keyof T, customStyles?: ButtonStateStyles<T>): HTMLDivElement | SVGGraphicsElement | undefined;
|
6
6
|
private static processElement;
|
7
7
|
static createSpecificStateElement<T>(parentEl: HTMLElement, state: keyof T, customStyles?: ButtonStateStyles<T>): HTMLDivElement | SVGGraphicsElement | undefined;
|
8
8
|
static create<T>(parentEl: HTMLElement, states: (keyof T)[], styles?: ButtonStateStyles<T>): ButtonInnerElements<T>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"customButtonInnerElements.d.ts","sourceRoot":"","sources":["../../../../../../src/views/chat/input/buttons/customButtonInnerElements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAE,iBAAiB,EAAC,MAAM,kCAAkC,CAAC;AAGxF,qBAAa,yBAAyB;IACpC,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAOhC,OAAO,CAAC,MAAM,CAAC,aAAa;
|
1
|
+
{"version":3,"file":"customButtonInnerElements.d.ts","sourceRoot":"","sources":["../../../../../../src/views/chat/input/buttons/customButtonInnerElements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAE,iBAAiB,EAAC,MAAM,kCAAkC,CAAC;AAGxF,qBAAa,yBAAyB;IACpC,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAOhC,OAAO,CAAC,MAAM,CAAC,aAAa;WAId,mBAAmB,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,YAAY,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAOxF,OAAO,CAAC,MAAM,CAAC,cAAc;WAQf,0BAA0B,CAAC,CAAC,EACtC,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,YAAY,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC;WAShE,MAAM,CAAC,CAAC,EAClB,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,MAAM,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC;CAgBvG"}
|