@hortiview/shared-components 2.8.6 → 2.8.7
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/CHANGELOG.md +6 -0
- package/dist/{AlertBanner-DlgFtlZm.js → AlertBanner-D-NTP_6i.js} +3 -3
- package/dist/{BigLoadingSpinner-B_HFhx2F.js → BigLoadingSpinner-CCxsMWnc.js} +1 -1
- package/dist/{GenericCard-Cv8qaFLu.js → GenericCard-DOKyENNm.js} +3 -3
- package/dist/{ListAreaService-D9HRsvH0.js → ListAreaService-CI-s1Xx5.js} +5 -5
- package/dist/{OfflineView-Bw-sbsym.js → OfflineView-DHtzNLwt.js} +3 -3
- package/dist/_Map-BmafU0dj.js +113 -0
- package/dist/components/AlertBanner/AlertBanner.js +4 -4
- package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
- package/dist/components/AlertBanner/LinkBanner.js +3 -3
- package/dist/components/BaseView/BaseView.js +2 -2
- package/dist/components/BasicHeading/BasicHeading.js +2 -2
- package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
- package/dist/components/BlockView/BlockView.js +1 -1
- package/dist/components/ChipCard/ChipCard.js +499 -390
- package/dist/components/ContextMenu/ContextMenu.js +4 -4
- package/dist/components/DeleteModal/DeleteModal.js +5 -5
- package/dist/components/DetailContentWrapper/DetailContentWrapper.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.js +3 -3
- package/dist/components/EmptyView/EmptyView.js +161 -125
- package/dist/components/Filter/Filter.js +11 -11
- package/dist/components/Filter/Filter.test.js +51 -35
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +10 -10
- package/dist/components/FormComponents/FormNumber/CustomTextField.js +3 -3
- package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
- package/dist/components/FormComponents/FormSelect/FormSelect.js +2 -2
- package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +2 -2
- package/dist/components/FormComponents/FormSlider/FormSlider.js +540 -535
- package/dist/components/FormComponents/FormText/FormText.js +2 -2
- package/dist/components/FormComponents/FormToggle/FormToggle.js +4 -4
- package/dist/components/GenericTable/GenericTable.js +8246 -7153
- package/dist/components/GenericTable/Mobile/GenericCard.js +4 -4
- package/dist/components/GenericTable/Mobile/GenericCard.test.js +1 -1
- package/dist/components/GenericTable/Mobile/GenericCardList.js +4 -4
- package/dist/components/HashTabView/HashTabView.js +552 -541
- package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
- package/dist/components/Iconify/Iconify.js +2 -2
- package/dist/components/InfoCard/InfoCard.js +4 -4
- package/dist/components/InfoGroup/InfoGroup.js +3 -3
- package/dist/components/ListArea/ListArea.js +16 -16
- package/dist/components/ListArea/ListArea.test.js +20 -20
- package/dist/components/ListArea/ListAreaService.js +6 -6
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +1 -1
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +164 -178
- package/dist/components/Modal/Modal.js +305 -312
- package/dist/components/ModulePadding/ModulePadding.js +8 -8
- package/dist/components/OfflineView/OfflineView.js +4 -4
- package/dist/components/OfflineView/OfflineView.test.js +1 -1
- package/dist/components/OnboardingBanner/OnboardingBanner.js +13 -13
- package/dist/components/OverflowTooltip/OverflowTooltip.js +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.test.js +1 -1
- package/dist/components/SearchBar/SearchBar.js +2 -2
- package/dist/components/SearchBar/SearchBar.test.js +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Stepper/components/StepperButton.js +1 -1
- package/dist/components/Stepper/components/StepperHeader.js +2 -2
- package/dist/components/Stepper/components/StepperIndicator.js +1 -1
- package/dist/defineProperty-CmuOyxyf.js +318 -0
- package/dist/es.string.iterator-DrqCBub-.js +581 -0
- package/dist/find-B-dm7n_F.js +88 -0
- package/dist/{get-CqneoueQ.js → get-DuK51wnj.js} +1 -1
- package/dist/get-u1nFMLdT.js +377 -0
- package/dist/hooks/useHelperText.js +1 -1
- package/dist/identity-BIZAN_pL.js +213 -0
- package/dist/includes-Bt-Stz_B.js +110 -0
- package/dist/index-Cpb-8cAN.js +2465 -0
- package/dist/index.es-0QJC9VS2.js +325 -0
- package/dist/{index.es-CyjMwj5g.js → index.es-45NOgWlB.js} +93 -101
- package/dist/index.es-B6ZgiW2s.js +3790 -0
- package/dist/{index.es-1zrFd4Te.js → index.es-BGordhUK.js} +352 -323
- package/dist/index.es-BRtk0Q33.js +42 -0
- package/dist/index.es-BXj90wb_.js +402 -0
- package/dist/index.es-Bg8hxXM8.js +912 -0
- package/dist/index.es-Bgjh6euR.js +292 -0
- package/dist/index.es-Bo1Rhtyb.js +80 -0
- package/dist/{index.es-BaX-8joZ.js → index.es-CK4oZMKs.js} +3329 -3232
- package/dist/{index.es-nQ0lMwpE.js → index.es-CKdJX75f.js} +74 -78
- package/dist/index.es-CmF6xAUJ.js +48 -0
- package/dist/{index.es-p4O33fMu.js → index.es-Cq04gn3U.js} +321 -305
- package/dist/{index.es-Cdu6tjUC.js → index.es-D1IpdMde.js} +87 -95
- package/dist/index.es-DDYCugj-.js +166 -0
- package/dist/{index.es-jFaPNuBO.js → index.es-DENZVv7_.js} +427 -444
- package/dist/{index.es-Dnrk7XL6.js → index.es-DObVvepK.js} +158 -166
- package/dist/index.es-DeF-y7fd.js +122 -0
- package/dist/{index.es-ks_RnHLh.js → index.es-Dfju71Pi.js} +27 -37
- package/dist/index.es-DqSY-ePE.js +4923 -0
- package/dist/index.es-DwzB1d7_.js +1061 -0
- package/dist/index.es-IXyb5F6n.js +457 -0
- package/dist/index.es-t7hFwQSs.js +67 -0
- package/dist/isArray-DN9s620O.js +83 -0
- package/dist/{isArray-CSaAxHlq.js → isArray-Dub1wGJM.js} +1 -1
- package/dist/{isEmpty-SkzPhavO.js → isEmpty-CxD71Jv8.js} +4 -5
- package/dist/{isString-CZsZiWgW.js → isString-BNaBRq3S.js} +2 -2
- package/dist/isTypedArray-Dw_IY7Zq.js +212 -0
- package/dist/keyboard-B-WUULl-.js +173 -0
- package/dist/main.js +2 -2
- package/dist/map-Dbvlv_6y.js +707 -0
- package/dist/omit-uTAyrUTm.js +645 -0
- package/dist/orderBy-BXxEvUw6.js +571 -0
- package/dist/parse-int-qVAoFbOL.js +75 -0
- package/dist/services/UtilService.js +7 -7
- package/dist/slicedToArray-BWk2gTCn.js +436 -0
- package/dist/{toString-BFJes2_D.js → toString-CrgB_7Pe.js} +1 -1
- package/dist/{uniqueId-DrPMzA-E.js → uniqueId-NU3-C36A.js} +1 -1
- package/package.json +3 -3
- package/dist/_baseIsEqual-Df2URKWm.js +0 -240
- package/dist/_getAllKeys-BQWmkEw5.js +0 -86
- package/dist/_getTag-BkGSRa18.js +0 -79
- package/dist/_setToString-B6E13pDg.js +0 -580
- package/dist/get-DQr2KQKm.js +0 -113
- package/dist/index-D5m--65X.js +0 -1491
- package/dist/index.es-8MVlRCi4.js +0 -1066
- package/dist/index.es-BbaCXS9-.js +0 -45
- package/dist/index.es-BikIx4uw.js +0 -3242
- package/dist/index.es-CDMu_yu0.js +0 -954
- package/dist/index.es-ChSlnpSq.js +0 -309
- package/dist/index.es-D66OkZJH.js +0 -4853
- package/dist/index.es-DFFyENnI.js +0 -63
- package/dist/index.es-DTMwaJ6B.js +0 -56
- package/dist/index.es-DgTJmbgD.js +0 -268
- package/dist/index.es-DmsyeHLO.js +0 -306
- package/dist/index.es-Dw1eih7R.js +0 -159
- package/dist/index.es-eKuwB1ll.js +0 -54
- package/dist/index.es-qxTN-Bb2.js +0 -107
- package/dist/index.es-xnSvM9b9.js +0 -444
- package/dist/isArray-DDZrq40X.js +0 -456
- package/dist/keyboard-Bpt0aBqQ.js +0 -107
- package/dist/omit-BN3qeeaj.js +0 -364
- package/dist/orderBy-D4LvP9Az.js +0 -316
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import
|
|
3
|
-
import { b as
|
|
4
|
-
import { M as
|
|
1
|
+
import { _ as b, a as y, c as C, P as l } from "./index-Cpb-8cAN.js";
|
|
2
|
+
import I, { forwardRef as _, useRef as f, useImperativeHandle as L, useEffect as p } from "react";
|
|
3
|
+
import { b as h, c as m } from "./tslib.es6-BDCynO9F.js";
|
|
4
|
+
import { M as T, a as N } from "./component-neHBNHRu.js";
|
|
5
5
|
/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google Inc.
|
|
@@ -24,9 +24,9 @@ import { M as b, a as R } from "./component-neHBNHRu.js";
|
|
|
24
24
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
25
25
|
* THE SOFTWARE.
|
|
26
26
|
*/
|
|
27
|
-
var
|
|
27
|
+
var O = {
|
|
28
28
|
ROOT: "mdc-form-field"
|
|
29
|
-
},
|
|
29
|
+
}, P = {
|
|
30
30
|
LABEL_SELECTOR: ".mdc-form-field > label"
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
@@ -51,29 +51,29 @@ var C = {
|
|
|
51
51
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
52
52
|
* THE SOFTWARE.
|
|
53
53
|
*/
|
|
54
|
-
var
|
|
54
|
+
var v = (
|
|
55
55
|
/** @class */
|
|
56
|
-
function(
|
|
57
|
-
|
|
58
|
-
function e
|
|
59
|
-
var
|
|
60
|
-
return
|
|
61
|
-
|
|
62
|
-
},
|
|
56
|
+
function(t) {
|
|
57
|
+
h(n, t);
|
|
58
|
+
function n(e) {
|
|
59
|
+
var i = t.call(this, m(m({}, n.defaultAdapter), e)) || this;
|
|
60
|
+
return i.click = function() {
|
|
61
|
+
i.handleClick();
|
|
62
|
+
}, i;
|
|
63
63
|
}
|
|
64
|
-
return Object.defineProperty(
|
|
64
|
+
return Object.defineProperty(n, "cssClasses", {
|
|
65
65
|
get: function() {
|
|
66
|
-
return
|
|
66
|
+
return O;
|
|
67
67
|
},
|
|
68
68
|
enumerable: !1,
|
|
69
69
|
configurable: !0
|
|
70
|
-
}), Object.defineProperty(
|
|
70
|
+
}), Object.defineProperty(n, "strings", {
|
|
71
71
|
get: function() {
|
|
72
|
-
return
|
|
72
|
+
return P;
|
|
73
73
|
},
|
|
74
74
|
enumerable: !1,
|
|
75
75
|
configurable: !0
|
|
76
|
-
}), Object.defineProperty(
|
|
76
|
+
}), Object.defineProperty(n, "defaultAdapter", {
|
|
77
77
|
get: function() {
|
|
78
78
|
return {
|
|
79
79
|
activateInputRipple: function() {
|
|
@@ -88,17 +88,17 @@ var m = (
|
|
|
88
88
|
},
|
|
89
89
|
enumerable: !1,
|
|
90
90
|
configurable: !0
|
|
91
|
-
}),
|
|
91
|
+
}), n.prototype.init = function() {
|
|
92
92
|
this.adapter.registerInteractionHandler("click", this.click);
|
|
93
|
-
},
|
|
93
|
+
}, n.prototype.destroy = function() {
|
|
94
94
|
this.adapter.deregisterInteractionHandler("click", this.click);
|
|
95
|
-
},
|
|
96
|
-
var
|
|
95
|
+
}, n.prototype.handleClick = function() {
|
|
96
|
+
var e = this;
|
|
97
97
|
this.adapter.activateInputRipple(), requestAnimationFrame(function() {
|
|
98
|
-
|
|
98
|
+
e.adapter.deactivateInputRipple();
|
|
99
99
|
});
|
|
100
|
-
},
|
|
101
|
-
}(
|
|
100
|
+
}, n;
|
|
101
|
+
}(T)
|
|
102
102
|
);
|
|
103
103
|
/**
|
|
104
104
|
* @license
|
|
@@ -122,95 +122,91 @@ var m = (
|
|
|
122
122
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
123
123
|
* THE SOFTWARE.
|
|
124
124
|
*/
|
|
125
|
-
var
|
|
125
|
+
var D = (
|
|
126
126
|
/** @class */
|
|
127
|
-
function(
|
|
128
|
-
|
|
129
|
-
function
|
|
130
|
-
return
|
|
127
|
+
function(t) {
|
|
128
|
+
h(n, t);
|
|
129
|
+
function n() {
|
|
130
|
+
return t !== null && t.apply(this, arguments) || this;
|
|
131
131
|
}
|
|
132
|
-
return
|
|
133
|
-
return new e
|
|
134
|
-
},
|
|
135
|
-
var
|
|
136
|
-
return this.root.querySelector(
|
|
137
|
-
},
|
|
138
|
-
var
|
|
132
|
+
return n.attachTo = function(e) {
|
|
133
|
+
return new n(e);
|
|
134
|
+
}, n.prototype.labelEl = function() {
|
|
135
|
+
var e = v.strings.LABEL_SELECTOR;
|
|
136
|
+
return this.root.querySelector(e);
|
|
137
|
+
}, n.prototype.getDefaultFoundation = function() {
|
|
138
|
+
var e = this, i = {
|
|
139
139
|
activateInputRipple: function() {
|
|
140
|
-
|
|
140
|
+
e.input && e.input.ripple && e.input.ripple.activate();
|
|
141
141
|
},
|
|
142
142
|
deactivateInputRipple: function() {
|
|
143
|
-
|
|
143
|
+
e.input && e.input.ripple && e.input.ripple.deactivate();
|
|
144
144
|
},
|
|
145
|
-
deregisterInteractionHandler: function(o,
|
|
146
|
-
var
|
|
147
|
-
|
|
145
|
+
deregisterInteractionHandler: function(o, a) {
|
|
146
|
+
var r = e.labelEl();
|
|
147
|
+
r && r.removeEventListener(o, a);
|
|
148
148
|
},
|
|
149
|
-
registerInteractionHandler: function(o,
|
|
150
|
-
var
|
|
151
|
-
|
|
149
|
+
registerInteractionHandler: function(o, a) {
|
|
150
|
+
var r = e.labelEl();
|
|
151
|
+
r && r.addEventListener(o, a);
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
|
-
return new
|
|
155
|
-
},
|
|
156
|
-
}(
|
|
157
|
-
)
|
|
158
|
-
const _ = {
|
|
154
|
+
return new v(i);
|
|
155
|
+
}, n;
|
|
156
|
+
}(N)
|
|
157
|
+
), k = {
|
|
159
158
|
/**
|
|
160
159
|
* Reverse the order of the input and label.
|
|
161
160
|
*
|
|
162
161
|
* Defaults to **false**.
|
|
163
162
|
*/
|
|
164
|
-
alignEnd:
|
|
163
|
+
alignEnd: l.bool,
|
|
165
164
|
/**
|
|
166
165
|
* Content to be rendered inside the FormField. Accepts any valid markup.
|
|
167
166
|
*
|
|
168
167
|
* Defaults to **null**.
|
|
169
168
|
*/
|
|
170
|
-
children:
|
|
169
|
+
children: l.node,
|
|
171
170
|
/**
|
|
172
171
|
* The css class name to be passed through to the component markup.
|
|
173
172
|
*
|
|
174
173
|
* Defaults to **undefined**.
|
|
175
174
|
*/
|
|
176
|
-
className:
|
|
175
|
+
className: l.string,
|
|
177
176
|
/**
|
|
178
177
|
* The reference of the input the form field will be associated with. It enables a greater level of integration with parent components.
|
|
179
178
|
*
|
|
180
179
|
* Defaults to **null**.
|
|
181
180
|
*/
|
|
182
|
-
inputRef:
|
|
183
|
-
|
|
181
|
+
inputRef: l.oneOfType([
|
|
182
|
+
l.func,
|
|
184
183
|
// eslint-disable-next-line react/forbid-prop-types
|
|
185
|
-
|
|
186
|
-
current:
|
|
184
|
+
l.shape({
|
|
185
|
+
current: l.any
|
|
187
186
|
})
|
|
188
187
|
])
|
|
189
|
-
},
|
|
188
|
+
}, H = {
|
|
190
189
|
alignEnd: !1,
|
|
191
190
|
children: null,
|
|
192
191
|
className: void 0,
|
|
193
192
|
inputRef: null
|
|
194
|
-
},
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
})
|
|
205
|
-
n && (u.current.input = n.current);
|
|
206
|
-
}, [n]), /* @__PURE__ */ h.createElement("div", F({
|
|
193
|
+
}, M = ["children", "inputRef", "className", "alignEnd"], u = H, g = /* @__PURE__ */ _(function(t, n) {
|
|
194
|
+
var e = t.children, i = e === void 0 ? u.children : e, o = t.inputRef, a = o === void 0 ? u.inputRef : o, r = t.className, E = r === void 0 ? u.className : r, s = t.alignEnd, F = s === void 0 ? u.alignEnd : s, R = b(t, M), c = f(), d = f();
|
|
195
|
+
return L(n, function() {
|
|
196
|
+
return c.current;
|
|
197
|
+
}, []), p(function() {
|
|
198
|
+
return d.current = D.attachTo(c.current), function() {
|
|
199
|
+
d.current.destroy();
|
|
200
|
+
};
|
|
201
|
+
}), p(function() {
|
|
202
|
+
a && (d.current.input = a.current);
|
|
203
|
+
}, [a]), /* @__PURE__ */ I.createElement("div", y({
|
|
207
204
|
ref: c,
|
|
208
|
-
className:
|
|
209
|
-
},
|
|
205
|
+
className: C("lmnt mdc-form-field lmnt-form-field", F && "mdc-form-field--align-end", E)
|
|
206
|
+
}, R), i);
|
|
210
207
|
});
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
s.defaultProps = T;
|
|
208
|
+
g.displayName = "FormField";
|
|
209
|
+
g.propTypes = k;
|
|
214
210
|
export {
|
|
215
|
-
|
|
211
|
+
g as F
|
|
216
212
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { _ as f, a as v, c as L, P as a } from "./index-Cpb-8cAN.js";
|
|
2
|
+
import I, { forwardRef as N, useRef as y, useImperativeHandle as P } from "react";
|
|
3
|
+
var _ = {
|
|
4
|
+
/**
|
|
5
|
+
* Content to be rendered inside the FormField. Accepts any valid markup.
|
|
6
|
+
*
|
|
7
|
+
* Defaults to **null**.
|
|
8
|
+
*/
|
|
9
|
+
children: a.node.isRequired,
|
|
10
|
+
/**
|
|
11
|
+
* The css class name to be passed through to the component markup.
|
|
12
|
+
*
|
|
13
|
+
* Defaults to **undefined**.
|
|
14
|
+
*/
|
|
15
|
+
className: a.string,
|
|
16
|
+
/**
|
|
17
|
+
* Applies disabled styling.
|
|
18
|
+
*
|
|
19
|
+
* Defaults to **false**.
|
|
20
|
+
*/
|
|
21
|
+
disabled: a.bool,
|
|
22
|
+
/**
|
|
23
|
+
* Visibly disable the label, though it will still be available to screen readers.
|
|
24
|
+
*
|
|
25
|
+
* Defaults to **false**.
|
|
26
|
+
*/
|
|
27
|
+
hideLabel: a.bool
|
|
28
|
+
}, g = {
|
|
29
|
+
children: null,
|
|
30
|
+
className: void 0,
|
|
31
|
+
disabled: !1,
|
|
32
|
+
hideLabel: !1
|
|
33
|
+
}, x = ["children", "className", "disabled", "hideLabel", "targetId"], l = g, o = /* @__PURE__ */ N(function(e, b) {
|
|
34
|
+
var d = e.children, c = d === void 0 ? l.children : d, s = e.className, p = s === void 0 ? l.className : s, r = e.disabled, u = r === void 0 ? l.disabled : r, i = e.hideLabel, m = i === void 0 ? l.hideLabel : i, t = e.targetId, h = f(e, x), n = y();
|
|
35
|
+
return P(b, function() {
|
|
36
|
+
return n.current;
|
|
37
|
+
}, []), /* @__PURE__ */ I.createElement("label", v({
|
|
38
|
+
ref: n,
|
|
39
|
+
className: L("lmnt-input-label", m && "sr-only", u && "lmnt-theme-on-surface-disabled", p),
|
|
40
|
+
htmlFor: t,
|
|
41
|
+
"aria-labelledby": t
|
|
42
|
+
}, h), c);
|
|
43
|
+
});
|
|
44
|
+
o.displayName = "InputLabel";
|
|
45
|
+
o.propTypes = _;
|
|
46
|
+
export {
|
|
47
|
+
o as I
|
|
48
|
+
};
|