@plasmicpkgs/plasmic-rich-components 1.0.246 → 1.0.248
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/plasmic-rich-components.esm.js +7 -5
- package/dist/plasmic-rich-components.esm.js.map +1 -1
- package/package.json +3 -3
- package/skinny/{common-prop-types-758ece78.esm.js → common-prop-types-336da74d.esm.js} +3 -3
- package/skinny/{common-prop-types-758ece78.esm.js.map → common-prop-types-336da74d.esm.js.map} +1 -1
- package/skinny/{common-prop-types-691f4a06.cjs.js → common-prop-types-65645309.cjs.js} +3 -3
- package/skinny/{common-prop-types-691f4a06.cjs.js.map → common-prop-types-65645309.cjs.js.map} +1 -1
- package/skinny/{field-react-utils-2bbbadc7.cjs.js → field-react-utils-7955a3c8.cjs.js} +3 -3
- package/skinny/{field-react-utils-2bbbadc7.cjs.js.map → field-react-utils-7955a3c8.cjs.js.map} +1 -1
- package/skinny/{field-react-utils-46bb1f20.esm.js → field-react-utils-b98cfd0e.esm.js} +3 -3
- package/skinny/{field-react-utils-46bb1f20.esm.js.map → field-react-utils-b98cfd0e.esm.js.map} +1 -1
- package/skinny/{formatting-b434487b.esm.js → formatting-8501a0f4.esm.js} +4 -5
- package/skinny/{formatting-b434487b.esm.js.map → formatting-8501a0f4.esm.js.map} +1 -1
- package/skinny/{formatting-c37b4133.cjs.js → formatting-bef072c7.cjs.js} +4 -5
- package/skinny/{formatting-c37b4133.cjs.js.map → formatting-bef072c7.cjs.js.map} +1 -1
- package/skinny/rich-calendar/index.cjs.js +3 -3
- package/skinny/rich-calendar/index.cjs.js.map +1 -1
- package/skinny/rich-calendar/index.esm.js +3 -3
- package/skinny/rich-calendar/index.esm.js.map +1 -1
- package/skinny/rich-details/index.cjs.js +2 -2
- package/skinny/rich-details/index.esm.js +2 -2
- package/skinny/rich-layout/index.cjs.js +1 -1
- package/skinny/rich-layout/index.cjs.js.map +1 -1
- package/skinny/rich-layout/index.esm.js +1 -1
- package/skinny/rich-layout/index.esm.js.map +1 -1
- package/skinny/rich-list/index.cjs.js +4 -4
- package/skinny/rich-list/index.cjs.js.map +1 -1
- package/skinny/rich-list/index.esm.js +4 -4
- package/skinny/rich-list/index.esm.js.map +1 -1
- package/skinny/rich-table/index.cjs.js +4 -4
- package/skinny/rich-table/index.cjs.js.map +1 -1
- package/skinny/rich-table/index.esm.js +4 -4
- package/skinny/rich-table/index.esm.js.map +1 -1
- package/skinny/{utils-da451c58.cjs.js → utils-48c0c8b4.cjs.js} +5 -2
- package/skinny/{utils-da451c58.cjs.js.map → utils-48c0c8b4.cjs.js.map} +1 -1
- package/skinny/{utils-546b05e4.esm.js → utils-725ca0d1.esm.js} +5 -2
- package/skinny/{utils-546b05e4.esm.js.map → utils-725ca0d1.esm.js.map} +1 -1
package/dist/index.js
CHANGED
|
@@ -32,6 +32,9 @@ var groupBy__default = /*#__PURE__*/_interopDefault(groupBy);
|
|
|
32
32
|
var localeData__default = /*#__PURE__*/_interopDefault(localeData);
|
|
33
33
|
var weekday__default = /*#__PURE__*/_interopDefault(weekday);
|
|
34
34
|
|
|
35
|
+
var __defProp$d = Object.defineProperty;
|
|
36
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
37
|
+
var __publicField = (obj, key, value) => __defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
35
38
|
function registerComponentHelper(loader, component, meta) {
|
|
36
39
|
if (loader) {
|
|
37
40
|
loader.registerComponent(component, meta);
|
|
@@ -120,7 +123,7 @@ function withoutFalsey(xs) {
|
|
|
120
123
|
class ErrorBoundary extends React__default.default.Component {
|
|
121
124
|
constructor() {
|
|
122
125
|
super(...arguments);
|
|
123
|
-
this
|
|
126
|
+
__publicField(this, "state", { hasError: false, errorInfo: "" });
|
|
124
127
|
}
|
|
125
128
|
static getDerivedStateFromError(error) {
|
|
126
129
|
return { hasError: true, errorInfo: error.message };
|
|
@@ -593,8 +596,7 @@ function getFieldValue(record, cconfig) {
|
|
|
593
596
|
return value;
|
|
594
597
|
}
|
|
595
598
|
function getFieldAggregateValue(record, cconfigs, separator = ", ") {
|
|
596
|
-
if (!(cconfigs == null ? void 0 : cconfigs.length))
|
|
597
|
-
return void 0;
|
|
599
|
+
if (!(cconfigs == null ? void 0 : cconfigs.length)) return void 0;
|
|
598
600
|
return (cconfigs == null ? void 0 : cconfigs.length) ? cconfigs.map((item) => getFieldValue(record, item)).join(separator) : void 0;
|
|
599
601
|
}
|
|
600
602
|
function renderValue(record, cconfig) {
|
|
@@ -716,7 +718,7 @@ function renderBoolean(value, cconfig) {
|
|
|
716
718
|
return value ? "true" : "false";
|
|
717
719
|
}
|
|
718
720
|
}
|
|
719
|
-
const CANNOT_COERCE = Symbol("plasmic-cannot-coerce");
|
|
721
|
+
const CANNOT_COERCE = /* @__PURE__ */ Symbol("plasmic-cannot-coerce");
|
|
720
722
|
function coerceValue(value, dataType) {
|
|
721
723
|
if (value == null) {
|
|
722
724
|
return null;
|
|
@@ -1566,7 +1568,7 @@ function useSortedFilteredData(data, columns) {
|
|
|
1566
1568
|
return cc.key === ((_a3 = sortState == null ? void 0 : sortState.sorter.column) == null ? void 0 : _a3.key);
|
|
1567
1569
|
}
|
|
1568
1570
|
);
|
|
1569
|
-
const expr = (_a2 = cconfig.expr) != null ? _a2 : (x) => x;
|
|
1571
|
+
const expr = (_a2 = cconfig.expr) != null ? _a2 : ((x) => x);
|
|
1570
1572
|
return (filtered != null ? filtered : []).sort((aa, bb) => {
|
|
1571
1573
|
var _a3, _b;
|
|
1572
1574
|
const a = (_a3 = expr(aa, cconfig.fieldId ? aa == null ? void 0 : aa[cconfig.fieldId] : null)) != null ? _a3 : null, b = (_b = expr(bb, cconfig.fieldId ? bb == null ? void 0 : bb[cconfig.fieldId] : null)) != null ? _b : null;
|