@plasmicpkgs/plasmic-rich-components 1.0.124 → 1.0.125
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.
|
@@ -16,6 +16,8 @@ import fastStringify from 'fast-stringify';
|
|
|
16
16
|
import classNames from 'classnames';
|
|
17
17
|
import groupBy from 'lodash/groupBy';
|
|
18
18
|
import { groupBy as groupBy$1 } from 'lodash';
|
|
19
|
+
import weekday from 'dayjs/plugin/weekday';
|
|
20
|
+
import localeData from 'dayjs/plugin/localeData';
|
|
19
21
|
|
|
20
22
|
function registerComponentHelper(loader, component, meta) {
|
|
21
23
|
if (loader) {
|
|
@@ -2735,6 +2737,8 @@ var __objRest = (source, exclude) => {
|
|
|
2735
2737
|
}
|
|
2736
2738
|
return target;
|
|
2737
2739
|
};
|
|
2740
|
+
dayjs.extend(weekday);
|
|
2741
|
+
dayjs.extend(localeData);
|
|
2738
2742
|
function getEventFullDate(date) {
|
|
2739
2743
|
var _a;
|
|
2740
2744
|
return ((_a = parseDate(date)) == null ? void 0 : _a.toISODate()) || void 0;
|
|
@@ -3067,6 +3071,8 @@ function registerRichCalendar(loader) {
|
|
|
3067
3071
|
type: "dateString",
|
|
3068
3072
|
description: `The date selected by default as an ISO string`,
|
|
3069
3073
|
validator: (value, ps) => {
|
|
3074
|
+
if (!ps.value)
|
|
3075
|
+
return true;
|
|
3070
3076
|
if (!ps.validRange)
|
|
3071
3077
|
return true;
|
|
3072
3078
|
if (!isValidIsoDate(value))
|