@revolist/ui 4.0.1-rc → 4.0.2-rc
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/README.md +6 -5
- package/_chunks/calendar-CpaUK7w1.js +248 -0
- package/_chunks/chart-frame-BC99KjGa.js +127 -0
- package/_chunks/choice-chips-Cs4D-3nH.js +110 -0
- package/_chunks/{color-palette-BmZ7kH9R.js → color-palette-BBMFmUNA.js} +41 -41
- package/_chunks/color-picker-D90Jg-M8.js +138 -0
- package/_chunks/compat.module-DDB2pm9O.js +229 -0
- package/_chunks/component-YDcfoOLz.js +859 -0
- package/_chunks/{control-tooltip-BCNzQCXE.js → control-tooltip-ztgmsG7H.js} +29 -29
- package/_chunks/{controller-CmLo-Ajc.js → controller-hRBm_Lfz.js} +15 -15
- package/_chunks/{controls-NEL5tDaz.js → controls-DIum-E66.js} +192 -192
- package/_chunks/{date-control-CYCkb1aQ.js → date-control-BJSzu79z.js} +21 -21
- package/_chunks/date-time-BxPJusp9.js +770 -0
- package/_chunks/{delete-button-DnpmDNEJ.js → delete-button-Bblyah10.js} +1 -1
- package/_chunks/dialog.parts-DBqo3Qwb.js +134 -0
- package/_chunks/{dropdown-CkGQBm1Q.js → dropdown-voWqmwAe.js} +102 -102
- package/_chunks/duration-87U2EoMS.js +271 -0
- package/_chunks/editor-commit-Bq3wSgvr.js +12 -0
- package/_chunks/{editor-popup-B7fu_A_T.js → editor-popup-D3JdS8l3.js} +8 -8
- package/_chunks/framework-mount-C-Zwm44H.js +54 -0
- package/_chunks/hooks.module-CG3gN83z.js +157 -0
- package/_chunks/jsxRuntime.module-F6UFnpT-.js +30 -0
- package/_chunks/mount-DZe_6VtR.js +90 -0
- package/_chunks/native.view-ByyZ1CT5.js +32 -0
- package/_chunks/{number-input-NnH57J4j.js → number-input-BeIadZuL.js} +89 -89
- package/_chunks/picker-DpP7iQLA.js +122 -0
- package/_chunks/preact.module-BBM36DnO.js +290 -0
- package/_chunks/{rating-choice-CWAsNQNS.js → rating-choice-Ca8ZBty3.js} +10 -10
- package/_chunks/reorder-list-Cc3KmfAN.js +59 -0
- package/_chunks/request-trail-IdNiFvKH.js +347 -0
- package/_chunks/{rich-text-2Rla349o.js → rich-text-BzI1DyfF.js} +167 -167
- package/_vendor/preact/LICENSE +21 -0
- package/_vendor/preact/compat/src/index.d.ts +353 -0
- package/_vendor/preact/compat/src/suspense-list.d.ts +16 -0
- package/_vendor/preact/compat/src/suspense.d.ts +19 -0
- package/_vendor/preact/hooks/src/index.d.ts +145 -0
- package/_vendor/preact/src/dom.d.ts +2548 -0
- package/_vendor/preact/src/index.d.ts +373 -0
- package/_vendor/preact/src/jsx.d.ts +2958 -0
- package/activity-message.d.ts +1 -1
- package/activity-message.js +16 -16
- package/ai/components.d.ts +1 -1
- package/ai/index.js +2 -2
- package/ai/request-trail.d.ts +1 -1
- package/ai/translation-context.d.ts +1 -1
- package/alert.d.ts +2 -2
- package/assignee/field.d.ts +2 -2
- package/assignee/index.js +87 -87
- package/assignee/layout.d.ts +2 -2
- package/assignee/picker.d.ts +1 -1
- package/avatar/index.js +25 -25
- package/avatar/index.view.d.ts +1 -1
- package/brush-range/component.d.ts +1 -1
- package/brush-range/component.js +30 -30
- package/buttons/delete-button.js +1 -1
- package/buttons/remove-button.d.ts +1 -1
- package/buttons/remove-button.js +3 -3
- package/buttons/svg-button.d.ts +1 -1
- package/buttons/svg-button.js +35 -35
- package/calendar/calendar.d.ts +1 -1
- package/calendar/calendar.js +1 -1
- package/calendar/caption.d.ts +1 -1
- package/calendar/day.d.ts +1 -1
- package/calendar/day.js +4 -4
- package/calendar/header.d.ts +1 -1
- package/calendar/header.js +35 -35
- package/calendar/index.js +2 -2
- package/calendar/month-grid.d.ts +1 -1
- package/calendar/month-grid.js +37 -37
- package/calendar/picker.d.ts +1 -1
- package/calendar/types.d.ts +1 -1
- package/calendar/year-grid.d.ts +1 -1
- package/calendar/year-grid.js +12 -12
- package/checkbox/index.d.ts +2 -2
- package/checkbox/index.js +9 -9
- package/choice-chips/index.d.ts +1 -1
- package/choice-chips/index.js +1 -1
- package/color-palette/color-palette.d.ts +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-picker.d.ts +1 -1
- package/color-palette/color-picker.js +2 -2
- package/component-catalog.d.ts +19 -19
- package/control-presentation.js +18 -18
- package/controls.d.ts +4 -4
- package/controls.js +1 -1
- package/core/editor-commit.d.ts +1 -1
- package/core/editor-popup.d.ts +1 -1
- package/core/editor-popup.js +1 -1
- package/date-time/date-control.d.ts +1 -1
- package/date-time/field.d.ts +2 -2
- package/date-time/index.js +1 -1
- package/date-time/picker.d.ts +1 -1
- package/date-time/time-control.d.ts +1 -1
- package/date-time/time-selection.d.ts +1 -1
- package/date-time/types.d.ts +1 -1
- package/dialog/dialog-action-footer.view.d.ts +1 -1
- package/dialog/dialog.dom.js +52 -52
- package/dialog/dialog.parts.d.ts +18 -18
- package/dialog/dialog.parts.js +1 -1
- package/dialog/dialog.preact.d.ts +1 -1
- package/dialog/dialog.preact.js +6 -6
- package/distribution-chart/area-chart.d.ts +1 -1
- package/distribution-chart/area-chart.js +25 -25
- package/distribution-chart/bar-chart.d.ts +1 -1
- package/distribution-chart/bar-chart.js +6 -6
- package/distribution-chart/chart-frame.d.ts +1 -1
- package/distribution-chart/index.d.ts +1 -1
- package/distribution-chart/index.js +6 -6
- package/distribution-chart/line-chart.d.ts +1 -1
- package/distribution-chart/line-chart.js +9 -9
- package/distribution-chart/types.d.ts +1 -1
- package/dropdown/content.d.ts +1 -1
- package/dropdown/content.js +83 -82
- package/dropdown/dropdown.service.d.ts +1 -1
- package/dropdown/dropdown.service.js +9 -9
- package/dropdown/index.js +1 -1
- package/dropdown/lookup-field.d.ts +1 -1
- package/dropdown/lookup-field.js +41 -41
- package/dropdown/popup.d.ts +1 -1
- package/dropdown/popup.js +17 -16
- package/duration/controls.d.ts +1 -1
- package/duration/index.d.ts +2 -2
- package/duration/index.js +1 -1
- package/editor-actions.d.ts +1 -1
- package/editor-actions.js +21 -20
- package/editor-layout/index.d.ts +1 -1
- package/editor-layout/index.js +27 -27
- package/field-configurator.d.ts +1 -1
- package/field-configurator.js +93 -93
- package/field-reorder.hook.js +32 -32
- package/filter/filters/slider/preact.js +3 -3
- package/filter/filters/slider/single.d.ts +1 -1
- package/filter/filters/slider/single.js +23 -23
- package/filter-badge.d.ts +1 -1
- package/filter-badge.js +23 -22
- package/filter-controls.d.ts +1 -1
- package/filter-controls.js +31 -31
- package/form-controls/index.js +20 -20
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +44 -44
- package/formatting/comparison-preview.d.ts +1 -1
- package/formatting/control-tooltip.d.ts +1 -1
- package/formatting/icon-controls.d.ts +1 -1
- package/formatting/index.js +99 -98
- package/formatting/inspector-section.d.ts +1 -1
- package/formatting/typography-controls.d.ts +1 -1
- package/framework-mount.d.ts +1 -1
- package/framework.js +19 -19
- package/icons/icon.d.ts +1 -1
- package/icons/icon.js +1 -1
- package/legend.d.ts +1 -1
- package/legend.js +12 -12
- package/masked-input/index.d.ts +1 -1
- package/masked-input/index.js +109 -109
- package/native-control.d.ts +11 -11
- package/native-control.js +12 -12
- package/native.js +39 -39
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +1 -2
- package/pdf-viewer/component.d.ts +1 -1
- package/pdf-viewer/controller.js +1 -1
- package/pdf-viewer/header.d.ts +1 -1
- package/pdf-viewer/index.js +13 -13
- package/pdf-viewer/search-bar.d.ts +1 -1
- package/pdf-viewer/status.d.ts +1 -1
- package/pdf-viewer/toolbar.d.ts +1 -1
- package/pickers.d.ts +1 -1
- package/preact-mount.d.ts +1 -1
- package/preact-mount.js +1 -1
- package/preact.js +14 -14
- package/rating-choice.d.ts +1 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +1 -1
- package/react.js +19 -19
- package/reorder-list.d.ts +1 -1
- package/reorder-list.js +1 -1
- package/resource-picker/resource-picker-avatar.d.ts +1 -1
- package/resource-picker/resource-picker-avatar.js +14 -14
- package/resource-picker/resource-picker-option.d.ts +1 -1
- package/resource-picker/resource-picker-option.js +28 -28
- package/resource-picker/resource-picker-popup.d.ts +1 -1
- package/resource-picker/resource-picker-popup.js +3 -3
- package/resource-picker/resource-picker.d.ts +1 -1
- package/resource-picker/resource-picker.js +88 -88
- package/rich-text/index.d.ts +1 -1
- package/rich-text/index.js +1 -1
- package/rich-text/toolbar.d.ts +1 -1
- package/search-input/index.js +12 -12
- package/segmented-switch/index.d.ts +1 -1
- package/segmented-switch/index.js +1 -1
- package/status-feedback/render.d.ts +2 -2
- package/status-feedback/render.js +13 -13
- package/surfaces.js +34 -34
- package/svelte.js +2 -2
- package/switch/index.js +15 -15
- package/time-grid.d.ts +1 -1
- package/time-grid.js +58 -58
- package/timeline-track/component.d.ts +1 -1
- package/timeline-track/index.js +75 -75
- package/vue-adapter.d.ts +1 -1
- package/vue.d.ts +116 -116
- package/vue.js +121 -121
- package/_chunks/calendar-BsDxCYhI.js +0 -248
- package/_chunks/chart-frame-BvxbmEU9.js +0 -126
- package/_chunks/choice-chips-0HfOnK_4.js +0 -110
- package/_chunks/color-picker-BRv-__AM.js +0 -138
- package/_chunks/component-D4PH5UZT.js +0 -859
- package/_chunks/date-time-DjucJmbc.js +0 -769
- package/_chunks/dialog.parts-Dt3KinUz.js +0 -134
- package/_chunks/duration-BCaktcvz.js +0 -270
- package/_chunks/editor-commit-D6Rf5rGz.js +0 -12
- package/_chunks/framework-mount-BKIOsvY-.js +0 -54
- package/_chunks/mount-0-8opf1j.js +0 -90
- package/_chunks/native.view-8q_nwQ7x.js +0 -32
- package/_chunks/picker-oazJ7sO_.js +0 -121
- package/_chunks/reorder-list-BV3kZXso.js +0 -59
- package/_chunks/request-trail-D0oVzdRd.js +0 -347
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from 'preact';
|
|
1
|
+
import { h } from '../_vendor/preact/src/index';
|
|
2
2
|
import { DeleteButton } from './delete-button';
|
|
3
3
|
export type RemoveButtonProps = Parameters<typeof DeleteButton>[0] & {
|
|
4
4
|
/** Compact hit area for an action embedded inside a selected-value chip. */
|
package/buttons/remove-button.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "../_chunks/
|
|
2
|
-
import {
|
|
1
|
+
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
+
import { t } from "../_chunks/delete-button-Bblyah10.js";
|
|
3
3
|
//#region src/buttons/remove-button.tsx
|
|
4
4
|
function n({ compact: n = !1, className: r = "", ...i }) {
|
|
5
|
-
return /* @__PURE__ */ t
|
|
5
|
+
return /* @__PURE__ */ e(t, {
|
|
6
6
|
...i,
|
|
7
7
|
className: `rv-remove-button${n ? " rv-remove-button--compact" : ""} ${r}`
|
|
8
8
|
});
|
package/buttons/svg-button.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, ComponentChildren, JSX } from 'preact';
|
|
1
|
+
import { h, ComponentChildren, JSX } from '../_vendor/preact/src/index';
|
|
2
2
|
export interface SvgButtonProps extends Omit<JSX.IntrinsicElements['button'], 'className' | 'children'> {
|
|
3
3
|
readonly label: string;
|
|
4
4
|
readonly busy?: boolean;
|
package/buttons/svg-button.js
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
+
import { SvgIcon as t } from "../icons/icon.js";
|
|
3
|
+
import { controlClassName as n } from "../control-attributes.js";
|
|
4
|
+
import { ButtonControl as r } from "../native-control.js";
|
|
5
|
+
import { n as i } from "../_chunks/control-tooltip-ztgmsG7H.js";
|
|
6
6
|
//#region src/buttons/svg-button.tsx
|
|
7
|
-
function
|
|
8
|
-
let
|
|
7
|
+
function a({ label: a, variant: o, icon: s, visibleLabel: c, className: l, iconClassName: u, labelClassName: d, children: f, iconContent: p, badge: m, badgeClassName: h = "", class: g, disabled: _, ...v }) {
|
|
8
|
+
let y = i(a, !0, {
|
|
9
9
|
className: "rv-control-tooltip",
|
|
10
10
|
placement: "above"
|
|
11
11
|
});
|
|
12
|
-
return /* @__PURE__ */
|
|
12
|
+
return /* @__PURE__ */ e(r, {
|
|
13
13
|
type: "button",
|
|
14
|
-
"aria-label":
|
|
15
|
-
...
|
|
16
|
-
disabled:
|
|
17
|
-
...
|
|
18
|
-
"aria-describedby": [
|
|
14
|
+
"aria-label": m === void 0 ? a : `${a} ${m}`,
|
|
15
|
+
...v,
|
|
16
|
+
disabled: _,
|
|
17
|
+
...y.triggerProps,
|
|
18
|
+
"aria-describedby": [v["aria-describedby"], y.id].filter(Boolean).join(" "),
|
|
19
19
|
onFocus: (e) => {
|
|
20
|
-
|
|
20
|
+
y.triggerProps.onFocus(e), v.onFocus?.(e);
|
|
21
21
|
},
|
|
22
22
|
onBlur: (e) => {
|
|
23
|
-
|
|
23
|
+
y.triggerProps.onBlur(), v.onBlur?.(e);
|
|
24
24
|
},
|
|
25
25
|
onMouseEnter: (e) => {
|
|
26
|
-
|
|
26
|
+
y.triggerProps.onMouseEnter(e), v.onMouseEnter?.(e);
|
|
27
27
|
},
|
|
28
28
|
onMouseLeave: (e) => {
|
|
29
|
-
|
|
29
|
+
y.triggerProps.onMouseLeave(), v.onMouseLeave?.(e);
|
|
30
30
|
},
|
|
31
31
|
onPointerDown: (e) => {
|
|
32
|
-
|
|
32
|
+
y.triggerProps.onPointerDown(e), v.onPointerDown?.(e);
|
|
33
33
|
},
|
|
34
34
|
onPointerCancel: (e) => {
|
|
35
|
-
|
|
35
|
+
y.triggerProps.onPointerCancel(), v.onPointerCancel?.(e);
|
|
36
36
|
},
|
|
37
37
|
onKeyDown: (e) => {
|
|
38
|
-
|
|
38
|
+
y.triggerProps.onKeyDown(e), v.onKeyDown?.(e);
|
|
39
39
|
},
|
|
40
40
|
onClick: (e) => {
|
|
41
|
-
|
|
41
|
+
y.hide(), v.onClick?.(e);
|
|
42
42
|
},
|
|
43
|
-
class:
|
|
43
|
+
class: n(l ?? (o ? "" : "rv-btn-ghost"), o && `rv-btn-${o}`, g, "rv-icon-action", !c && "rv-btn-icon"),
|
|
44
44
|
children: [
|
|
45
|
-
|
|
46
|
-
svg:
|
|
47
|
-
className:
|
|
48
|
-
}) :
|
|
49
|
-
|
|
50
|
-
class:
|
|
51
|
-
children:
|
|
45
|
+
s ? /* @__PURE__ */ e(t, {
|
|
46
|
+
svg: s,
|
|
47
|
+
className: u
|
|
48
|
+
}) : p,
|
|
49
|
+
c ? /* @__PURE__ */ e("span", {
|
|
50
|
+
class: d,
|
|
51
|
+
children: c
|
|
52
52
|
}) : null,
|
|
53
|
-
|
|
54
|
-
class: `rv-badge ${
|
|
53
|
+
m !== void 0 && /* @__PURE__ */ e("span", {
|
|
54
|
+
class: `rv-badge ${h}`,
|
|
55
55
|
"aria-hidden": "true",
|
|
56
|
-
children:
|
|
56
|
+
children: m
|
|
57
57
|
}),
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
f,
|
|
59
|
+
y.tooltip
|
|
60
60
|
]
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
//#endregion
|
|
64
|
-
export {
|
|
64
|
+
export { a as SvgButton };
|
package/calendar/calendar.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { h } from 'preact';
|
|
1
|
+
import { h } from '../_vendor/preact/src/index';
|
|
2
2
|
import { CalendarProps } from './types';
|
|
3
3
|
export declare function Calendar({ locale, weekStartsOn, showOutsideDays, allowOutsideMonthSelection, fixedWeeks, showTodayButton, showHeader, showNavigation, showPreviousButton, showNextButton, showMonthLabel, showWeekdays, enableYearView, translations, ...props }: CalendarProps): h.JSX.Element;
|
package/calendar/calendar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Calendar } from "../_chunks/calendar-
|
|
1
|
+
export { t as Calendar } from "../_chunks/calendar-CpaUK7w1.js";
|
package/calendar/caption.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from 'preact';
|
|
1
|
+
import { h } from '../_vendor/preact/src/index';
|
|
2
2
|
import { ISODateString, DisplayCalendarSystem } from '../_shared/dates/index';
|
|
3
3
|
import { CalendarProps, CalendarTranslations } from './types';
|
|
4
4
|
export declare function CalendarCaption({ month, system, locale, layout, start, end, disabled, labels, onChange, }: {
|
package/calendar/day.d.ts
CHANGED
package/calendar/day.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
+
import { c as t } from "../_chunks/iso-B0YHBK7m.js";
|
|
3
3
|
//#region src/calendar/day.tsx
|
|
4
4
|
function n(n) {
|
|
5
5
|
let r = [
|
|
@@ -15,7 +15,7 @@ function n(n) {
|
|
|
15
15
|
n.previewStart && "preview-start",
|
|
16
16
|
n.previewEnd && "preview-end"
|
|
17
17
|
].filter(Boolean).join(" ");
|
|
18
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ e("button", {
|
|
19
19
|
ref: (e) => n.setRef(n.date, e),
|
|
20
20
|
type: "button",
|
|
21
21
|
role: "gridcell",
|
|
@@ -36,7 +36,7 @@ function n(n) {
|
|
|
36
36
|
onMouseLeave: () => n.onPreview(),
|
|
37
37
|
onKeyDown: (e) => n.onKeyDown(e, n.date),
|
|
38
38
|
onClick: () => n.onSelect(n.date),
|
|
39
|
-
children: n.content ??
|
|
39
|
+
children: n.content ?? t(n.date).getUTCDate()
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
package/calendar/header.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, ComponentChildren } from 'preact';
|
|
1
|
+
import { h, ComponentChildren } from '../_vendor/preact/src/index';
|
|
2
2
|
import { ISODateString } from '../_shared/dates/index';
|
|
3
3
|
export declare function CalendarHeader({ label, previousLabel, nextLabel, labelAction, caption, showLabel, showPrevious, showNext, previousDisabled, nextDisabled, onPrevious, onNext, }: {
|
|
4
4
|
label: string;
|
package/calendar/header.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { t as e } from "../_chunks/
|
|
2
|
-
import { t } from "../_chunks/chevron-
|
|
3
|
-
import {
|
|
1
|
+
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
+
import { t } from "../_chunks/chevron-left-D0nc4Z5S.js";
|
|
3
|
+
import { t as n } from "../_chunks/chevron-right-sxHQMSkq.js";
|
|
4
4
|
//#region src/calendar/header.tsx
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
5
|
+
function r({ label: r, previousLabel: i, nextLabel: a, labelAction: o, caption: s, showLabel: c = !0, showPrevious: l = !0, showNext: u = !0, previousDisabled: d = !1, nextDisabled: f = !1, onPrevious: p, onNext: m }) {
|
|
6
|
+
return /* @__PURE__ */ e("header", {
|
|
7
7
|
class: "revo-calendar__header",
|
|
8
8
|
children: [
|
|
9
|
-
|
|
9
|
+
l ? /* @__PURE__ */ e("button", {
|
|
10
10
|
type: "button",
|
|
11
|
-
"aria-label":
|
|
12
|
-
disabled:
|
|
13
|
-
onClick:
|
|
14
|
-
children: /* @__PURE__ */
|
|
11
|
+
"aria-label": i,
|
|
12
|
+
disabled: d,
|
|
13
|
+
onClick: p,
|
|
14
|
+
children: /* @__PURE__ */ e("span", {
|
|
15
15
|
"aria-hidden": "true",
|
|
16
|
-
dangerouslySetInnerHTML: { __html:
|
|
16
|
+
dangerouslySetInnerHTML: { __html: t }
|
|
17
17
|
})
|
|
18
|
-
}) : /* @__PURE__ */
|
|
19
|
-
|
|
18
|
+
}) : /* @__PURE__ */ e("span", { "aria-hidden": "true" }),
|
|
19
|
+
c && s ? s : c && o ? /* @__PURE__ */ e("button", {
|
|
20
20
|
type: "button",
|
|
21
21
|
class: "revo-calendar__month-label revo-calendar__month-label-button",
|
|
22
|
-
"aria-label":
|
|
23
|
-
onClick:
|
|
24
|
-
children: /* @__PURE__ */
|
|
22
|
+
"aria-label": o.ariaLabel,
|
|
23
|
+
onClick: o.onClick,
|
|
24
|
+
children: /* @__PURE__ */ e("span", {
|
|
25
25
|
"aria-live": "polite",
|
|
26
|
-
children:
|
|
26
|
+
children: r
|
|
27
27
|
})
|
|
28
|
-
}) :
|
|
28
|
+
}) : c ? /* @__PURE__ */ e("strong", {
|
|
29
29
|
class: "revo-calendar__month-label",
|
|
30
30
|
"aria-live": "polite",
|
|
31
|
-
children:
|
|
32
|
-
}) : /* @__PURE__ */
|
|
33
|
-
|
|
31
|
+
children: r
|
|
32
|
+
}) : /* @__PURE__ */ e("span", { "aria-hidden": "true" }),
|
|
33
|
+
u ? /* @__PURE__ */ e("button", {
|
|
34
34
|
type: "button",
|
|
35
|
-
"aria-label":
|
|
36
|
-
disabled:
|
|
37
|
-
onClick:
|
|
38
|
-
children: /* @__PURE__ */
|
|
35
|
+
"aria-label": a,
|
|
36
|
+
disabled: f,
|
|
37
|
+
onClick: m,
|
|
38
|
+
children: /* @__PURE__ */ e("span", {
|
|
39
39
|
"aria-hidden": "true",
|
|
40
|
-
dangerouslySetInnerHTML: { __html:
|
|
40
|
+
dangerouslySetInnerHTML: { __html: n }
|
|
41
41
|
})
|
|
42
|
-
}) : /* @__PURE__ */
|
|
42
|
+
}) : /* @__PURE__ */ e("span", { "aria-hidden": "true" })
|
|
43
43
|
]
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return /* @__PURE__ */
|
|
46
|
+
function i({ dates: t, locale: n, format: r, weekNumberLabel: i }) {
|
|
47
|
+
return /* @__PURE__ */ e("div", {
|
|
48
48
|
class: "revo-calendar__weekdays",
|
|
49
49
|
role: "row",
|
|
50
|
-
children: [
|
|
50
|
+
children: [i && /* @__PURE__ */ e("span", {
|
|
51
51
|
role: "columnheader",
|
|
52
|
-
"aria-label":
|
|
52
|
+
"aria-label": i,
|
|
53
53
|
children: "#"
|
|
54
|
-
}),
|
|
54
|
+
}), t.map((t) => /* @__PURE__ */ e("span", {
|
|
55
55
|
role: "columnheader",
|
|
56
|
-
children:
|
|
57
|
-
},
|
|
56
|
+
children: r(t, n)
|
|
57
|
+
}, t))]
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
//#endregion
|
|
61
|
-
export {
|
|
61
|
+
export { r as CalendarHeader, i as CalendarWeekdays };
|
package/calendar/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DEFAULT_CALENDAR_TRANSLATIONS as e } from "./translations.js";
|
|
2
2
|
import { a as t, i as n, n as r, o as i, r as a, t as o } from "../_chunks/model-mPO2tG2f.js";
|
|
3
3
|
import { CalendarHeader as s, CalendarWeekdays as c } from "./header.js";
|
|
4
|
-
import { t as l } from "../_chunks/calendar-
|
|
4
|
+
import { t as l } from "../_chunks/calendar-CpaUK7w1.js";
|
|
5
5
|
import { CalendarDay as u } from "./day.js";
|
|
6
6
|
import { CalendarMonthGrid as d } from "./month-grid.js";
|
|
7
7
|
import { CalendarYearGrid as f } from "./year-grid.js";
|
|
8
|
-
import { t as p } from "../_chunks/picker-
|
|
8
|
+
import { t as p } from "../_chunks/picker-DpP7iQLA.js";
|
|
9
9
|
export { l as Calendar, u as CalendarDay, s as CalendarHeader, d as CalendarMonthGrid, p as CalendarPicker, c as CalendarWeekdays, f as CalendarYearGrid, e as DEFAULT_CALENDAR_TRANSLATIONS, o as createCalendarMonth, r as isCalendarDateDisabled, a as isCalendarMonthDisabled, n as isDateInCalendarRange, t as moveCalendarFocus, i as orderCalendarRange };
|
package/calendar/month-grid.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, ComponentChildren } from 'preact';
|
|
1
|
+
import { h, ComponentChildren } from '../_vendor/preact/src/index';
|
|
2
2
|
import { ISODateString, DisplayCalendarSystem } from '../_shared/dates/index';
|
|
3
3
|
import { CalendarDateRange, CalendarDayContext } from './types';
|
|
4
4
|
export declare function CalendarMonthGrid({ dates, system, selectedDates, visibleMonths, weekNumber, weekNumberLabel, month, focusedDate, referenceDate, selection, preview, previewInvalid, previewDescriptionId, showOutsideDays, allowOutsideMonthSelection, dayClassName, renderDay, isDisabled, formatDayLabel, setDayRef, onFocus, onPreview, onKeyDown, onSelect, }: {
|
package/calendar/month-grid.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
+
import { f as t, i as n } from "../_chunks/model-mPO2tG2f.js";
|
|
3
|
+
import { CalendarDay as r } from "./day.js";
|
|
4
4
|
//#region src/calendar/month-grid.tsx
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
5
|
+
function i({ dates: i, system: a = "gregory", selectedDates: o, visibleMonths: s, weekNumber: c, weekNumberLabel: l = "Week number", month: u, focusedDate: d, referenceDate: f, selection: p, preview: m, previewInvalid: h, previewDescriptionId: g, showOutsideDays: _, allowOutsideMonthSelection: v, dayClassName: y, renderDay: b, isDisabled: x, formatDayLabel: S, setDayRef: C, onFocus: w, onPreview: T, onKeyDown: E, onSelect: D }) {
|
|
6
|
+
return /* @__PURE__ */ e("div", {
|
|
7
7
|
class: "revo-calendar__month-grid",
|
|
8
|
-
children: Array.from({ length:
|
|
8
|
+
children: Array.from({ length: i.length / 7 }, (O, k) => /* @__PURE__ */ e("div", {
|
|
9
9
|
class: "revo-calendar__week",
|
|
10
10
|
role: "row",
|
|
11
|
-
"aria-hidden": !
|
|
12
|
-
children: [
|
|
11
|
+
"aria-hidden": !c && i.slice(k * 7, k * 7 + 7).every((e) => t(e, a) !== u && (!_ || s?.includes(t(e, a)))) || void 0,
|
|
12
|
+
children: [c && /* @__PURE__ */ e("span", {
|
|
13
13
|
class: "revo-calendar__week-number",
|
|
14
14
|
role: "rowheader",
|
|
15
|
-
"aria-label": `${
|
|
16
|
-
children:
|
|
17
|
-
}),
|
|
18
|
-
let
|
|
19
|
-
outside:
|
|
20
|
-
disabled:
|
|
21
|
-
selected: !!
|
|
22
|
-
previewed:
|
|
23
|
-
today: i ===
|
|
15
|
+
"aria-label": `${l} ${c(i[k * 7])}`,
|
|
16
|
+
children: c(i[k * 7])
|
|
17
|
+
}), i.slice(k * 7, k * 7 + 7).map((i) => {
|
|
18
|
+
let c = t(i, a) !== u, l = c && (!_ || !!s?.includes(t(i, a))), O = x(i) || c && !v, k = {
|
|
19
|
+
outside: c,
|
|
20
|
+
disabled: O,
|
|
21
|
+
selected: !!o?.includes(i) || n(i, p),
|
|
22
|
+
previewed: n(i, m),
|
|
23
|
+
today: i === f
|
|
24
24
|
};
|
|
25
|
-
return /* @__PURE__ */ r
|
|
25
|
+
return /* @__PURE__ */ e(r, {
|
|
26
26
|
date: i,
|
|
27
|
-
label:
|
|
28
|
-
className: typeof
|
|
29
|
-
outside:
|
|
27
|
+
label: S(i),
|
|
28
|
+
className: typeof y == "function" ? y(i, k) : y,
|
|
29
|
+
outside: c,
|
|
30
30
|
hidden: l,
|
|
31
|
-
disabled:
|
|
32
|
-
focused: i ===
|
|
31
|
+
disabled: O,
|
|
32
|
+
focused: i === d,
|
|
33
33
|
selected: k.selected,
|
|
34
34
|
previewed: k.previewed,
|
|
35
|
-
previewInvalid: k.previewed &&
|
|
36
|
-
previewDescriptionId:
|
|
37
|
-
rangeStart:
|
|
38
|
-
rangeEnd:
|
|
39
|
-
previewStart:
|
|
40
|
-
previewEnd:
|
|
35
|
+
previewInvalid: k.previewed && h,
|
|
36
|
+
previewDescriptionId: g,
|
|
37
|
+
rangeStart: o?.includes(i) || p?.from === i,
|
|
38
|
+
rangeEnd: o?.includes(i) || p?.to === i,
|
|
39
|
+
previewStart: m?.from === i,
|
|
40
|
+
previewEnd: m?.to === i,
|
|
41
41
|
today: k.today,
|
|
42
|
-
content:
|
|
42
|
+
content: b?.(i, k),
|
|
43
43
|
setRef: (e, t) => {
|
|
44
|
-
|
|
44
|
+
c || C(e, t);
|
|
45
45
|
},
|
|
46
|
-
onFocus:
|
|
47
|
-
onPreview:
|
|
48
|
-
onKeyDown:
|
|
49
|
-
onSelect:
|
|
46
|
+
onFocus: w,
|
|
47
|
+
onPreview: T,
|
|
48
|
+
onKeyDown: E,
|
|
49
|
+
onSelect: D
|
|
50
50
|
}, i);
|
|
51
51
|
})]
|
|
52
|
-
},
|
|
52
|
+
}, k))
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
56
|
-
export {
|
|
56
|
+
export { i as CalendarMonthGrid };
|
package/calendar/picker.d.ts
CHANGED
package/calendar/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentChildren } from 'preact';
|
|
1
|
+
import { ComponentChildren } from '../_vendor/preact/src/index';
|
|
2
2
|
import { DisplayCalendarSystem, ISODateString } from '../_shared/dates/index';
|
|
3
3
|
export type CalendarWeekStart = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
4
|
export type CalendarView = 'month' | 'year';
|
package/calendar/year-grid.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from 'preact';
|
|
1
|
+
import { h } from '../_vendor/preact/src/index';
|
|
2
2
|
import { DisplayCalendarSystem, ISODateString } from '../_shared/dates/index';
|
|
3
3
|
export declare function CalendarYearGrid({ month, system, referenceDate, minDate, maxDate, isMonthDisabled, locale, ariaLabel, onSelect, onEscape, }: {
|
|
4
4
|
month: ISODateString;
|
package/calendar/year-grid.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
+
import { f as t, l as n, r, u as i } from "../_chunks/model-mPO2tG2f.js";
|
|
3
3
|
//#region src/calendar/year-grid.tsx
|
|
4
4
|
function a({ month: a, system: o = "gregory", referenceDate: s, minDate: c, maxDate: l, isMonthDisabled: u, locale: d, ariaLabel: f, onSelect: p, onEscape: m }) {
|
|
5
|
-
let h =
|
|
6
|
-
return /* @__PURE__ */
|
|
5
|
+
let h = n(a, o);
|
|
6
|
+
return /* @__PURE__ */ e("div", {
|
|
7
7
|
class: "revo-calendar__year-grid",
|
|
8
8
|
role: "group",
|
|
9
9
|
"aria-label": f,
|
|
10
10
|
onKeyDown: (e) => {
|
|
11
11
|
e.key === "Escape" && (e.preventDefault(), m());
|
|
12
12
|
},
|
|
13
|
-
children: h.map((
|
|
14
|
-
let f = n
|
|
13
|
+
children: h.map((n) => {
|
|
14
|
+
let f = r(n, {
|
|
15
15
|
minDate: c,
|
|
16
16
|
maxDate: l,
|
|
17
17
|
isMonthDisabled: u,
|
|
18
18
|
calendarSystem: o
|
|
19
|
-
}), m =
|
|
20
|
-
return /* @__PURE__ */
|
|
19
|
+
}), m = n === a, h = s ? t(s, o) === n : !1;
|
|
20
|
+
return /* @__PURE__ */ e("button", {
|
|
21
21
|
type: "button",
|
|
22
22
|
class: `revo-calendar__month${m ? " active" : ""}${h ? " current" : ""}`,
|
|
23
|
-
"data-calendar-month":
|
|
23
|
+
"data-calendar-month": n,
|
|
24
24
|
"aria-pressed": m ? "true" : "false",
|
|
25
25
|
disabled: f,
|
|
26
|
-
onClick: () => p(
|
|
27
|
-
children:
|
|
28
|
-
},
|
|
26
|
+
onClick: () => p(n),
|
|
27
|
+
children: i(n, d, { month: "long" }, o)
|
|
28
|
+
}, n);
|
|
29
29
|
})
|
|
30
30
|
});
|
|
31
31
|
}
|
package/checkbox/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export type SharedCheckboxAttributes = Record<string, unknown> & {
|
|
|
3
3
|
class?: string;
|
|
4
4
|
className?: string;
|
|
5
5
|
};
|
|
6
|
-
type PreactH = typeof import('preact').h;
|
|
7
|
-
type PreactVNode = import('preact').VNode;
|
|
6
|
+
type PreactH = typeof import('../_vendor/preact/src/index').h;
|
|
7
|
+
type PreactVNode = import('../_vendor/preact/src/index').VNode;
|
|
8
8
|
export type CheckboxProps = Omit<SharedCheckboxAttributes, 'onChange'> & {
|
|
9
9
|
checked?: boolean;
|
|
10
10
|
indeterminate?: boolean;
|
package/checkbox/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { c as e } from "../_chunks/preact.module-BBM36DnO.js";
|
|
2
|
+
import { renderControl as t } from "../control-presentation.js";
|
|
3
3
|
//#region src/checkbox/index.ts
|
|
4
4
|
var n = "rv-checkbox";
|
|
5
|
-
function r(
|
|
5
|
+
function r(e, r = {}) {
|
|
6
6
|
let { class: i, className: a, ...o } = r, s = [
|
|
7
7
|
n,
|
|
8
8
|
i,
|
|
9
9
|
a
|
|
10
10
|
].filter(Boolean).join(" ");
|
|
11
|
-
return e
|
|
11
|
+
return t(e, "input", {
|
|
12
12
|
...o,
|
|
13
13
|
class: s,
|
|
14
14
|
type: "checkbox"
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
function i({ checked:
|
|
18
|
-
let d = r(
|
|
17
|
+
function i({ checked: t, indeterminate: n = !1, label: i, description: a, ariaLabel: o, controlClassName: s = "", inputRef: c, onChange: l, ...u }) {
|
|
18
|
+
let d = r(e, {
|
|
19
19
|
...u,
|
|
20
|
-
checked:
|
|
20
|
+
checked: t,
|
|
21
21
|
"aria-label": o,
|
|
22
|
-
"aria-checked": n ? "mixed" : !!
|
|
22
|
+
"aria-checked": n ? "mixed" : !!t,
|
|
23
23
|
ref: (e) => {
|
|
24
24
|
e && (e.indeterminate = n), c?.(e);
|
|
25
25
|
},
|
|
@@ -27,7 +27,7 @@ function i({ checked: e, indeterminate: n = !1, label: i, description: a, ariaLa
|
|
|
27
27
|
l?.(e.currentTarget.checked, e);
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
return i === void 0 && a === void 0 ? d :
|
|
30
|
+
return i === void 0 && a === void 0 ? d : e("label", { class: `rv-checkbox-control ${s}`.trim() }, [d, e("span", { class: "rv-checkbox-control__copy" }, [i === void 0 ? null : e("span", { class: "rv-checkbox-control__label" }, i), a === void 0 ? null : e("span", { class: "rv-checkbox-control__description" }, a)])]);
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
33
|
export { i as Checkbox, n as SHARED_CHECKBOX_CLASS, r as renderCheckbox };
|
package/choice-chips/index.d.ts
CHANGED
package/choice-chips/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ChoiceChip, n as ChoiceChipInfoButton, r as ChoiceChips } from "../_chunks/choice-chips-
|
|
1
|
+
export { t as ChoiceChip, n as ChoiceChipInfoButton, r as ChoiceChips } from "../_chunks/choice-chips-Cs4D-3nH.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from 'preact';
|
|
1
|
+
import { h } from '../_vendor/preact/src/index';
|
|
2
2
|
export declare function ColorPicker({ label, value, defaultLabel, customLabel, customHexLabel, invalidColor, colorLabels, optional, allowHexInput, disabled, onChange, }: {
|
|
3
3
|
readonly label: string;
|
|
4
4
|
readonly value?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as e } from "../_chunks/color-palette-
|
|
2
|
-
import { t } from "../_chunks/color-picker-
|
|
1
|
+
import { n as e } from "../_chunks/color-palette-BBMFmUNA.js";
|
|
2
|
+
import { t } from "../_chunks/color-picker-D90Jg-M8.js";
|
|
3
3
|
export { t as ColorPicker, e as normalizeHexColor };
|