@motifx-community/ui 0.1.0-beta.5 → 0.1.0-beta.7
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/CHANGELOG.md +101 -0
- package/README.md +7 -4
- package/dist/components/appbar/AppBar.d.ts +88 -0
- package/dist/components/appbar/app-bar-navigation-click-event-args.d.ts +9 -0
- package/dist/components/appbar/app-bar-navigation.d.ts +2 -0
- package/dist/components/appbar/app-bar-position.d.ts +2 -0
- package/dist/components/appbar/app-bar-props.d.ts +49 -0
- package/dist/components/appbar/app-bar-scroll-behavior.d.ts +2 -0
- package/dist/components/appbar/app-bar-title-align.d.ts +2 -0
- package/dist/components/appbar/app-bar-tone.d.ts +2 -0
- package/dist/components/appbar/index.d.ts +8 -0
- package/dist/components/barcode/Barcode.d.ts +62 -0
- package/dist/components/barcode/barcode-export-options.d.ts +9 -0
- package/dist/components/barcode/barcode-failed-event-args.d.ts +9 -0
- package/dist/components/barcode/barcode-props.d.ts +25 -0
- package/dist/components/barcode/index.d.ts +5 -0
- package/dist/components/bargauge/BarGauge.d.ts +120 -0
- package/dist/components/bargauge/bar-gauge-props.d.ts +38 -0
- package/dist/components/bargauge/index.d.ts +2 -0
- package/dist/components/bottomnavigation/BottomNavigation.d.ts +101 -0
- package/dist/components/bottomnavigation/bottom-navigation-item-click-event-args.d.ts +9 -0
- package/dist/components/bottomnavigation/bottom-navigation-item.d.ts +35 -0
- package/dist/components/bottomnavigation/bottom-navigation-label-mode.d.ts +2 -0
- package/dist/components/bottomnavigation/bottom-navigation-position.d.ts +2 -0
- package/dist/components/bottomnavigation/bottom-navigation-props.d.ts +31 -0
- package/dist/components/bottomnavigation/bottom-navigation-selecting-event-args.d.ts +5 -0
- package/dist/components/bottomnavigation/bottom-navigation-selection-changed-event-args.d.ts +11 -0
- package/dist/components/bottomnavigation/index.d.ts +8 -0
- package/dist/components/chart/Chart.d.ts +229 -0
- package/dist/components/chart/ChartLegend.d.ts +24 -0
- package/dist/components/chart/ChartPlot.d.ts +161 -0
- package/dist/components/chart/ChartTable.d.ts +68 -0
- package/dist/components/chart/ChartTooltip.d.ts +22 -0
- package/dist/components/chart/PartsPlot.d.ts +39 -0
- package/dist/components/chart/RadarPlot.d.ts +34 -0
- package/dist/components/chart/chart-axis-kind.d.ts +2 -0
- package/dist/components/chart/chart-axis.d.ts +31 -0
- package/dist/components/chart/chart-data-error-event-args.d.ts +7 -0
- package/dist/components/chart/chart-export-options.d.ts +7 -0
- package/dist/components/chart/chart-export.d.ts +12 -0
- package/dist/components/chart/chart-field.d.ts +2 -0
- package/dist/components/chart/chart-labels.d.ts +2 -0
- package/dist/components/chart/chart-legend-options.d.ts +10 -0
- package/dist/components/chart/chart-legend-position.d.ts +2 -0
- package/dist/components/chart/chart-look.d.ts +25 -0
- package/dist/components/chart/chart-mode-changed-event-args.d.ts +7 -0
- package/dist/components/chart/chart-mode.d.ts +2 -0
- package/dist/components/chart/chart-model.d.ts +105 -0
- package/dist/components/chart/chart-point-event-args.d.ts +9 -0
- package/dist/components/chart/chart-point-selection.d.ts +2 -0
- package/dist/components/chart/chart-point.d.ts +23 -0
- package/dist/components/chart/chart-props.d.ts +76 -0
- package/dist/components/chart/chart-reference.d.ts +12 -0
- package/dist/components/chart/chart-selection-changed-event-args.d.ts +8 -0
- package/dist/components/chart/chart-series-toggled-event-args.d.ts +10 -0
- package/dist/components/chart/chart-series-type.d.ts +6 -0
- package/dist/components/chart/chart-series.d.ts +55 -0
- package/dist/components/chart/chart-stacked.d.ts +2 -0
- package/dist/components/chart/chart-tooltip-context.d.ts +10 -0
- package/dist/components/chart/chart-tooltip-options.d.ts +10 -0
- package/dist/components/chart/chart-zoom-changed-event-args.d.ts +8 -0
- package/dist/components/chart/index.d.ts +21 -0
- package/dist/components/chart/legend-entry.d.ts +13 -0
- package/dist/components/chart/plot-text.d.ts +10 -0
- package/dist/components/chart/plot-view.d.ts +61 -0
- package/dist/components/datagrid/grid-lookup.d.ts +3 -3
- package/dist/components/datagrid/grid-settings.d.ts +3 -3
- package/dist/components/datagrid/model/GridData.d.ts +22 -3
- package/dist/components/datagrid/model/GridModel.d.ts +2 -0
- package/dist/components/gauge/Gauge.d.ts +179 -0
- package/dist/components/gauge/gauge-mark.d.ts +9 -0
- package/dist/components/gauge/gauge-marker.d.ts +2 -0
- package/dist/components/gauge/gauge-needle-shape.d.ts +2 -0
- package/dist/components/gauge/gauge-orientation.d.ts +2 -0
- package/dist/components/gauge/gauge-props.d.ts +58 -0
- package/dist/components/gauge/gauge-range.d.ts +11 -0
- package/dist/components/gauge/gauge-scale.d.ts +2 -0
- package/dist/components/gauge/gauge-shape.d.ts +43 -0
- package/dist/components/gauge/gauge-type.d.ts +2 -0
- package/dist/components/gauge/index.d.ts +9 -0
- package/dist/components/listbox/list-rows.d.ts +2 -0
- package/dist/components/otpinput/OtpInput.d.ts +73 -0
- package/dist/components/otpinput/index.d.ts +4 -0
- package/dist/components/otpinput/otp-charset.d.ts +2 -0
- package/dist/components/otpinput/otp-completed-event-args.d.ts +8 -0
- package/dist/components/otpinput/otp-input-props.d.ts +32 -0
- package/dist/components/qrcode/QRCode.d.ts +58 -0
- package/dist/components/qrcode/index.d.ts +5 -0
- package/dist/components/qrcode/qr-code-export-options.d.ts +9 -0
- package/dist/components/qrcode/qr-code-failed-event-args.d.ts +7 -0
- package/dist/components/qrcode/qr-code-props.d.ts +23 -0
- package/dist/components/signature/Signature.d.ts +100 -0
- package/dist/components/signature/index.d.ts +5 -0
- package/dist/components/signature/signature-draw.d.ts +15 -0
- package/dist/components/signature/signature-export-options.d.ts +11 -0
- package/dist/components/signature/signature-props.d.ts +30 -0
- package/dist/components/signature/signature-stroke-event-args.d.ts +9 -0
- package/dist/components/signature/signature-stroke.d.ts +11 -0
- package/dist/components/sparkline/Sparkline.d.ts +85 -0
- package/dist/components/sparkline/index.d.ts +4 -0
- package/dist/components/sparkline/sparkline-highlight.d.ts +2 -0
- package/dist/components/sparkline/sparkline-props.d.ts +34 -0
- package/dist/components/sparkline/sparkline-type.d.ts +2 -0
- package/dist/components/validationsummary/ValidationSummary.d.ts +1 -0
- package/dist/core/fonts-loaded.d.ts +2 -0
- package/dist/core/scroll-watch.d.ts +13 -0
- package/dist/core/ui-strings.d.ts +38 -0
- package/dist/generated/tokens.d.ts +3023 -863
- package/dist/index.d.ts +10 -0
- package/dist/index.js +55933 -47186
- package/dist/index.js.map +1 -1
- package/dist/locales/en.json +37 -1
- package/dist/locales/tr.json +37 -1
- package/dist/parts/chart/chart-paths.d.ts +30 -0
- package/dist/parts/chart/chart-scale.d.ts +13 -0
- package/dist/parts/chart/chart-text.d.ts +12 -0
- package/dist/parts/chart/nice-ticks.d.ts +6 -0
- package/dist/parts/chart/svg-parts.d.ts +12 -0
- package/dist/parts/chart/thin-out.d.ts +6 -0
- package/dist/parts/chart/time-ticks.d.ts +7 -0
- package/dist/parts/chart/token-lengths.d.ts +16 -0
- package/dist/parts/chart/value-motion.d.ts +16 -0
- package/dist/parts/code/barcode-encode.d.ts +23 -0
- package/dist/parts/code/code-image.d.ts +35 -0
- package/dist/parts/code/qr-encode.d.ts +10 -0
- package/dist/parts/data/DataItems.d.ts +2 -0
- package/dist/parts/data/KeyedItems.d.ts +1 -0
- package/dist/parts/field/Field.d.ts +2 -0
- package/dist/parts/list/OptionList.d.ts +6 -0
- package/dist/parts/list/item-source.d.ts +4 -0
- package/dist/styles.css +3043 -9
- package/dist/tokens/index.d.ts +3212 -967
- package/dist/tokens/index.js +3023 -863
- package/dist/tokens/index.js.map +1 -1
- package/dist/{tr-C5IXRzAH.js → tr-DhIFcH3c.js} +75 -3
- package/dist/{tr-C5IXRzAH.js.map → tr-DhIFcH3c.js.map} +1 -1
- package/docs/accordion.md +1 -1
- package/docs/actionsheet.md +1 -1
- package/docs/appbar.md +194 -0
- package/docs/avatar.md +1 -1
- package/docs/badge.md +1 -1
- package/docs/bar-gauge-angles.md +87 -0
- package/docs/bar-gauge-data.md +122 -0
- package/docs/bar-gauge-labels.md +78 -0
- package/docs/bar-gauge.md +98 -0
- package/docs/barcode.md +193 -0
- package/docs/bottomnavigation.md +258 -0
- package/docs/bottomsheet.md +1 -1
- package/docs/breadcrumb.md +1 -1
- package/docs/button.md +1 -1
- package/docs/buttongroup.md +1 -1
- package/docs/buttons.md +169 -0
- package/docs/calendar.md +1 -1
- package/docs/card.md +1 -1
- package/docs/chart-bars.md +142 -0
- package/docs/chart-candles.md +164 -0
- package/docs/chart-funnel.md +115 -0
- package/docs/chart-heatmap.md +93 -0
- package/docs/chart-lines.md +128 -0
- package/docs/chart-live.md +62 -0
- package/docs/chart-pie.md +125 -0
- package/docs/chart-radar.md +124 -0
- package/docs/chart-ranges.md +127 -0
- package/docs/chart-references.md +126 -0
- package/docs/chart-scatter.md +139 -0
- package/docs/chart-waterfall.md +111 -0
- package/docs/chart-zoom.md +95 -0
- package/docs/chart.md +427 -0
- package/docs/checkbox.md +1 -1
- package/docs/chip.md +1 -1
- package/docs/choice.md +151 -0
- package/docs/colorbox.md +1 -1
- package/docs/combobox.md +1 -1
- package/docs/control.md +1 -1
- package/docs/data.md +127 -0
- package/docs/datagrid-api.md +1 -1
- package/docs/datagrid-bands.md +1 -1
- package/docs/datagrid-drag-select.md +1 -1
- package/docs/datagrid-drag.md +1 -1
- package/docs/datagrid-editing.md +1 -1
- package/docs/datagrid-filtering.md +1 -1
- package/docs/datagrid-forms.md +1 -1
- package/docs/datagrid-grouping.md +62 -2
- package/docs/datagrid-layout.md +2 -2
- package/docs/datagrid-lookups.md +2 -2
- package/docs/datagrid-master-detail.md +1 -1
- package/docs/datagrid-scrolling.md +1 -1
- package/docs/datagrid-selection.md +1 -1
- package/docs/datagrid.md +1 -1
- package/docs/datebox.md +1 -1
- package/docs/daterangebox.md +1 -1
- package/docs/display.md +148 -0
- package/docs/draggable.md +1 -1
- package/docs/drawer.md +1 -1
- package/docs/dropdown.md +1 -1
- package/docs/editors.md +157 -0
- package/docs/feedback.md +138 -0
- package/docs/fileuploader.md +1 -1
- package/docs/filterbuilder.md +1 -1
- package/docs/formlayout.md +1 -1
- package/docs/foundations.md +79 -0
- package/docs/gallery.md +1 -1
- package/docs/gauge-base.md +78 -0
- package/docs/gauge-circular.md +101 -0
- package/docs/gauge-dashboards.md +134 -0
- package/docs/gauge-linear.md +84 -0
- package/docs/gauge-markers.md +135 -0
- package/docs/gauge-marks.md +108 -0
- package/docs/gauge-ranges.md +133 -0
- package/docs/gauge-scales.md +117 -0
- package/docs/gauge.md +152 -0
- package/docs/home.md +1 -1
- package/docs/keyboard.md +1 -1
- package/docs/language.md +1 -1
- package/docs/layout.md +1 -1
- package/docs/listbox.md +1 -1
- package/docs/loadpanel.md +1 -1
- package/docs/lookup.md +1 -1
- package/docs/menus.md +1 -1
- package/docs/multiview.md +1 -1
- package/docs/navigation.md +143 -0
- package/docs/numberbox.md +1 -1
- package/docs/otpinput.md +197 -0
- package/docs/pagination.md +1 -1
- package/docs/popover.md +1 -1
- package/docs/progress.md +1 -1
- package/docs/qrcode.md +179 -0
- package/docs/radiogroup.md +1 -1
- package/docs/rating.md +1 -1
- package/docs/resizable.md +1 -1
- package/docs/scheduler-agenda.md +1 -1
- package/docs/scheduler-big-data.md +1 -1
- package/docs/scheduler-editing.md +1 -1
- package/docs/scheduler-form.md +1 -1
- package/docs/scheduler-icalendar.md +1 -1
- package/docs/scheduler-mobile.md +1 -1
- package/docs/scheduler-recurrence.md +1 -1
- package/docs/scheduler-resources.md +1 -1
- package/docs/scheduler-timeline.md +1 -1
- package/docs/scheduler.md +1 -1
- package/docs/scrollview.md +1 -1
- package/docs/showcase-home.md +31 -0
- package/docs/showcase.md +1 -1
- package/docs/signature.md +208 -0
- package/docs/skeleton.md +1 -1
- package/docs/slider.md +1 -1
- package/docs/sortable.md +1 -1
- package/docs/sparkline.md +119 -0
- package/docs/speeddial.md +1 -1
- package/docs/splitter.md +1 -1
- package/docs/stepper.md +1 -1
- package/docs/switch.md +1 -1
- package/docs/tabdocs-dock.md +1 -1
- package/docs/tabdocs-drag.md +1 -1
- package/docs/tabdocs-menus.md +1 -1
- package/docs/tabdocs-mobile.md +1 -1
- package/docs/tabdocs-tabs.md +1 -1
- package/docs/tabdocs-windows.md +1 -1
- package/docs/tabdocs-workspace.md +1 -1
- package/docs/tabdocs.md +1 -1
- package/docs/tabs.md +1 -1
- package/docs/tagbox.md +1 -1
- package/docs/textarea.md +1 -1
- package/docs/textbox.md +1 -1
- package/docs/tileview.md +1 -1
- package/docs/timeline.md +1 -1
- package/docs/toast.md +1 -1
- package/docs/tokens.md +450 -1
- package/docs/toolbar.md +1 -1
- package/docs/tooltip.md +1 -1
- package/docs/treeview.md +1 -1
- package/docs/validationsummary.md +1 -1
- package/docs/window.md +1 -1
- package/docs/wizard.md +1 -1
- package/llms-full.txt +6725 -99
- package/llms.txt +50 -1
- package/package.json +5 -5
package/dist/locales/en.json
CHANGED
|
@@ -419,6 +419,17 @@
|
|
|
419
419
|
"tabDocsHidden": "{title} hidden",
|
|
420
420
|
"tabDocsShown": "{title} shown again",
|
|
421
421
|
"back": "Back",
|
|
422
|
+
"navigationMenu": "Navigation menu",
|
|
423
|
+
"navigation": "Navigation",
|
|
424
|
+
"appBarActions": "Actions",
|
|
425
|
+
"otpIncomplete": "Enter all {count} characters.",
|
|
426
|
+
"signatureHere": "Sign here",
|
|
427
|
+
"signatureUndo": "Undo the last stroke",
|
|
428
|
+
"signatureName": "signature pad",
|
|
429
|
+
"signatureEmpty": "Empty",
|
|
430
|
+
"signatureSigned": "Signed",
|
|
431
|
+
"qrCodeLabel": "QR code: {value}",
|
|
432
|
+
"barcodeLabel": "Barcode: {value}",
|
|
422
433
|
"sheetLabel": "Sheet",
|
|
423
434
|
"sheetHandle": "Sheet height",
|
|
424
435
|
"sheetPeek": "Small",
|
|
@@ -611,5 +622,30 @@
|
|
|
611
622
|
"validationSummary": "Please correct the following",
|
|
612
623
|
"timeline": "Timeline",
|
|
613
624
|
"timelineEarlier": "Earlier",
|
|
614
|
-
"timelineLater": "Later"
|
|
625
|
+
"timelineLater": "Later",
|
|
626
|
+
"chartName": "Chart",
|
|
627
|
+
"chartRole": "chart",
|
|
628
|
+
"chartPlot": "{name}: values",
|
|
629
|
+
"chartHelp": "Use the arrow keys to move between values.",
|
|
630
|
+
"chartValue": "{series}, {position}: {value}",
|
|
631
|
+
"chartEmpty": "No data to show",
|
|
632
|
+
"chartFailed": "The data could not be loaded",
|
|
633
|
+
"chartLegend": "Series",
|
|
634
|
+
"chartPosition": "Category",
|
|
635
|
+
"chartShowTable": "Show as a table",
|
|
636
|
+
"chartShowChart": "Show as a chart",
|
|
637
|
+
"chartShare": "Share",
|
|
638
|
+
"chartRange": "{low} – {high}",
|
|
639
|
+
"chartPrices": "Open {open}, high {high}, low {low}, close {close}",
|
|
640
|
+
"chartResetZoom": "Reset zoom",
|
|
641
|
+
"sparklineName": "Trend",
|
|
642
|
+
"sparklineSummary": "{name}: {count, number} values, from {first} to {last}, lowest {min}, highest {max}",
|
|
643
|
+
"gaugeName": "Gauge",
|
|
644
|
+
"gaugeValueIn": "{value}, {range}",
|
|
645
|
+
"gaugeMark": "{label}: {value}",
|
|
646
|
+
"barGaugeName": "Bar gauge",
|
|
647
|
+
"barGaugeBar": "{name}: {value}",
|
|
648
|
+
"barGaugeSummary": "{name}: {values}",
|
|
649
|
+
"gaugeMarkAt": "mark at {value}",
|
|
650
|
+
"chartTime": "Time"
|
|
615
651
|
}
|
package/dist/locales/tr.json
CHANGED
|
@@ -419,6 +419,17 @@
|
|
|
419
419
|
"tabDocsHidden": "{title} gizlendi",
|
|
420
420
|
"tabDocsShown": "{title} yeniden gösteriliyor",
|
|
421
421
|
"back": "Geri",
|
|
422
|
+
"navigationMenu": "Gezinme menüsü",
|
|
423
|
+
"navigation": "Gezinme",
|
|
424
|
+
"appBarActions": "Eylemler",
|
|
425
|
+
"otpIncomplete": "{count} karakterin tamamını girin.",
|
|
426
|
+
"signatureHere": "Buraya imzalayın",
|
|
427
|
+
"signatureUndo": "Son çizgiyi geri al",
|
|
428
|
+
"signatureName": "imza alanı",
|
|
429
|
+
"signatureEmpty": "Boş",
|
|
430
|
+
"signatureSigned": "İmzalandı",
|
|
431
|
+
"qrCodeLabel": "QR kod: {value}",
|
|
432
|
+
"barcodeLabel": "Barkod: {value}",
|
|
422
433
|
"sheetLabel": "Alt panel",
|
|
423
434
|
"sheetHandle": "Panel yüksekliği",
|
|
424
435
|
"sheetPeek": "Küçük",
|
|
@@ -611,5 +622,30 @@
|
|
|
611
622
|
"validationSummary": "Lütfen şunları düzeltin",
|
|
612
623
|
"timeline": "Zaman çizelgesi",
|
|
613
624
|
"timelineEarlier": "Daha öncesi",
|
|
614
|
-
"timelineLater": "Daha sonrası"
|
|
625
|
+
"timelineLater": "Daha sonrası",
|
|
626
|
+
"chartName": "Grafik",
|
|
627
|
+
"chartRole": "grafik",
|
|
628
|
+
"chartPlot": "{name}: değerler",
|
|
629
|
+
"chartHelp": "Değerler arasında ok tuşlarıyla gezinin.",
|
|
630
|
+
"chartValue": "{series}, {position}: {value}",
|
|
631
|
+
"chartEmpty": "Gösterilecek veri yok",
|
|
632
|
+
"chartFailed": "Veriler yüklenemedi",
|
|
633
|
+
"chartLegend": "Seriler",
|
|
634
|
+
"chartPosition": "Kategori",
|
|
635
|
+
"chartShowTable": "Tablo olarak göster",
|
|
636
|
+
"chartShowChart": "Grafik olarak göster",
|
|
637
|
+
"chartShare": "Pay",
|
|
638
|
+
"chartRange": "{low} – {high}",
|
|
639
|
+
"chartPrices": "Açılış {open}, en yüksek {high}, en düşük {low}, kapanış {close}",
|
|
640
|
+
"chartResetZoom": "Yakınlaştırmayı sıfırla",
|
|
641
|
+
"sparklineName": "Eğilim",
|
|
642
|
+
"sparklineSummary": "{name}: {count, number} değer, {first} ile başlayıp {last} ile bitiyor, en düşük {min}, en yüksek {max}",
|
|
643
|
+
"gaugeName": "Gösterge",
|
|
644
|
+
"gaugeValueIn": "{value}, {range}",
|
|
645
|
+
"gaugeMark": "{label}: {value}",
|
|
646
|
+
"barGaugeName": "Çubuk gösterge",
|
|
647
|
+
"barGaugeBar": "{name}: {value}",
|
|
648
|
+
"barGaugeSummary": "{name}: {values}",
|
|
649
|
+
"gaugeMarkAt": "{value} işaretli",
|
|
650
|
+
"chartTime": "Zaman"
|
|
615
651
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** A place in an SVG. */
|
|
2
|
+
export type Place = readonly [number, number];
|
|
3
|
+
/** A line through the places. */
|
|
4
|
+
export declare function linePath(places: readonly Place[]): string;
|
|
5
|
+
/** Corners instead of a slope: the value holds until the next one, changes halfway to it, or changes on arriving. */
|
|
6
|
+
export declare function stepPath(places: readonly Place[], mode: 'start' | 'middle' | 'end', sideways?: boolean): string;
|
|
7
|
+
/**
|
|
8
|
+
* A smooth line that never overshoots the values it joins (monotone cubic): a curve must not show a peak the data
|
|
9
|
+
* does not have. `sideways` runs it down the page, for a horizontal chart.
|
|
10
|
+
*/
|
|
11
|
+
export declare function smoothPath(places: readonly Place[], sideways?: boolean): string;
|
|
12
|
+
/** An area between an upper path and the lower one, given as the path that walks back along it. */
|
|
13
|
+
export declare function areaPath(upper: string, lowerBack: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* A bar: its end rounded on the `end` side, square where it stands on the baseline. The corner never takes more than
|
|
16
|
+
* half its width or its whole height, so a short bar keeps its shape.
|
|
17
|
+
*/
|
|
18
|
+
export declare function barPath(left: number, top: number, width: number, height: number, radius: number, end: 'top' | 'bottom' | 'left' | 'right' | null): string;
|
|
19
|
+
/** Circles as one path: thousands stay one element. */
|
|
20
|
+
export declare function circlesPath(circles: readonly {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
r: number;
|
|
24
|
+
}[]): string;
|
|
25
|
+
/** A rectangle with all four corners rounded: a bar whose both ends are values, as in a range. */
|
|
26
|
+
export declare function roundRectPath(left: number, top: number, width: number, height: number, radius: number): string;
|
|
27
|
+
/** A point at an angle from the top, clockwise, in radians. */
|
|
28
|
+
export declare function polar(cx: number, cy: number, radius: number, angle: number): Place;
|
|
29
|
+
/** A slice of a ring between two angles from the top, clockwise; a hole of 0 makes a slice of a pie. */
|
|
30
|
+
export declare function arcPath(cx: number, cy: number, hole: number, radius: number, from: number, to: number): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Turns a value of an axis into a position on the page, and back. */
|
|
2
|
+
export interface ChartScale {
|
|
3
|
+
at(value: number): number;
|
|
4
|
+
valueAt(position: number): number;
|
|
5
|
+
}
|
|
6
|
+
/** A straight scale: `min` lands on `from`, `max` on `to`. */
|
|
7
|
+
export declare function linearScale(min: number, max: number, from: number, to: number): ChartScale;
|
|
8
|
+
/** A scale of powers of ten. Zero and below have no place on it and land on `min`. */
|
|
9
|
+
export declare function logScale(min: number, max: number, from: number, to: number): ChartScale;
|
|
10
|
+
/** `count` equal bands between `from` and `to`: a value is a band's number, and lands on its middle. */
|
|
11
|
+
export declare function bandScale(count: number, from: number, to: number): ChartScale & {
|
|
12
|
+
size: number;
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** How a value reads: a function of your own, or options of the browser's number or date formats. */
|
|
2
|
+
export type ChartFormat = ((value: any) => string) | Intl.NumberFormatOptions | Intl.DateTimeFormatOptions;
|
|
3
|
+
/** The width of `text` in `font` (a CSS font). Where there is nothing to measure with, an estimate from the font's size. */
|
|
4
|
+
export declare function textWidth(text: string, font: string, doc: Document): number;
|
|
5
|
+
/** A number as it reads in `locale`. */
|
|
6
|
+
export declare function formatNumber(value: number, format: ChartFormat | undefined, locale: string, fallback?: Intl.NumberFormatOptions): string;
|
|
7
|
+
/** A moment as it reads in `locale`. */
|
|
8
|
+
export declare function formatDate(value: number | Date, format: ChartFormat | undefined, locale: string, fallback?: Intl.DateTimeFormatOptions): string;
|
|
9
|
+
/** The background behind `el`: the first one up its parents that can be seen. */
|
|
10
|
+
export declare function surfaceBehind(el: Element): string;
|
|
11
|
+
/** A motion token of the design language in milliseconds: languages write it in seconds or in milliseconds. */
|
|
12
|
+
export declare function motionOf(el: Element, token: string): number;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** The round step (1, 2, 2.5 or 5 of a power of ten) nearest to splitting `span` into `count` parts. */
|
|
2
|
+
export declare function niceStep(span: number, count: number): number;
|
|
3
|
+
/** Round values from `min` to `max`, reaching past both unless `exact`. A single value gets room around it. */
|
|
4
|
+
export declare function niceTicks(min: number, max: number, count: number, exact?: boolean): number[];
|
|
5
|
+
/** Powers of ten from `min` to `max`, for a log axis. */
|
|
6
|
+
export declare function logTicks(min: number, max: number): number[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** A new SVG element in `parent`. */
|
|
2
|
+
export declare function svgPart<K extends keyof SVGElementTagNameMap>(parent: Element, tag: K, className?: string): SVGElementTagNameMap[K];
|
|
3
|
+
/** An attribute written only when it changed, or taken away. */
|
|
4
|
+
export declare function svgPut(el: Element, name: string, value: string | number | null): void;
|
|
5
|
+
/** Texts of a group, kept between draws: `add` hands out the next one, and `done` takes away what was not used. */
|
|
6
|
+
export declare class TextPool {
|
|
7
|
+
group: SVGGElement;
|
|
8
|
+
used: number;
|
|
9
|
+
constructor(group: SVGGElement);
|
|
10
|
+
add(text: string, x: number, y: number, anchor: 'start' | 'middle' | 'end'): SVGTextElement;
|
|
11
|
+
done(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keeps `count` of the items of a series while keeping its shape: of each stretch, the item that makes the largest
|
|
3
|
+
* triangle with its neighbors, so peaks stay where a plain "every nth" would lose them. Items stay in order, and the
|
|
4
|
+
* first and last are always kept. Each is read through `x` and `y`.
|
|
5
|
+
*/
|
|
6
|
+
export declare function thinOut<T>(items: readonly T[], count: number, x: (item: T) => number, y: (item: T) => number): T[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Ticks of a time axis and how they read. */
|
|
2
|
+
export interface TimeTicks {
|
|
3
|
+
ticks: number[];
|
|
4
|
+
format: Intl.DateTimeFormatOptions;
|
|
5
|
+
}
|
|
6
|
+
/** About `count` ticks between `min` and `max`, on moments people read as round. */
|
|
7
|
+
export declare function timeTicks(min: number, max: number, count: number): TimeTicks;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lengths of design tokens for drawing, read from hidden probes that stay in the element. A stylesheet that arrives late,
|
|
3
|
+
* or a design language that changes, changes a probe's size, and `changed` is called to draw again with the new length.
|
|
4
|
+
*/
|
|
5
|
+
export declare class TokenLengths {
|
|
6
|
+
probes: Map<string, HTMLSpanElement>;
|
|
7
|
+
used: Map<string, number>;
|
|
8
|
+
observer: ResizeObserver | null;
|
|
9
|
+
box: HTMLSpanElement;
|
|
10
|
+
constructor(host: HTMLElement, tokens: readonly string[], changed: () => void);
|
|
11
|
+
tokenOf(probe: Element): string;
|
|
12
|
+
measure(probe: HTMLElement): number;
|
|
13
|
+
/** The token's length in pixels, or `fallback` where nothing is laid out yet. */
|
|
14
|
+
get(token: string, fallback: number): number;
|
|
15
|
+
dispose(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Values that move to new ones over the design language's normal motion. Values that come quicker than that are being
|
|
3
|
+
* driven, by a drag or a fast feed: they are drawn at once, so what is drawn keeps up with them.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ValueMotion {
|
|
6
|
+
element: Element;
|
|
7
|
+
draw: (values: readonly (number | null)[]) => void;
|
|
8
|
+
shown: (number | null)[];
|
|
9
|
+
frame: number;
|
|
10
|
+
changedAt: number;
|
|
11
|
+
constructor(element: Element, draw: (values: readonly (number | null)[]) => void);
|
|
12
|
+
/** Values taken at once, as at the first draw. */
|
|
13
|
+
set(values: readonly (number | null)[]): void;
|
|
14
|
+
move(values: readonly (number | null)[]): void;
|
|
15
|
+
stop(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** The kinds of barcode. */
|
|
2
|
+
export type BarcodeFormat = 'code128' | 'code39' | 'ean13' | 'ean8' | 'upca' | 'itf';
|
|
3
|
+
/** One bar, in modules from the start of the code. A guard bar runs lower than the others. */
|
|
4
|
+
export interface BarcodeBar {
|
|
5
|
+
x: number;
|
|
6
|
+
width: number;
|
|
7
|
+
guard: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface BarcodeModel {
|
|
10
|
+
bars: BarcodeBar[];
|
|
11
|
+
/** The width of the code in modules. */
|
|
12
|
+
width: number;
|
|
13
|
+
/** The text under the bars, with the check digit where a format has one. */
|
|
14
|
+
text: string;
|
|
15
|
+
}
|
|
16
|
+
/** A value a format cannot hold. */
|
|
17
|
+
export declare class BarcodeValueError extends RangeError {
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The bars of `value` in `format`. EAN and UPC values may leave out the check digit. `checkDigit` adds the optional one
|
|
21
|
+
* of Code 39. Throws a `BarcodeValueError` when the format cannot hold the value.
|
|
22
|
+
*/
|
|
23
|
+
export declare function encodeBarcode(value: string, format?: BarcodeFormat, checkDigit?: boolean): BarcodeModel;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** A dark rectangle of a code, in modules. */
|
|
2
|
+
export interface CodeRect {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}
|
|
8
|
+
/** A code as dark rectangles on a sheet, in modules. */
|
|
9
|
+
export interface CodeImage {
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
rects: readonly CodeRect[];
|
|
13
|
+
}
|
|
14
|
+
/** Colors and size of an image of a code. */
|
|
15
|
+
export interface CodeImageOptions {
|
|
16
|
+
/** The size of a module in pixels. */
|
|
17
|
+
scale: number;
|
|
18
|
+
color: string;
|
|
19
|
+
background: string;
|
|
20
|
+
}
|
|
21
|
+
/** Shows or hides an `<svg>`, which has no `hidden` property of its own. */
|
|
22
|
+
export declare function showSvg(svg: SVGSVGElement, on: boolean): void;
|
|
23
|
+
/** The rectangles as the data of one SVG path. */
|
|
24
|
+
export declare function rectsPath(rects: readonly CodeRect[]): string;
|
|
25
|
+
/** Draws `image` in an inline `<svg>`, sized in CSS and colored by `currentColor`. */
|
|
26
|
+
export declare function drawCodeSvg(svg: SVGSVGElement, path: SVGPathElement, image: CodeImage): void;
|
|
27
|
+
/** A new inline `<svg>` with its path. */
|
|
28
|
+
export declare function createCodeSvg(doc: Document): {
|
|
29
|
+
svg: SVGSVGElement;
|
|
30
|
+
path: SVGPathElement;
|
|
31
|
+
};
|
|
32
|
+
/** The code as an SVG document. */
|
|
33
|
+
export declare function codeSvgDocument(image: CodeImage, options: CodeImageOptions, extra?: string): string;
|
|
34
|
+
/** The code on a new canvas. */
|
|
35
|
+
export declare function codeCanvas(doc: Document, image: CodeImage, options: CodeImageOptions): HTMLCanvasElement;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** How much of a QR code can be restored when it is damaged: about 7, 15, 25 or 30 percent. */
|
|
2
|
+
export type QrLevel = 'L' | 'M' | 'Q' | 'H';
|
|
3
|
+
/** A QR code: `modules[y][x]` is `true` for a dark module. */
|
|
4
|
+
export interface QrMatrix {
|
|
5
|
+
version: number;
|
|
6
|
+
size: number;
|
|
7
|
+
modules: boolean[][];
|
|
8
|
+
}
|
|
9
|
+
/** The modules of `text`, in the smallest version that holds it. Throws a `RangeError` when it does not fit in any. */
|
|
10
|
+
export declare function encodeQr(text: string, level?: QrLevel): QrMatrix;
|
|
@@ -32,6 +32,8 @@ export declare class DataItems<T> implements ItemSource<T>, IDisposable {
|
|
|
32
32
|
get count(): number;
|
|
33
33
|
at(index: number): T | undefined;
|
|
34
34
|
ensure(first: number, end: number): void;
|
|
35
|
+
failedAt(index?: number): boolean;
|
|
36
|
+
retryFailed(): void;
|
|
35
37
|
/** Every item in memory, or the loaded rows. */
|
|
36
38
|
get loaded(): readonly T[];
|
|
37
39
|
get searchText(): string;
|
|
@@ -26,6 +26,7 @@ export declare class KeyedItems<T = unknown> {
|
|
|
26
26
|
* The default is `'batch'` when the service filters, otherwise `'byKey'`.
|
|
27
27
|
*/
|
|
28
28
|
resolve: 'batch' | 'byKey';
|
|
29
|
+
/** The keys per request in `'batch'` mode: few enough that a request that carries them in its address stays within common URL limits. */
|
|
29
30
|
batchSize: number;
|
|
30
31
|
/** With `'byKey'`, the number of simultaneous requests. */
|
|
31
32
|
parallelRequests: number;
|
|
@@ -104,6 +104,8 @@ export declare abstract class Field<T, TProps extends FieldProps<T> = FieldProps
|
|
|
104
104
|
protected showClearButton(on: boolean, clear: (event: MouseEvent) => void, className: string): void;
|
|
105
105
|
protected renderReadOnly(on: boolean): void;
|
|
106
106
|
protected get focusElement(): HTMLElement;
|
|
107
|
+
/** Whether the role of the control carries `aria-required` and `aria-readonly`. A control with another role says no. */
|
|
108
|
+
protected get formRole(): boolean;
|
|
107
109
|
private get parts();
|
|
108
110
|
private createParts;
|
|
109
111
|
/** `x-model` handing back the value the field just wrote: the written value, not the model's copy. */
|
|
@@ -31,6 +31,9 @@ export declare class OptionList<T = unknown> extends Component<HTMLDivElement> {
|
|
|
31
31
|
private size;
|
|
32
32
|
private itemAt;
|
|
33
33
|
private ensure;
|
|
34
|
+
/** Whether a row (or, with no index, the whole list) failed to load; a press on it loads it again. */
|
|
35
|
+
private failedAt;
|
|
36
|
+
private retryFailed;
|
|
34
37
|
/** With groups: the headers between the items. Without: one row per item. */
|
|
35
38
|
private rows;
|
|
36
39
|
private active;
|
|
@@ -83,6 +86,9 @@ export declare class OptionList<T = unknown> extends Component<HTMLDivElement> {
|
|
|
83
86
|
private itemElement;
|
|
84
87
|
private markSelected;
|
|
85
88
|
private indexOf;
|
|
89
|
+
/** "Could not load. Retry": a row or a list that failed, which a press loads again. */
|
|
90
|
+
private failedText;
|
|
91
|
+
private writeEmpty;
|
|
86
92
|
private clicked;
|
|
87
93
|
private release;
|
|
88
94
|
}
|
|
@@ -5,4 +5,8 @@ export interface ItemSource<T> {
|
|
|
5
5
|
at(index: number): T | undefined;
|
|
6
6
|
/** Loads the items from `first` up to `end`, which the view shows. */
|
|
7
7
|
ensure?(first: number, end: number): void;
|
|
8
|
+
/** Whether the item at `index` failed to load; with no index, whether the whole list failed. */
|
|
9
|
+
failedAt?(index?: number): boolean;
|
|
10
|
+
/** Loads again what failed. */
|
|
11
|
+
retryFailed?(): void;
|
|
8
12
|
}
|