@revolist/ui 4.0.3-rc → 4.0.3
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 +36 -0
- package/OWNERSHIP.md +32 -32
- package/README.md +136 -78
- package/_button.scss +6 -2
- package/_chunks/arrow-up-Cw8hW9vp.js +4 -0
- package/_chunks/calculator-CDWOuAcp.js +4 -0
- package/_chunks/{calendar-xpZ0v3xf.js → calendar-CgXQgkga.js} +19 -19
- package/_chunks/chart-frame-hcOlnQ1K.js +145 -0
- package/_chunks/{chevron-right-sxHQMSkq.js → check-BwI7iCAm.js} +2 -2
- package/_chunks/{chevron-left-D0nc4Z5S.js → chevron-right-CM3ljziP.js} +2 -2
- package/_chunks/choice-chips-SkllS5Kl.js +126 -0
- package/_chunks/{color-palette-D8vyPfld.js → color-palette-DMJUChWC.js} +20 -22
- package/_chunks/color-picker-BpCTuIdm.js +143 -0
- package/_chunks/{component-C_T2VN5u.js → component-CfeHXgIw.js} +279 -264
- package/_chunks/{component-metadata-BMOOmqx5.js → component-metadata-BKd7U8OW.js} +0 -8
- package/_chunks/configurator-actions-DnStE6Yl.js +155 -0
- package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
- package/_chunks/{control-AHKXD5Eu.js → control-Dcrjsunl.js} +42 -17
- package/_chunks/controls-B_6NJarZ.js +650 -0
- package/_chunks/{date-control-DrVFX13g.js → date-control-C4h4m75W.js} +1 -1
- package/_chunks/{date-time-qIhp5vaX.js → date-time-CTOSbzb0.js} +317 -278
- package/_chunks/dialog.parts-3w5FR06n.js +131 -0
- package/_chunks/{duration-CL68Em0o.js → duration-Bf2OS1V5.js} +5 -5
- package/_chunks/editor-popup-ByU7qiub.js +82 -0
- package/_chunks/field-configurator-D5dZRhDe.js +288 -0
- package/_chunks/{framework-mount--RTLIqE-.js → framework-mount-Bk4O_T7T.js} +1 -1
- package/_chunks/icon-toolbar-DSjOdwM7.js +134 -0
- package/_chunks/magnifying-glass-CvrTDSkB.js +4 -0
- package/_chunks/minus-BOAR3A1C.js +4 -0
- package/_chunks/mount-BRdcG60g.js +267 -0
- package/_chunks/{native.view-ByyZ1CT5.js → native-Blr3byjO.js} +1 -1
- package/_chunks/native-control-B_fVA5bL.js +649 -0
- package/_chunks/{number-input-BKwA5FnM.js → number-input-CmM6_2vR.js} +7 -7
- package/_chunks/{picker-h1P5RUgp.js → picker-DTqET-2W.js} +2 -2
- package/_chunks/plus-CbGRkIGl.js +4 -0
- package/_chunks/popover-controller-D-AvKQ7B.js +102 -0
- package/_chunks/{popup-CT2uD3go.js → popup-C35Isk7p.js} +115 -104
- package/_chunks/{rating-choice-DZgmaic0.js → rating-choice-C-6wcb9U.js} +1 -1
- package/_chunks/{reorder-list-CSlqAGHw.js → reorder-list-DIl1gkV6.js} +1 -1
- package/_chunks/request-trail-DrhdpWiH.js +762 -0
- package/_chunks/rich-text-BnilBbhU.js +842 -0
- package/_chunks/rotate-left-BF6G883o.js +4 -0
- package/_chunks/selection-list-tooltips-C5oMJe26.js +42 -0
- package/_chunks/title-tooltip-Cw6LOZhb.js +11 -0
- package/_chunks/tooltip-D4xkio5G.js +54 -0
- package/_chunks/tooltip-owner-DjdvqKzz.js +19 -0
- package/_chunks/tooltip-session-B6X6x8G_.js +110 -0
- package/_chunks/tooltip-text-BXsUEmBH.js +12 -0
- package/_chunks/top-layer-popup-CNSDdfJV.js +59 -0
- package/_dialog.scss +57 -22
- package/_form.scss +71 -21
- package/_legend.scss +25 -7
- package/_shared/data-query/index.d.ts +2 -2
- package/_shared/data-query/load-options.d.ts +2 -2
- package/_variables.scss +34 -32
- package/_view-switcher.scss +6 -0
- package/activity-message.d.ts +1 -1
- package/ai/_chat.scss +35 -3
- package/ai/_style.scss +76 -16
- package/ai/chat.d.ts +3 -1
- package/ai/components.d.ts +16 -3
- package/ai/index.d.ts +1 -0
- package/ai/index.js +3 -3
- package/ai/mount.d.ts +30 -6
- package/ai/request-trail.d.ts +9 -3
- package/ai/results/_style.scss +83 -0
- package/ai/results/index.d.ts +11 -0
- package/ai/results/metrics.d.ts +5 -0
- package/ai/results/table.d.ts +5 -0
- package/ai/results/text.d.ts +5 -0
- package/ai/results/types.d.ts +29 -0
- package/ai/transcript.d.ts +2 -0
- package/ai/translations.d.ts +1 -1
- package/angular/angular.d.ts +1 -1
- package/angular/angular.js +13 -7
- package/assignee/assignee.scss +28 -6
- package/assignee/index.js +2 -2
- package/avatar/avatar.style.scss +23 -6
- package/avatar/index.d.ts +25 -2
- package/avatar/index.js +33 -32
- package/badge.d.ts +1 -1
- package/badge.view.d.ts +8 -0
- package/brush-range/_brush-range.scss +55 -49
- package/brush-range/component.d.ts +1 -3
- package/brush-range/component.js +27 -27
- package/buttons/delete-button.style.scss +6 -2
- package/buttons/remove-button.d.ts +1 -1
- package/buttons/remove-button.style.scss +1 -1
- package/buttons/svg-button.d.ts +1 -1
- package/buttons/svg-button.js +16 -16
- package/calendar/_calendar.scss +21 -25
- package/calendar/calendar.js +1 -1
- package/calendar/header.js +1 -2
- package/calendar/index.js +2 -2
- 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/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 +6 -24
- package/choice-chips/index.d.ts +3 -1
- package/choice-chips/index.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.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 +1 -1
- package/color-palette/native.d.ts +15 -2
- package/component-catalog.d.ts +9 -7
- package/configurator-actions.d.ts +67 -0
- package/configurator-actions.js +1 -0
- package/configurator-aggregation-list.d.ts +14 -0
- package/configurator-aggregation-list.js +63 -0
- package/configurator-drop-zone.d.ts +39 -0
- package/configurator-drop-zone.js +66 -0
- package/configurator-field-icon.d.ts +10 -0
- package/configurator-field-icon.js +1 -0
- package/configurator-focus.d.ts +4 -0
- package/configurator-focus.js +39 -0
- package/configurator-sections.d.ts +42 -0
- package/configurator-sections.js +71 -0
- package/control-presentation.d.ts +8 -2
- package/control-presentation.js +25 -20
- package/controls.d.ts +12 -2
- package/controls.js +4 -3
- package/core/editor-popup-position.d.ts +6 -2
- package/core/editor-popup.d.ts +4 -0
- package/core/editor-popup.js +1 -1
- package/core/popover-controller.d.ts +35 -0
- package/core/popup-ownership.d.ts +2 -0
- package/core/selection-list-tooltips.d.ts +2 -0
- package/core/title-tooltip.d.ts +2 -0
- package/core/tooltip-session.d.ts +29 -0
- package/core/tooltip-surface.d.ts +13 -0
- package/core/tooltip-text.d.ts +6 -0
- package/core/tooltip.d.ts +35 -0
- package/core/top-layer-popup.d.ts +4 -0
- package/core/top-layer-popup.js +1 -23
- package/date-time/attach.d.ts +1 -1
- package/date-time/date-control.d.ts +1 -1
- package/date-time/field.d.ts +3 -2
- package/date-time/index.js +1 -1
- package/date-time/style.scss +239 -36
- package/date-time/time-selection.d.ts +3 -1
- package/date-time/types.d.ts +5 -1
- package/dialog/dialog-action-footer.d.ts +17 -2
- package/dialog/dialog.dom.d.ts +15 -2
- package/dialog/dialog.dom.js +9 -9
- package/dialog/dialog.parts.d.ts +1 -1
- package/dialog/dialog.parts.js +1 -1
- package/distribution-chart/_distribution-chart.scss +113 -77
- package/distribution-chart/area-chart.js +1 -1
- package/distribution-chart/bar-chart.js +1 -1
- package/distribution-chart/chart-frame.d.ts +1 -1
- package/distribution-chart/index.d.ts +1 -1
- package/distribution-chart/line-chart.js +1 -1
- package/dropdown/content.js +1 -1
- package/dropdown/control.js +1 -1
- package/dropdown/dropdown.types.d.ts +1 -1
- package/dropdown/editor-dropdown.style.scss +19 -9
- package/dropdown/index.js +2 -2
- package/dropdown/lookup-field.d.ts +5 -0
- package/dropdown/lookup-field.js +2 -1
- package/dropdown/popup.d.ts +2 -2
- package/dropdown/popup.js +1 -1
- package/duration/index.js +1 -1
- package/editor-actions.js +1 -1
- package/editor-layout/index.d.ts +4 -4
- package/editor-layout/index.js +39 -34
- package/editor-layout/style.scss +82 -18
- package/field-configurator.d.ts +39 -1
- package/field-configurator.js +4 -170
- package/field-expansion.d.ts +9 -0
- package/filter/filters/slider/_single-slider.scss +57 -38
- package/filter/filters/slider/_slider.scss +41 -33
- package/filter/filters/slider/control.js +2 -0
- package/filter/filters/slider/runtime.js +49 -22
- package/filter/filters/slider/single.js +1 -1
- package/filter-badge.js +1 -1
- package/filter-controls.d.ts +0 -1
- package/filter-controls.js +5 -6
- package/form-controls/index.d.ts +10 -2
- package/form-controls/index.js +7 -7
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +12 -12
- package/formatting/index.d.ts +1 -1
- package/formatting/index.js +22 -21
- package/formatting/styles.scss +14 -57
- package/framework.js +227 -224
- package/history-controls.js +27 -1
- package/icon-toolbar.d.ts +62 -0
- package/icon-toolbar.js +1 -0
- package/icons/icon.d.ts +1 -1
- package/legend.d.ts +1 -1
- package/masked-input/index.js +1 -1
- package/native-control.d.ts +1 -2
- package/native-control.js +1 -1
- package/native-controls.d.ts +54 -2
- package/native-styles.css +1 -1
- package/native-styles.scss +6 -2
- package/native.d.ts +3 -3
- package/native.js +46 -43
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +71 -2
- package/pagination.js +11 -11
- package/pdf-viewer/header.d.ts +1 -1
- package/pdf-viewer/index.d.ts +2 -2
- package/pdf-viewer/index.js +1 -1
- 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/pickers.d.ts +5 -1
- package/preact-mount.js +1 -1
- package/preact.d.ts +13 -10
- package/preact.js +109 -64
- package/progress/_bar.scss +9 -3
- package/progress/_circular.scss +2 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +4 -2
- package/react-control.d.ts +2 -0
- package/react-control.js +2 -2
- package/react.d.ts +7 -8
- package/react.js +67 -66
- package/reorder-list.d.ts +1 -1
- package/reorder-list.js +1 -1
- package/reorder-list.scss +59 -17
- package/resource-picker/resource-picker-popup.js +1 -1
- package/resource-picker/resource-picker.js +74 -72
- package/resource-picker/resource-picker.scss +62 -34
- package/rich-text/engine.d.ts +1 -0
- package/rich-text/format-html.d.ts +2 -0
- package/rich-text/index.d.ts +4 -0
- package/rich-text/index.js +1 -1
- package/rich-text/model.d.ts +2 -0
- package/rich-text/style.scss +293 -44
- package/rich-text/syntax.d.ts +5 -0
- package/rich-text/toolbar.d.ts +1 -1
- package/rich-text/translations.d.ts +2 -0
- package/search-input/index.js +1 -1
- package/search-input/native.d.ts +21 -2
- package/select.d.ts +3 -1
- package/select.js +1 -1
- package/selection-list.d.ts +1 -0
- package/selection-list.js +3 -1
- package/status-feedback/exit-snapshot.js +4 -4
- package/status-feedback/popover.js +4 -4
- package/status-feedback/status-feedback.scss +124 -35
- package/styles/_activity-message.scss +24 -7
- package/styles/_alert.scss +78 -17
- package/styles/_cell-editor-frame.scss +11 -0
- package/styles/_compositions.scss +400 -80
- 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 -4
- package/styles/_field-configurator.scss +321 -23
- package/styles/_fields-grid.scss +49 -0
- 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/_palette.scss +0 -24
- package/styles/_primitives.scss +369 -110
- 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/configurator-actions.scss +241 -0
- package/styles/pagination.css +213 -0
- package/styles/{legacy-rating.css → rating.css} +8 -3
- package/styles.css +1 -1
- package/styles.scss +3 -5
- package/surfaces.d.ts +38 -2
- package/surfaces.js +37 -134
- package/svelte/UiComponent.svelte +44 -11
- package/svelte.d.ts +1 -1
- package/svelte.js +3 -3
- package/switch/index.js +15 -14
- package/time-grid.d.ts +0 -1
- package/time-grid.js +38 -37
- package/timeline-track/_style.scss +96 -24
- package/timeline-track/index.js +2 -2
- package/ui.css +1 -1
- package/view-switcher.d.ts +23 -0
- package/vue.d.ts +29 -32
- package/vue.js +116 -121
- package/_chunks/chart-frame-Cmc7xU1i.js +0 -130
- package/_chunks/choice-chips-CHQTUdLs.js +0 -110
- package/_chunks/color-picker-CudqPYZo.js +0 -138
- package/_chunks/control-tooltip-uscKfAnV.js +0 -100
- package/_chunks/controls-DsNi8V8I.js +0 -630
- package/_chunks/dialog.parts-CKGkC5zP.js +0 -134
- package/_chunks/editor-popup-WDdtVDNA.js +0 -81
- package/_chunks/history-controls-B3u3INEK.js +0 -27
- package/_chunks/mount-DQ1cpppK.js +0 -257
- package/_chunks/native-control-C_yok8_-.js +0 -605
- package/_chunks/request-trail-DSlFix6i.js +0 -618
- package/_chunks/rich-text-CH7gIqOS.js +0 -636
- package/avatar/index.view.d.ts +0 -25
- package/color-palette/native.view.d.ts +0 -15
- package/control-presentation.view.d.ts +0 -8
- package/dialog/dialog-action-footer.view.d.ts +0 -20
- package/dialog/dialog.dom.view.d.ts +0 -15
- package/form-controls/index.view.d.ts +0 -10
- package/formatting/control-tooltip.d.ts +0 -27
- package/native-controls.view.d.ts +0 -54
- package/search-input/native.view.d.ts +0 -21
- package/styles/legacy-pagination.css +0 -112
- package/surfaces.view.d.ts +0 -63
package/pagination.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { controlClassName as e } from "./control-attributes.js";
|
|
2
2
|
import { renderControl as t } from "./control-presentation.js";
|
|
3
|
-
import { t as n } from "./_chunks/control-
|
|
3
|
+
import { t as n } from "./_chunks/control-Dcrjsunl.js";
|
|
4
4
|
//#region src/pagination.ts
|
|
5
5
|
function r(e, t, n = 5) {
|
|
6
6
|
let r = Math.max(0, Math.floor(t));
|
|
@@ -92,22 +92,22 @@ var a = class {
|
|
|
92
92
|
let n = Math.max(0, this.totalPages - 1), r = Math.min(Math.max(0, e), n);
|
|
93
93
|
this.currentPage = r, this.refresh?.(), t && this.onPageChange(this.currentPage);
|
|
94
94
|
}
|
|
95
|
-
createButton(e, t, n) {
|
|
96
|
-
let
|
|
95
|
+
createButton(e, t, n, r) {
|
|
96
|
+
let a = {
|
|
97
97
|
first: "«",
|
|
98
98
|
previous: "‹",
|
|
99
99
|
next: "›",
|
|
100
100
|
last: "»"
|
|
101
|
-
}
|
|
101
|
+
}[r] === e ? {
|
|
102
102
|
first: "First page",
|
|
103
103
|
previous: "Previous page",
|
|
104
104
|
next: "Next page",
|
|
105
105
|
last: "Last page"
|
|
106
|
-
}[
|
|
106
|
+
}[r] : e;
|
|
107
107
|
return i(this.h, {
|
|
108
108
|
text: e,
|
|
109
|
-
label:
|
|
110
|
-
kind:
|
|
109
|
+
label: a,
|
|
110
|
+
kind: r,
|
|
111
111
|
disabled: n,
|
|
112
112
|
onClick: () => t.call(this)
|
|
113
113
|
});
|
|
@@ -118,9 +118,9 @@ var a = class {
|
|
|
118
118
|
if (this.config.navigation !== !1) {
|
|
119
119
|
if (t.push(...this.config.boundaryButtons === !1 ? [] : [this.createButton(this.locales.first, () => {
|
|
120
120
|
this.currentPage > 0 && this.setPage(0);
|
|
121
|
-
}, this.currentPage === 0)], this.createButton(this.locales.previous, () => {
|
|
121
|
+
}, this.currentPage === 0, "first")], this.createButton(this.locales.previous, () => {
|
|
122
122
|
this.currentPage > 0 && this.setPage(this.currentPage - 1);
|
|
123
|
-
}, this.currentPage === 0)), this.config.buttonCount) for (let n of r(this.currentPage, this.totalPages, this.config.buttonCount)) n === "ellipsis" ? t.push(e("span", {
|
|
123
|
+
}, this.currentPage === 0, "previous")), this.config.buttonCount) for (let n of r(this.currentPage, this.totalPages, this.config.buttonCount)) n === "ellipsis" ? t.push(e("span", {
|
|
124
124
|
class: "rv-pagination-ellipsis",
|
|
125
125
|
"aria-hidden": "true"
|
|
126
126
|
}, "…")) : t.push(i(e, {
|
|
@@ -132,9 +132,9 @@ var a = class {
|
|
|
132
132
|
}));
|
|
133
133
|
t.push(this.createButton(this.locales.next, () => {
|
|
134
134
|
this.currentPage < this.totalPages - 1 && this.setPage(this.currentPage + 1);
|
|
135
|
-
}, this.currentPage >= this.totalPages - 1), ...this.config.boundaryButtons === !1 ? [] : [this.createButton(this.locales.last, () => {
|
|
135
|
+
}, this.currentPage >= this.totalPages - 1, "next"), ...this.config.boundaryButtons === !1 ? [] : [this.createButton(this.locales.last, () => {
|
|
136
136
|
this.setPage(this.totalPages - 1);
|
|
137
|
-
}, this.currentPage >= this.totalPages - 1)]);
|
|
137
|
+
}, this.currentPage >= this.totalPages - 1, "last")]);
|
|
138
138
|
}
|
|
139
139
|
if (this.totalPages > 1) {
|
|
140
140
|
let n = [];
|
package/pdf-viewer/header.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from '../_vendor/preact/src/index';
|
|
2
2
|
import { PdfViewerText } from './translations';
|
|
3
3
|
import { PdfViewerState } from './types';
|
|
4
|
-
export declare function PdfViewerHeader({ state, text, onCancelPrint, showDetails }: {
|
|
4
|
+
export declare function PdfViewerHeader({ state, text, onCancelPrint, showDetails, }: {
|
|
5
5
|
showDetails?: boolean;
|
|
6
6
|
state: Readonly<PdfViewerState>;
|
|
7
7
|
text: PdfViewerText;
|
package/pdf-viewer/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PdfViewerProps } from './component';
|
|
2
2
|
import { PdfViewerController } from './controller';
|
|
3
|
-
export { PdfViewer, defaultPdfViewerText, type PdfViewerProps, type PdfViewerText } from './component';
|
|
3
|
+
export { PdfViewer, defaultPdfViewerText, type PdfViewerProps, type PdfViewerText, } from './component';
|
|
4
4
|
export { PdfViewerController } from './controller';
|
|
5
5
|
export type * from './types';
|
|
6
6
|
/** Mount the shared viewer in a native host. Call destroy to unmount and release PDF resources. */
|
|
7
7
|
export declare function createPdfViewer(host: HTMLElement, options: PdfViewerProps): PdfViewerController;
|
|
8
8
|
export { PdfViewerToolbar, type PdfViewerToolbarProps } from './toolbar';
|
|
9
|
-
export type { PdfViewerButton, PdfViewerButtonOptions, PdfViewerToolbarOptions, PdfViewerToolbarConfig } from './toolbar-options';
|
|
9
|
+
export type { PdfViewerButton, PdfViewerButtonOptions, PdfViewerToolbarOptions, PdfViewerToolbarConfig, } from './toolbar-options';
|
package/pdf-viewer/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as e } from "../_chunks/preact.module-BBM36DnO.js";
|
|
2
2
|
import { renderPreactInto as t } from "../preact-mount.js";
|
|
3
|
-
import { i as n, n as r, r as i, t as a } from "../_chunks/component-
|
|
3
|
+
import { i as n, n as r, r as i, t as a } from "../_chunks/component-CfeHXgIw.js";
|
|
4
4
|
import { t as o } from "../_chunks/controller-hRBm_Lfz.js";
|
|
5
5
|
//#region src/pdf-viewer/index.tsx
|
|
6
6
|
function s(n, i) {
|
|
@@ -2,7 +2,7 @@ import { h, RefObject } from '../_vendor/preact/src/index';
|
|
|
2
2
|
import { PdfViewerText } from './translations';
|
|
3
3
|
import { PdfViewerController } from './controller';
|
|
4
4
|
import { PdfViewerState } from './types';
|
|
5
|
-
export declare function PdfViewerSearchBar({ id, controller, state, text, onClose, inputRef: search }: {
|
|
5
|
+
export declare function PdfViewerSearchBar({ id, controller, state, text, onClose, inputRef: search, }: {
|
|
6
6
|
inputRef: RefObject<HTMLInputElement>;
|
|
7
7
|
id: string;
|
|
8
8
|
controller: PdfViewerController;
|
package/pdf-viewer/status.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { h } from '../_vendor/preact/src/index';
|
|
|
2
2
|
import { PdfViewerText } from './translations';
|
|
3
3
|
import { PdfViewerController } from './controller';
|
|
4
4
|
import { PdfViewerState } from './types';
|
|
5
|
-
export declare function PdfViewerStatus({ state, text, controller, canOpen, onOpen }: {
|
|
5
|
+
export declare function PdfViewerStatus({ state, text, controller, canOpen, onOpen, }: {
|
|
6
6
|
state: Readonly<PdfViewerState>;
|
|
7
7
|
text: PdfViewerText;
|
|
8
8
|
controller: PdfViewerController;
|
package/pdf-viewer/style.scss
CHANGED
|
@@ -13,11 +13,33 @@
|
|
|
13
13
|
color: var(--rv-ui-text);
|
|
14
14
|
font: inherit;
|
|
15
15
|
font-size: 13px;
|
|
16
|
-
&__header {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
&__header {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: 10px;
|
|
20
|
+
min-width: 0;
|
|
21
|
+
padding: 12px 16px;
|
|
22
|
+
border-bottom: 1px solid var(--rv-ui-border);
|
|
23
|
+
}
|
|
24
|
+
&__document-icon {
|
|
25
|
+
flex: 0 0 auto;
|
|
26
|
+
color: var(--rv-ui-accent-text);
|
|
27
|
+
}
|
|
28
|
+
&__filename {
|
|
29
|
+
min-width: 0;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
text-overflow: ellipsis;
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
font-weight: 500;
|
|
34
|
+
}
|
|
35
|
+
&__summary {
|
|
36
|
+
margin-inline-start: auto;
|
|
37
|
+
white-space: nowrap;
|
|
38
|
+
color: var(--rv-ui-text-muted);
|
|
39
|
+
font-variant-numeric: tabular-nums;
|
|
40
|
+
}
|
|
41
|
+
&__toolbar.rv-toolbar,
|
|
42
|
+
&__search {
|
|
21
43
|
--rv-icon-size: 14px;
|
|
22
44
|
--rv-icon-button-size: 32px;
|
|
23
45
|
--rv-control-height: 32px;
|
|
@@ -33,47 +55,186 @@
|
|
|
33
55
|
line-height: 18px;
|
|
34
56
|
}
|
|
35
57
|
}
|
|
36
|
-
&__toolbar.rv-toolbar {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
&
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
&
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
&
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
&__toolbar.rv-toolbar {
|
|
59
|
+
width: 100%;
|
|
60
|
+
box-sizing: border-box;
|
|
61
|
+
box-shadow: none;
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-wrap: wrap;
|
|
64
|
+
gap: 4px 8px;
|
|
65
|
+
padding: 8px 12px;
|
|
66
|
+
border: 0;
|
|
67
|
+
border-bottom: 1px solid var(--rv-ui-border);
|
|
68
|
+
border-radius: 0;
|
|
69
|
+
}
|
|
70
|
+
&__toolbar.rv-toolbar .rv-toolbar-group {
|
|
71
|
+
align-items: center;
|
|
72
|
+
flex-wrap: nowrap;
|
|
73
|
+
gap: 4px;
|
|
74
|
+
padding-block: 0;
|
|
75
|
+
}
|
|
76
|
+
&__toolbar .rv-pagination {
|
|
77
|
+
font-size: inherit;
|
|
78
|
+
flex-wrap: nowrap;
|
|
79
|
+
}
|
|
80
|
+
&__zoom-select {
|
|
81
|
+
position: relative;
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
width: 112px;
|
|
85
|
+
height: 32px;
|
|
86
|
+
}
|
|
87
|
+
&__toolbar &__zoom-select .dropdown-container {
|
|
88
|
+
width: 100%;
|
|
89
|
+
min-width: 0;
|
|
90
|
+
background-image: none;
|
|
91
|
+
}
|
|
92
|
+
&__toolbar .rv-pdf-viewer__page-input {
|
|
93
|
+
width: 54px;
|
|
94
|
+
min-width: 0;
|
|
95
|
+
text-align: center;
|
|
96
|
+
font-variant-numeric: tabular-nums;
|
|
97
|
+
}
|
|
98
|
+
&__page-count {
|
|
99
|
+
white-space: nowrap;
|
|
100
|
+
color: var(--rv-ui-text-muted);
|
|
101
|
+
font-variant-numeric: tabular-nums;
|
|
102
|
+
}
|
|
103
|
+
&__actions {
|
|
104
|
+
margin-inline-start: auto;
|
|
105
|
+
}
|
|
106
|
+
&__toolbar .rv-pdf-viewer__more {
|
|
107
|
+
display: none;
|
|
108
|
+
}
|
|
109
|
+
&__menu {
|
|
110
|
+
display: grid;
|
|
111
|
+
gap: 2px;
|
|
112
|
+
}
|
|
113
|
+
&__menu .rv-svg-icon {
|
|
114
|
+
flex: 0 0 auto;
|
|
115
|
+
}
|
|
116
|
+
&__search {
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-wrap: wrap;
|
|
119
|
+
align-items: center;
|
|
120
|
+
gap: 6px;
|
|
121
|
+
padding: 8px 12px;
|
|
122
|
+
border-bottom: 1px solid var(--rv-ui-border);
|
|
123
|
+
}
|
|
124
|
+
&__search .rv-search-input {
|
|
125
|
+
flex: 1 1 180px;
|
|
126
|
+
min-width: 0;
|
|
127
|
+
}
|
|
128
|
+
&__find-controls {
|
|
129
|
+
display: flex;
|
|
130
|
+
flex: 0 0 auto;
|
|
131
|
+
align-items: center;
|
|
132
|
+
gap: 4px;
|
|
133
|
+
}
|
|
134
|
+
&__search .rv-control {
|
|
135
|
+
min-width: 0;
|
|
136
|
+
width: 100%;
|
|
137
|
+
}
|
|
138
|
+
&__matches {
|
|
139
|
+
color: var(--rv-ui-text-muted);
|
|
140
|
+
min-width: 64px;
|
|
141
|
+
margin-inline-end: auto;
|
|
142
|
+
font-size: 12px;
|
|
143
|
+
}
|
|
144
|
+
&__body {
|
|
145
|
+
position: relative;
|
|
146
|
+
flex: 1;
|
|
147
|
+
min-height: 0;
|
|
148
|
+
background: var(--rv-ui-canvas);
|
|
149
|
+
}
|
|
150
|
+
&__viewport {
|
|
151
|
+
position: absolute;
|
|
152
|
+
inset: 0;
|
|
153
|
+
overflow: auto;
|
|
154
|
+
overscroll-behavior: contain;
|
|
155
|
+
}
|
|
156
|
+
&__viewport:focus-visible {
|
|
157
|
+
outline: 2px solid var(--rv-ui-accent);
|
|
158
|
+
outline-offset: -2px;
|
|
159
|
+
}
|
|
160
|
+
&__viewport .pdfViewer {
|
|
161
|
+
padding-block: 16px;
|
|
162
|
+
}
|
|
163
|
+
&__viewport .pdfViewer .page {
|
|
164
|
+
background: white;
|
|
165
|
+
}
|
|
166
|
+
&__status {
|
|
167
|
+
position: absolute;
|
|
168
|
+
inset: 0;
|
|
169
|
+
display: flex;
|
|
170
|
+
flex-direction: column;
|
|
171
|
+
align-items: center;
|
|
172
|
+
justify-content: center;
|
|
173
|
+
gap: 12px;
|
|
174
|
+
padding: 24px;
|
|
175
|
+
text-align: center;
|
|
176
|
+
color: var(--rv-ui-text-muted);
|
|
177
|
+
overflow: auto;
|
|
178
|
+
}
|
|
179
|
+
&__status .rv-empty-state {
|
|
180
|
+
border: 0;
|
|
181
|
+
background: none;
|
|
182
|
+
}
|
|
183
|
+
&__status .rv-empty-state p {
|
|
184
|
+
margin: 10px 0 16px;
|
|
185
|
+
}
|
|
186
|
+
&__status .rv-alert {
|
|
187
|
+
max-width: 100%;
|
|
188
|
+
text-align: start;
|
|
189
|
+
overflow-wrap: anywhere;
|
|
190
|
+
}
|
|
191
|
+
&__status strong {
|
|
192
|
+
color: var(--rv-ui-text);
|
|
193
|
+
font-size: 16px;
|
|
194
|
+
font-weight: 500;
|
|
195
|
+
}
|
|
196
|
+
&__error {
|
|
197
|
+
padding: 8px 12px;
|
|
198
|
+
color: var(--rv-ui-danger);
|
|
199
|
+
background: var(--rv-ui-danger-surface);
|
|
200
|
+
}
|
|
63
201
|
@container (max-width: 560px) {
|
|
64
|
-
&__toolbar .rv-pdf-viewer__desktop-actions {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
&
|
|
68
|
-
|
|
69
|
-
|
|
202
|
+
&__toolbar .rv-pdf-viewer__desktop-actions {
|
|
203
|
+
display: none;
|
|
204
|
+
}
|
|
205
|
+
&__toolbar .rv-pdf-viewer__more {
|
|
206
|
+
display: flex;
|
|
207
|
+
margin-inline-start: auto;
|
|
208
|
+
}
|
|
209
|
+
&__search .rv-search-input {
|
|
210
|
+
flex-basis: 100%;
|
|
211
|
+
}
|
|
212
|
+
&__find-controls {
|
|
213
|
+
width: 100%;
|
|
214
|
+
}
|
|
215
|
+
&__status .rv-alert--with-actions {
|
|
216
|
+
grid-template-columns: minmax(0, 1fr);
|
|
217
|
+
row-gap: 12px;
|
|
218
|
+
}
|
|
219
|
+
&__status .rv-alert__actions {
|
|
220
|
+
flex-wrap: wrap;
|
|
221
|
+
}
|
|
70
222
|
}
|
|
71
223
|
@container (max-width: 360px) {
|
|
72
|
-
&__open-label {
|
|
224
|
+
&__open-label {
|
|
225
|
+
display: none;
|
|
226
|
+
}
|
|
73
227
|
}
|
|
74
228
|
@container (max-width: 480px) {
|
|
75
|
-
&__toolbar.rv-toolbar {
|
|
76
|
-
|
|
77
|
-
|
|
229
|
+
&__toolbar.rv-toolbar {
|
|
230
|
+
padding: 6px;
|
|
231
|
+
gap: 4px;
|
|
232
|
+
}
|
|
233
|
+
&__header {
|
|
234
|
+
padding: 10px;
|
|
235
|
+
}
|
|
236
|
+
&__summary {
|
|
237
|
+
font-size: 11px;
|
|
238
|
+
}
|
|
78
239
|
}
|
|
79
240
|
}
|
package/pickers.d.ts
CHANGED
|
@@ -14,12 +14,16 @@ export interface PopoverProps {
|
|
|
14
14
|
/** Optional mount scope for inherited theme tokens and text direction. */
|
|
15
15
|
appendTo?: HTMLElement;
|
|
16
16
|
onClose: () => void;
|
|
17
|
+
/** Close on pointer presses outside the anchor and content. Defaults to true. */
|
|
18
|
+
closeOnOutside?: boolean;
|
|
19
|
+
/** Close on Escape. Defaults to true. */
|
|
20
|
+
closeOnEscape?: boolean;
|
|
17
21
|
children?: ComponentChildren;
|
|
18
22
|
label?: string;
|
|
19
23
|
className?: string;
|
|
20
24
|
role?: 'dialog' | 'menu';
|
|
21
25
|
}
|
|
22
|
-
export declare function Popover({ open, anchor, appendTo, onClose, children, label, className, role, }: PopoverProps): h.JSX.Element;
|
|
26
|
+
export declare function Popover({ open, anchor, appendTo, closeOnOutside, closeOnEscape, onClose, children, label, className, role, }: PopoverProps): h.JSX.Element;
|
|
23
27
|
export declare function Tooltip({ text, children, }: {
|
|
24
28
|
text: string;
|
|
25
29
|
children: ComponentChildren;
|
package/preact-mount.js
CHANGED
package/preact.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './icons/icon';
|
|
2
2
|
export * from './ai/components';
|
|
3
|
+
export * from './ai/results';
|
|
3
4
|
export * from './ai/request-trail';
|
|
4
5
|
export * from './buttons/svg-button';
|
|
5
6
|
export * from './buttons/delete-button';
|
|
@@ -21,14 +22,8 @@ export * from './dialog/dialog.preact';
|
|
|
21
22
|
export * from './filter/filters/slider/preact';
|
|
22
23
|
export * from './filter/filters/slider/single';
|
|
23
24
|
export * from './controls';
|
|
24
|
-
export { SvgIcon as Icon } from './icons/icon';
|
|
25
|
-
export { FilterChip as RemovableChip } from './form-controls/presentation';
|
|
26
|
-
export { SingleValueSlider as Slider } from './filter/filters/slider/single';
|
|
27
|
-
export { PreactRangeSlider as RangeSlider } from './filter/filters/slider/preact';
|
|
28
|
-
export { SharedResourcePicker as ResourcePicker } from './resource-picker';
|
|
29
25
|
export * from './status-feedback';
|
|
30
26
|
export * from './pickers';
|
|
31
|
-
export { StatusFeedbackPanel as FeedbackPanel } from './status-feedback';
|
|
32
27
|
export * from './control-presentation';
|
|
33
28
|
export { Input } from './native-control';
|
|
34
29
|
export * from './distribution-chart';
|
|
@@ -36,6 +31,11 @@ export * from './brush-range/component';
|
|
|
36
31
|
export * from './filter-controls';
|
|
37
32
|
export * from './time-grid';
|
|
38
33
|
export * from './field-configurator';
|
|
34
|
+
export * from './configurator-actions';
|
|
35
|
+
export * from './configurator-aggregation-list';
|
|
36
|
+
export * from './configurator-drop-zone';
|
|
37
|
+
export * from './configurator-field-icon';
|
|
38
|
+
export * from './configurator-focus';
|
|
39
39
|
export * from './cell-visuals';
|
|
40
40
|
export * from './dialog/dialog.parts';
|
|
41
41
|
export * from './formatting';
|
|
@@ -44,12 +44,15 @@ export * from './rating-choice';
|
|
|
44
44
|
export * from './reorder-list';
|
|
45
45
|
export * from './timeline-track';
|
|
46
46
|
export * from './activity-message';
|
|
47
|
-
export { isUiMotionEnabled, getUiMotionDuration, inheritUiMotion, type UiMotionTiming } from './core/motion';
|
|
47
|
+
export { isUiMotionEnabled, getUiMotionDuration, inheritUiMotion, type UiMotionTiming, } from './core/motion';
|
|
48
48
|
export { badgeClassName, type BadgeOptions } from './badge';
|
|
49
49
|
export { AiTranslationProvider } from './ai/translation-context';
|
|
50
50
|
export * from './ai/translations';
|
|
51
|
-
export { PdfViewer, type PdfViewerProps, type PdfViewerText, defaultPdfViewerText } from './pdf-viewer/component';
|
|
52
|
-
export { PdfViewerToolbar, type PdfViewerToolbarProps } from './pdf-viewer/toolbar';
|
|
53
|
-
export type { PdfViewerButton, PdfViewerButtonOptions, PdfViewerToolbarOptions, PdfViewerToolbarConfig } from './pdf-viewer/toolbar-options';
|
|
51
|
+
export { PdfViewer, type PdfViewerProps, type PdfViewerText, defaultPdfViewerText, } from './pdf-viewer/component';
|
|
52
|
+
export { PdfViewerToolbar, type PdfViewerToolbarProps, } from './pdf-viewer/toolbar';
|
|
53
|
+
export type { PdfViewerButton, PdfViewerButtonOptions, PdfViewerToolbarOptions, PdfViewerToolbarConfig, } from './pdf-viewer/toolbar-options';
|
|
54
54
|
export * from './history-controls';
|
|
55
55
|
export * from './ai/chat';
|
|
56
|
+
export * from './icon-toolbar';
|
|
57
|
+
export * from './legend';
|
|
58
|
+
export * from './view-switcher';
|