primereact 10.6.0 → 10.6.1
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/buttongroup/buttongroup.cjs.js +18 -370
- package/buttongroup/buttongroup.cjs.min.js +1 -1
- package/buttongroup/buttongroup.esm.js +5 -354
- package/buttongroup/buttongroup.esm.min.js +1 -1
- package/buttongroup/buttongroup.js +52 -404
- package/buttongroup/buttongroup.min.js +1 -1
- package/floatlabel/floatlabel.cjs.js +18 -370
- package/floatlabel/floatlabel.cjs.min.js +1 -1
- package/floatlabel/floatlabel.esm.js +5 -354
- package/floatlabel/floatlabel.esm.min.js +1 -1
- package/floatlabel/floatlabel.js +53 -405
- package/floatlabel/floatlabel.min.js +1 -1
- package/package.json +1 -1
- package/stepper/stepper.cjs.js +5 -299
- package/stepper/stepper.cjs.min.js +1 -1
- package/stepper/stepper.esm.js +5 -298
- package/stepper/stepper.esm.min.js +1 -1
- package/stepper/stepper.js +4 -298
- package/stepper/stepper.min.js +1 -1
- package/stepperpanel/stepperpanel.cjs.js +17 -371
- package/stepperpanel/stepperpanel.cjs.min.js +1 -1
- package/stepperpanel/stepperpanel.esm.js +3 -354
- package/stepperpanel/stepperpanel.esm.min.js +1 -1
- package/stepperpanel/stepperpanel.js +46 -398
- package/stepperpanel/stepperpanel.min.js +1 -1
- package/web-types.json +1 -1
|
@@ -1,409 +1,57 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.stepperpanel = (function (exports, React,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
this.primereact.stepperpanel = (function (exports, React, api, componentbase) {
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
function _interopNamespace(e) {
|
|
6
|
+
if (e && e.__esModule) return e;
|
|
7
|
+
var n = Object.create(null);
|
|
8
|
+
if (e) {
|
|
9
|
+
Object.keys(e).forEach(function (k) {
|
|
10
|
+
if (k !== 'default') {
|
|
11
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return e[k]; }
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
26
|
-
var PrimeReact__default = /*#__PURE__*/_interopDefaultLegacy(PrimeReact);
|
|
27
|
-
|
|
28
|
-
function _arrayLikeToArray(arr, len) {
|
|
29
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
30
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
31
|
-
return arr2;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function _arrayWithoutHoles(arr) {
|
|
35
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function _iterableToArray(iter) {
|
|
39
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
43
|
-
if (!o) return;
|
|
44
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
45
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
46
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
47
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
48
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function _nonIterableSpread() {
|
|
52
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
function _toConsumableArray(arr) {
|
|
56
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
function _typeof(o) {
|
|
60
|
-
"@babel/helpers - typeof";
|
|
61
|
-
|
|
62
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
63
|
-
return typeof o;
|
|
64
|
-
} : function (o) {
|
|
65
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
66
|
-
}, _typeof(o);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
function _toPrimitive(input, hint) {
|
|
70
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
71
|
-
var prim = input[Symbol.toPrimitive];
|
|
72
|
-
if (prim !== undefined) {
|
|
73
|
-
var res = prim.call(input, hint || "default");
|
|
74
|
-
if (_typeof(res) !== "object") return res;
|
|
75
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
76
|
-
}
|
|
77
|
-
return (hint === "string" ? String : Number)(input);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function _toPropertyKey(arg) {
|
|
81
|
-
var key = _toPrimitive(arg, "string");
|
|
82
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
function _defineProperty(obj, key, value) {
|
|
86
|
-
key = _toPropertyKey(key);
|
|
87
|
-
if (key in obj) {
|
|
88
|
-
Object.defineProperty(obj, key, {
|
|
89
|
-
value: value,
|
|
90
|
-
enumerable: true,
|
|
91
|
-
configurable: true,
|
|
92
|
-
writable: true
|
|
93
|
-
});
|
|
94
|
-
} else {
|
|
95
|
-
obj[key] = value;
|
|
19
|
+
n["default"] = e;
|
|
20
|
+
return Object.freeze(n);
|
|
96
21
|
}
|
|
97
|
-
return obj;
|
|
98
|
-
}
|
|
99
22
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
defaultProps: {
|
|
112
|
-
pt: undefined,
|
|
113
|
-
ptOptions: undefined,
|
|
114
|
-
unstyled: false
|
|
115
|
-
},
|
|
116
|
-
context: {},
|
|
117
|
-
globalCSS: undefined,
|
|
118
|
-
classes: {},
|
|
119
|
-
styles: '',
|
|
120
|
-
extend: function extend() {
|
|
121
|
-
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
122
|
-
var css = props.css;
|
|
123
|
-
var defaultProps = _objectSpread(_objectSpread({}, props.defaultProps), ComponentBase.defaultProps);
|
|
124
|
-
var inlineStyles = {};
|
|
125
|
-
var getProps = function getProps(props) {
|
|
126
|
-
var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
127
|
-
ComponentBase.context = context;
|
|
128
|
-
ComponentBase.cProps = props;
|
|
129
|
-
return utils.ObjectUtils.getMergedProps(props, defaultProps);
|
|
130
|
-
};
|
|
131
|
-
var getOtherProps = function getOtherProps(props) {
|
|
132
|
-
return utils.ObjectUtils.getDiffProps(props, defaultProps);
|
|
133
|
-
};
|
|
134
|
-
var getPTValue = function getPTValue() {
|
|
135
|
-
var _ComponentBase$contex;
|
|
136
|
-
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
137
|
-
var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
138
|
-
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
139
|
-
var searchInDefaultPT = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
|
|
140
|
-
// obj either is the passthrough options or has a .pt property.
|
|
141
|
-
if (obj.hasOwnProperty('pt') && obj.pt !== undefined) {
|
|
142
|
-
obj = obj.pt;
|
|
143
|
-
}
|
|
144
|
-
var originalkey = key;
|
|
145
|
-
var isNestedParam = /./g.test(originalkey) && !!params[originalkey.split('.')[0]];
|
|
146
|
-
var fkey = isNestedParam ? utils.ObjectUtils.toFlatCase(originalkey.split('.')[1]) : utils.ObjectUtils.toFlatCase(originalkey);
|
|
147
|
-
var hostName = params.hostName && utils.ObjectUtils.toFlatCase(params.hostName);
|
|
148
|
-
var componentName = hostName || params.props && params.props.__TYPE && utils.ObjectUtils.toFlatCase(params.props.__TYPE) || '';
|
|
149
|
-
var isTransition = fkey === 'transition';
|
|
150
|
-
var datasetPrefix = 'data-pc-';
|
|
151
|
-
var getHostInstance = function getHostInstance(params) {
|
|
152
|
-
return params !== null && params !== void 0 && params.props ? params.hostName ? params.props.__TYPE === params.hostName ? params.props : getHostInstance(params.parent) : params.parent : undefined;
|
|
153
|
-
};
|
|
154
|
-
var getPropValue = function getPropValue(name) {
|
|
155
|
-
var _params$props, _getHostInstance;
|
|
156
|
-
return ((_params$props = params.props) === null || _params$props === void 0 ? void 0 : _params$props[name]) || ((_getHostInstance = getHostInstance(params)) === null || _getHostInstance === void 0 ? void 0 : _getHostInstance[name]);
|
|
157
|
-
};
|
|
158
|
-
ComponentBase.cParams = params;
|
|
159
|
-
ComponentBase.cName = componentName;
|
|
160
|
-
var _ref = getPropValue('ptOptions') || ComponentBase.context.ptOptions || {},
|
|
161
|
-
_ref$mergeSections = _ref.mergeSections,
|
|
162
|
-
mergeSections = _ref$mergeSections === void 0 ? true : _ref$mergeSections,
|
|
163
|
-
_ref$mergeProps = _ref.mergeProps,
|
|
164
|
-
useMergeProps = _ref$mergeProps === void 0 ? false : _ref$mergeProps;
|
|
165
|
-
var getPTClassValue = function getPTClassValue() {
|
|
166
|
-
var value = getOptionValue.apply(void 0, arguments);
|
|
167
|
-
if (Array.isArray(value)) {
|
|
168
|
-
return {
|
|
169
|
-
className: utils.classNames.apply(void 0, _toConsumableArray(value))
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
if (utils.ObjectUtils.isString(value)) {
|
|
173
|
-
return {
|
|
174
|
-
className: value
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
if (value !== null && value !== void 0 && value.hasOwnProperty('className') && Array.isArray(value.className)) {
|
|
178
|
-
return {
|
|
179
|
-
className: utils.classNames.apply(void 0, _toConsumableArray(value.className))
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
return value;
|
|
183
|
-
};
|
|
184
|
-
var globalPT = searchInDefaultPT ? isNestedParam ? _useGlobalPT(getPTClassValue, originalkey, params) : _useDefaultPT(getPTClassValue, originalkey, params) : undefined;
|
|
185
|
-
var self = isNestedParam ? undefined : _usePT(_getPT(obj, componentName), getPTClassValue, originalkey, params);
|
|
186
|
-
var datasetProps = !isTransition && _objectSpread(_objectSpread({}, fkey === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), params.props && params.props.__parentMetadata ? utils.ObjectUtils.toFlatCase(params.props.__TYPE) : componentName)), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), fkey));
|
|
187
|
-
return mergeSections || !mergeSections && self ? useMergeProps ? utils.mergeProps([globalPT, self, Object.keys(datasetProps).length ? datasetProps : {}], {
|
|
188
|
-
classNameMergeFunction: (_ComponentBase$contex = ComponentBase.context.ptOptions) === null || _ComponentBase$contex === void 0 ? void 0 : _ComponentBase$contex.classNameMergeFunction
|
|
189
|
-
}) : _objectSpread(_objectSpread(_objectSpread({}, globalPT), self), Object.keys(datasetProps).length ? datasetProps : {}) : _objectSpread(_objectSpread({}, self), Object.keys(datasetProps).length ? datasetProps : {});
|
|
190
|
-
};
|
|
191
|
-
var setMetaData = function setMetaData() {
|
|
192
|
-
var metadata = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
193
|
-
var props = metadata.props,
|
|
194
|
-
state = metadata.state;
|
|
195
|
-
var ptm = function ptm() {
|
|
196
|
-
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
197
|
-
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
198
|
-
return getPTValue((props || {}).pt, key, _objectSpread(_objectSpread({}, metadata), params));
|
|
199
|
-
};
|
|
200
|
-
var ptmo = function ptmo() {
|
|
201
|
-
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
202
|
-
var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
203
|
-
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
204
|
-
return getPTValue(obj, key, params, false);
|
|
205
|
-
};
|
|
206
|
-
var isUnstyled = function isUnstyled() {
|
|
207
|
-
return ComponentBase.context.unstyled || PrimeReact__default["default"].unstyled || props.unstyled;
|
|
208
|
-
};
|
|
209
|
-
var cx = function cx() {
|
|
210
|
-
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
211
|
-
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
212
|
-
return !isUnstyled() ? getOptionValue(css && css.classes, key, _objectSpread({
|
|
213
|
-
props: props,
|
|
214
|
-
state: state
|
|
215
|
-
}, params)) : undefined;
|
|
216
|
-
};
|
|
217
|
-
var sx = function sx() {
|
|
218
|
-
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
219
|
-
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
220
|
-
var when = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
221
|
-
if (when) {
|
|
222
|
-
var _ComponentBase$contex2;
|
|
223
|
-
var self = getOptionValue(css && css.inlineStyles, key, _objectSpread({
|
|
224
|
-
props: props,
|
|
225
|
-
state: state
|
|
226
|
-
}, params));
|
|
227
|
-
var base = getOptionValue(inlineStyles, key, _objectSpread({
|
|
228
|
-
props: props,
|
|
229
|
-
state: state
|
|
230
|
-
}, params));
|
|
231
|
-
return utils.mergeProps([base, self], {
|
|
232
|
-
classNameMergeFunction: (_ComponentBase$contex2 = ComponentBase.context.ptOptions) === null || _ComponentBase$contex2 === void 0 ? void 0 : _ComponentBase$contex2.classNameMergeFunction
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
return undefined;
|
|
236
|
-
};
|
|
237
|
-
return {
|
|
238
|
-
ptm: ptm,
|
|
239
|
-
ptmo: ptmo,
|
|
240
|
-
sx: sx,
|
|
241
|
-
cx: cx,
|
|
242
|
-
isUnstyled: isUnstyled
|
|
243
|
-
};
|
|
244
|
-
};
|
|
245
|
-
return _objectSpread(_objectSpread({
|
|
246
|
-
getProps: getProps,
|
|
247
|
-
getOtherProps: getOtherProps,
|
|
248
|
-
setMetaData: setMetaData
|
|
249
|
-
}, props), {}, {
|
|
250
|
-
defaultProps: defaultProps
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
};
|
|
254
|
-
var getOptionValue = function getOptionValue(obj) {
|
|
255
|
-
var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
256
|
-
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
257
|
-
var fKeys = String(utils.ObjectUtils.toFlatCase(key)).split('.');
|
|
258
|
-
var fKey = fKeys.shift();
|
|
259
|
-
var matchedPTOption = utils.ObjectUtils.isNotEmpty(obj) ? Object.keys(obj).find(function (k) {
|
|
260
|
-
return utils.ObjectUtils.toFlatCase(k) === fKey;
|
|
261
|
-
}) : '';
|
|
262
|
-
return fKey ? utils.ObjectUtils.isObject(obj) ? getOptionValue(utils.ObjectUtils.getItemValue(obj[matchedPTOption], params), fKeys.join('.'), params) : undefined : utils.ObjectUtils.getItemValue(obj, params);
|
|
263
|
-
};
|
|
264
|
-
var _getPT = function _getPT(pt) {
|
|
265
|
-
var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
266
|
-
var callback = arguments.length > 2 ? arguments[2] : undefined;
|
|
267
|
-
var _usept = pt === null || pt === void 0 ? void 0 : pt._usept;
|
|
268
|
-
var getValue = function getValue(value) {
|
|
269
|
-
var _ref3;
|
|
270
|
-
var checkSameKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
271
|
-
var _value = callback ? callback(value) : value;
|
|
272
|
-
var _key = utils.ObjectUtils.toFlatCase(key);
|
|
273
|
-
return (_ref3 = checkSameKey ? _key !== ComponentBase.cName ? _value === null || _value === void 0 ? void 0 : _value[_key] : undefined : _value === null || _value === void 0 ? void 0 : _value[_key]) !== null && _ref3 !== void 0 ? _ref3 : _value;
|
|
274
|
-
};
|
|
275
|
-
return utils.ObjectUtils.isNotEmpty(_usept) ? {
|
|
276
|
-
_usept: _usept,
|
|
277
|
-
originalValue: getValue(pt.originalValue),
|
|
278
|
-
value: getValue(pt.value)
|
|
279
|
-
} : getValue(pt, true);
|
|
280
|
-
};
|
|
281
|
-
var _usePT = function _usePT(pt, callback, key, params) {
|
|
282
|
-
var fn = function fn(value) {
|
|
283
|
-
return callback(value, key, params);
|
|
284
|
-
};
|
|
285
|
-
if (pt !== null && pt !== void 0 && pt.hasOwnProperty('_usept')) {
|
|
286
|
-
var _ref4 = pt._usept || ComponentBase.context.ptOptions || {},
|
|
287
|
-
_ref4$mergeSections = _ref4.mergeSections,
|
|
288
|
-
mergeSections = _ref4$mergeSections === void 0 ? true : _ref4$mergeSections,
|
|
289
|
-
_ref4$mergeProps = _ref4.mergeProps,
|
|
290
|
-
useMergeProps = _ref4$mergeProps === void 0 ? false : _ref4$mergeProps,
|
|
291
|
-
classNameMergeFunction = _ref4.classNameMergeFunction;
|
|
292
|
-
var originalValue = fn(pt.originalValue);
|
|
293
|
-
var value = fn(pt.value);
|
|
294
|
-
if (originalValue === undefined && value === undefined) {
|
|
295
|
-
return undefined;
|
|
296
|
-
} else if (utils.ObjectUtils.isString(value)) {
|
|
297
|
-
return value;
|
|
298
|
-
} else if (utils.ObjectUtils.isString(originalValue)) {
|
|
299
|
-
return originalValue;
|
|
23
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
24
|
+
|
|
25
|
+
var styles = '';
|
|
26
|
+
var StepperPanelBase = componentbase.ComponentBase.extend({
|
|
27
|
+
defaultProps: {
|
|
28
|
+
__TYPE: 'StepperPanel',
|
|
29
|
+
children: undefined,
|
|
30
|
+
header: null
|
|
31
|
+
},
|
|
32
|
+
css: {
|
|
33
|
+
styles: styles
|
|
300
34
|
}
|
|
301
|
-
return mergeSections || !mergeSections && value ? useMergeProps ? utils.mergeProps([originalValue, value], {
|
|
302
|
-
classNameMergeFunction: classNameMergeFunction
|
|
303
|
-
}) : _objectSpread(_objectSpread({}, originalValue), value) : value;
|
|
304
|
-
}
|
|
305
|
-
return fn(pt);
|
|
306
|
-
};
|
|
307
|
-
var getGlobalPT = function getGlobalPT() {
|
|
308
|
-
return _getPT(ComponentBase.context.pt || PrimeReact__default["default"].pt, undefined, function (value) {
|
|
309
|
-
return utils.ObjectUtils.getItemValue(value, ComponentBase.cParams);
|
|
310
35
|
});
|
|
311
|
-
};
|
|
312
|
-
var getDefaultPT = function getDefaultPT() {
|
|
313
|
-
return _getPT(ComponentBase.context.pt || PrimeReact__default["default"].pt, undefined, function (value) {
|
|
314
|
-
return getOptionValue(value, ComponentBase.cName, ComponentBase.cParams) || utils.ObjectUtils.getItemValue(value, ComponentBase.cParams);
|
|
315
|
-
});
|
|
316
|
-
};
|
|
317
|
-
var _useGlobalPT = function _useGlobalPT(callback, key, params) {
|
|
318
|
-
return _usePT(getGlobalPT(), callback, key, params);
|
|
319
|
-
};
|
|
320
|
-
var _useDefaultPT = function _useDefaultPT(callback, key, params) {
|
|
321
|
-
return _usePT(getDefaultPT(), callback, key, params);
|
|
322
|
-
};
|
|
323
|
-
var useHandleStyle = function useHandleStyle(styles) {
|
|
324
|
-
var config = arguments.length > 2 ? arguments[2] : undefined;
|
|
325
|
-
var name = config.name,
|
|
326
|
-
_config$styled = config.styled,
|
|
327
|
-
styled = _config$styled === void 0 ? false : _config$styled,
|
|
328
|
-
_config$hostName = config.hostName,
|
|
329
|
-
hostName = _config$hostName === void 0 ? '' : _config$hostName;
|
|
330
|
-
var globalCSS = _useGlobalPT(getOptionValue, 'global.css', ComponentBase.cParams);
|
|
331
|
-
var componentName = utils.ObjectUtils.toFlatCase(name);
|
|
332
|
-
var _useStyle = hooks.useStyle(baseStyle, {
|
|
333
|
-
name: 'base',
|
|
334
|
-
manual: true
|
|
335
|
-
}),
|
|
336
|
-
loadBaseStyle = _useStyle.load;
|
|
337
|
-
var _useStyle2 = hooks.useStyle(commonStyle, {
|
|
338
|
-
name: 'common',
|
|
339
|
-
manual: true
|
|
340
|
-
}),
|
|
341
|
-
loadCommonStyle = _useStyle2.load;
|
|
342
|
-
var _useStyle3 = hooks.useStyle(globalCSS, {
|
|
343
|
-
name: 'global',
|
|
344
|
-
manual: true
|
|
345
|
-
}),
|
|
346
|
-
loadGlobalStyle = _useStyle3.load;
|
|
347
|
-
var _useStyle4 = hooks.useStyle(styles, {
|
|
348
|
-
name: name,
|
|
349
|
-
manual: true
|
|
350
|
-
}),
|
|
351
|
-
load = _useStyle4.load;
|
|
352
|
-
var hook = function hook(hookName) {
|
|
353
|
-
if (!hostName) {
|
|
354
|
-
var selfHook = _usePT(_getPT((ComponentBase.cProps || {}).pt, componentName), getOptionValue, "hooks.".concat(hookName));
|
|
355
|
-
var defaultHook = _useDefaultPT(getOptionValue, "hooks.".concat(hookName));
|
|
356
|
-
selfHook === null || selfHook === void 0 || selfHook();
|
|
357
|
-
defaultHook === null || defaultHook === void 0 || defaultHook();
|
|
358
|
-
}
|
|
359
|
-
};
|
|
360
|
-
hook('useMountEffect');
|
|
361
|
-
hooks.useMountEffect(function () {
|
|
362
|
-
loadBaseStyle();
|
|
363
|
-
loadGlobalStyle();
|
|
364
|
-
loadCommonStyle();
|
|
365
|
-
if (!styled) {
|
|
366
|
-
load();
|
|
367
|
-
}
|
|
368
|
-
});
|
|
369
|
-
hooks.useUpdateEffect(function () {
|
|
370
|
-
hook('useUpdateEffect');
|
|
371
|
-
});
|
|
372
|
-
hooks.useUnmountEffect(function () {
|
|
373
|
-
hook('useUnmountEffect');
|
|
374
|
-
});
|
|
375
|
-
};
|
|
376
36
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
var context = React__namespace.useContext(PrimeReact.PrimeReactContext);
|
|
391
|
-
var props = StepperPanelBase.getProps(inProps, context);
|
|
392
|
-
var _StepperPanelBase$set = StepperPanelBase.setMetaData({
|
|
393
|
-
props: props
|
|
394
|
-
}),
|
|
395
|
-
isUnstyled = _StepperPanelBase$set.isUnstyled;
|
|
396
|
-
useHandleStyle(StepperPanelBase.css.styles, isUnstyled, {
|
|
397
|
-
name: 'StepperPanel'
|
|
398
|
-
});
|
|
399
|
-
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, props.children);
|
|
400
|
-
}));
|
|
401
|
-
StepperPanel.displayName = 'StepperPanel';
|
|
37
|
+
var StepperPanel = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps) {
|
|
38
|
+
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
39
|
+
var props = StepperPanelBase.getProps(inProps, context);
|
|
40
|
+
var _StepperPanelBase$set = StepperPanelBase.setMetaData({
|
|
41
|
+
props: props
|
|
42
|
+
}),
|
|
43
|
+
isUnstyled = _StepperPanelBase$set.isUnstyled;
|
|
44
|
+
componentbase.useHandleStyle(StepperPanelBase.css.styles, isUnstyled, {
|
|
45
|
+
name: 'StepperPanel'
|
|
46
|
+
});
|
|
47
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, props.children);
|
|
48
|
+
}));
|
|
49
|
+
StepperPanel.displayName = 'StepperPanel';
|
|
402
50
|
|
|
403
|
-
|
|
51
|
+
exports.StepperPanel = StepperPanel;
|
|
404
52
|
|
|
405
|
-
|
|
53
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
406
54
|
|
|
407
|
-
|
|
55
|
+
return exports;
|
|
408
56
|
|
|
409
|
-
})({}, React, primereact.api, primereact.
|
|
57
|
+
})({}, React, primereact.api, primereact.componentbase);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.stepperpanel=function(n,t,e,o,i,r){"use strict";function a(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}function l(n){if(n&&n.__esModule)return n;var t=Object.create(null);return n&&Object.keys(n).forEach((function(e){if("default"!==e){var o=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,o.get?o:{enumerable:!0,get:function(){return n[e]}})}})),t.default=n,Object.freeze(t)}var p=l(t),s=a(e);function c(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,o=new Array(t);e<t;e++)o[e]=n[e];return o}function u(n){if(Array.isArray(n))return c(n)}function d(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}function f(n,t){if(n){if("string"==typeof n)return c(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?c(n,t):void 0}}function b(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(n){return u(n)||d(n)||f(n)||b()}function g(n){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},g(n)}function v(n,t){if("object"!==g(n)||null===n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var o=e.call(n,t||"default");if("object"!==g(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}function y(n){var t=v(n,"string");return"symbol"===g(t)?t:String(t)}function h(n,t,e){return(t=y(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function x(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,o)}return e}function O(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?x(Object(e),!0).forEach((function(t){h(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):x(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var j="\n@layer primereact {\n .p-component, .p-component * {\n box-sizing: border-box;\n }\n\n .p-hidden {\n display: none;\n }\n\n .p-hidden-space {\n visibility: hidden;\n }\n\n .p-reset {\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n text-decoration: none;\n font-size: 100%;\n list-style: none;\n }\n\n .p-disabled, .p-disabled * {\n cursor: default;\n pointer-events: none;\n user-select: none;\n }\n\n .p-component-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n .p-unselectable-text {\n user-select: none;\n }\n\n .p-scrollbar-measure {\n width: 100px;\n height: 100px;\n overflow: scroll;\n position: absolute;\n top: -9999px;\n }\n\n @-webkit-keyframes p-fadein {\n 0% { opacity: 0; }\n 100% { opacity: 1; }\n }\n @keyframes p-fadein {\n 0% { opacity: 0; }\n 100% { opacity: 1; }\n }\n\n .p-link {\n text-align: left;\n background-color: transparent;\n margin: 0;\n padding: 0;\n border: none;\n cursor: pointer;\n user-select: none;\n }\n\n .p-link:disabled {\n cursor: default;\n }\n\n /* Non react overlay animations */\n .p-connected-overlay {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-connected-overlay-visible {\n opacity: 1;\n transform: scaleY(1);\n }\n\n .p-connected-overlay-hidden {\n opacity: 0;\n transform: scaleY(1);\n transition: opacity .1s linear;\n }\n\n /* React based overlay animations */\n .p-connected-overlay-enter {\n opacity: 0;\n transform: scaleY(0.8);\n }\n\n .p-connected-overlay-enter-active {\n opacity: 1;\n transform: scaleY(1);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-connected-overlay-enter-done {\n transform: none;\n }\n\n .p-connected-overlay-exit {\n opacity: 1;\n }\n\n .p-connected-overlay-exit-active {\n opacity: 0;\n transition: opacity .1s linear;\n }\n\n /* Toggleable Content */\n .p-toggleable-content-enter {\n max-height: 0;\n }\n\n .p-toggleable-content-enter-active {\n overflow: hidden;\n max-height: 1000px;\n transition: max-height 1s ease-in-out;\n }\n\n .p-toggleable-content-enter-done {\n transform: none;\n }\n\n .p-toggleable-content-exit {\n max-height: 1000px;\n }\n\n .p-toggleable-content-exit-active {\n overflow: hidden;\n max-height: 0;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n }\n\n .p-sr-only {\n border: 0;\n clip: rect(1px, 1px, 1px, 1px);\n clip-path: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n word-wrap: normal;\n }\n\n /* @todo Refactor */\n .p-menu .p-menuitem-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n }\n\n ".concat("\n.p-button {\n margin: 0;\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n align-items: center;\n vertical-align: bottom;\n text-align: center;\n overflow: hidden;\n position: relative;\n}\n\n.p-button-label {\n flex: 1 1 auto;\n}\n\n.p-button-icon-right {\n order: 1;\n}\n\n.p-button:disabled {\n cursor: default;\n}\n\n.p-button-icon-only {\n justify-content: center;\n}\n\n.p-button-icon-only .p-button-label {\n visibility: hidden;\n width: 0;\n flex: 0 0 auto;\n}\n\n.p-button-vertical {\n flex-direction: column;\n}\n\n.p-button-icon-bottom {\n order: 2;\n}\n\n.p-button-group .p-button {\n margin: 0;\n}\n\n.p-button-group .p-button:not(:last-child) {\n border-right: 0 none;\n}\n\n.p-button-group .p-button:not(:first-of-type):not(:last-of-type) {\n border-radius: 0;\n}\n\n.p-button-group .p-button:first-of-type {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-button-group .p-button:last-of-type {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-button-group .p-button:focus {\n position: relative;\n z-index: 1;\n}\n","\n ").concat("\n.p-inputtext {\n margin: 0;\n}\n\n.p-fluid .p-inputtext {\n width: 100%;\n}\n\n/* InputGroup */\n.p-inputgroup {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup-addon {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-inputgroup .p-float-label {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup .p-inputtext,\n.p-fluid .p-inputgroup .p-inputtext,\n.p-inputgroup .p-inputwrapper,\n.p-fluid .p-inputgroup .p-input {\n flex: 1 1 auto;\n width: 1%;\n}\n\n/* Floating Label */\n.p-float-label {\n display: block;\n position: relative;\n}\n\n.p-float-label label {\n position: absolute;\n pointer-events: none;\n top: 50%;\n margin-top: -0.5rem;\n transition-property: all;\n transition-timing-function: ease;\n line-height: 1;\n}\n\n.p-float-label textarea ~ label,\n.p-float-label .p-mention ~ label {\n top: 1rem;\n}\n\n.p-float-label input:focus ~ label,\n.p-float-label input:-webkit-autofill ~ label,\n.p-float-label input.p-filled ~ label,\n.p-float-label textarea:focus ~ label,\n.p-float-label textarea.p-filled ~ label,\n.p-float-label .p-inputwrapper-focus ~ label,\n.p-float-label .p-inputwrapper-filled ~ label,\n.p-float-label .p-tooltip-target-wrapper ~ label {\n top: -0.75rem;\n font-size: 12px;\n}\n\n.p-float-label .p-placeholder,\n.p-float-label input::placeholder,\n.p-float-label .p-inputtext::placeholder {\n opacity: 0;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-float-label .p-focus .p-placeholder,\n.p-float-label input:focus::placeholder,\n.p-float-label .p-inputtext:focus::placeholder {\n opacity: 1;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-input-icon-left,\n.p-input-icon-right {\n position: relative;\n display: inline-block;\n}\n\n.p-input-icon-left > i,\n.p-input-icon-right > i,\n.p-input-icon-left > svg,\n.p-input-icon-right > svg,\n.p-input-icon-left > .p-input-prefix,\n.p-input-icon-right > .p-input-suffix {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n\n.p-fluid .p-input-icon-left,\n.p-fluid .p-input-icon-right {\n display: block;\n width: 100%;\n}\n","\n ").concat("\n.p-icon {\n display: inline-block;\n}\n\n.p-icon-spin {\n -webkit-animation: p-icon-spin 2s infinite linear;\n animation: p-icon-spin 2s infinite linear;\n}\n\nsvg.p-icon {\n pointer-events: auto;\n}\n\nsvg.p-icon g,\n.p-disabled svg.p-icon {\n pointer-events: none;\n}\n\n@-webkit-keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n@keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n","\n}\n"),w={cProps:void 0,cParams:void 0,cName:void 0,defaultProps:{pt:void 0,ptOptions:void 0,unstyled:!1},context:{},globalCSS:void 0,classes:{},styles:"",extend:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.css,e=O(O({},n.defaultProps),w.defaultProps),o={},r=function(){var n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t.hasOwnProperty("pt")&&void 0!==t.pt&&(t=t.pt);var a=e,l=/./g.test(a)&&!!o[a.split(".")[0]],p=i.ObjectUtils.toFlatCase(l?a.split(".")[1]:a),s=o.hostName&&i.ObjectUtils.toFlatCase(o.hostName)||o.props&&o.props.__TYPE&&i.ObjectUtils.toFlatCase(o.props.__TYPE)||"",c="transition"===p,u="data-pc-",d=function n(t){return null!=t&&t.props?t.hostName?t.props.__TYPE===t.hostName?t.props:n(t.parent):t.parent:void 0};w.cParams=o,w.cName=s;var f,b,g,v=(f="ptOptions",(null===(b=o.props)||void 0===b?void 0:b[f])||(null===(g=d(o))||void 0===g?void 0:g[f])||w.context.ptOptions||{}),y=v.mergeSections,x=void 0===y||y,j=v.mergeProps,_=void 0!==j&&j,E=function(){var n=P.apply(void 0,arguments);return Array.isArray(n)?{className:i.classNames.apply(void 0,m(n))}:i.ObjectUtils.isString(n)?{className:n}:null!=n&&n.hasOwnProperty("className")&&Array.isArray(n.className)?{className:i.classNames.apply(void 0,m(n.className))}:n},F=r?l?N(E,a,o):U(E,a,o):void 0,M=l?void 0:k(S(t,s),E,a,o),C=!c&&O(O({},"root"===p&&h({},"".concat(u,"name"),o.props&&o.props.__parentMetadata?i.ObjectUtils.toFlatCase(o.props.__TYPE):s)),{},h({},"".concat(u,"section"),p));return x||!x&&M?_?i.mergeProps([F,M,Object.keys(C).length?C:{}],{classNameMergeFunction:null===(n=w.context.ptOptions)||void 0===n?void 0:n.classNameMergeFunction}):O(O(O({},F),M),Object.keys(C).length?C:{}):O(O({},M),Object.keys(C).length?C:{})};return O(O({getProps:function(n){return w.context=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},w.cProps=n,i.ObjectUtils.getMergedProps(n,e)},getOtherProps:function(n){return i.ObjectUtils.getDiffProps(n,e)},setMetaData:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.props,a=n.state,l=function(){return w.context.unstyled||s.default.unstyled||e.unstyled};return{ptm:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r((e||{}).pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",O(O({},n),t))},ptmo:function(){return r(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},!1)},sx:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]){var l,p=P(t&&t.inlineStyles,n,O({props:e,state:a},r)),s=P(o,n,O({props:e,state:a},r));return i.mergeProps([s,p],{classNameMergeFunction:null===(l=w.context.ptOptions)||void 0===l?void 0:l.classNameMergeFunction})}},cx:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l()?void 0:P(t&&t.classes,n,O({props:e,state:a},o))},isUnstyled:l}}},n),{},{defaultProps:e})}},P=function n(t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=String(i.ObjectUtils.toFlatCase(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")).split("."),r=o.shift(),a=i.ObjectUtils.isNotEmpty(t)?Object.keys(t).find((function(n){return i.ObjectUtils.toFlatCase(n)===r})):"";return r?i.ObjectUtils.isObject(t)?n(i.ObjectUtils.getItemValue(t[a],e),o.join("."),e):void 0:i.ObjectUtils.getItemValue(t,e)},S=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2?arguments[2]:void 0,o=null==n?void 0:n._usept,r=function(n){var o,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=e?e(n):n,l=i.ObjectUtils.toFlatCase(t);return null!==(o=r?l!==w.cName?null==a?void 0:a[l]:void 0:null==a?void 0:a[l])&&void 0!==o?o:a};return i.ObjectUtils.isNotEmpty(o)?{_usept:o,originalValue:r(n.originalValue),value:r(n.value)}:r(n,!0)},k=function(n,t,e,o){var r=function(n){return t(n,e,o)};if(null!=n&&n.hasOwnProperty("_usept")){var a=n._usept||w.context.ptOptions||{},l=a.mergeSections,p=void 0===l||l,s=a.mergeProps,c=void 0!==s&&s,u=a.classNameMergeFunction,d=r(n.originalValue),f=r(n.value);if(void 0===d&&void 0===f)return;return i.ObjectUtils.isString(f)?f:i.ObjectUtils.isString(d)?d:p||!p&&f?c?i.mergeProps([d,f],{classNameMergeFunction:u}):O(O({},d),f):f}return r(n)},N=function(n,t,e){return k(S(w.context.pt||s.default.pt,void 0,(function(n){return i.ObjectUtils.getItemValue(n,w.cParams)})),n,t,e)},U=function(n,t,e){return k(S(w.context.pt||s.default.pt,void 0,(function(n){return P(n,w.cName,w.cParams)||i.ObjectUtils.getItemValue(n,w.cParams)})),n,t,e)},_=function(n){var t=arguments.length>2?arguments[2]:void 0,e=t.name,r=t.styled,a=void 0!==r&&r,l=t.hostName,p=void 0===l?"":l,s=N(P,"global.css",w.cParams),c=i.ObjectUtils.toFlatCase(e),u=o.useStyle("\n.p-hidden-accessible {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.p-hidden-accessible input,\n.p-hidden-accessible select {\n transform: scale(0);\n}\n\n.p-overflow-hidden {\n overflow: hidden;\n padding-right: var(--scrollbar-width);\n}\n",{name:"base",manual:!0}).load,d=o.useStyle(j,{name:"common",manual:!0}).load,f=o.useStyle(s,{name:"global",manual:!0}).load,b=o.useStyle(n,{name:e,manual:!0}).load,m=function(n){if(!p){var t=k(S((w.cProps||{}).pt,c),P,"hooks.".concat(n)),e=U(P,"hooks.".concat(n));null==t||t(),null==e||e()}};m("useMountEffect"),o.useMountEffect((function(){u(),f(),d(),a||b()})),o.useUpdateEffect((function(){m("useUpdateEffect")})),o.useUnmountEffect((function(){m("useUnmountEffect")}))},E=r.ComponentBase.extend({defaultProps:{__TYPE:"StepperPanel",children:void 0,header:null},css:{styles:""}}),F=p.memo(p.forwardRef((function(n){var t=p.useContext(e.PrimeReactContext),o=E.getProps(n,t),i=E.setMetaData({props:o});return _(E.css.styles,i.isUnstyled,{name:"StepperPanel"}),p.createElement(p.Fragment,null,o.children)})));return F.displayName="StepperPanel",n.StepperPanel=F,Object.defineProperty(n,"__esModule",{value:!0}),n}({},React,primereact.api,primereact.hooks,primereact.utils,primereact.componentbase);
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.stepperpanel=function(e,t,r,n){"use strict";function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var s=a(t),c=n.ComponentBase.extend({defaultProps:{__TYPE:"StepperPanel",children:void 0,header:null},css:{styles:""}}),p=s.memo(s.forwardRef((function(e){var t=s.useContext(r.PrimeReactContext),a=c.getProps(e,t),p=c.setMetaData({props:a});return n.useHandleStyle(c.css.styles,p.isUnstyled,{name:"StepperPanel"}),s.createElement(s.Fragment,null,a.children)})));return p.displayName="StepperPanel",e.StepperPanel=p,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase);
|
package/web-types.json
CHANGED