@revolist/ui 4.0.6-rc → 4.0.6
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/MIGRATION.md +7 -7
- package/OWNERSHIP.md +33 -33
- package/README.md +65 -410
- package/_button.scss +6 -2
- package/_chunks/{calendar-QWDyYzdo.js → calendar-BQYQLu8Q.js} +5 -5
- package/_chunks/{cell-visuals-E-2oEKHg.js → cell-visuals-r6DOOhGh.js} +7 -7
- package/_chunks/{chart-frame-hcOlnQ1K.js → chart-frame-GprenwEg.js} +4 -4
- package/_chunks/{chevron-left-D0nc4Z5S.js → chevron-right-CM3ljziP.js} +2 -2
- package/_chunks/{choice-chips-A6WR-WJe.js → choice-chips-C5OxD0GV.js} +3 -3
- package/_chunks/{color-palette-DMJUChWC.js → color-palette-7siNch__.js} +3 -3
- package/_chunks/{color-picker-BK4W1nd6.js → color-picker-Cfc9eqZb.js} +4 -4
- package/_chunks/{component-CMkF17YZ.js → component-C3k_8uIq.js} +44 -45
- package/_chunks/{component-metadata-BKd7U8OW.js → component-metadata-DlVkpW3h.js} +1 -1
- package/_chunks/{configurator-actions-By8WSL2m.js → configurator-actions-vRnI54mO.js} +3 -3
- package/_chunks/{control-mlH7l0Uq.js → control-BRfF5DWQ.js} +3 -3
- package/_chunks/{controller-hRBm_Lfz.js → controller-BbiQuRt-.js} +5 -5
- package/_chunks/{controls-FUU-MUKC.js → controls-B3EgM_DS.js} +137 -102
- package/_chunks/{date-control-Dup_P3w5.js → date-control-87dcA5br.js} +5 -5
- package/_chunks/{date-time-9z6pAG5T.js → date-time-CfiFYodx.js} +20 -20
- package/_chunks/{delete-button-CW9vjLnk.js → delete-button-jneO24wa.js} +1 -1
- package/_chunks/{dialog.parts-Bi7YbXqS.js → dialog.parts-NqEEVc9P.js} +4 -4
- package/_chunks/{duration-D7oRjsmP.js → duration-BGZ_qJ99.js} +6 -6
- package/_chunks/{editor-commit-Bq3wSgvr.js → editor-commit-Dyo-FMgD.js} +1 -1
- package/_chunks/{editor-popup-ByU7qiub.js → editor-popup-NNP9Fh9U.js} +4 -4
- package/_chunks/field-configurator-DPulsY3l.js +288 -0
- package/_chunks/{field-context-D57PnBbH.js → field-context-C4_WrO2z.js} +1 -1
- package/_chunks/{framework-mount-Bk4O_T7T.js → framework-mount-D4I8HpVp.js} +2 -2
- package/_chunks/{icon-toolbar-DSjOdwM7.js → icon-toolbar-BAAdEvr9.js} +2 -2
- package/_chunks/{icons-Ci5mADVc.js → icons-B4qN13Yj.js} +1 -1
- package/_chunks/{iso-B0YHBK7m.js → iso-CJQl2kmq.js} +1 -1
- package/_chunks/{model-mPO2tG2f.js → model-CFrBgRHm.js} +3 -3
- package/_chunks/mount-C8CnIW9k.js +267 -0
- package/_chunks/{native-Blr3byjO.js → native-CJm3eq3-.js} +1 -1
- package/_chunks/{native-control-pFMuHf3G.js → native-control-um1L1wgZ.js} +143 -138
- package/_chunks/{number-input-DqXV6vgP.js → number-input-CKiA4d1N.js} +4 -4
- package/_chunks/{picker-gEGTu1Ki.js → picker-igNshTRC.js} +5 -5
- package/_chunks/{popup-C35Isk7p.js → popup-DECYM9FI.js} +2 -2
- package/_chunks/{rating-choice-DbxdUJr-.js → rating-choice-CepVfGUq.js} +2 -2
- package/_chunks/{render-m5eMMwFR.js → render-bTk3curw.js} +2 -2
- package/_chunks/{reorder-list-B0_13Sja.js → reorder-list-B4w3aARt.js} +2 -2
- package/_chunks/{request-trail-CCSK6TJA.js → request-trail-B1zVRPEf.js} +151 -142
- package/_chunks/{rich-text-5rnc8lpI.js → rich-text-Ci4d6dHn.js} +11 -11
- package/_chunks/selection-list-tooltips-m00U3L6z.js +42 -0
- package/_chunks/{title-tooltip-Cw6LOZhb.js → title-tooltip-ncldbUwS.js} +2 -2
- package/_chunks/{tooltip-D4xkio5G.js → tooltip-h-Z8yFBY.js} +2 -2
- package/_chunks/{tooltip-owner-DjdvqKzz.js → tooltip-owner-BYho-vJl.js} +1 -1
- package/_chunks/{tooltip-session-B6X6x8G_.js → tooltip-session-CBtRMBPr.js} +3 -3
- package/_chunks/{tooltip-text-BXsUEmBH.js → tooltip-text-BN5WdGHn.js} +2 -2
- package/_chunks/{top-layer-popup-CNSDdfJV.js → top-layer-popup-CKJ7VJOF.js} +3 -3
- package/_dialog.scss +57 -22
- package/_form.scss +71 -21
- package/_legend.scss +25 -7
- package/_variables.scss +2 -1
- package/_view-switcher.scss +6 -0
- package/activity-message.d.ts +1 -1
- package/activity-message.js +1 -1
- package/ai/_chat.scss +7 -0
- package/ai/_style.scss +27 -20
- package/ai/components.d.ts +3 -1
- package/ai/index.js +2 -2
- package/ai/mount.d.ts +15 -7
- package/ai/request-trail.d.ts +9 -3
- package/ai/results/index.d.ts +1 -1
- package/ai/translations.d.ts +1 -1
- package/angular/angular.d.ts +1 -1
- package/angular/angular.js +13 -7
- package/assignee/assignee.scss +24 -6
- package/assignee/index.js +6 -6
- package/avatar/avatar.style.scss +23 -6
- package/avatar/index.d.ts +1 -1
- package/avatar/index.js +2 -2
- package/badge.d.ts +1 -1
- package/badge.js +1 -1
- package/badge.view.d.ts +1 -1
- package/brush-range/_brush-range.scss +55 -49
- package/brush-range/component.js +2 -2
- package/buttons/delete-button.js +1 -1
- package/buttons/delete-button.style.scss +6 -2
- package/buttons/remove-button.js +2 -2
- package/buttons/svg-button.js +3 -3
- package/calendar/_calendar.scss +19 -23
- package/calendar/calendar.js +1 -1
- package/calendar/day.js +2 -2
- package/calendar/header.js +2 -3
- package/calendar/index.js +3 -3
- package/calendar/model.js +1 -1
- package/calendar/month-grid.js +2 -2
- package/calendar/translations.js +1 -1
- package/calendar/year-grid.js +2 -2
- package/cell-input.js +1 -1
- package/cell-input.scss +3 -7
- package/cell-visuals/badge.style.scss +6 -3
- package/cell-visuals/bar-chart.style.scss +2 -1
- package/cell-visuals/column-type.style.css +12 -0
- package/cell-visuals/index.js +1 -1
- package/cell-visuals/progress-line-value.renderer.style.scss +4 -2
- package/cell-visuals/progress-line.style.scss +1 -4
- package/cell-visuals/sparkline.style.scss +2 -1
- package/cell-visuals/timeline.style.css +4 -2
- package/checkbox/checkbox.scss +5 -2
- package/checkbox/index.js +1 -1
- package/choice-chips/index.js +1 -1
- package/color-palette/built-in-palettes.js +1 -1
- package/color-palette/chart-palettes.js +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-palette.style.scss +88 -25
- package/color-palette/color-picker.constants.js +1 -1
- package/color-palette/color-picker.js +2 -2
- package/color-palette/color-picker.style.scss +23 -10
- package/color-palette/common-palettes.d.ts +1 -1
- package/color-palette/common-palettes.js +2 -2
- package/color-palette/gantt-palettes.js +1 -1
- package/color-palette/palette.js +1 -1
- package/color-palette/pivot-palettes.js +1 -1
- package/color-palette/platform-palettes.js +1 -1
- package/color-palette/pro-palettes.js +1 -1
- package/color-palette/scheduler-palettes.js +1 -1
- package/configurator-actions.d.ts +6 -6
- package/configurator-actions.js +1 -1
- package/configurator-aggregation-list.d.ts +1 -1
- package/configurator-aggregation-list.js +19 -17
- package/configurator-drop-zone.d.ts +2 -1
- package/configurator-drop-zone.js +34 -32
- package/configurator-focus.js +1 -1
- package/configurator-sections.d.ts +3 -3
- package/configurator-sections.js +1 -1
- package/control-attributes.js +1 -1
- package/control-presentation.js +2 -2
- package/controls.d.ts +11 -0
- package/controls.js +4 -4
- package/core/anchored-popover.js +1 -1
- package/core/control-id.js +1 -1
- package/core/editor-popup.js +1 -1
- package/core/motion.js +1 -1
- package/{_chunks/popover-controller-D-AvKQ7B.js → core/popover-controller.js} +8 -8
- package/core/selection-list-tooltips.d.ts +2 -0
- package/core/tooltip.d.ts +1 -1
- package/core/top-layer-popup.d.ts +1 -1
- package/core/top-layer-popup.js +1 -1
- package/date-time/date-control.d.ts +1 -1
- package/date-time/field.d.ts +1 -0
- package/date-time/index.js +1 -1
- package/date-time/style.scss +192 -46
- package/date-time/time-selection.d.ts +1 -1
- package/dialog/dialog.dom.js +3 -3
- package/dialog/dialog.drag.js +1 -1
- package/dialog/dialog.parts.js +1 -1
- package/dialog/dialog.preact.js +1 -1
- package/distribution-chart/_distribution-chart.scss +106 -28
- package/distribution-chart/area-chart.js +2 -2
- package/distribution-chart/bar-chart.js +2 -2
- package/distribution-chart/chart-frame.d.ts +1 -1
- package/distribution-chart/index.js +1 -1
- package/distribution-chart/line-chart.js +2 -2
- package/dropdown/content.js +1 -1
- package/dropdown/control.js +1 -1
- package/dropdown/dropdown.service.js +1 -1
- package/dropdown/dropdown.types.d.ts +1 -1
- package/dropdown/editor-dropdown.style.scss +14 -9
- package/dropdown/index.js +2 -2
- package/dropdown/lookup-field.js +3 -3
- package/dropdown/popup.js +1 -1
- package/duration/index.js +1 -1
- package/editor-actions.js +2 -2
- package/editor-layout/index.d.ts +4 -4
- package/editor-layout/index.js +40 -35
- package/editor-layout/style.scss +82 -18
- package/favicon.svg +9 -0
- package/field-configurator.d.ts +14 -3
- package/field-configurator.js +1 -1
- package/field-reorder.hook.js +1 -1
- package/field-reorder.js +1 -1
- package/filter/filters/slider/_single-slider.scss +57 -38
- package/filter/filters/slider/_slider.scss +35 -10
- package/filter/filters/slider/component.js +1 -1
- package/filter/filters/slider/control.js +1 -1
- package/filter/filters/slider/inputs.js +1 -1
- package/filter/filters/slider/logic.js +1 -1
- package/filter/filters/slider/preact.js +1 -1
- package/filter/filters/slider/runtime.js +3 -3
- package/filter/filters/slider/single.js +2 -2
- package/filter-badge.js +2 -2
- package/filter-controls.js +2 -2
- package/form-controls/index.js +3 -3
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +2 -2
- package/formatting/index.js +7 -7
- package/formatting/styles.scss +13 -11
- package/framework.js +76 -77
- package/history-controls.js +1 -1
- package/html-controls.js +1 -1
- package/icon-toolbar.d.ts +1 -1
- package/icon-toolbar.js +1 -1
- package/icons/icon.d.ts +1 -1
- package/icons/icon.js +1 -1
- package/legend.d.ts +1 -1
- package/legend.js +1 -1
- package/masked-input/index.js +4 -4
- package/native-control.js +1 -1
- package/native-styles.css +1 -1
- package/native-styles.scss +6 -2
- package/native.d.ts +3 -3
- package/native.js +16 -16
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +49 -1
- package/pagination.js +2 -2
- package/pdf-viewer/controller.js +1 -1
- package/pdf-viewer/header.d.ts +1 -1
- package/pdf-viewer/index.d.ts +2 -2
- package/pdf-viewer/index.js +3 -3
- package/pdf-viewer/search-bar.d.ts +1 -1
- package/pdf-viewer/status.d.ts +1 -1
- package/pdf-viewer/style.scss +203 -42
- package/preact-mount.js +1 -1
- package/preact.d.ts +5 -4
- package/preact.js +105 -67
- package/progress/_bar.scss +9 -3
- package/progress/_circular.scss +2 -1
- package/progress/bar.js +1 -1
- package/progress/circular.js +1 -1
- package/progress/range.js +1 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +4 -2
- package/react-control.js +1 -1
- package/react.d.ts +2 -2
- package/react.js +30 -31
- package/reorder-list.d.ts +1 -1
- package/reorder-list.js +1 -1
- package/reorder-list.scss +59 -17
- package/resource-picker/resource-picker-avatar.js +1 -1
- package/resource-picker/resource-picker-option.js +1 -1
- package/resource-picker/resource-picker-popup.js +2 -2
- package/resource-picker/resource-picker.js +74 -72
- package/resource-picker/resource-picker.scss +62 -34
- package/resource-picker/resource-picker.utils.js +1 -1
- package/rich-text/index.js +1 -1
- package/rich-text/style.scss +203 -49
- package/rich-text/toolbar.d.ts +1 -1
- package/robots.txt +4 -0
- package/search-input/index.js +2 -2
- package/segmented-switch/index.js +1 -1
- package/select.js +1 -1
- package/selection-list.d.ts +1 -0
- package/selection-list.js +3 -1
- package/status-feedback/badge.js +2 -2
- package/status-feedback/exit-snapshot.js +2 -2
- package/status-feedback/header.js +2 -2
- package/status-feedback/icons.js +1 -1
- package/status-feedback/index.js +1 -1
- package/status-feedback/item.js +2 -2
- package/status-feedback/motion.js +1 -1
- package/status-feedback/placement.js +1 -1
- package/status-feedback/popover.js +2 -2
- package/status-feedback/render.js +1 -1
- package/status-feedback/status-feedback.scss +124 -35
- package/styles/_activity-message.scss +24 -7
- package/styles/_alert.scss +61 -14
- package/styles/_cell-editor-frame.scss +11 -0
- package/styles/_compositions.scss +399 -79
- package/styles/_control.scss +30 -8
- package/styles/_disclosure.scss +15 -5
- package/styles/_editor-counter.scss +16 -6
- package/styles/_editor-slider.scss +8 -2
- package/styles/_field-configurator.scss +192 -41
- package/styles/_fields-grid.scss +16 -4
- package/styles/_filter-controls.scss +10 -2
- package/styles/_icon-action.scss +48 -15
- package/styles/_loading.scss +12 -3
- package/styles/_motion.scss +32 -9
- package/styles/_primitives.scss +346 -96
- package/styles/_theme.scss +130 -86
- package/styles/_thresholds.scss +28 -25
- package/styles/_time-grid.scss +8 -3
- package/styles/_tokens.scss +6 -1
- package/styles/color-roles.js +1 -1
- package/styles/configurator-actions.scss +126 -26
- package/styles/pagination.css +114 -30
- package/styles/rating.css +8 -3
- package/styles.css +1 -1
- package/styles.scss +1 -3
- package/surfaces.d.ts +4 -2
- package/surfaces.js +8 -8
- package/svelte/UiComponent.svelte +44 -11
- package/svelte-control.js +1 -1
- package/svelte.d.ts +1 -1
- package/svelte.js +5 -5
- package/switch/index.js +2 -2
- package/time-grid.js +3 -3
- package/timeline-track/_style.scss +96 -24
- package/timeline-track/index.js +3 -3
- package/timeline-track/model.js +1 -1
- package/ui.css +1 -1
- package/view-switcher.d.ts +23 -0
- package/vue-badge.js +1 -1
- package/vue-control.js +1 -1
- package/vue-segmented-switch.js +1 -1
- package/vue.d.ts +3 -2
- package/vue.js +43 -44
- package/_chunks/badge.view-D30pMUfi.js +0 -14
- package/_chunks/chevron-right-sxHQMSkq.js +0 -4
- package/_chunks/field-configurator-BCINdXpU.js +0 -223
- package/_chunks/mount-Cw2zk58T.js +0 -266
- package/_shared/data-query/binding.d.ts +0 -30
- package/_shared/data-query/blocks.d.ts +0 -30
- package/_shared/data-query/commands.d.ts +0 -47
- package/_shared/data-query/contracts.d.ts +0 -106
- package/_shared/data-query/cursor-reader.d.ts +0 -25
- package/_shared/data-query/direct-binding.d.ts +0 -3
- package/_shared/data-query/index.d.ts +0 -23
- package/_shared/data-query/infinite-binding.d.ts +0 -18
- package/_shared/data-query/keys.d.ts +0 -9
- package/_shared/data-query/limiter.d.ts +0 -12
- package/_shared/data-query/load-options.d.ts +0 -25
- package/_shared/data-query/materialize.d.ts +0 -2
- package/_shared/data-query/policy.d.ts +0 -14
- package/_shared/data-query/provider-queries.d.ts +0 -22
- package/_shared/data-query/reader.d.ts +0 -23
- package/_shared/data-query/remote-load.d.ts +0 -7
- package/_shared/data-query/source.d.ts +0 -40
package/_button.scss
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
background-color: var(--rv-ui-btn-outline-bg, transparent);
|
|
12
12
|
color: var(--rv-ui-btn-outline-fg, inherit);
|
|
13
13
|
transition:
|
|
14
|
-
background-color var(--rv-ui-motion-fast, 120ms)
|
|
14
|
+
background-color var(--rv-ui-motion-fast, 120ms)
|
|
15
|
+
var(--rv-ui-motion-ease, ease),
|
|
15
16
|
color var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease),
|
|
16
17
|
border-color var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease),
|
|
17
18
|
opacity var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease);
|
|
@@ -36,7 +37,10 @@
|
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
&:not(.disabled):hover {
|
|
39
|
-
background-color: var(
|
|
40
|
+
background-color: var(
|
|
41
|
+
--rv-ui-btn-outline-bg-hover,
|
|
42
|
+
$button-alt-bg-light-hover
|
|
43
|
+
);
|
|
40
44
|
border-color: var(--rv-ui-btn-outline-border-hover);
|
|
41
45
|
}
|
|
42
46
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { i as e, n as t, t as n } from "./hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
3
|
import { createControlId as i } from "../core/control-id.js";
|
|
4
|
-
import { l as a, t as o } from "./native-control-
|
|
4
|
+
import { l as a, t as o } from "./native-control-um1L1wgZ.js";
|
|
5
5
|
import { DEFAULT_CALENDAR_TRANSLATIONS as s } from "../calendar/translations.js";
|
|
6
|
-
import { a as c, n as l } from "./iso-
|
|
7
|
-
import { a as u, c as d, d as f, f as p, l as m, n as h, p as g, r as _, s as v, t as y, u as b } from "./model-
|
|
6
|
+
import { a as c, n as l } from "./iso-CJQl2kmq.js";
|
|
7
|
+
import { a as u, c as d, d as f, f as p, l as m, n as h, p as g, r as _, s as v, t as y, u as b } from "./model-CFrBgRHm.js";
|
|
8
8
|
import { CalendarHeader as ee, CalendarWeekdays as te } from "../calendar/header.js";
|
|
9
9
|
import { CalendarMonthGrid as x } from "../calendar/month-grid.js";
|
|
10
10
|
import { CalendarYearGrid as ne } from "../calendar/year-grid.js";
|
|
11
|
-
//#region
|
|
11
|
+
//#region package/calendar/caption.tsx
|
|
12
12
|
function re({ month: e, system: n, locale: i, layout: o, start: s, end: c, disabled: l, labels: u, onChange: d }) {
|
|
13
13
|
let h = m(e, n), g = f(e, n), _ = t(() => {
|
|
14
14
|
let t = m(e, n)[0], r = s ? m(s, n)[0] : v(t, -600, n), i = c ? m(c, n)[0] : v(t, 120, n), a = [];
|
|
@@ -58,7 +58,7 @@ function re({ month: e, system: n, locale: i, layout: o, start: s, end: c, disab
|
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
//#endregion
|
|
61
|
-
//#region
|
|
61
|
+
//#region package/calendar/calendar.tsx
|
|
62
62
|
var ie = "2026-08-02";
|
|
63
63
|
function S({ locale: a = "en-US", weekStartsOn: f = 1, showOutsideDays: m = !1, allowOutsideMonthSelection: S = !1, fixedWeeks: ae = !0, showTodayButton: oe = !1, showHeader: se = !0, showNavigation: C = !0, showPreviousButton: ce = C, showNextButton: le = C, showMonthLabel: ue = !0, showWeekdays: de = !0, enableYearView: w = !0, translations: fe = {}, ...T }) {
|
|
64
64
|
let [E] = e(() => i("rv-calendar-feedback")), D = T.calendarSystem ?? "gregory", O = Math.max(1, Math.min(12, Math.trunc(T.numberOfMonths || 1))), k = t(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { controlClassName as e } from "../control-attributes.js";
|
|
2
2
|
import { renderProgressBar as t } from "../progress/bar.js";
|
|
3
|
-
//#region
|
|
3
|
+
//#region package/cell-visuals/presentation.ts
|
|
4
4
|
function n(e, n) {
|
|
5
5
|
return e("div", { class: "progress-line-container" }, [t(e, {
|
|
6
6
|
value: n.percent,
|
|
@@ -72,7 +72,7 @@ function u(e, t) {
|
|
|
72
72
|
return e("div", { class: "summary-aggregate-content" }, t.map((t) => e("div", { class: "summary-aggregate-item" }, t)));
|
|
73
73
|
}
|
|
74
74
|
//#endregion
|
|
75
|
-
//#region
|
|
75
|
+
//#region package/cell-visuals/sparkline.ts
|
|
76
76
|
function d(t, n) {
|
|
77
77
|
let { value: r } = n, i = Array.isArray(r) ? Array.from(r).filter((e) => e == null || typeof e == "number" && Number.isFinite(e)).map((e) => e ?? null) : [], a = i.filter((e) => e !== null);
|
|
78
78
|
if (a.length === 0) return t("div", { class: "sparkline-container" }, "");
|
|
@@ -99,7 +99,7 @@ function d(t, n) {
|
|
|
99
99
|
}, d)]);
|
|
100
100
|
}
|
|
101
101
|
//#endregion
|
|
102
|
-
//#region
|
|
102
|
+
//#region package/cell-visuals/mini-bars.ts
|
|
103
103
|
function f(t, n) {
|
|
104
104
|
let { value: r } = n, i = Array.isArray(r) ? r : [];
|
|
105
105
|
if (i.length === 0) return t("div", { class: "bar-chart-container" }, "");
|
|
@@ -116,7 +116,7 @@ function f(t, n) {
|
|
|
116
116
|
})])]);
|
|
117
117
|
}
|
|
118
118
|
//#endregion
|
|
119
|
-
//#region
|
|
119
|
+
//#region internal/chart-utils/src/colors.ts
|
|
120
120
|
function p(e) {
|
|
121
121
|
let t = /^#([\da-f]{6}|[\da-f]{3})$/i.exec(e.trim());
|
|
122
122
|
if (!t) return;
|
|
@@ -139,7 +139,7 @@ function h(e, t, n) {
|
|
|
139
139
|
return `rgb(${e.map((e, n) => Math.round(e + (t[n] - e) * r)).join(", ")})`;
|
|
140
140
|
}
|
|
141
141
|
//#endregion
|
|
142
|
-
//#region
|
|
142
|
+
//#region package/cell-visuals/heatmap.ts
|
|
143
143
|
function g(e) {
|
|
144
144
|
return e <= .5 ? `rgb(255, ${Math.round(e / .5 * 255)}, 0)` : `rgb(${Math.round(255 * ((1 - e) / .5))}, ${Math.round(150 + 105 * ((1 - e) / .5))}, 0)`;
|
|
145
145
|
}
|
|
@@ -173,7 +173,7 @@ function b(e, t) {
|
|
|
173
173
|
}, String(n));
|
|
174
174
|
}
|
|
175
175
|
//#endregion
|
|
176
|
-
//#region
|
|
176
|
+
//#region package/cell-visuals/timeline.ts
|
|
177
177
|
function x(e) {
|
|
178
178
|
let t = `${e.start}–${e.end}`;
|
|
179
179
|
return e.label ? `${e.label}: ${t}` : t;
|
|
@@ -226,7 +226,7 @@ function D(e, t) {
|
|
|
226
226
|
}, [e("div", { class: "rv-timeline-track" }, [e("div", { class: "rv-timeline-bar" }, []), ...C(e, r, t.range)])]);
|
|
227
227
|
}
|
|
228
228
|
//#endregion
|
|
229
|
-
//#region
|
|
229
|
+
//#region package/cell-visuals/pie.ts
|
|
230
230
|
function O(e, t) {
|
|
231
231
|
return `hsl(${e / t * 360}, 70%, 50%)`;
|
|
232
232
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as e } from "./preact.module-BBM36DnO.js";
|
|
2
2
|
import { i as t, t as n } from "./hooks.module-CG3gN83z.js";
|
|
3
3
|
import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
4
|
-
import { r as i } from "./tooltip-
|
|
5
|
-
import { t as a } from "./tooltip-text-
|
|
6
|
-
//#region
|
|
4
|
+
import { r as i } from "./tooltip-h-Z8yFBY.js";
|
|
5
|
+
import { t as a } from "./tooltip-text-BN5WdGHn.js";
|
|
6
|
+
//#region package/distribution-chart/geometry.ts
|
|
7
7
|
function o(e) {
|
|
8
8
|
let t = e.map(({ value: e }) => Number.isFinite(e) ? Math.max(0, e) : 0), n = Math.max(1, ...t);
|
|
9
9
|
return {
|
|
@@ -22,7 +22,7 @@ function c(e, t, n = "linear") {
|
|
|
22
22
|
return `M ${e.x} ${e.y} ${s(t, n)}`;
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region
|
|
25
|
+
//#region package/distribution-chart/chart-frame.tsx
|
|
26
26
|
function l({ title: e, details: t = [] }) {
|
|
27
27
|
return [e, ...t].filter(Boolean).join(". ");
|
|
28
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/chevron-left.svg?raw
|
|
2
|
-
var e = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z\"/></svg>";
|
|
2
|
+
var e = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z\"/></svg>", t = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z\"/></svg>";
|
|
3
3
|
//#endregion
|
|
4
|
-
export { e as t };
|
|
4
|
+
export { e as n, t };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { i as e, r as t, t as n } from "./hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
-
import {
|
|
3
|
+
import { TooltipController as i } from "../core/popover-controller.js";
|
|
4
4
|
import { SvgIcon as a } from "../icons/icon.js";
|
|
5
|
-
import { t as o } from "./native-control-
|
|
5
|
+
import { t as o } from "./native-control-um1L1wgZ.js";
|
|
6
6
|
import { RemoveButton as s } from "../buttons/remove-button.js";
|
|
7
7
|
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/circle-info.svg?raw
|
|
8
8
|
var c = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z\"/></svg>";
|
|
9
9
|
//#endregion
|
|
10
|
-
//#region
|
|
10
|
+
//#region package/choice-chips/index.tsx
|
|
11
11
|
function l({ value: i, options: a, onChange: o, ariaLabel: s, appearance: c = "soft", scrollable: l = !1, size: u = "medium", className: f = "", itemClassName: p = "", disabled: m = !1, testId: h }) {
|
|
12
12
|
let g = n(null), [_, v] = e(""), y = () => {
|
|
13
13
|
let e = g.current;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
-
import { n as t } from "./tooltip-
|
|
2
|
+
import { n as t } from "./tooltip-h-Z8yFBY.js";
|
|
3
3
|
import { t as n } from "./check-BwI7iCAm.js";
|
|
4
4
|
import { DEFAULT_COLOR_PALETTE_OPTIONS as r } from "../color-palette/palette.js";
|
|
5
|
-
//#region
|
|
5
|
+
//#region package/color-palette/color-model.ts
|
|
6
6
|
function i(e) {
|
|
7
7
|
if (!e) return;
|
|
8
8
|
let t = e.trim().toLowerCase(), n = /^#([\da-f])([\da-f])([\da-f])$/i.exec(t);
|
|
@@ -23,7 +23,7 @@ function a(e) {
|
|
|
23
23
|
e.preventDefault(), r[a]?.focus();
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
26
|
-
//#region
|
|
26
|
+
//#region package/color-palette/color-palette.tsx
|
|
27
27
|
function o({ value: t, options: i = r, ariaLabel: o, defaultLabel: c, colorAriaLabel: l, disabled: u = !1, includeDefault: d = !0, defaultDisabled: f = !1, onChange: p }) {
|
|
28
28
|
let m = i.findIndex((e) => e.value === t && !e.disabled), h = i.findIndex((e) => !e.disabled), g = d && !f, _ = a;
|
|
29
29
|
return /* @__PURE__ */ e("div", {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { c as e, i as t, t as n } from "./hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
3
|
import { createControlId as i } from "../core/control-id.js";
|
|
4
|
-
import { n as a, t as o } from "./native-control-
|
|
4
|
+
import { n as a, t as o } from "./native-control-um1L1wgZ.js";
|
|
5
5
|
import { t as s } from "./chevron-down-GbplLa6s.js";
|
|
6
|
-
import { n as c } from "./tooltip-
|
|
7
|
-
import { n as l, t as u } from "./color-palette-
|
|
6
|
+
import { n as c } from "./tooltip-h-Z8yFBY.js";
|
|
7
|
+
import { n as l, t as u } from "./color-palette-7siNch__.js";
|
|
8
8
|
import { COLOR_PICKER_DEFAULT_COLOR as d } from "../color-palette/color-picker.constants.js";
|
|
9
9
|
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/ban.svg?raw
|
|
10
10
|
var f = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M367.2 412.5L99.5 144.8c-22.4 31.4-35.5 69.8-35.5 111.2 0 106 86 192 192 192 41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3c22.4-31.4 35.5-69.8 35.5-111.2 0-106-86-192-192-192-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z\"/></svg>", p = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M512 256c0 .9 0 1.8 0 2.7-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48 0 3.4 .4 6.7 1 9.9 2.1 10.2 6.5 20 10.8 29.9 6.1 13.8 12.1 27.5 12.1 42 0 31.8-21.6 60.7-53.4 62-3.5 .1-7 .2-10.6 .2-141.4 0-256-114.6-256-256S114.6 0 256 0 512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z\"/></svg>";
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region
|
|
12
|
+
//#region package/color-palette/color-picker.tsx
|
|
13
13
|
function m({ icon: e, className: t = "rv-format-icon rv-format-color-picker__icon" }) {
|
|
14
14
|
return /* @__PURE__ */ r("span", {
|
|
15
15
|
class: t,
|
|
@@ -2,16 +2,15 @@ import { c as e, i as t } from "./preact.module-BBM36DnO.js";
|
|
|
2
2
|
import { i as n, n as r, r as i, t as a } from "./hooks.module-CG3gN83z.js";
|
|
3
3
|
import { t as o } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
4
4
|
import { createControlId as s } from "../core/control-id.js";
|
|
5
|
-
import {
|
|
5
|
+
import { PopoverController as c, TooltipController as l } from "../core/popover-controller.js";
|
|
6
6
|
import { SvgIcon as u } from "../icons/icon.js";
|
|
7
|
-
import { l as d, n as f } from "./native-control-
|
|
8
|
-
import { n as p } from "./popup-
|
|
7
|
+
import { l as d, n as f } from "./native-control-um1L1wgZ.js";
|
|
8
|
+
import { n as p } from "./popup-DECYM9FI.js";
|
|
9
9
|
import { t as m } from "./chevron-down-GbplLa6s.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { t as T } from "./chevron-right-sxHQMSkq.js";
|
|
10
|
+
import { D as h, F as g, I as _, R as v, b as y, g as b, l as x, p as S, t as C } from "./controls-B3EgM_DS.js";
|
|
11
|
+
import { n as w, t as T } from "./chevron-right-CM3ljziP.js";
|
|
13
12
|
import { t as E } from "./xmark-DD_PBvZI.js";
|
|
14
|
-
import { t as D } from "./tooltip-text-
|
|
13
|
+
import { t as D } from "./tooltip-text-BN5WdGHn.js";
|
|
15
14
|
import { DialogController as O, attachMenuKeyboard as k } from "../surfaces.js";
|
|
16
15
|
import { t as A } from "./rotate-right-Iha5ScJ1.js";
|
|
17
16
|
import { t as j } from "./chevron-up-BLuNMPDn.js";
|
|
@@ -20,13 +19,13 @@ import { renderProgressBar as ee } from "../progress/bar.js";
|
|
|
20
19
|
import { t as te } from "./plus-CbGRkIGl.js";
|
|
21
20
|
import { t as ne } from "./minus-BOAR3A1C.js";
|
|
22
21
|
import { SearchInput as re } from "../search-input/index.js";
|
|
23
|
-
import { s as N } from "./iso-
|
|
24
|
-
import { f as P, h as F, o as I } from "./model-
|
|
25
|
-
import { n as L, t as R } from "./date-control-
|
|
26
|
-
import { t as z } from "./calendar-
|
|
22
|
+
import { s as N } from "./iso-CJQl2kmq.js";
|
|
23
|
+
import { f as P, h as F, o as I } from "./model-CFrBgRHm.js";
|
|
24
|
+
import { n as L, t as R } from "./date-control-87dcA5br.js";
|
|
25
|
+
import { t as z } from "./calendar-BQYQLu8Q.js";
|
|
27
26
|
import { t as B } from "./magnifying-glass-CvrTDSkB.js";
|
|
28
|
-
import { t as V } from "./controller-
|
|
29
|
-
//#region
|
|
27
|
+
import { t as V } from "./controller-BbiQuRt-.js";
|
|
28
|
+
//#region package/pickers.tsx
|
|
30
29
|
function H(e) {
|
|
31
30
|
return /* @__PURE__ */ o(d, {
|
|
32
31
|
...e,
|
|
@@ -54,16 +53,16 @@ function ie(t) {
|
|
|
54
53
|
function ae(t) {
|
|
55
54
|
return ee(e, t);
|
|
56
55
|
}
|
|
57
|
-
function W({ open: e, anchor: t, appendTo: n, closeOnOutside: r, closeOnEscape: s, onClose:
|
|
58
|
-
let m = a(null), h = a(
|
|
59
|
-
h.current =
|
|
56
|
+
function W({ open: e, anchor: t, appendTo: n, closeOnOutside: r, closeOnEscape: s, onClose: l, children: u, label: d, className: f = "", role: p = "dialog" }) {
|
|
57
|
+
let m = a(null), h = a(l);
|
|
58
|
+
h.current = l;
|
|
60
59
|
let g = a({
|
|
61
60
|
closeOnOutside: r,
|
|
62
61
|
closeOnEscape: s
|
|
63
62
|
}).current;
|
|
64
63
|
return g.closeOnOutside = r, g.closeOnEscape = s, i(() => {
|
|
65
64
|
if (!e || !t || !m.current) return;
|
|
66
|
-
let r = m.current, i = new
|
|
65
|
+
let r = m.current, i = new c(), a = !0;
|
|
67
66
|
i.open({
|
|
68
67
|
anchor: t,
|
|
69
68
|
appendTo: n,
|
|
@@ -102,7 +101,7 @@ function oe({ text: e, children: t }) {
|
|
|
102
101
|
return i(() => {
|
|
103
102
|
let t = n.current;
|
|
104
103
|
if (!t) return;
|
|
105
|
-
let r = new
|
|
104
|
+
let r = new l(), i, a = () => {
|
|
106
105
|
let n = t.querySelector("button, input, a[href], [tabindex]") ?? t;
|
|
107
106
|
n !== i && (r.bind(n, e), i = n);
|
|
108
107
|
};
|
|
@@ -308,7 +307,7 @@ function le({ value: e, onChange: t, label: r, fromLabel: a, toLabel: c, openLab
|
|
|
308
307
|
});
|
|
309
308
|
}
|
|
310
309
|
//#endregion
|
|
311
|
-
//#region
|
|
310
|
+
//#region package/pdf-viewer/translations.ts
|
|
312
311
|
var K = {
|
|
313
312
|
viewer: "PDF document",
|
|
314
313
|
pages: "Document pages",
|
|
@@ -361,7 +360,7 @@ function J(e) {
|
|
|
361
360
|
};
|
|
362
361
|
}
|
|
363
362
|
//#endregion
|
|
364
|
-
//#region
|
|
363
|
+
//#region package/pdf-viewer/toolbar-options.ts
|
|
365
364
|
function Y(e) {
|
|
366
365
|
return e === !1 ? { tools: [] } : Array.isArray(e) ? { tools: e } : e ?? {};
|
|
367
366
|
}
|
|
@@ -376,7 +375,7 @@ function X(e, t) {
|
|
|
376
375
|
].includes(t) || n.buttons?.[t] !== !1);
|
|
377
376
|
}
|
|
378
377
|
//#endregion
|
|
379
|
-
//#region
|
|
378
|
+
//#region package/pdf-viewer/icons.ts
|
|
380
379
|
var Z = {
|
|
381
380
|
previous: w,
|
|
382
381
|
next: T,
|
|
@@ -394,12 +393,12 @@ var Z = {
|
|
|
394
393
|
more: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z\"/></svg>"
|
|
395
394
|
};
|
|
396
395
|
//#endregion
|
|
397
|
-
//#region
|
|
396
|
+
//#region package/pdf-viewer/toolbar.tsx
|
|
398
397
|
function Q(e) {
|
|
399
398
|
let { controller: r, state: s } = e, c = J(e.text), l = Y(e.config), p = s.status === "ready", m = (e) => l.buttons?.[e] !== !1, h = (e) => {
|
|
400
399
|
let t = l.buttons?.[e];
|
|
401
400
|
return t === !1 ? {} : t ?? {};
|
|
402
|
-
},
|
|
401
|
+
}, v = (t) => X(e.config, t), [x, w] = n(!1), T = a(null), E = a(null), [D, O] = n(String(s.page || "")), k = Number.isFinite(l.zoomStep) && l.zoomStep > 1 ? l.zoomStep : 1.25, A = [...new Set((l.zoomLevels ?? [
|
|
403
402
|
"page-width",
|
|
404
403
|
"page-fit",
|
|
405
404
|
.5,
|
|
@@ -440,11 +439,11 @@ function Q(e) {
|
|
|
440
439
|
"rotate",
|
|
441
440
|
"download",
|
|
442
441
|
"print"
|
|
443
|
-
].some(
|
|
442
|
+
].some(v) ? /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ o(g, {
|
|
444
443
|
label: c.toolbar,
|
|
445
444
|
className: `rv-pdf-viewer__toolbar rv-toolbar--surface ${l.className ?? ""}`,
|
|
446
445
|
children: [
|
|
447
|
-
|
|
446
|
+
v("open") && /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(C, {
|
|
448
447
|
variant: "ghost",
|
|
449
448
|
size: "compact",
|
|
450
449
|
...h("open"),
|
|
@@ -456,7 +455,7 @@ function Q(e) {
|
|
|
456
455
|
children: c.open
|
|
457
456
|
})]
|
|
458
457
|
}) }),
|
|
459
|
-
|
|
458
|
+
v("navigation") && (l.boundaryButtons || m("previous") || m("next") || l.showPageInput !== !1 || l.showPageCount !== !1) && /* @__PURE__ */ o(_, {
|
|
460
459
|
label: c.page,
|
|
461
460
|
children: /* @__PURE__ */ o(y, {
|
|
462
461
|
page: s.page - 1,
|
|
@@ -498,7 +497,7 @@ function Q(e) {
|
|
|
498
497
|
})]
|
|
499
498
|
})
|
|
500
499
|
}),
|
|
501
|
-
|
|
500
|
+
v("zoom") && (m("zoomOut") || m("zoomIn") || l.showZoomSelect !== !1) && /* @__PURE__ */ o(_, {
|
|
502
501
|
label: c.zoom,
|
|
503
502
|
children: [
|
|
504
503
|
m("zoomOut") && /* @__PURE__ */ o(S, {
|
|
@@ -539,7 +538,7 @@ function Q(e) {
|
|
|
539
538
|
})
|
|
540
539
|
]
|
|
541
540
|
}),
|
|
542
|
-
|
|
541
|
+
v("search") && /* @__PURE__ */ o(_, { children: m("search") && /* @__PURE__ */ o(S, {
|
|
543
542
|
...h("search"),
|
|
544
543
|
label: c.search,
|
|
545
544
|
icon: Z.search,
|
|
@@ -550,10 +549,10 @@ function Q(e) {
|
|
|
550
549
|
"aria-keyshortcuts": "Control+f Meta+f",
|
|
551
550
|
onClick: (t) => e.onToggleSearch(t.currentTarget)
|
|
552
551
|
}) }),
|
|
553
|
-
(
|
|
552
|
+
(v("rotate") || v("download") || v("print")) && /* @__PURE__ */ o(_, {
|
|
554
553
|
className: "rv-pdf-viewer__actions rv-pdf-viewer__desktop-actions",
|
|
555
554
|
children: [
|
|
556
|
-
|
|
555
|
+
v("rotate") && /* @__PURE__ */ o(S, {
|
|
557
556
|
...h("rotate"),
|
|
558
557
|
label: c.rotate,
|
|
559
558
|
icon: Z.rotate,
|
|
@@ -561,7 +560,7 @@ function Q(e) {
|
|
|
561
560
|
disabled: !p || !!h("rotate").disabled,
|
|
562
561
|
onClick: () => r.rotate()
|
|
563
562
|
}),
|
|
564
|
-
|
|
563
|
+
v("download") && /* @__PURE__ */ o(S, {
|
|
565
564
|
...h("download"),
|
|
566
565
|
label: c.download,
|
|
567
566
|
icon: Z.download,
|
|
@@ -569,7 +568,7 @@ function Q(e) {
|
|
|
569
568
|
disabled: !p || !!h("download").disabled,
|
|
570
569
|
onClick: () => void r.download()
|
|
571
570
|
}),
|
|
572
|
-
|
|
571
|
+
v("print") && /* @__PURE__ */ o(S, {
|
|
573
572
|
...h("print"),
|
|
574
573
|
label: c.print,
|
|
575
574
|
icon: Z.print,
|
|
@@ -580,7 +579,7 @@ function Q(e) {
|
|
|
580
579
|
})
|
|
581
580
|
]
|
|
582
581
|
}),
|
|
583
|
-
(
|
|
582
|
+
(v("rotate") || v("download") || v("print")) && /* @__PURE__ */ o(_, {
|
|
584
583
|
className: "rv-pdf-viewer__more",
|
|
585
584
|
children: /* @__PURE__ */ o(C, {
|
|
586
585
|
ref: T,
|
|
@@ -611,7 +610,7 @@ function Q(e) {
|
|
|
611
610
|
ref: E,
|
|
612
611
|
class: "rv-pdf-viewer__menu",
|
|
613
612
|
children: [
|
|
614
|
-
|
|
613
|
+
v("rotate") && /* @__PURE__ */ o(b, {
|
|
615
614
|
className: h("rotate").className,
|
|
616
615
|
disabled: !!h("rotate").disabled,
|
|
617
616
|
onClick: () => {
|
|
@@ -619,7 +618,7 @@ function Q(e) {
|
|
|
619
618
|
},
|
|
620
619
|
children: [/* @__PURE__ */ o(u, { svg: Z.rotate }), c.rotate]
|
|
621
620
|
}),
|
|
622
|
-
|
|
621
|
+
v("download") && /* @__PURE__ */ o(b, {
|
|
623
622
|
className: h("download").className,
|
|
624
623
|
disabled: !!h("download").disabled,
|
|
625
624
|
onClick: () => {
|
|
@@ -627,7 +626,7 @@ function Q(e) {
|
|
|
627
626
|
},
|
|
628
627
|
children: [/* @__PURE__ */ o(u, { svg: Z.download }), c.download]
|
|
629
628
|
}),
|
|
630
|
-
|
|
629
|
+
v("print") && /* @__PURE__ */ o(b, {
|
|
631
630
|
className: h("print").className,
|
|
632
631
|
disabled: s.printing || !!h("print").disabled,
|
|
633
632
|
onClick: () => {
|
|
@@ -640,7 +639,7 @@ function Q(e) {
|
|
|
640
639
|
})] }) : null;
|
|
641
640
|
}
|
|
642
641
|
//#endregion
|
|
643
|
-
//#region
|
|
642
|
+
//#region package/pdf-viewer/search-bar.tsx
|
|
644
643
|
function ue({ id: e, controller: t, state: n, text: r, onClose: a, inputRef: s }) {
|
|
645
644
|
let c = n.status === "ready";
|
|
646
645
|
return i(() => {
|
|
@@ -701,7 +700,7 @@ function ue({ id: e, controller: t, state: n, text: r, onClose: a, inputRef: s }
|
|
|
701
700
|
});
|
|
702
701
|
}
|
|
703
702
|
//#endregion
|
|
704
|
-
//#region
|
|
703
|
+
//#region package/pdf-viewer/header.tsx
|
|
705
704
|
function de({ state: e, text: n, onCancelPrint: r, showDetails: i = !0 }) {
|
|
706
705
|
let a = e.status === "ready";
|
|
707
706
|
return /* @__PURE__ */ o("header", {
|
|
@@ -734,9 +733,9 @@ function de({ state: e, text: n, onCancelPrint: r, showDetails: i = !0 }) {
|
|
|
734
733
|
});
|
|
735
734
|
}
|
|
736
735
|
//#endregion
|
|
737
|
-
//#region
|
|
736
|
+
//#region package/pdf-viewer/status.tsx
|
|
738
737
|
function fe({ state: e, text: n, controller: r, canOpen: i, onOpen: a }) {
|
|
739
|
-
return e.status === "loading" ? /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ o(h, { label: n.loading }), /* @__PURE__ */ o("span", { children: n.loading })] }) : e.status === "error" ? /* @__PURE__ */ o(
|
|
738
|
+
return e.status === "loading" ? /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ o(h, { label: n.loading }), /* @__PURE__ */ o("span", { children: n.loading })] }) : e.status === "error" ? /* @__PURE__ */ o(v, {
|
|
740
739
|
tone: "danger",
|
|
741
740
|
title: n.error,
|
|
742
741
|
description: n.errorDescription,
|
|
@@ -760,7 +759,7 @@ function fe({ state: e, text: n, controller: r, canOpen: i, onOpen: a }) {
|
|
|
760
759
|
});
|
|
761
760
|
}
|
|
762
761
|
//#endregion
|
|
763
|
-
//#region
|
|
762
|
+
//#region package/pdf-viewer/component.tsx
|
|
764
763
|
function pe(e) {
|
|
765
764
|
let t = r(() => new V(e), [
|
|
766
765
|
e.workerSrc,
|
|
@@ -775,7 +774,7 @@ function pe(e) {
|
|
|
775
774
|
});
|
|
776
775
|
}
|
|
777
776
|
function $(e) {
|
|
778
|
-
let { controller: t } = e, [r, c] = n(t.snapshot), [l, u] = n(!1), [d] = n(() => s("rv-pdf-search")), p = a(null), m = a(null), h = a(null), g = a(null),
|
|
777
|
+
let { controller: t } = e, [r, c] = n(t.snapshot), [l, u] = n(!1), [d] = n(() => s("rv-pdf-search")), p = a(null), m = a(null), h = a(null), g = a(null), _ = a(null), y = J(e.text), b = r.status === "ready", x = Y(e.toolbar).buttons, S = (e) => {
|
|
779
778
|
let t = x?.[e];
|
|
780
779
|
return t !== !1 && !t?.disabled;
|
|
781
780
|
}, C = X(e.toolbar, "search") && S("search"), w = X(e.toolbar, "open") && S("open");
|
|
@@ -796,7 +795,7 @@ function $(e) {
|
|
|
796
795
|
let e = p.current;
|
|
797
796
|
e?.isConnected && !e.hasAttribute("disabled") ? e.focus({ preventScroll: !0 }) : h.current?.focus({ preventScroll: !0 });
|
|
798
797
|
}, E = (e) => {
|
|
799
|
-
l || (p.current = e), u(!0),
|
|
798
|
+
l || (p.current = e), u(!0), _.current?.focus();
|
|
800
799
|
};
|
|
801
800
|
i(() => {
|
|
802
801
|
C || (t.clearSearch(), u(!1), l && h.current?.focus({ preventScroll: !0 }));
|
|
@@ -840,7 +839,7 @@ function $(e) {
|
|
|
840
839
|
}
|
|
841
840
|
}),
|
|
842
841
|
l && C && /* @__PURE__ */ o(ue, {
|
|
843
|
-
inputRef:
|
|
842
|
+
inputRef: _,
|
|
844
843
|
id: d,
|
|
845
844
|
controller: t,
|
|
846
845
|
state: r,
|
|
@@ -867,7 +866,7 @@ function $(e) {
|
|
|
867
866
|
})
|
|
868
867
|
})]
|
|
869
868
|
}),
|
|
870
|
-
b && r.error && /* @__PURE__ */ o(
|
|
869
|
+
b && r.error && /* @__PURE__ */ o(v, {
|
|
871
870
|
className: "rv-pdf-viewer__error",
|
|
872
871
|
tone: "danger",
|
|
873
872
|
description: y.operationError
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { c as e, i as t, n } from "./preact.module-BBM36DnO.js";
|
|
2
2
|
import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
3
|
import { SvgIcon as i } from "../icons/icon.js";
|
|
4
|
-
import { t as a } from "./native-control-
|
|
5
|
-
import { t as o } from "./popup-
|
|
4
|
+
import { t as a } from "./native-control-um1L1wgZ.js";
|
|
5
|
+
import { t as o } from "./popup-DECYM9FI.js";
|
|
6
6
|
import { renderControl as s } from "../control-presentation.js";
|
|
7
7
|
import "./check-BwI7iCAm.js";
|
|
8
8
|
import { t as c } from "./plus-CbGRkIGl.js";
|
|
9
9
|
import { SearchInput as l } from "../search-input/index.js";
|
|
10
|
-
import { S as u, c as d, p as f, r as p } from "./field-configurator-
|
|
10
|
+
import { S as u, c as d, p as f, r as p } from "./field-configurator-DPulsY3l.js";
|
|
11
11
|
import { t as m } from "./calculator-CDWOuAcp.js";
|
|
12
12
|
import "./magnifying-glass-CvrTDSkB.js";
|
|
13
13
|
import { t as h } from "./configurator-field-icon-CmcM_sPs.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
2
2
|
import { createPreactElement as t, releasePreactElement as n } from "../preact-mount.js";
|
|
3
|
-
import { d as r, u as i } from "./native-control-
|
|
4
|
-
//#region
|
|
3
|
+
import { d as r, u as i } from "./native-control-um1L1wgZ.js";
|
|
4
|
+
//#region package/dropdown/control.view.tsx
|
|
5
5
|
function a(r) {
|
|
6
6
|
let i, a, o = t(r, /* @__PURE__ */ e("div", { children: [/* @__PURE__ */ e("div", {
|
|
7
7
|
style: { display: "contents" },
|
|
@@ -22,7 +22,7 @@ function a(r) {
|
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region
|
|
25
|
+
//#region package/dropdown/control.ts
|
|
26
26
|
function o(e, t) {
|
|
27
27
|
let { element: n, mount: o, input: s, release: c } = a(e), l = { ...t }, u = !1, d = () => {
|
|
28
28
|
u || (s.name = l.name ?? "", s.disabled = !!l.disabled || !l.name, s.value = l.value == null ? "" : String(l.value), i(o, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
2
2
|
import { createPreactElement as t, releasePreactElement as n } from "../preact-mount.js";
|
|
3
|
-
//#region
|
|
3
|
+
//#region package/pdf-viewer/runtime.ts
|
|
4
4
|
async function r() {
|
|
5
5
|
let e = await import("pdfjs-dist"), t = await import("pdfjs-dist/web/pdf_viewer.mjs");
|
|
6
6
|
return await import("pdfjs-dist/web/pdf_viewer.css"), {
|
|
@@ -9,7 +9,7 @@ async function r() {
|
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region
|
|
12
|
+
//#region package/pdf-viewer/model.ts
|
|
13
13
|
function i(e) {
|
|
14
14
|
return e === "page-fit" || e === "page-width" ? e : Number.isFinite(e) ? Math.min(5, Math.max(.25, e)) : 1;
|
|
15
15
|
}
|
|
@@ -32,7 +32,7 @@ async function s(e) {
|
|
|
32
32
|
return { data: t instanceof Uint8Array ? t.slice() : new Uint8Array(t.slice(0)) };
|
|
33
33
|
}
|
|
34
34
|
//#endregion
|
|
35
|
-
//#region
|
|
35
|
+
//#region package/pdf-viewer/surfaces.view.tsx
|
|
36
36
|
var c = (n) => t(n, /* @__PURE__ */ e("div", { class: "pdfViewer" })), l = (n, r, i) => t(n, /* @__PURE__ */ e("a", {
|
|
37
37
|
href: r,
|
|
38
38
|
download: i
|
|
@@ -44,7 +44,7 @@ var c = (n) => t(n, /* @__PURE__ */ e("div", { class: "pdfViewer" })), l = (n, r
|
|
|
44
44
|
height: i
|
|
45
45
|
}));
|
|
46
46
|
//#endregion
|
|
47
|
-
//#region
|
|
47
|
+
//#region package/pdf-viewer/print.ts
|
|
48
48
|
async function p(e, t, r, i = "PDF print document") {
|
|
49
49
|
r.throwIfAborted();
|
|
50
50
|
let a = u(t, i), o = [], s, c = !1;
|
|
@@ -84,7 +84,7 @@ async function p(e, t, r, i = "PDF print document") {
|
|
|
84
84
|
return l;
|
|
85
85
|
}
|
|
86
86
|
//#endregion
|
|
87
|
-
//#region
|
|
87
|
+
//#region package/pdf-viewer/controller.ts
|
|
88
88
|
var m = class {
|
|
89
89
|
state;
|
|
90
90
|
listeners = /* @__PURE__ */ new Set();
|