@selfdecode/sd-component-library 4.0.141 → 4.0.142
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/lib/sd-component-library100.js +2 -2
- package/lib/sd-component-library101.js +3 -3
- package/lib/sd-component-library104.js +2 -2
- package/lib/sd-component-library106.js +2 -2
- package/lib/sd-component-library112.js +1 -1
- package/lib/sd-component-library118.js +1 -1
- package/lib/sd-component-library126.js +1 -1
- package/lib/sd-component-library127.js +1 -1
- package/lib/sd-component-library129.js +1 -1
- package/lib/sd-component-library133.js +3 -3
- package/lib/sd-component-library134.js +1 -1
- package/lib/sd-component-library136.js +2 -2
- package/lib/sd-component-library16.js +1 -1
- package/lib/sd-component-library167.js +1 -1
- package/lib/sd-component-library197.js +3 -3
- package/lib/sd-component-library201.js +3 -2
- package/lib/sd-component-library201.js.map +1 -1
- package/lib/sd-component-library202.js +57 -30
- package/lib/sd-component-library202.js.map +1 -1
- package/lib/sd-component-library203.js +2 -599
- package/lib/sd-component-library203.js.map +1 -1
- package/lib/sd-component-library204.js +30 -26
- package/lib/sd-component-library204.js.map +1 -1
- package/lib/sd-component-library205.js +599 -18
- package/lib/sd-component-library205.js.map +1 -1
- package/lib/sd-component-library206.js +19 -57
- package/lib/sd-component-library206.js.map +1 -1
- package/lib/sd-component-library207.js +18 -23
- package/lib/sd-component-library207.js.map +1 -1
- package/lib/sd-component-library208.js +62 -19
- package/lib/sd-component-library208.js.map +1 -1
- package/lib/sd-component-library209.js +23 -3
- package/lib/sd-component-library209.js.map +1 -1
- package/lib/sd-component-library210.js +21 -3
- package/lib/sd-component-library210.js.map +1 -1
- package/lib/sd-component-library211.js +3 -40
- package/lib/sd-component-library211.js.map +1 -1
- package/lib/sd-component-library212.js +3 -129
- package/lib/sd-component-library212.js.map +1 -1
- package/lib/sd-component-library213.js +26 -13
- package/lib/sd-component-library213.js.map +1 -1
- package/lib/sd-component-library214.js +3 -14
- package/lib/sd-component-library214.js.map +1 -1
- package/lib/sd-component-library215.js +31 -3
- package/lib/sd-component-library215.js.map +1 -1
- package/lib/sd-component-library216.js +19 -3
- package/lib/sd-component-library216.js.map +1 -1
- package/lib/sd-component-library217.js +20 -3
- package/lib/sd-component-library217.js.map +1 -1
- package/lib/sd-component-library218.js +28 -52
- package/lib/sd-component-library218.js.map +1 -1
- package/lib/sd-component-library219.js +29 -61
- package/lib/sd-component-library219.js.map +1 -1
- package/lib/sd-component-library220.js +3 -3
- package/lib/sd-component-library220.js.map +1 -1
- package/lib/sd-component-library221.js +129 -46
- package/lib/sd-component-library221.js.map +1 -1
- package/lib/sd-component-library222.js +43 -17
- package/lib/sd-component-library222.js.map +1 -1
- package/lib/sd-component-library223.js +43 -22
- package/lib/sd-component-library223.js.map +1 -1
- package/lib/sd-component-library224.js +7 -56
- package/lib/sd-component-library224.js.map +1 -1
- package/lib/sd-component-library225.js +64 -3
- package/lib/sd-component-library225.js.map +1 -1
- package/lib/sd-component-library226.js +43 -3
- package/lib/sd-component-library226.js.map +1 -1
- package/lib/sd-component-library227.js +13 -3
- package/lib/sd-component-library227.js.map +1 -1
- package/lib/sd-component-library228.js +21 -31
- package/lib/sd-component-library228.js.map +1 -1
- package/lib/sd-component-library229.js +108 -18
- package/lib/sd-component-library229.js.map +1 -1
- package/lib/sd-component-library230.js +46 -19
- package/lib/sd-component-library230.js.map +1 -1
- package/lib/sd-component-library231.js +24 -28
- package/lib/sd-component-library231.js.map +1 -1
- package/lib/sd-component-library232.js +49 -29
- package/lib/sd-component-library232.js.map +1 -1
- package/lib/sd-component-library233.js +47 -128
- package/lib/sd-component-library233.js.map +1 -1
- package/lib/sd-component-library234.js +72 -40
- package/lib/sd-component-library234.js.map +1 -1
- package/lib/sd-component-library235.js +39 -45
- package/lib/sd-component-library235.js.map +1 -1
- package/lib/sd-component-library236.js +27 -8
- package/lib/sd-component-library236.js.map +1 -1
- package/lib/sd-component-library237.js +20 -63
- package/lib/sd-component-library237.js.map +1 -1
- package/lib/sd-component-library238.js +20 -43
- package/lib/sd-component-library238.js.map +1 -1
- package/lib/sd-component-library239.js +2 -13
- package/lib/sd-component-library239.js.map +1 -1
- package/lib/sd-component-library24.js +1 -1
- package/lib/sd-component-library240.js +40 -21
- package/lib/sd-component-library240.js.map +1 -1
- package/lib/sd-component-library241.js +128 -108
- package/lib/sd-component-library241.js.map +1 -1
- package/lib/sd-component-library242.js +13 -47
- package/lib/sd-component-library242.js.map +1 -1
- package/lib/sd-component-library243.js +14 -24
- package/lib/sd-component-library243.js.map +1 -1
- package/lib/sd-component-library244.js +3 -53
- package/lib/sd-component-library244.js.map +1 -1
- package/lib/sd-component-library245.js +3 -48
- package/lib/sd-component-library245.js.map +1 -1
- package/lib/sd-component-library246.js +3 -41
- package/lib/sd-component-library246.js.map +1 -1
- package/lib/sd-component-library247.js +52 -27
- package/lib/sd-component-library247.js.map +1 -1
- package/lib/sd-component-library248.js +62 -72
- package/lib/sd-component-library248.js.map +1 -1
- package/lib/sd-component-library249.js +3 -21
- package/lib/sd-component-library249.js.map +1 -1
- package/lib/sd-component-library250.js +46 -20
- package/lib/sd-component-library250.js.map +1 -1
- package/lib/sd-component-library251.js +17 -2
- package/lib/sd-component-library251.js.map +1 -1
- package/lib/sd-component-library252.js +6 -6
- package/lib/sd-component-library254.js +21 -25
- package/lib/sd-component-library254.js.map +1 -1
- package/lib/sd-component-library256.js +22 -24
- package/lib/sd-component-library256.js.map +1 -1
- package/lib/sd-component-library258.js +25 -21
- package/lib/sd-component-library258.js.map +1 -1
- package/lib/sd-component-library259.js +24 -22
- package/lib/sd-component-library259.js.map +1 -1
- package/lib/sd-component-library262.js +1 -1
- package/lib/sd-component-library265.js +30 -122
- package/lib/sd-component-library265.js.map +1 -1
- package/lib/sd-component-library266.js +20 -9
- package/lib/sd-component-library266.js.map +1 -1
- package/lib/sd-component-library267.js +116 -41
- package/lib/sd-component-library267.js.map +1 -1
- package/lib/sd-component-library268.js +122 -30
- package/lib/sd-component-library268.js.map +1 -1
- package/lib/sd-component-library269.js +9 -20
- package/lib/sd-component-library269.js.map +1 -1
- package/lib/sd-component-library270.js +41 -116
- package/lib/sd-component-library270.js.map +1 -1
- package/lib/sd-component-library278.js +3 -2
- package/lib/sd-component-library278.js.map +1 -1
- package/lib/sd-component-library279.js +3 -2
- package/lib/sd-component-library279.js.map +1 -1
- package/lib/sd-component-library280.js +3 -70
- package/lib/sd-component-library280.js.map +1 -1
- package/lib/sd-component-library281.js +2 -102
- package/lib/sd-component-library281.js.map +1 -1
- package/lib/sd-component-library282.js +2 -106
- package/lib/sd-component-library282.js.map +1 -1
- package/lib/sd-component-library283.js +70 -10
- package/lib/sd-component-library283.js.map +1 -1
- package/lib/sd-component-library284.js +102 -2
- package/lib/sd-component-library284.js.map +1 -1
- package/lib/sd-component-library285.js +104 -34
- package/lib/sd-component-library285.js.map +1 -1
- package/lib/sd-component-library286.js +10 -14
- package/lib/sd-component-library286.js.map +1 -1
- package/lib/sd-component-library287.js +2 -2
- package/lib/sd-component-library288.js +36 -8
- package/lib/sd-component-library288.js.map +1 -1
- package/lib/sd-component-library289.js +14 -328
- package/lib/sd-component-library289.js.map +1 -1
- package/lib/sd-component-library290.js +2 -51
- package/lib/sd-component-library290.js.map +1 -1
- package/lib/sd-component-library291.js +8 -2
- package/lib/sd-component-library291.js.map +1 -1
- package/lib/sd-component-library292.js +324 -73
- package/lib/sd-component-library292.js.map +1 -1
- package/lib/sd-component-library293.js +48 -90
- package/lib/sd-component-library293.js.map +1 -1
- package/lib/sd-component-library294.js +2 -53
- package/lib/sd-component-library294.js.map +1 -1
- package/lib/sd-component-library295.js +76 -8
- package/lib/sd-component-library295.js.map +1 -1
- package/lib/sd-component-library296.js +92 -4
- package/lib/sd-component-library296.js.map +1 -1
- package/lib/sd-component-library297.js +48 -48
- package/lib/sd-component-library297.js.map +1 -1
- package/lib/sd-component-library298.js +9 -3
- package/lib/sd-component-library298.js.map +1 -1
- package/lib/sd-component-library299.js +5 -3
- package/lib/sd-component-library299.js.map +1 -1
- package/lib/sd-component-library300.js +53 -3
- package/lib/sd-component-library300.js.map +1 -1
- package/lib/sd-component-library301.js +9 -2
- package/lib/sd-component-library301.js.map +1 -1
- package/lib/sd-component-library302.js +5 -2
- package/lib/sd-component-library302.js.map +1 -1
- package/lib/sd-component-library303.js +3 -8
- package/lib/sd-component-library303.js.map +1 -1
- package/lib/sd-component-library304.js +19 -5
- package/lib/sd-component-library304.js.map +1 -1
- package/lib/sd-component-library305.js +3 -4
- package/lib/sd-component-library305.js.map +1 -1
- package/lib/sd-component-library306.js +2 -19
- package/lib/sd-component-library306.js.map +1 -1
- package/lib/sd-component-library307.js +2 -3
- package/lib/sd-component-library307.js.map +1 -1
- package/lib/sd-component-library309.js +21 -54
- package/lib/sd-component-library309.js.map +1 -1
- package/lib/sd-component-library310.js +50 -25
- package/lib/sd-component-library310.js.map +1 -1
- package/lib/sd-component-library311.js +33 -91
- package/lib/sd-component-library311.js.map +1 -1
- package/lib/sd-component-library312.js +5 -51
- package/lib/sd-component-library312.js.map +1 -1
- package/lib/sd-component-library313.js +91 -33
- package/lib/sd-component-library313.js.map +1 -1
- package/lib/sd-component-library314.js +4 -25
- package/lib/sd-component-library314.js.map +1 -1
- package/lib/sd-component-library315.js +57 -4
- package/lib/sd-component-library315.js.map +1 -1
- package/lib/sd-component-library316.js +26 -4
- package/lib/sd-component-library316.js.map +1 -1
- package/lib/sd-component-library318.js +89 -28
- package/lib/sd-component-library318.js.map +1 -1
- package/lib/sd-component-library319.js +25 -17
- package/lib/sd-component-library319.js.map +1 -1
- package/lib/sd-component-library320.js +20 -89
- package/lib/sd-component-library320.js.map +1 -1
- package/lib/sd-component-library48.js +1 -1
- package/lib/sd-component-library49.js +1 -1
- package/lib/sd-component-library51.js +3 -3
- package/lib/sd-component-library52.js +2 -2
- package/lib/sd-component-library53.js +2 -2
- package/lib/sd-component-library6.js +1 -1
- package/lib/sd-component-library60.js +1 -1
- package/lib/sd-component-library61.js +2 -2
- package/lib/sd-component-library62.js +5 -5
- package/lib/sd-component-library63.js +1 -1
- package/lib/sd-component-library64.js +2 -2
- package/lib/sd-component-library65.js +1 -1
- package/lib/sd-component-library7.js +1 -1
- package/lib/sd-component-library70.js +2 -2
- package/lib/sd-component-library72.js +3 -3
- package/lib/sd-component-library74.js +2 -2
- package/lib/sd-component-library75.js +3 -3
- package/lib/sd-component-library76.js +1 -1
- package/lib/sd-component-library77.js +1 -1
- package/lib/sd-component-library79.js +1 -1
- package/lib/sd-component-library80.js +1 -1
- package/lib/sd-component-library85.js +1 -1
- package/lib/sd-component-library86.js +6 -6
- package/lib/sd-component-library87.js +2 -2
- package/lib/sd-component-library88.js +1 -1
- package/lib/sd-component-library89.js +5 -5
- package/lib/sd-component-library90.js +1 -1
- package/lib/sd-component-library92.js +6 -6
- package/lib/sd-component-library93.js +1 -1
- package/lib/sd-component-library94.js +7 -7
- package/lib/sd-component-library95.js +1 -1
- package/lib/sd-component-library98.js +2 -2
- package/lib/sd-component-library99.js +3 -3
- package/package.json +1 -1
|
@@ -1,132 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import d from "react";
|
|
4
|
-
import { f as g } from "./sd-component-library285.js";
|
|
5
|
-
import { p as y } from "./sd-component-library286.js";
|
|
6
|
-
var v = a && a.__extends || function() {
|
|
7
|
-
var t = function(r, e) {
|
|
8
|
-
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, o) {
|
|
9
|
-
n.__proto__ = o;
|
|
10
|
-
} || function(n, o) {
|
|
11
|
-
for (var i in o)
|
|
12
|
-
Object.prototype.hasOwnProperty.call(o, i) && (n[i] = o[i]);
|
|
13
|
-
}, t(r, e);
|
|
14
|
-
};
|
|
15
|
-
return function(r, e) {
|
|
16
|
-
if (typeof e != "function" && e !== null)
|
|
17
|
-
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
18
|
-
t(r, e);
|
|
19
|
-
function n() {
|
|
20
|
-
this.constructor = r;
|
|
21
|
-
}
|
|
22
|
-
r.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype, new n());
|
|
23
|
-
};
|
|
24
|
-
}(), p = a && a.__assign || function() {
|
|
25
|
-
return p = Object.assign || function(t) {
|
|
26
|
-
for (var r, e = 1, n = arguments.length; e < n; e++) {
|
|
27
|
-
r = arguments[e];
|
|
28
|
-
for (var o in r)
|
|
29
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
30
|
-
}
|
|
31
|
-
return t;
|
|
32
|
-
}, p.apply(this, arguments);
|
|
33
|
-
}, b = a && a.__createBinding || (Object.create ? function(t, r, e, n) {
|
|
34
|
-
n === void 0 && (n = e), Object.defineProperty(t, n, { enumerable: !0, get: function() {
|
|
35
|
-
return r[e];
|
|
36
|
-
} });
|
|
37
|
-
} : function(t, r, e, n) {
|
|
38
|
-
n === void 0 && (n = e), t[n] = r[e];
|
|
39
|
-
}), O = a && a.__setModuleDefault || (Object.create ? function(t, r) {
|
|
40
|
-
Object.defineProperty(t, "default", { enumerable: !0, value: r });
|
|
41
|
-
} : function(t, r) {
|
|
42
|
-
t.default = r;
|
|
43
|
-
}), m = a && a.__importStar || function(t) {
|
|
44
|
-
if (t && t.__esModule)
|
|
45
|
-
return t;
|
|
46
|
-
var r = {};
|
|
47
|
-
if (t != null)
|
|
48
|
-
for (var e in t)
|
|
49
|
-
e !== "default" && Object.prototype.hasOwnProperty.call(t, e) && b(r, t, e);
|
|
50
|
-
return O(r, t), r;
|
|
51
|
-
}, j = a && a.__rest || function(t, r) {
|
|
52
|
-
var e = {};
|
|
53
|
-
for (var n in t)
|
|
54
|
-
Object.prototype.hasOwnProperty.call(t, n) && r.indexOf(n) < 0 && (e[n] = t[n]);
|
|
55
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
56
|
-
for (var o = 0, n = Object.getOwnPropertySymbols(t); o < n.length; o++)
|
|
57
|
-
r.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[o]) && (e[n[o]] = t[n[o]]);
|
|
58
|
-
return e;
|
|
59
|
-
}, R = a && a.__importDefault || function(t) {
|
|
60
|
-
return t && t.__esModule ? t : { default: t };
|
|
61
|
-
};
|
|
62
|
-
Object.defineProperty(h, "__esModule", { value: !0 });
|
|
63
|
-
var f = m(d), C = R(g), l = m(y);
|
|
64
|
-
function c(t) {
|
|
65
|
-
return t && t.replace(/ |\u202F|\u00A0/g, " ");
|
|
66
|
-
}
|
|
67
|
-
function E(t) {
|
|
68
|
-
var r = document.createTextNode("");
|
|
69
|
-
t.appendChild(r);
|
|
70
|
-
var e = document.activeElement === t;
|
|
71
|
-
if (r !== null && r.nodeValue !== null && e) {
|
|
72
|
-
var n = window.getSelection();
|
|
73
|
-
if (n !== null) {
|
|
74
|
-
var o = document.createRange();
|
|
75
|
-
o.setStart(r, r.nodeValue.length), o.collapse(!0), n.removeAllRanges(), n.addRange(o);
|
|
76
|
-
}
|
|
77
|
-
t instanceof HTMLElement && t.focus();
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
var w = (
|
|
81
|
-
/** @class */
|
|
82
|
-
function(t) {
|
|
83
|
-
v(r, t);
|
|
84
|
-
function r() {
|
|
85
|
-
var e = t !== null && t.apply(this, arguments) || this;
|
|
86
|
-
return e.lastHtml = e.props.html, e.el = typeof e.props.innerRef == "function" ? { current: null } : f.createRef(), e.getEl = function() {
|
|
87
|
-
return (e.props.innerRef && typeof e.props.innerRef != "function" ? e.props.innerRef : e.el).current;
|
|
88
|
-
}, e.emitChange = function(n) {
|
|
89
|
-
var o = e.getEl();
|
|
90
|
-
if (o) {
|
|
91
|
-
var i = o.innerHTML;
|
|
92
|
-
if (e.props.onChange && i !== e.lastHtml) {
|
|
93
|
-
var u = Object.assign({}, n, {
|
|
94
|
-
target: {
|
|
95
|
-
value: i
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
e.props.onChange(u);
|
|
99
|
-
}
|
|
100
|
-
e.lastHtml = i;
|
|
101
|
-
}
|
|
102
|
-
}, e;
|
|
103
|
-
}
|
|
104
|
-
return r.prototype.render = function() {
|
|
105
|
-
var e = this, n = this.props, o = n.tagName, i = n.html, u = n.innerRef, _ = j(n, ["tagName", "html", "innerRef"]);
|
|
106
|
-
return f.createElement(o || "div", p(p({}, _), { ref: typeof u == "function" ? function(s) {
|
|
107
|
-
u(s), e.el.current = s;
|
|
108
|
-
} : u || this.el, onInput: this.emitChange, onBlur: this.props.onBlur || this.emitChange, onKeyUp: this.props.onKeyUp || this.emitChange, onKeyDown: this.props.onKeyDown || this.emitChange, contentEditable: !this.props.disabled, dangerouslySetInnerHTML: { __html: i } }), this.props.children);
|
|
109
|
-
}, r.prototype.shouldComponentUpdate = function(e) {
|
|
110
|
-
var n = this.props, o = this.getEl();
|
|
111
|
-
return !o || c(e.html) !== c(o.innerHTML) ? !0 : n.disabled !== e.disabled || n.tagName !== e.tagName || n.className !== e.className || n.innerRef !== e.innerRef || n.placeholder !== e.placeholder || !C.default(n.style, e.style);
|
|
112
|
-
}, r.prototype.componentDidUpdate = function() {
|
|
113
|
-
var e = this.getEl();
|
|
114
|
-
e && (this.props.html !== e.innerHTML && (e.innerHTML = this.props.html), this.lastHtml = this.props.html, E(e));
|
|
115
|
-
}, r.propTypes = {
|
|
116
|
-
html: l.string.isRequired,
|
|
117
|
-
onChange: l.func,
|
|
118
|
-
disabled: l.bool,
|
|
119
|
-
tagName: l.string,
|
|
120
|
-
className: l.string,
|
|
121
|
-
style: l.object,
|
|
122
|
-
innerRef: l.oneOfType([
|
|
123
|
-
l.object,
|
|
124
|
-
l.func
|
|
125
|
-
])
|
|
126
|
-
}, r;
|
|
127
|
-
}(f.Component)
|
|
128
|
-
), D = h.default = w;
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
const e = (a) => /* @__PURE__ */ t.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32.531 33", ...a }, /* @__PURE__ */ t.createElement("path", { d: "M14.524,22.5v6a4.5,4.5,0,0,0,4.5,4.5l6-13.5V3H8.1a3,3,0,0,0-3,2.55l-2.07,13.5a3,3,0,0,0,3,3.45ZM25.024,3h4.5a3,3,0,0,1,3,3V16.5a3,3,0,0,1-3,3h-4.5", transform: "translate(-1.493 -1.5)" }));
|
|
129
3
|
export {
|
|
130
|
-
|
|
4
|
+
e as ReactComponent
|
|
131
5
|
};
|
|
132
6
|
//# sourceMappingURL=sd-component-library212.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library212.js","sources":["../node_modules/react-contenteditable/lib/react-contenteditable.js"],"sourcesContent":["\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar fast_deep_equal_1 = __importDefault(require(\"fast-deep-equal\"));\nvar PropTypes = __importStar(require(\"prop-types\"));\nfunction normalizeHtml(str) {\n return str && str.replace(/ |\\u202F|\\u00A0/g, ' ');\n}\nfunction replaceCaret(el) {\n // Place the caret at the end of the element\n var target = document.createTextNode('');\n el.appendChild(target);\n // do not move caret if element was not focused\n var isTargetFocused = document.activeElement === el;\n if (target !== null && target.nodeValue !== null && isTargetFocused) {\n var sel = window.getSelection();\n if (sel !== null) {\n var range = document.createRange();\n range.setStart(target, target.nodeValue.length);\n range.collapse(true);\n sel.removeAllRanges();\n sel.addRange(range);\n }\n if (el instanceof HTMLElement)\n el.focus();\n }\n}\n/**\n * A simple component for an html element with editable contents.\n */\nvar ContentEditable = /** @class */ (function (_super) {\n __extends(ContentEditable, _super);\n function ContentEditable() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.lastHtml = _this.props.html;\n _this.el = typeof _this.props.innerRef === 'function' ? { current: null } : React.createRef();\n _this.getEl = function () { return (_this.props.innerRef && typeof _this.props.innerRef !== 'function' ? _this.props.innerRef : _this.el).current; };\n _this.emitChange = function (originalEvt) {\n var el = _this.getEl();\n if (!el)\n return;\n var html = el.innerHTML;\n if (_this.props.onChange && html !== _this.lastHtml) {\n // Clone event with Object.assign to avoid\n // \"Cannot assign to read only property 'target' of object\"\n var evt = Object.assign({}, originalEvt, {\n target: {\n value: html\n }\n });\n _this.props.onChange(evt);\n }\n _this.lastHtml = html;\n };\n return _this;\n }\n ContentEditable.prototype.render = function () {\n var _this = this;\n var _a = this.props, tagName = _a.tagName, html = _a.html, innerRef = _a.innerRef, props = __rest(_a, [\"tagName\", \"html\", \"innerRef\"]);\n return React.createElement(tagName || 'div', __assign(__assign({}, props), { ref: typeof innerRef === 'function' ? function (current) {\n innerRef(current);\n _this.el.current = current;\n } : innerRef || this.el, onInput: this.emitChange, onBlur: this.props.onBlur || this.emitChange, onKeyUp: this.props.onKeyUp || this.emitChange, onKeyDown: this.props.onKeyDown || this.emitChange, contentEditable: !this.props.disabled, dangerouslySetInnerHTML: { __html: html } }), this.props.children);\n };\n ContentEditable.prototype.shouldComponentUpdate = function (nextProps) {\n var props = this.props;\n var el = this.getEl();\n // We need not rerender if the change of props simply reflects the user's edits.\n // Rerendering in this case would make the cursor/caret jump\n // Rerender if there is no element yet... (somehow?)\n if (!el)\n return true;\n // ...or if html really changed... (programmatically, not by user edit)\n if (normalizeHtml(nextProps.html) !== normalizeHtml(el.innerHTML)) {\n return true;\n }\n // Handle additional properties\n return props.disabled !== nextProps.disabled ||\n props.tagName !== nextProps.tagName ||\n props.className !== nextProps.className ||\n props.innerRef !== nextProps.innerRef ||\n props.placeholder !== nextProps.placeholder ||\n !fast_deep_equal_1.default(props.style, nextProps.style);\n };\n ContentEditable.prototype.componentDidUpdate = function () {\n var el = this.getEl();\n if (!el)\n return;\n // Perhaps React (whose VDOM gets outdated because we often prevent\n // rerendering) did not update the DOM. So we update it manually now.\n if (this.props.html !== el.innerHTML) {\n el.innerHTML = this.props.html;\n }\n this.lastHtml = this.props.html;\n replaceCaret(el);\n };\n ContentEditable.propTypes = {\n html: PropTypes.string.isRequired,\n onChange: PropTypes.func,\n disabled: PropTypes.bool,\n tagName: PropTypes.string,\n className: PropTypes.string,\n style: PropTypes.object,\n innerRef: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.func,\n ])\n };\n return ContentEditable;\n}(React.Component));\nexports.default = ContentEditable;\n"],"names":["__extends","this","extendStatics","d","b","p","__","__assign","s","i","__createBinding","o","m","k","k2","__setModuleDefault","v","__importStar","mod","result","__rest","e","t","__importDefault","reactContenteditable","React","require$$0","fast_deep_equal_1","require$$1","PropTypes","require$$2","normalizeHtml","str","replaceCaret","el","target","isTargetFocused","sel","range","ContentEditable","_super","_this","originalEvt","html","evt","_a","tagName","innerRef","props","current","nextProps","_default"],"mappings":";;;;;AACA,IAAIA,IAAaC,KAAQA,EAAK,aAAe,WAAY;AACrD,MAAIC,IAAgB,SAAUC,GAAGC,GAAG;AAChC,WAAAF,IAAgB,OAAO,kBAClB,EAAE,WAAW,CAAA,eAAgB,SAAS,SAAUC,GAAGC,GAAG;AAAE,MAAAD,EAAE,YAAYC;AAAA,IAAE,KACzE,SAAUD,GAAGC,GAAG;AAAE,eAASC,KAAKD;AAAG,QAAI,OAAO,UAAU,eAAe,KAAKA,GAAGC,CAAC,MAAGF,EAAEE,CAAC,IAAID,EAAEC,CAAC;AAAA,OAC1FH,EAAcC,GAAGC,CAAC;AAAA,EACjC;AACI,SAAO,SAAUD,GAAGC,GAAG;AACnB,QAAI,OAAOA,KAAM,cAAcA,MAAM;AACjC,YAAM,IAAI,UAAU,yBAAyB,OAAOA,CAAC,IAAI,+BAA+B;AAC5F,IAAAF,EAAcC,GAAGC,CAAC;AAClB,aAASE,IAAK;AAAE,WAAK,cAAcH;AAAA,IAAI;AACvC,IAAAA,EAAE,YAAYC,MAAM,OAAO,OAAO,OAAOA,CAAC,KAAKE,EAAG,YAAYF,EAAE,WAAW,IAAIE,EAAI;AAAA,EAC3F;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AAAA,GACjB0B,IAAA3B,EAAA,UAAkBe;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"sd-component-library212.js","sources":["../src/components/boolean-feedback/thumbs-feedback/assets/thumbs-down.svg"],"sourcesContent":["export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMi41MzEgMzMiPgogICAgPHBhdGgKICAgICAgICBkPSJNMTQuNTI0LDIyLjV2NmE0LjUsNC41LDAsMCwwLDQuNSw0LjVsNi0xMy41VjNIOC4xYTMsMywwLDAsMC0zLDIuNTVsLTIuMDcsMTMuNWEzLDMsMCwwLDAsMywzLjQ1Wk0yNS4wMjQsM2g0LjVhMywzLDAsMCwxLDMsM1YxNi41YTMsMywwLDAsMS0zLDNoLTQuNSIKICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMS40OTMgLTEuNSkiIC8+Cjwvc3ZnPgo=\""],"names":["SvgThumbsDown","props","React"],"mappings":";AACK,MAACA,IAAgB,CAACC,MAA0B,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,8BAA8B,SAAS,iBAAiB,GAAGD,EAAO,GAAkB,gBAAAC,EAAM,cAAc,QAAQ,EAAE,GAAG,sJAAsJ,WAAW,0BAA0B,CAAC;"}
|
|
@@ -1,16 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { j as n } from "./sd-component-library197.js";
|
|
2
|
+
import { ResponsiveTextV2 as p } from "./sd-component-library150.js";
|
|
3
|
+
const c = (t) => {
|
|
4
|
+
const { text: o, onClick: e, px: r = "10px", py: i = "15px" } = t;
|
|
5
|
+
return /* @__PURE__ */ n.jsx(
|
|
6
|
+
p,
|
|
7
|
+
{
|
|
8
|
+
fontSizeWeight: [[16, "regular"]],
|
|
9
|
+
sx: {
|
|
10
|
+
display: "flex",
|
|
11
|
+
justifyContent: "end",
|
|
12
|
+
px: r,
|
|
13
|
+
py: i,
|
|
14
|
+
cursor: "pointer",
|
|
15
|
+
textTransform: "capitalize",
|
|
16
|
+
opacity: 0.7,
|
|
17
|
+
":hover": {
|
|
18
|
+
opacity: 1
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
onClick: e,
|
|
22
|
+
children: o
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
};
|
|
9
26
|
export {
|
|
10
|
-
|
|
11
|
-
l as htmlSpace,
|
|
12
|
-
r as lineToHtml,
|
|
13
|
-
i as unescapeWrapper,
|
|
14
|
-
n as wrapByDiv
|
|
27
|
+
c as ActionBox
|
|
15
28
|
};
|
|
16
29
|
//# sourceMappingURL=sd-component-library213.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library213.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library213.js","sources":["../src/components/tooltips/actions-tooltip/partials/action-box/action-box.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box, Flex } from \"rebass\";\n\nimport { ResponsiveTextV2 } from \"../../../../texts/responsive-text-v2\";\nimport { ActionBoxProps as Props } from \"./interfaces\";\n\nexport const ActionBox: React.FC<Props> = (props) => {\n const { text, onClick, px = \"10px\", py = \"15px\" } = props;\n\n return (\n <ResponsiveTextV2\n fontSizeWeight={[[16, \"regular\"]]}\n sx={{\n display: \"flex\",\n justifyContent: \"end\",\n px,\n py,\n cursor: \"pointer\",\n textTransform: \"capitalize\",\n opacity: 0.7,\n \":hover\": {\n opacity: 1,\n },\n }}\n onClick={onClick}\n >\n {text}\n </ResponsiveTextV2>\n );\n};\n"],"names":["ActionBox","props","text","onClick","px","py","jsx","ResponsiveTextV2"],"mappings":";;AAOa,MAAAA,IAA6B,CAACC,MAAU;AACnD,QAAM,EAAE,MAAAC,GAAM,SAAAC,GAAS,IAAAC,IAAK,QAAQ,IAAAC,IAAK,OAAW,IAAAJ;AAGlD,SAAAK,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,gBAAgB,CAAC,CAAC,IAAI,SAAS,CAAC;AAAA,MAChC,IAAI;AAAA,QACF,SAAS;AAAA,QACT,gBAAgB;AAAA,QAChB,IAAAH;AAAA,QACA,IAAAC;AAAA,QACA,QAAQ;AAAA,QACR,eAAe;AAAA,QACf,SAAS;AAAA,QACT,UAAU;AAAA,UACR,SAAS;AAAA,QACX;AAAA,MACF;AAAA,MACA,SAAAF;AAAA,MAEC,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import { Button as e } from "./sd-component-library24.js";
|
|
3
|
-
const n = (t) => /* @__PURE__ */ i.jsx(
|
|
4
|
-
e,
|
|
5
|
-
{
|
|
6
|
-
...t,
|
|
7
|
-
variant: "_circle",
|
|
8
|
-
width: [`${t.diameter}px`],
|
|
9
|
-
height: [`${t.diameter}px`],
|
|
10
|
-
"data-testid": "circle-button",
|
|
11
|
-
children: t.children
|
|
12
|
-
}
|
|
13
|
-
);
|
|
1
|
+
const t = 1, o = 13;
|
|
14
2
|
export {
|
|
15
|
-
|
|
3
|
+
t as defaultPointerWidth,
|
|
4
|
+
o as defaultTextBottomMargin
|
|
16
5
|
};
|
|
17
6
|
//# sourceMappingURL=sd-component-library214.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library214.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library214.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/constants.ts"],"sourcesContent":["export const defaultPointerWidth = 1;\nexport const defaultTextBottomMargin = 13;\n"],"names":["defaultPointerWidth","defaultTextBottomMargin"],"mappings":"AAAO,MAAMA,IAAsB,GACtBC,IAA0B;"}
|
|
@@ -1,6 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
const o = (e) => /* @__PURE__ */ t.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ t.createElement("path", { fill: "#4B71F7", d: "M0 9h24v6h-24z" }));
|
|
1
|
+
const e = 250, t = 220, s = 270, n = 10, a = 6, l = 4.5, o = 1.5, d = 18, c = 4, i = 6.5, r = 8, u = 40, f = 6, h = 1.5, m = 32, M = 20, g = 100, R = 14, W = 100, D = 100, k = 87, I = 3, N = 1.5, P = 4, S = 6, b = 3, B = 10, C = 18, F = 7, T = 100;
|
|
3
2
|
export {
|
|
4
|
-
|
|
3
|
+
s as defaultArc,
|
|
4
|
+
f as defaultDashHeight,
|
|
5
|
+
h as defaultDashWidth,
|
|
6
|
+
n as defaultDistanceBetweenRanges,
|
|
7
|
+
M as defaultDistanceFromLabelToRanges,
|
|
8
|
+
d as defaultDistanceFromRangesToNeedle,
|
|
9
|
+
m as defaultDistanceFromRangesToScale,
|
|
10
|
+
a as defaultGaugeWidth,
|
|
11
|
+
t as defaultHeight,
|
|
12
|
+
i as defaultInnerCircleRadius,
|
|
13
|
+
c as defaultInnerCircleStrokeWidth,
|
|
14
|
+
o as defaultInnerPointRadius,
|
|
15
|
+
W as defaultMaskBorderRadius,
|
|
16
|
+
r as defaultNeedleWidth,
|
|
17
|
+
u as defaultNumberOfDashes,
|
|
18
|
+
l as defaultPointStrokeWidth,
|
|
19
|
+
e as defaultWidth,
|
|
20
|
+
R as labelPaddingX,
|
|
21
|
+
g as labelWidth,
|
|
22
|
+
B as smallMeterDistanceBetweenRanges,
|
|
23
|
+
C as smallMeterDistanceFromRangesToNeedle,
|
|
24
|
+
P as smallMeterGaugeWidth,
|
|
25
|
+
k as smallMeterHeight,
|
|
26
|
+
S as smallMeterInnerCircleRadius,
|
|
27
|
+
b as smallMeterInnerCircleStrokeWidth,
|
|
28
|
+
T as smallMeterMaskBorderRadius,
|
|
29
|
+
F as smallMeterNeedleWidth,
|
|
30
|
+
N as smallMeterPointRadius,
|
|
31
|
+
I as smallMeterPointStrokeWidth,
|
|
32
|
+
D as smallMeterWidth
|
|
5
33
|
};
|
|
6
34
|
//# sourceMappingURL=sd-component-library215.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library215.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library215.js","sources":["../src/components/meters/outline-meter/contants.ts"],"sourcesContent":["/**\n * Default values for outline meters\n */\nexport const defaultWidth = 250;\nexport const defaultHeight = 220;\nexport const defaultArc = 270;\nexport const defaultDistanceBetweenRanges = 10;\nexport const defaultGaugeWidth = 6;\nexport const defaultPointStrokeWidth = 4.5;\nexport const defaultInnerPointRadius = 1.5;\nexport const defaultDistanceFromRangesToNeedle = 18;\nexport const defaultInnerCircleStrokeWidth = 4;\nexport const defaultInnerCircleRadius = 6.5;\nexport const defaultNeedleWidth = 8;\nexport const defaultNumberOfDashes = 40;\nexport const defaultDashHeight = 6;\nexport const defaultDashWidth = 1.5;\nexport const defaultDistanceFromRangesToScale = 32;\nexport const defaultDistanceFromLabelToRanges = 20;\nexport const labelWidth = 100;\nexport const labelPaddingX = 14;\nexport const defaultMaskBorderRadius = 100;\n\n/**\n * Small Outline meter default values\n */\nexport const smallMeterWidth = 100;\nexport const smallMeterHeight = 87;\nexport const smallMeterPointStrokeWidth = 3;\nexport const smallMeterPointRadius = 1.5;\nexport const smallMeterGaugeWidth = 4;\nexport const smallMeterInnerCircleRadius = 6;\nexport const smallMeterInnerCircleStrokeWidth = 3;\nexport const smallMeterDistanceBetweenRanges = 10;\nexport const smallMeterDistanceFromRangesToNeedle = 18;\nexport const smallMeterNeedleWidth = 7;\nexport const smallMeterMaskBorderRadius = 100;\n"],"names":["defaultWidth","defaultHeight","defaultArc","defaultDistanceBetweenRanges","defaultGaugeWidth","defaultPointStrokeWidth","defaultInnerPointRadius","defaultDistanceFromRangesToNeedle","defaultInnerCircleStrokeWidth","defaultInnerCircleRadius","defaultNeedleWidth","defaultNumberOfDashes","defaultDashHeight","defaultDashWidth","defaultDistanceFromRangesToScale","defaultDistanceFromLabelToRanges","labelWidth","labelPaddingX","defaultMaskBorderRadius","smallMeterWidth","smallMeterHeight","smallMeterPointStrokeWidth","smallMeterPointRadius","smallMeterGaugeWidth","smallMeterInnerCircleRadius","smallMeterInnerCircleStrokeWidth","smallMeterDistanceBetweenRanges","smallMeterDistanceFromRangesToNeedle","smallMeterNeedleWidth","smallMeterMaskBorderRadius"],"mappings":"AAGO,MAAMA,IAAe,KACfC,IAAgB,KAChBC,IAAa,KACbC,IAA+B,IAC/BC,IAAoB,GACpBC,IAA0B,KAC1BC,IAA0B,KAC1BC,IAAoC,IACpCC,IAAgC,GAChCC,IAA2B,KAC3BC,IAAqB,GACrBC,IAAwB,IACxBC,IAAoB,GACpBC,IAAmB,KACnBC,IAAmC,IACnCC,IAAmC,IACnCC,IAAa,KACbC,IAAgB,IAChBC,IAA0B,KAK1BC,IAAkB,KAClBC,IAAmB,IACnBC,IAA6B,GAC7BC,IAAwB,KACxBC,IAAuB,GACvBC,IAA8B,GAC9BC,IAAmC,GACnCC,IAAkC,IAClCC,IAAuC,IACvCC,IAAwB,GACxBC,IAA6B;"}
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { j as t } from "./sd-component-library197.js";
|
|
2
|
+
import { SmileyGaugeColor as e } from "./sd-component-library217.js";
|
|
3
|
+
import { ReactComponent as o } from "./sd-component-library278.js";
|
|
4
|
+
import { ReactComponent as m } from "./sd-component-library279.js";
|
|
5
|
+
import { ReactComponent as i } from "./sd-component-library280.js";
|
|
6
|
+
const S = 10, c = 80, p = 100, y = 87, R = 30, d = 3, f = 2, g = 4, u = /* @__PURE__ */ new Map([
|
|
7
|
+
[e.GREEN, /* @__PURE__ */ t.jsx(o, {})],
|
|
8
|
+
[e.ORANGE, /* @__PURE__ */ t.jsx(m, {})],
|
|
9
|
+
[e.RED, /* @__PURE__ */ t.jsx(i, {})]
|
|
10
|
+
]);
|
|
3
11
|
export {
|
|
4
|
-
|
|
12
|
+
u as COLOR_TO_ICON_MAP,
|
|
13
|
+
S as defaultDistanceBetweenRanges,
|
|
14
|
+
c as defaultSmileyWidth,
|
|
15
|
+
g as smallSmileyGaugeWidth,
|
|
16
|
+
f as smallSmileyInnerPointRadius,
|
|
17
|
+
d as smallSmileyInnerPointStrokeWidth,
|
|
18
|
+
y as smallSmileyMeterHeight,
|
|
19
|
+
p as smallSmileyMeterWidth,
|
|
20
|
+
R as smallSmileyWidth
|
|
5
21
|
};
|
|
6
22
|
//# sourceMappingURL=sd-component-library216.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library216.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library216.js","sources":["../src/components/meters/smiley-meter-v2/constants.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { HappySmileyIcon, NeutralSmileyIcon, SadSmileyIcon } from \"./assets\";\n\n/**\n * Large Smiley meter v2 default values.\n */\nimport { SmileyGaugeColor } from \"./utils\";\n\nexport const defaultDistanceBetweenRanges = 10;\nexport const defaultSmileyWidth = 80;\n\n/**\n * Small Smiley meter v2 default values.\n */\nexport const smallSmileyMeterWidth = 100;\nexport const smallSmileyMeterHeight = 87;\nexport const smallSmileyWidth = 30;\nexport const smallSmileyInnerPointStrokeWidth = 3;\nexport const smallSmileyInnerPointRadius = 2;\nexport const smallSmileyGaugeWidth = 4;\n\nexport const COLOR_TO_ICON_MAP = new Map<SmileyGaugeColor, React.ReactNode>([\n [SmileyGaugeColor.GREEN, <HappySmileyIcon />],\n [SmileyGaugeColor.ORANGE, <NeutralSmileyIcon />],\n [SmileyGaugeColor.RED, <SadSmileyIcon />],\n]);\n"],"names":["defaultDistanceBetweenRanges","defaultSmileyWidth","smallSmileyMeterWidth","smallSmileyMeterHeight","smallSmileyWidth","smallSmileyInnerPointStrokeWidth","smallSmileyInnerPointRadius","smallSmileyGaugeWidth","COLOR_TO_ICON_MAP","SmileyGaugeColor","jsx","HappySmileyIcon","NeutralSmileyIcon","SadSmileyIcon"],"mappings":";;;;;AASO,MAAMA,IAA+B,IAC/BC,IAAqB,IAKrBC,IAAwB,KACxBC,IAAyB,IACzBC,IAAmB,IACnBC,IAAmC,GACnCC,IAA8B,GAC9BC,IAAwB,GAExBC,wBAAwB,IAAuC;AAAA,EAC1E,CAACC,EAAiB,OAAOC,gBAAAA,EAAA,IAACC,IAAgB,CAAA,CAAE;AAAA,EAC5C,CAACF,EAAiB,QAAQC,gBAAAA,EAAA,IAACE,IAAkB,CAAA,CAAE;AAAA,EAC/C,CAACH,EAAiB,KAAKC,gBAAAA,EAAA,IAACG,IAAc,CAAA,CAAE;AAC1C,CAAC;"}
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { isCorrectOutlineMeterConfig as l } from "./sd-component-library91.js";
|
|
2
|
+
var a = /* @__PURE__ */ ((r) => (r.GREEN = "#00B466", r.ORANGE = "#FF9900", r.RED = "#FF0000", r))(a || {});
|
|
3
|
+
const u = (r) => !r.some(
|
|
4
|
+
({ color: t }) => !Object.values(a).includes(t)
|
|
5
|
+
), f = (r, t) => l(r, t) && u(t), A = (r, t, n, i, o, d) => {
|
|
6
|
+
const c = r - (t - 1) * n, e = (360 - r) / 2 + n * i + c * o, s = e + c * (d - o), g = (e + s) / 2;
|
|
7
|
+
return {
|
|
8
|
+
rangeArcStart: e,
|
|
9
|
+
rangeArcEnd: s,
|
|
10
|
+
rangeArcMiddle: g
|
|
11
|
+
};
|
|
12
|
+
}, R = (r) => {
|
|
13
|
+
const { start: t, end: n } = r;
|
|
14
|
+
return t === 0 ? n < 0.6 : n === 1 ? t > 0.4 : !1;
|
|
15
|
+
};
|
|
3
16
|
export {
|
|
4
|
-
a as
|
|
17
|
+
a as SmileyGaugeColor,
|
|
18
|
+
u as areColorsValid,
|
|
19
|
+
R as getIsHorizontal,
|
|
20
|
+
A as getRangeProperties,
|
|
21
|
+
f as isCorrectSmileyMeterConfig
|
|
5
22
|
};
|
|
6
23
|
//# sourceMappingURL=sd-component-library217.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library217.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library217.js","sources":["../src/components/meters/smiley-meter-v2/utils.ts"],"sourcesContent":["import { OutlineMeterRangeConfig } from \"../outline-meter\";\nimport { isCorrectOutlineMeterConfig } from \"../outline-meter/utils\";\nimport { SmileyMeterRange } from \"./interfaces\";\n\nexport enum SmileyGaugeColor {\n GREEN = \"#00B466\",\n ORANGE = \"#FF9900\",\n RED = \"#FF0000\",\n}\n\nexport const areColorsValid = (ranges: OutlineMeterRangeConfig[]) =>\n !ranges.some(\n ({ color }) => !Object.values(SmileyGaugeColor).includes(color as any)\n );\n\nexport const isCorrectSmileyMeterConfig = (\n value: number,\n ranges: OutlineMeterRangeConfig[]\n): ranges is SmileyMeterRange[] => {\n return isCorrectOutlineMeterConfig(value, ranges) && areColorsValid(ranges);\n};\n\nexport const getRangeProperties = (\n arc: number,\n totalRanges: number,\n distanceBetweenRanges: number,\n idx: number,\n start: number,\n end: number\n) => {\n const arcForRanges = arc - (totalRanges - 1) * distanceBetweenRanges;\n const arcStart = (360 - arc) / 2; // deg\n const rangeArcStart =\n arcStart + distanceBetweenRanges * idx + arcForRanges * start;\n const rangeArcEnd = rangeArcStart + arcForRanges * (end - start);\n\n const rangeArcMiddle = (rangeArcStart + rangeArcEnd) / 2;\n return {\n rangeArcStart,\n rangeArcEnd,\n rangeArcMiddle,\n };\n};\n\nexport const getIsHorizontal = (range: SmileyMeterRange) => {\n const { start, end } = range;\n return start === 0 ? end < 0.6 : end === 1 ? start > 0.4 : false;\n};\n"],"names":["SmileyGaugeColor","areColorsValid","ranges","color","isCorrectSmileyMeterConfig","value","isCorrectOutlineMeterConfig","getRangeProperties","arc","totalRanges","distanceBetweenRanges","idx","start","end","arcForRanges","rangeArcStart","rangeArcEnd","rangeArcMiddle","getIsHorizontal","range"],"mappings":";AAIY,IAAAA,sBAAAA,OACVA,EAAA,QAAQ,WACRA,EAAA,SAAS,WACTA,EAAA,MAAM,WAHIA,IAAAA,KAAA,CAAA,CAAA;AAML,MAAMC,IAAiB,CAACC,MAC7B,CAACA,EAAO;AAAA,EACN,CAAC,EAAE,OAAAC,EAAY,MAAA,CAAC,OAAO,OAAOH,CAAgB,EAAE,SAASG,CAAY;AACvE,GAEWC,IAA6B,CACxCC,GACAH,MAEOI,EAA4BD,GAAOH,CAAM,KAAKD,EAAeC,CAAM,GAG/DK,IAAqB,CAChCC,GACAC,GACAC,GACAC,GACAC,GACAC,MACG;AACG,QAAAC,IAAeN,KAAOC,IAAc,KAAKC,GAEzCK,KADY,MAAMP,KAAO,IAElBE,IAAwBC,IAAMG,IAAeF,GACpDI,IAAcD,IAAgBD,KAAgBD,IAAMD,IAEpDK,KAAkBF,IAAgBC,KAAe;AAChD,SAAA;AAAA,IACL,eAAAD;AAAA,IACA,aAAAC;AAAA,IACA,gBAAAC;AAAA,EAAA;AAEJ,GAEaC,IAAkB,CAACC,MAA4B;AACpD,QAAA,EAAE,OAAAP,GAAO,KAAAC,EAAQ,IAAAM;AACvB,SAAOP,MAAU,IAAIC,IAAM,MAAMA,MAAQ,IAAID,IAAQ,MAAM;AAC7D;"}
|
|
@@ -1,55 +1,31 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
t
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
borderStyle: "solid",
|
|
29
|
-
borderColor: "cl_lightGrey",
|
|
30
|
-
borderRadius: "0 0 3px 3px",
|
|
31
|
-
borderTopStyle: "none",
|
|
32
|
-
boxShadow: "2px 3px 10px rgba(211,223,255,0.25)",
|
|
33
|
-
bg: "cl_white"
|
|
34
|
-
},
|
|
35
|
-
children: p.map((r, d) => /* @__PURE__ */ o.jsxs(n.Fragment, { children: [
|
|
36
|
-
d !== 0 && /* @__PURE__ */ o.jsx(i, { color: "cl_headerLine" }),
|
|
37
|
-
/* @__PURE__ */ o.jsx(
|
|
38
|
-
a,
|
|
39
|
-
{
|
|
40
|
-
...r,
|
|
41
|
-
onClick: c(r),
|
|
42
|
-
height: e
|
|
43
|
-
}
|
|
44
|
-
)
|
|
45
|
-
] }, r.id))
|
|
46
|
-
}
|
|
47
|
-
)
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
};
|
|
1
|
+
import { j as a } from "./sd-component-library197.js";
|
|
2
|
+
import R, { createElement as g } from "react";
|
|
3
|
+
import { isValueInRange as f } from "./sd-component-library91.js";
|
|
4
|
+
import { SmileyMeterRange as d } from "./sd-component-library310.js";
|
|
5
|
+
const j = R.forwardRef(
|
|
6
|
+
(r, m) => {
|
|
7
|
+
const { value: s, ranges: n, distanceFromRanges: c } = r, o = n.findIndex(
|
|
8
|
+
({ start: e, end: t, bounds: l }) => f(s, e, t, l)
|
|
9
|
+
), i = n.map((e, t) => ({
|
|
10
|
+
...e,
|
|
11
|
+
color: t < o ? n[o].color : e.color
|
|
12
|
+
}));
|
|
13
|
+
return /* @__PURE__ */ a.jsx(a.Fragment, { children: i.map((e, t) => /* @__PURE__ */ g(
|
|
14
|
+
d,
|
|
15
|
+
{
|
|
16
|
+
...e,
|
|
17
|
+
...r,
|
|
18
|
+
idx: t,
|
|
19
|
+
totalRanges: n.length,
|
|
20
|
+
pointerLength: c,
|
|
21
|
+
key: `${e.start}-${e.end}-${t}`,
|
|
22
|
+
isMatchedRange: o === t,
|
|
23
|
+
ref: m
|
|
24
|
+
}
|
|
25
|
+
)) });
|
|
26
|
+
}
|
|
27
|
+
);
|
|
52
28
|
export {
|
|
53
|
-
|
|
29
|
+
j as SmileyMeterRanges
|
|
54
30
|
};
|
|
55
31
|
//# sourceMappingURL=sd-component-library218.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library218.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library218.js","sources":["../src/components/meters/smiley-meter-v2/partials/smiley-meter-ranges/smiley-meter-ranges.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { isValueInRange } from \"../../../outline-meter/utils\";\nimport { SmileyMeterRange } from \"../smiley-meter-range\";\nimport { SmileyMeterRangesProps as Props } from \"./interfaces\";\n\nexport const SmileyMeterRanges = React.forwardRef<SVGCircleElement, Props>(\n (props, pointRef) => {\n const { value, ranges, distanceFromRanges } = props;\n\n const matchingRangeIndex = ranges.findIndex(({ start, end, bounds }) =>\n isValueInRange(value, start, end, bounds)\n );\n const newRanges = ranges.map((range, idx) => ({\n ...range,\n color:\n idx < matchingRangeIndex\n ? ranges[matchingRangeIndex].color\n : range.color,\n }));\n\n return (\n <>\n {newRanges.map((range, idx) => (\n <SmileyMeterRange\n {...range}\n {...props}\n idx={idx}\n totalRanges={ranges.length}\n pointerLength={distanceFromRanges}\n key={`${range.start}-${range.end}-${idx}`}\n isMatchedRange={matchingRangeIndex === idx}\n ref={pointRef}\n />\n ))}\n </>\n );\n }\n);\n"],"names":["SmileyMeterRanges","React","props","pointRef","value","ranges","distanceFromRanges","matchingRangeIndex","start","end","bounds","isValueInRange","newRanges","range","idx","jsx","Fragment","createElement","SmileyMeterRange"],"mappings":";;;;AAMO,MAAMA,IAAoBC,EAAM;AAAA,EACrC,CAACC,GAAOC,MAAa;AACnB,UAAM,EAAE,OAAAC,GAAO,QAAAC,GAAQ,oBAAAC,EAAA,IAAuBJ,GAExCK,IAAqBF,EAAO;AAAA,MAAU,CAAC,EAAE,OAAAG,GAAO,KAAAC,GAAK,QAAAC,QACzDC,EAAeP,GAAOI,GAAOC,GAAKC,CAAM;AAAA,IAAA,GAEpCE,IAAYP,EAAO,IAAI,CAACQ,GAAOC,OAAS;AAAA,MAC5C,GAAGD;AAAA,MACH,OACEC,IAAMP,IACFF,EAAOE,CAAkB,EAAE,QAC3BM,EAAM;AAAA,IACZ,EAAA;AAEF,WAEKE,gBAAAA,EAAA,IAAAC,EAAA,UAAA,EAAA,UAAAJ,EAAU,IAAI,CAACC,GAAOC,MACrB,gBAAAG;AAAA,MAACC;AAAA,MAAA;AAAA,QACE,GAAGL;AAAA,QACH,GAAGX;AAAA,QACJ,KAAAY;AAAA,QACA,aAAaT,EAAO;AAAA,QACpB,eAAeC;AAAA,QACf,KAAK,GAAGO,EAAM,KAAK,IAAIA,EAAM,GAAG,IAAIC,CAAG;AAAA,QACvC,gBAAgBP,MAAuBO;AAAA,QACvC,KAAKX;AAAA,MAAA;AAAA,IAER,CAAA,EACH,CAAA;AAAA,EAEJ;AACF;"}
|
|
@@ -1,68 +1,36 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
borderColor: "#C8CCE5",
|
|
25
|
-
boxShadow: "2px 3px 10px rgba(211,223,255,0.25)"
|
|
26
|
-
},
|
|
27
|
-
children: t.map((e, p) => /* @__PURE__ */ o.jsxs(d.Fragment, { children: [
|
|
28
|
-
i ? /* @__PURE__ */ o.jsx(m, { to: e.url, style: { textDecoration: "none" }, children: /* @__PURE__ */ o.jsx(x, { ...e, onResultClick: r }) }) : /* @__PURE__ */ o.jsx(
|
|
29
|
-
x,
|
|
30
|
-
{
|
|
31
|
-
...e,
|
|
32
|
-
onResultClick: r,
|
|
33
|
-
onClick: () => window.location.href = `https://www.selfdecode.com${e.url}`
|
|
34
|
-
}
|
|
35
|
-
),
|
|
36
|
-
p + 1 !== t.length && /* @__PURE__ */ o.jsx(c, { color: "cl_lightGrey" })
|
|
37
|
-
] }, `${p}-${e.url}`))
|
|
38
|
-
}
|
|
39
|
-
), x = ({
|
|
40
|
-
onResultClick: t,
|
|
41
|
-
onClick: i,
|
|
42
|
-
...r
|
|
43
|
-
}) => {
|
|
44
|
-
const e = () => {
|
|
45
|
-
t == null || t(r), i == null || i();
|
|
46
|
-
};
|
|
47
|
-
return /* @__PURE__ */ o.jsxs(
|
|
48
|
-
f,
|
|
1
|
+
import { j as h } from "./sd-component-library197.js";
|
|
2
|
+
import { getRangeProperties as p } from "./sd-component-library217.js";
|
|
3
|
+
import { MatchedRangeLabelBox as u } from "./sd-component-library313.js";
|
|
4
|
+
const b = (e) => {
|
|
5
|
+
const {
|
|
6
|
+
range: a,
|
|
7
|
+
arc: n,
|
|
8
|
+
totalRanges: o,
|
|
9
|
+
distanceBetweenRanges: r,
|
|
10
|
+
idx: s,
|
|
11
|
+
diameter: d,
|
|
12
|
+
segmented: c,
|
|
13
|
+
counterClockWise: i
|
|
14
|
+
} = e, { start: g, end: l } = a, m = d / 2, { rangeArcMiddle: x } = p(
|
|
15
|
+
n,
|
|
16
|
+
o,
|
|
17
|
+
r,
|
|
18
|
+
s,
|
|
19
|
+
g,
|
|
20
|
+
l
|
|
21
|
+
), t = Math.round(x);
|
|
22
|
+
return /* @__PURE__ */ h.jsx(
|
|
23
|
+
u,
|
|
49
24
|
{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
":hover": { bg: "#eff4ff" }
|
|
56
|
-
},
|
|
57
|
-
onClick: e,
|
|
58
|
-
children: [
|
|
59
|
-
/* @__PURE__ */ o.jsx(h, { fontSize: 16, children: r.text }),
|
|
60
|
-
!!r.type && /* @__PURE__ */ o.jsx(n, { width: "max-content", mb: ["8px", "0"], children: /* @__PURE__ */ o.jsx(s, { children: r.type }) })
|
|
61
|
-
]
|
|
25
|
+
...e,
|
|
26
|
+
...a,
|
|
27
|
+
alpha: i ? 360 - t : t,
|
|
28
|
+
radius: m,
|
|
29
|
+
round: c
|
|
62
30
|
}
|
|
63
31
|
);
|
|
64
32
|
};
|
|
65
33
|
export {
|
|
66
|
-
|
|
34
|
+
b as MatchedRangeLabelBox
|
|
67
35
|
};
|
|
68
36
|
//# sourceMappingURL=sd-component-library219.js.map
|