zabi-components 8.1.0 → 9.0.0
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 +1011 -0
- package/README.md +1 -1
- package/THEME.md +18 -5
- package/THEMING.md +308 -74
- package/dist/atoms/ActionPanel.svelte +1 -1
- package/dist/atoms/Avatar.svelte +19 -3
- package/dist/atoms/Avatar.svelte.d.ts +12 -0
- package/dist/atoms/Badge.svelte +37 -8
- package/dist/atoms/Badge.svelte.d.ts +6 -0
- package/dist/atoms/Block.svelte +74 -0
- package/dist/atoms/Block.svelte.d.ts +29 -0
- package/dist/atoms/Button.svelte +52 -15
- package/dist/atoms/Button.svelte.d.ts +3 -2
- package/dist/atoms/Card.svelte +181 -25
- package/dist/atoms/Card.svelte.d.ts +55 -3
- package/dist/atoms/Checkbox.svelte +33 -0
- package/dist/atoms/Checkbox.svelte.d.ts +27 -0
- package/dist/atoms/Chip.svelte +351 -0
- package/dist/atoms/Chip.svelte.d.ts +57 -0
- package/dist/atoms/CodeField.svelte +385 -0
- package/dist/atoms/CodeField.svelte.d.ts +61 -0
- package/dist/atoms/ColorPicker.svelte +1 -0
- package/dist/atoms/DateField.svelte +41 -3
- package/dist/atoms/DateField.svelte.d.ts +31 -3
- package/dist/atoms/FloatingActionButton.svelte +5 -3
- package/dist/atoms/FloatingActionButton.svelte.d.ts +1 -1
- package/dist/atoms/Heading.svelte +27 -1
- package/dist/atoms/Heading.svelte.d.ts +7 -0
- package/dist/atoms/IconButton.svelte +81 -9
- package/dist/atoms/IconButton.svelte.d.ts +13 -0
- package/dist/atoms/Input.svelte +10 -5
- package/dist/atoms/Input.svelte.d.ts +3 -2
- package/dist/atoms/List.svelte +3 -2
- package/dist/atoms/ListItem.svelte +31 -7
- package/dist/atoms/ListItem.svelte.d.ts +6 -0
- package/dist/atoms/PickerField.svelte +239 -0
- package/dist/atoms/PickerField.svelte.d.ts +67 -0
- package/dist/atoms/Progress.svelte +78 -17
- package/dist/atoms/Progress.svelte.d.ts +11 -1
- package/dist/atoms/Radio.svelte +32 -0
- package/dist/atoms/Radio.svelte.d.ts +26 -0
- package/dist/atoms/Rating.svelte +132 -6
- package/dist/atoms/Rating.svelte.d.ts +24 -3
- package/dist/atoms/Select.svelte +24 -26
- package/dist/atoms/Select.svelte.d.ts +12 -0
- package/dist/atoms/SelectionControl.svelte +99 -6
- package/dist/atoms/SelectionControl.svelte.d.ts +25 -0
- package/dist/atoms/Skeleton.svelte +114 -18
- package/dist/atoms/Skeleton.svelte.d.ts +30 -3
- package/dist/atoms/SkeletonGroup.svelte +43 -0
- package/dist/atoms/SkeletonGroup.svelte.d.ts +20 -0
- package/dist/atoms/Slider.svelte +35 -0
- package/dist/atoms/Sparkline.svelte +109 -0
- package/dist/atoms/Sparkline.svelte.d.ts +27 -0
- package/dist/atoms/SpeechBubble.svelte +187 -0
- package/dist/atoms/SpeechBubble.svelte.d.ts +33 -0
- package/dist/atoms/Stat.svelte +72 -0
- package/dist/atoms/Stat.svelte.d.ts +19 -0
- package/dist/atoms/TemporalField.svelte +342 -10
- package/dist/atoms/TemporalField.svelte.d.ts +20 -4
- package/dist/atoms/Textarea.svelte +100 -5
- package/dist/atoms/Textarea.svelte.d.ts +21 -0
- package/dist/atoms/TimeColumn.svelte +150 -0
- package/dist/atoms/TimeColumn.svelte.d.ts +25 -0
- package/dist/atoms/TimeField.svelte +46 -3
- package/dist/atoms/TimeField.svelte.d.ts +34 -3
- package/dist/atoms/Toast.svelte +6 -5
- package/dist/atoms/Toggle.svelte +61 -10
- package/dist/atoms/Toggle.svelte.d.ts +15 -0
- package/dist/atoms/Tooltip.svelte +20 -1
- package/dist/atoms/Tooltip.svelte.d.ts +7 -0
- package/dist/atoms/index.d.ts +21 -0
- package/dist/atoms/index.js +17 -0
- package/dist/atoms/selection-control.styles.d.ts +15 -4
- package/dist/atoms/selection-control.styles.js +16 -5
- package/dist/components/atoms/index.d.ts +21 -0
- package/dist/components/atoms/index.d.ts.map +1 -1
- package/dist/components/atoms/selection-control.styles.d.ts +15 -4
- package/dist/components/atoms/selection-control.styles.d.ts.map +1 -1
- package/dist/components/index.d.ts +27 -3
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/map.d.ts +11 -0
- package/dist/components/map.d.ts.map +1 -0
- package/dist/components/molecules/index.d.ts +7 -2
- package/dist/components/molecules/index.d.ts.map +1 -1
- package/dist/components/molecules/toast-store.d.ts +30 -0
- package/dist/components/molecules/toast-store.d.ts.map +1 -1
- package/dist/components/organisms/index.d.ts +6 -1
- package/dist/components/organisms/index.d.ts.map +1 -1
- package/dist/components/types/variants.d.ts +12 -3
- package/dist/components/types/variants.d.ts.map +1 -1
- package/dist/components/util/app-shell.d.ts +55 -4
- package/dist/components/util/app-shell.d.ts.map +1 -1
- package/dist/components/util/avatar.d.ts +3 -0
- package/dist/components/util/avatar.d.ts.map +1 -1
- package/dist/components/util/bottom-tab-bar.d.ts +6 -0
- package/dist/components/util/bottom-tab-bar.d.ts.map +1 -1
- package/dist/components/util/chart.d.ts +140 -0
- package/dist/components/util/chart.d.ts.map +1 -0
- package/dist/components/util/chip.d.ts +66 -0
- package/dist/components/util/chip.d.ts.map +1 -0
- package/dist/components/util/cn.d.ts.map +1 -1
- package/dist/components/util/code-field.d.ts +63 -0
- package/dist/components/util/code-field.d.ts.map +1 -0
- package/dist/components/util/collapsible.d.ts +6 -0
- package/dist/components/util/collapsible.d.ts.map +1 -1
- package/dist/components/util/display-voice.d.ts +10 -0
- package/dist/components/util/display-voice.d.ts.map +1 -0
- package/dist/components/util/field-control.d.ts +30 -0
- package/dist/components/util/field-control.d.ts.map +1 -0
- package/dist/components/util/field.d.ts +6 -0
- package/dist/components/util/field.d.ts.map +1 -1
- package/dist/components/util/focus-utils.d.ts +2 -0
- package/dist/components/util/focus-utils.d.ts.map +1 -1
- package/dist/components/util/map-view.d.ts +144 -0
- package/dist/components/util/map-view.d.ts.map +1 -0
- package/dist/components/util/photo.d.ts +19 -0
- package/dist/components/util/photo.d.ts.map +1 -1
- package/dist/components/util/progress.d.ts +19 -0
- package/dist/components/util/progress.d.ts.map +1 -0
- package/dist/components/util/scroll-edge.d.ts +33 -0
- package/dist/components/util/scroll-edge.d.ts.map +1 -0
- package/dist/components/util/sheet-drag.d.ts +25 -1
- package/dist/components/util/sheet-drag.d.ts.map +1 -1
- package/dist/components/util/skeleton.d.ts +15 -0
- package/dist/components/util/skeleton.d.ts.map +1 -0
- package/dist/components/util/sliding-indicator.d.ts +25 -0
- package/dist/components/util/sliding-indicator.d.ts.map +1 -0
- package/dist/components/util/temporal-field.d.ts +89 -0
- package/dist/components/util/temporal-field.d.ts.map +1 -0
- package/dist/components/util/toaster.d.ts +40 -0
- package/dist/components/util/toaster.d.ts.map +1 -1
- package/dist/components/util/tone-surface.d.ts +34 -0
- package/dist/components/util/tone-surface.d.ts.map +1 -0
- package/dist/components/util/top-navbar.d.ts +26 -2
- package/dist/components/util/top-navbar.d.ts.map +1 -1
- package/dist/components/util/zabi-strings.d.ts +9 -0
- package/dist/components/util/zabi-strings.d.ts.map +1 -1
- package/dist/create-theme/cli.js +6 -2
- package/dist/create-theme/index.d.ts +17 -3
- package/dist/create-theme/index.js +252 -35
- package/dist/create-theme/lib/resolve.js +97 -0
- package/dist/create-theme/theme-data.js +1618 -90
- package/dist/index.d.ts +27 -3
- package/dist/index.js +18 -0
- package/dist/map.d.ts +10 -0
- package/dist/map.js +9 -0
- package/dist/molecules/Alert.svelte +31 -12
- package/dist/molecules/Alert.svelte.d.ts +12 -1
- package/dist/molecules/AppBar.svelte +287 -28
- package/dist/molecules/AppBar.svelte.d.ts +62 -0
- package/dist/molecules/AvatarGroup.svelte +1 -1
- package/dist/molecules/BarChart.svelte +381 -0
- package/dist/molecules/BarChart.svelte.d.ts +45 -0
- package/dist/molecules/BottomSheet.svelte +88 -20
- package/dist/molecules/BottomSheet.svelte.d.ts +17 -1
- package/dist/molecules/BottomTabBar.svelte +134 -28
- package/dist/molecules/BottomTabBar.svelte.d.ts +36 -2
- package/dist/molecules/Calendar.svelte.d.ts +1 -1
- package/dist/molecules/ChipGroup.svelte +325 -0
- package/dist/molecules/ChipGroup.svelte.d.ts +41 -0
- package/dist/molecules/Collapsible.svelte +158 -54
- package/dist/molecules/Collapsible.svelte.d.ts +23 -6
- package/dist/molecules/CollapsibleGroup.svelte +16 -6
- package/dist/molecules/ConfirmDialog.svelte +5 -1
- package/dist/molecules/ConfirmDialog.svelte.d.ts +3 -0
- package/dist/molecules/Drawer.svelte +33 -12
- package/dist/molecules/Dropdown.svelte +9 -1
- package/dist/molecules/Dropdown.svelte.d.ts +2 -0
- package/dist/molecules/DropdownItem.svelte +1 -1
- package/dist/molecules/ImageUpload.svelte +230 -120
- package/dist/molecules/ImageUpload.svelte.d.ts +38 -3
- package/dist/molecules/LineChart.svelte +459 -0
- package/dist/molecules/LineChart.svelte.d.ts +53 -0
- package/dist/molecules/MapView.svelte +565 -0
- package/dist/molecules/MapView.svelte.d.ts +88 -0
- package/dist/molecules/Modal.svelte +11 -6
- package/dist/molecules/PhotoGrid.svelte +100 -10
- package/dist/molecules/PhotoGrid.svelte.d.ts +11 -0
- package/dist/molecules/PhotoViewer.svelte +121 -24
- package/dist/molecules/PhotoViewer.svelte.d.ts +18 -0
- package/dist/molecules/PieChart.svelte +421 -0
- package/dist/molecules/PieChart.svelte.d.ts +51 -0
- package/dist/molecules/RadioGroup.svelte +20 -4
- package/dist/molecules/RadioGroup.svelte.d.ts +5 -0
- package/dist/molecules/SegmentedControl.svelte +136 -3
- package/dist/molecules/SegmentedControl.svelte.d.ts +6 -0
- package/dist/molecules/SidebarFooter.svelte +1 -1
- package/dist/molecules/SidebarNavSection.svelte +1 -1
- package/dist/molecules/SortableList.svelte +1 -0
- package/dist/molecules/Stepper.svelte +21 -7
- package/dist/molecules/StickyActionBar.svelte +67 -8
- package/dist/molecules/StickyActionBar.svelte.d.ts +14 -1
- package/dist/molecules/Tabs.svelte +79 -2
- package/dist/molecules/Toaster.svelte +171 -7
- package/dist/molecules/Toaster.svelte.d.ts +60 -2
- package/dist/molecules/ToasterToast.svelte +292 -60
- package/dist/molecules/ToasterToast.svelte.d.ts +6 -0
- package/dist/molecules/UnsavedChangesBar.svelte +13 -2
- package/dist/molecules/index.d.ts +7 -2
- package/dist/molecules/index.js +4 -0
- package/dist/molecules/toast-store.d.ts +30 -0
- package/dist/molecules/toast-store.js +4 -1
- package/dist/organisms/AppNavigation.svelte +440 -0
- package/dist/organisms/AppNavigation.svelte.d.ts +72 -0
- package/dist/organisms/AppShell.svelte +539 -39
- package/dist/organisms/AppShell.svelte.d.ts +102 -6
- package/dist/organisms/AppShellHeaderPart.svelte +163 -0
- package/dist/organisms/AppShellHeaderPart.svelte.d.ts +57 -0
- package/dist/organisms/SidebarNavigation.svelte +23 -36
- package/dist/organisms/SidebarPanel.svelte +10 -14
- package/dist/organisms/SidebarPanel.svelte.d.ts +1 -0
- package/dist/organisms/SidebarShell.svelte +2 -3
- package/dist/organisms/TopNavbar.svelte +117 -28
- package/dist/organisms/TopNavbar.svelte.d.ts +22 -1
- package/dist/organisms/TopNavbarSheetContent.svelte +145 -0
- package/dist/organisms/TopNavbarSheetContent.svelte.d.ts +24 -0
- package/dist/organisms/index.d.ts +6 -1
- package/dist/organisms/index.js +4 -0
- package/dist/types/components.d.ts +17 -1
- package/dist/types/components.d.ts.map +1 -1
- package/dist/types/index.d.ts +497 -10
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/variants.ts +14 -3
- package/dist/util/app-shell.d.ts +55 -4
- package/dist/util/app-shell.js +32 -7
- package/dist/util/avatar.d.ts +3 -0
- package/dist/util/bottom-tab-bar.d.ts +6 -0
- package/dist/util/chart.d.ts +139 -0
- package/dist/util/chart.js +305 -0
- package/dist/util/chip.d.ts +65 -0
- package/dist/util/chip.js +58 -0
- package/dist/util/cn.js +28 -2
- package/dist/util/code-field.d.ts +62 -0
- package/dist/util/code-field.js +112 -0
- package/dist/util/collapsible.d.ts +6 -0
- package/dist/util/display-voice.d.ts +9 -0
- package/dist/util/display-voice.js +9 -0
- package/dist/util/field-control.d.ts +29 -0
- package/dist/util/field-control.js +32 -0
- package/dist/util/field.d.ts +6 -0
- package/dist/util/focus-utils.d.ts +2 -0
- package/dist/util/focus-utils.js +4 -0
- package/dist/util/map-view.d.ts +143 -0
- package/dist/util/map-view.js +121 -0
- package/dist/util/photo.d.ts +19 -0
- package/dist/util/photo.js +3 -0
- package/dist/util/progress.d.ts +18 -0
- package/dist/util/progress.js +17 -0
- package/dist/util/scroll-edge.d.ts +32 -0
- package/dist/util/scroll-edge.js +87 -0
- package/dist/util/sheet-drag.d.ts +25 -1
- package/dist/util/sheet-drag.js +71 -1
- package/dist/util/skeleton.d.ts +14 -0
- package/dist/util/skeleton.js +22 -0
- package/dist/util/sliding-indicator.d.ts +24 -0
- package/dist/util/sliding-indicator.js +44 -0
- package/dist/util/temporal-field.d.ts +88 -0
- package/dist/util/temporal-field.js +136 -0
- package/dist/util/toaster.d.ts +40 -0
- package/dist/util/toaster.js +55 -0
- package/dist/util/tone-surface.d.ts +33 -0
- package/dist/util/tone-surface.js +35 -0
- package/dist/util/top-navbar.d.ts +26 -2
- package/dist/util/top-navbar.js +23 -0
- package/dist/util/zabi-strings.d.ts +9 -0
- package/dist/zabi-components-colors.css +9 -3
- package/dist/zabi-components-theme-dark-only.css +474 -164
- package/dist/zabi-components-theme-dark.css +474 -164
- package/dist/zabi-components-theme-only.css +933 -99
- package/dist/zabi-components-theme.css +933 -99
- package/dist/zabi-components.css +2275 -321
- package/package.json +11 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/** Types and pure helpers for `CodeField`. Kept out of the component so they can be tested without a DOM. */
|
|
2
|
+
/** `numeric`: digits only, the numeric keyboard. `alphanumeric`: digits and letters. */
|
|
3
|
+
export type CodeFieldMode = "numeric" | "alphanumeric";
|
|
4
|
+
/** Every built-in string. Pass a partial object to `strings` to translate. */
|
|
5
|
+
export interface CodeFieldStrings {
|
|
6
|
+
/** The field's name when no `label` is given. */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Read after the name, so a screen reader user knows how long the code is ("6 digits"). */
|
|
9
|
+
description: (length: number, mode: CodeFieldMode) => string;
|
|
10
|
+
}
|
|
11
|
+
export declare const DEFAULT_CODE_FIELD_STRINGS: CodeFieldStrings;
|
|
12
|
+
/** The fewest and the most places a code field draws. */
|
|
13
|
+
export declare const CODE_FIELD_LENGTH_MAX = 12;
|
|
14
|
+
/** `length` as a whole number from 1 to 12; 6 for anything that is not a number. */
|
|
15
|
+
export declare function codeLength(length: number | undefined): number;
|
|
16
|
+
/** Whether one character belongs in a code of this mode. */
|
|
17
|
+
export declare function isCodeChar(char: string, mode: CodeFieldMode): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* What is left of `text` once everything that does not belong is dropped
|
|
20
|
+
* (spaces, dashes, letters in a numeric code), cut to `length`. "123 456" and
|
|
21
|
+
* "123-456" are "123456".
|
|
22
|
+
*/
|
|
23
|
+
export declare function sanitiseCode(text: string, mode: CodeFieldMode, length: number): string;
|
|
24
|
+
/** The characters kept of `text` before position `caret`: where the caret goes after `text` is cleaned. */
|
|
25
|
+
export declare function caretAfterSanitise(text: string, caret: number, mode: CodeFieldMode, length: number): number;
|
|
26
|
+
/** `value` with the place at `index` replaced by `char`. */
|
|
27
|
+
export declare function replaceAt(value: string, index: number, char: string): string;
|
|
28
|
+
/** The text with `pasted` where the selection from `start` to `end` is. A whole code replaces what was there. */
|
|
29
|
+
export declare function pasteInto(value: string, start: number, end: number, pasted: string, mode: CodeFieldMode, length: number): string;
|
|
30
|
+
/** The place the caret is in, for the focus mark: the next empty place, or the last when the code is whole. */
|
|
31
|
+
export declare function activePlace(caret: number, length: number): number;
|
|
32
|
+
/** The sizes of the boxes: the field's `size`. `md` is the size the field has always had. */
|
|
33
|
+
export type CodeFieldSize = "sm" | "md" | "lg";
|
|
34
|
+
/**
|
|
35
|
+
* Per size: the box height, the digit class, the widest a box grows (rem) and
|
|
36
|
+
* the least it is (`minEm`, in ems of its own digit, so a digit is never wider than its
|
|
37
|
+
* box at any text size). `sm` stays 44px tall, the least for a touch target.
|
|
38
|
+
*/
|
|
39
|
+
export declare const CODE_FIELD_SIZES: Record<CodeFieldSize, {
|
|
40
|
+
box: string;
|
|
41
|
+
text: string;
|
|
42
|
+
digitRem: number;
|
|
43
|
+
maxRem: number;
|
|
44
|
+
minEm: number;
|
|
45
|
+
}>;
|
|
46
|
+
/** The gap between boxes in a group, and the wider gap between groups (rem). */
|
|
47
|
+
export declare const CODE_FIELD_GAP_REM = 0.5;
|
|
48
|
+
export declare const CODE_FIELD_GROUP_GAP_REM = 1;
|
|
49
|
+
/**
|
|
50
|
+
* `groups` as the sizes of the groups the boxes are drawn in. A number is the
|
|
51
|
+
* size of each group (4 for 8 places is 4 and 4, 3 for 8 is 3, 3 and 2); a list
|
|
52
|
+
* gives each group's size and the places left over form a last group. One
|
|
53
|
+
* group, or anything unusable, means no grouping: an empty list.
|
|
54
|
+
*/
|
|
55
|
+
export declare function codeGroups(groups: number | number[] | undefined, length: number): number[];
|
|
56
|
+
/** The index of the box nearest to a point, by its rectangle; -1 when there are none. */
|
|
57
|
+
export declare function nearestBox(rects: {
|
|
58
|
+
left: number;
|
|
59
|
+
right: number;
|
|
60
|
+
top?: number;
|
|
61
|
+
bottom?: number;
|
|
62
|
+
}[], x: number, y: number): number;
|
|
63
|
+
//# sourceMappingURL=code-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-field.d.ts","sourceRoot":"","sources":["../../../src/components/util/code-field.ts"],"names":[],"mappings":"AAAA,6GAA6G;AAE7G,wFAAwF;AACxF,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,cAAc,CAAC;AAEvD,8EAA8E;AAC9E,MAAM,WAAW,gBAAgB;IAC7B,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,4FAA4F;IAC5F,WAAW,EAAE,CAAC,MAAM,EAAE,MA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C,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAIlI,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,kBAAkB,MAAM,CAAC;AACtC,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAE1C;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAsB1F;AAED,yFAAyF;AACzF,wBAAgB,UAAU,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAahI"}
|
|
@@ -44,6 +44,12 @@ export interface CollapsibleGroupRegistration {
|
|
|
44
44
|
export interface CollapsibleGroupContext {
|
|
45
45
|
/** False when opening one panel closes the others. */
|
|
46
46
|
readonly multiple: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Shared `name` for the `<details>` of the default triggers when the group
|
|
49
|
+
* is single-open, so the browser keeps them exclusive without scripts.
|
|
50
|
+
* `undefined` when `multiple`.
|
|
51
|
+
*/
|
|
52
|
+
readonly exclusiveName: string | undefined;
|
|
47
53
|
register: (member: CollapsibleGroupMember) => CollapsibleGroupRegistration;
|
|
48
54
|
/** Called whenever a member is open, however it got there. */
|
|
49
55
|
opened: (member: CollapsibleGroupMember) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/util/collapsible.ts"],"names":[],"mappings":"AAAA,uIAAuI;AAEvI,yDAAyD;AACzD,MAAM,MAAM,uBA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ACX,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,GACd,MAAM,GAAG,IAAI,CAcf"}
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/util/collapsible.ts"],"names":[],"mappings":"AAAA,uIAAuI;AAEvI,yDAAyD;AACzD,MAAM,MAAM,uBAAuB,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE5D;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,4DAA4D;IAC5D,IAAI,EAAE,QAAQ,CAAC;IACf,eAAe,EAAE,OAAO,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IACrC,4EAA4E;IAC5E,0BAA0B,EAAE,EAAE,CAAC;CAClC,CAAC;AAEF,gDAAgD;AAChD,MAAM,WAAW,uBAAuB;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,4CAA4C;AAC5C,MAAM,WAAW,sBAAsB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,OAAO,CAAC;IACtB,oFAAoF;IACpF,UAAU,EAAE,MAAM,OAAO,CAAC;IAC1B,KAAK,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,qDAAqD;AACrD,MAAM,WAAW,4BAA4B;IACzC,gCAAgC;IAChC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB;;;;OAIG;IACH,WAAW,EAAE,OAAO,CAAC;CACxB;AAED,oFAAoF;AACpF,MAAM,WAAW,uBAAuB;IACpC,sDAAsD;IACtD,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,QAAQ,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,4BAA4B,CAAC;IAC3E,8DAA8D;IAC9D,MAAM,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;CACpD;AAED,gDAAgD;AAChD,eAAO,MAAM,iBAAiB,eAAmC,CAAC;AAElE;;;GAGG;AACH,wBAAgB,gBAAgB,CAC5B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,GACd,MAAM,GAAG,IAAI,CAcf"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The display voice: the weight and tracking of a figure or a display line.
|
|
3
|
+
* Both are read from custom properties that are declared nowhere, so any
|
|
4
|
+
* ancestor can set them (`--zabi-display-weight: 400` for a light serif) and
|
|
5
|
+
* the defaults are what the display face looked like before. The `number:`
|
|
6
|
+
* hint is what makes Tailwind read the weight as a weight and not a family.
|
|
7
|
+
* Heading `variant="display"` and Stat share this string.
|
|
8
|
+
*/
|
|
9
|
+
export declare const displayVoice = "font-[number:var(--zabi-display-weight,700)] tracking-[var(--zabi-display-tracking,-0.02em)]";
|
|
10
|
+
//# sourceMappingURL=display-voice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display-voice.d.ts","sourceRoot":"","sources":["../../../src/components/util/display-voice.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,iGACyE,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The look of a field-shaped control's box: Select's trigger and native select
|
|
3
|
+
* and PickerField draw it from here, so a picker beside a Select is the same
|
|
4
|
+
* box. Kept in one place so they cannot drift.
|
|
5
|
+
*/
|
|
6
|
+
export type FieldControlSize = "sm" | "md" | "lg";
|
|
7
|
+
export interface FieldControlSizeClasses {
|
|
8
|
+
/** The trigger's box: a minimum height, so a label that wraps makes it taller. */
|
|
9
|
+
box: string;
|
|
10
|
+
/** The text size: 16px below `sm`, as Input. */
|
|
11
|
+
text: string;
|
|
12
|
+
/** The same box for a native `<select>`, which is always one line. */
|
|
13
|
+
native: string;
|
|
14
|
+
/** Where the trailing chevron sits. */
|
|
15
|
+
chevron: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Same fixed height scale as Button, IconButton and Input (32 / 40 / 48), and
|
|
19
|
+
* the same 16px text below `sm`. One line is exactly 32, 40 or 48px: the
|
|
20
|
+
* padding leaves room for the line and the border inside it, and is a step
|
|
21
|
+
* smaller below `sm`, where the text is 16px on a 24px line.
|
|
22
|
+
*/
|
|
23
|
+
export declare function fieldControlSize(size: FieldControlSize): FieldControlSizeClasses;
|
|
24
|
+
/** The edge colour for a status: the field's own, or the status colour. */
|
|
25
|
+
export declare function fieldControlEdge(variant: string): string;
|
|
26
|
+
/** The field's surface, edge and states. */
|
|
27
|
+
export declare const FIELD_CONTROL_SURFACE = "focus-ring w-full min-w-0 cursor-pointer rounded-control border bg-input text-body transition-colors duration-(--duration-base) hover:bg-input-hover active:bg-input-active focus-visible:bg-input-focus focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed disabled:bg-input-disabled disabled:text-action-disabled-text";
|
|
28
|
+
/** What the trigger adds to the surface: one row, text and chevron apart. */
|
|
29
|
+
export declare const FIELD_CONTROL_TRIGGER = "focus-ring w-full min-w-0 cursor-pointer rounded-control border bg-input text-body transition-colors duration-(--duration-base) hover:bg-input-hover active:bg-input-active focus-visible:bg-input-focus focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed disabled:bg-input-disabled disabled:text-action-disabled-text flex items-center justify-between gap-2";
|
|
30
|
+
//# sourceMappingURL=field-control.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-control.d.ts","sourceRoot":"","sources":["../../../src/components/util/field-control.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAElD,MAAM,WAAW,uBAAuB;IACpC,kFAAkF;IAClF,GAAG,EAAE,MAAM,CAAC;IACZ,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,sEAAsE;IACtE,MAAM,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,gBAAgB,GAAG,uBAAuB,CAIhF;AAED,2EAA2E;AAC3E,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAQxD;AAED,4CAA4C;AAC5C,eAAO,MAAM,qBAAqB,qVACoT,CAAC;AAEvV,6EAA6E;AAC7E,eAAO,MAAM,qBAAqB,6XAAqE,CAAC"}
|
|
@@ -36,4 +36,10 @@ export declare const fieldMessageId: (fieldId: string) => string;
|
|
|
36
36
|
* that are rendered; `undefined` when there are none, so no empty attribute.
|
|
37
37
|
*/
|
|
38
38
|
export declare function fieldDescribedBy(fieldId: string, state: Pick<FieldMessageState, "showMessage" | "showHint">, own?: string | null): string | undefined;
|
|
39
|
+
/** What Textarea's `countText` is given: the characters typed, the limit, and how many are left. */
|
|
40
|
+
export interface TextareaCount {
|
|
41
|
+
length: number;
|
|
42
|
+
max: number;
|
|
43
|
+
remaining: number;
|
|
44
|
+
}
|
|
39
45
|
//# sourceMappingURL=field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/components/util/field.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,WAAW,iBAAiB;IAC9B,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MA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,EAAE,OAAO,CAAC;CACrB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAC9B,OAAmB,EACnB,OAAY,EACZ,IAAS,EACT,KAAU,GACb,EAAE,iBAAiB,GAAG,iBAAiB,CASvC;AAED,eAAO,MAAM,WAAW,GAAI,SAAS,MAAM,WAAsB,CAAC;AAClE,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,WAAyB,CAAC;AAExE;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC5B,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,IAAI,CAAC,iBAAiB,EAAE,aAAa,GAAG,UAAU,CAAC,EAC1D,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GACpB,MAAM,GAAG,SAAS,CAUpB;AAED,oGAAoG;AACpG,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -62,6 +62,8 @@ export declare function joinOverlayStack(panel: HTMLElement): {
|
|
|
62
62
|
depth: number;
|
|
63
63
|
leave: () => void;
|
|
64
64
|
};
|
|
65
|
+
/** Whether `panel` is the overlay on top of the stack: the one opened last. */
|
|
66
|
+
export declare function isTopOverlay(panel: HTMLElement): boolean;
|
|
65
67
|
/**
|
|
66
68
|
* Keeps a modal overlay in charge of the keyboard when focus has left it
|
|
67
69
|
* without a Tab: the focused control was disabled or removed and the browser
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focus-utils.d.ts","sourceRoot":"","sources":["../../../src/components/util/focus-utils.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAE1F,8EAA8E;AAC9E,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAC/C,eAAO,MAAM,eAAe,cAAc,CAAC;AAE3C,uFAAuF;AACvF,eAAO,MAAM,eAAe,8CAA0C,CAAC;AAEvE,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,WAAW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E,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,WAAW,GAAG,WAAW,EAAE,CAqB1E;AAED,oDAAoD;AACpD,eAAO,MAAM,qBAAqB,wBAAwB,CAAC;AAE3D;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAK5D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,IAAI,WAAW,EAAE,CAKlD;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,aAAa,GAAG,IAAI,CAiCpF;AAED,oGAAoG;AACpG,wBAAgB,SAAS,CAAC,SAAS,EAAE,WAAW,GAAG,MAAM,IAAI,CA2C5D;AASD,wBAAgB,SAAS,IAAI,IAAI,CAUhC;AAED;;;;GAIG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAqBlC;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAMlF;AAKD;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,IAAI,CAAC;CACrB,CAWA;AAED,+EAA+E;AAC/E,wBAAgB,YAAY,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAExD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,iBAAiB,CAC7B,SAAS,EAAE,WAAW,EACtB,OAAO,GAAE;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAA;CAAO,GAC5D,MAAM,IAAI,CAgCZ"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public types and pure helpers for `MapView`.
|
|
3
|
+
*
|
|
4
|
+
* Which markers become one count marker is worked out here, on pixels, so it
|
|
5
|
+
* can be tested without a browser or the map library. Nothing in this file
|
|
6
|
+
* imports MapLibre: `mapViewSupported()` can be asked before the library is
|
|
7
|
+
* loaded, and the library's own types stay out of the package's.
|
|
8
|
+
*/
|
|
9
|
+
export type MapPointKey = string | number;
|
|
10
|
+
/** A place on the map. */
|
|
11
|
+
export interface MapLngLat {
|
|
12
|
+
lng: number;
|
|
13
|
+
lat: number;
|
|
14
|
+
}
|
|
15
|
+
/** One marker. */
|
|
16
|
+
export interface MapPoint extends MapLngLat {
|
|
17
|
+
/** Stable identity. */
|
|
18
|
+
id: MapPointKey;
|
|
19
|
+
/** The marker's accessible name, written by the app. */
|
|
20
|
+
label: string;
|
|
21
|
+
/** Drawn filled, with a check mark; left out or false, round and outlined. */
|
|
22
|
+
checked?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/** Room kept clear at the edges of the map, in px: a sheet over its lower part is a `bottom`. */
|
|
25
|
+
export interface MapInset {
|
|
26
|
+
top?: number;
|
|
27
|
+
right?: number;
|
|
28
|
+
bottom?: number;
|
|
29
|
+
left?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Where the map stands:
|
|
33
|
+
* - `loading`: the library or the first style is on its way;
|
|
34
|
+
* - `ready`: the map has drawn;
|
|
35
|
+
* - `library-error`: the map library could not be loaded or started (no WebGL, a failed chunk);
|
|
36
|
+
* - `tiles-error`: the style could not be fetched, or tiles failed and none has arrived (offline).
|
|
37
|
+
*/
|
|
38
|
+
export type MapViewStatus = "loading" | "ready" | "library-error" | "tiles-error";
|
|
39
|
+
/** Payload of MapView's `onmove`: where the map is after a move has ended. */
|
|
40
|
+
export interface MapViewPosition {
|
|
41
|
+
center: MapLngLat;
|
|
42
|
+
zoom: number;
|
|
43
|
+
}
|
|
44
|
+
/** Every built-in string of MapView. Pass a partial object to `strings` to translate. */
|
|
45
|
+
export interface MapViewStrings {
|
|
46
|
+
/** Accessible name of the map. */
|
|
47
|
+
label: string;
|
|
48
|
+
/** Accessible name of a marker that stands for several points. */
|
|
49
|
+
cluster: (count: number) => string;
|
|
50
|
+
/** Accessible name of the dot at the viewer's own position. */
|
|
51
|
+
viewer: string;
|
|
52
|
+
}
|
|
53
|
+
export declare const MAP_VIEW_STRINGS: MapViewStrings;
|
|
54
|
+
/** A marker's tap area, in px. It does not grow with the text size. */
|
|
55
|
+
export declare const MAP_MARKER_TAP = 44;
|
|
56
|
+
/** The closest the opening fit zooms in, so one marker does not fill the screen: street level. */
|
|
57
|
+
export declare const MAP_FIT_MAX_ZOOM = 16;
|
|
58
|
+
/**
|
|
59
|
+
* Whether this browser can draw the map: it has WebGL. Safe on the server
|
|
60
|
+
* (false) and cheap: it does not load the map library.
|
|
61
|
+
*/
|
|
62
|
+
export declare function mapViewSupported(): boolean;
|
|
63
|
+
export interface MapPixel {
|
|
64
|
+
x: number;
|
|
65
|
+
y: number;
|
|
66
|
+
}
|
|
67
|
+
/** What is drawn: one point, or several under one count marker. */
|
|
68
|
+
export interface MapMarker<T> {
|
|
69
|
+
/** The key of its first point in the list: the marker keeps its element, and the focus, while others join or leave it. */
|
|
70
|
+
key: MapPointKey;
|
|
71
|
+
/** Its points, in the order of the list. */
|
|
72
|
+
points: T[];
|
|
73
|
+
/** Place in the list of its first point: the marker's place in the tab order. */
|
|
74
|
+
order: number;
|
|
75
|
+
/** Where it is drawn: the middle of its points. */
|
|
76
|
+
x: number;
|
|
77
|
+
y: number;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Groups points whose tap areas overlap into one marker, and goes on until no
|
|
81
|
+
* two markers overlap: a count marker sits in the middle of its points, which
|
|
82
|
+
* may bring it over a neighbour. Markers come back in the order of the list,
|
|
83
|
+
* each at the place of its first point.
|
|
84
|
+
*
|
|
85
|
+
* `pixels[i]` is where `points[i]` is on the screen. The result depends only
|
|
86
|
+
* on how far apart the points are, so a pan changes nothing and a pinch splits
|
|
87
|
+
* markers as they stop overlapping.
|
|
88
|
+
*/
|
|
89
|
+
export declare function clusterMarkers<T extends {
|
|
90
|
+
id: MapPointKey;
|
|
91
|
+
}>(points: readonly T[], pixels: readonly MapPixel[], tap?: number): MapMarker<T>[];
|
|
92
|
+
/** The corners of the box around `points`, or null with none. */
|
|
93
|
+
export declare function boundsOf(points: readonly MapLngLat[]): [[number, number], [number, number]] | null;
|
|
94
|
+
/** Changes when a point is added, taken away or moved, and not when only its name or its check does. */
|
|
95
|
+
export declare function pointsSignature(points: readonly MapPoint[]): string;
|
|
96
|
+
/**
|
|
97
|
+
* How far from the middle of the map the middle of the area inside `inset`
|
|
98
|
+
* is, in px: where a point is put so that it is in view above a sheet.
|
|
99
|
+
*/
|
|
100
|
+
export declare function insetOffset(inset: MapInset | undefined): MapPixel;
|
|
101
|
+
/** The words of an attribution the style carries as HTML, as plain text. */
|
|
102
|
+
export declare function attributionText(html: string): string;
|
|
103
|
+
/**
|
|
104
|
+
* The part of MapLibre GL JS that MapView uses, written out here so that the
|
|
105
|
+
* package's types do not need the library's.
|
|
106
|
+
*/
|
|
107
|
+
export interface MapLibreMapLike {
|
|
108
|
+
on(type: string, listener: (event: any) => void): unknown;
|
|
109
|
+
off(type: string, listener: (event: any) => void): unknown;
|
|
110
|
+
remove(): void;
|
|
111
|
+
resize(): unknown;
|
|
112
|
+
jumpTo(options: {
|
|
113
|
+
center?: [number, number] | MapLngLat;
|
|
114
|
+
zoom?: number;
|
|
115
|
+
}): unknown;
|
|
116
|
+
cameraForBounds(bounds: [[number, number], [number, number]], options?: {
|
|
117
|
+
padding?: number;
|
|
118
|
+
maxZoom?: number;
|
|
119
|
+
}): {
|
|
120
|
+
center?: unknown;
|
|
121
|
+
zoom?: number;
|
|
122
|
+
} | undefined;
|
|
123
|
+
project(lngLat: [number, number]): MapPixel;
|
|
124
|
+
unproject(point: [number, number]): MapLngLat;
|
|
125
|
+
getCenter(): MapLngLat;
|
|
126
|
+
getZoom(): number;
|
|
127
|
+
setStyle(style: string | object): unknown;
|
|
128
|
+
getStyle(): {
|
|
129
|
+
sources?: Record<string, {
|
|
130
|
+
attribution?: string;
|
|
131
|
+
}>;
|
|
132
|
+
} | undefined;
|
|
133
|
+
getSource?(id: string): {
|
|
134
|
+
attribution?: string;
|
|
135
|
+
} | undefined;
|
|
136
|
+
getCanvas(): HTMLCanvasElement;
|
|
137
|
+
touchZoomRotate?: {
|
|
138
|
+
disableRotation(): void;
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
export interface MapLibreLike {
|
|
142
|
+
Map: new (options: Record<string, unknown>) => MapLibreMapLike;
|
|
143
|
+
}
|
|
144
|
+
//# sourceMappingURL=map-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map-view.d.ts","sourceRoot":"","sources":["../../../src/components/util/map-view.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1C,0BAA0B;AAC1B,MAAM,WAAW,SAAS;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACf;AAED,kBAAkB;AAClB,MAAM,WAAW,QAAS,SAAQ,SAAS;IACvC,uBAAuB;IACvB,EAAE,EAAE,WAAW,CAAC;IAChB,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,iGAAiG;AACjG,MAAM,WAAW,QAAQ;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,OAAO,GAAG,eAAe,GAAG,aAAa,CAAC;AAElF,8EAA8E;AAC9E,MAAM,WAAW,eAAe;IAC5B,MAAM,EAAE,SAAS,CAAC;IAClB,IAAI,EAAE,MAAM,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,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAC1C,QAAQ,IAAI;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;YAAE,WAAW,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAA;KAAE,GAAG,SAAS,CAAC;IAC/E,SAAS,CAAC,CAAC,EAAE,EAAE,MAAM,GAAG;QAAE,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAC7D,SAAS,IAAI,iBAAiB,CAAC;IAC/B,eAAe,CAAC,EAAE;QAAE,eAAe,IAAI,IAAI,CAAA;KAAE,CAAC;CACjD;AAED,MAAM,WAAW,YAAY;IACzB,GAAG,EAAE,KAAK,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,eAAe,CAAC;CAClE"}
|
|
@@ -24,7 +24,20 @@ export interface Photo {
|
|
|
24
24
|
height: number;
|
|
25
25
|
/** Shown under the photo in the viewer. */
|
|
26
26
|
caption?: string;
|
|
27
|
+
/**
|
|
28
|
+
* A second, quieter line under the caption in the viewer: who took the
|
|
29
|
+
* photo, when. It is never folded away with a long caption.
|
|
30
|
+
*/
|
|
31
|
+
credit?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Where a photo that is being added stands, drawn on its tile in the grid:
|
|
34
|
+
* `uploading` (on its way) or `error` (it did not arrive). Left out: saved.
|
|
35
|
+
*/
|
|
36
|
+
status?: PhotoStatus;
|
|
37
|
+
/** How far an `uploading` photo has come, from 0 to 1. Without it the tile shows a spinner. */
|
|
38
|
+
progress?: number;
|
|
27
39
|
}
|
|
40
|
+
export type PhotoStatus = "uploading" | "error";
|
|
28
41
|
export declare function photoKey(photo: Photo): PhotoKey;
|
|
29
42
|
/** Payload of PhotoGrid's `onselect`. */
|
|
30
43
|
export interface PhotoGridSelectDetail {
|
|
@@ -47,6 +60,12 @@ export interface PhotoGridStrings {
|
|
|
47
60
|
openPhoto: (name: string) => string;
|
|
48
61
|
/** How to get around by keyboard. Read once when focus enters the grid, and shown while it has keyboard focus. */
|
|
49
62
|
keyboardHint: string;
|
|
63
|
+
/** Added to the name of a photo whose `status` is `uploading`. */
|
|
64
|
+
uploading: string;
|
|
65
|
+
/** Added to the name of a photo whose `status` is `error`. */
|
|
66
|
+
uploadFailed: string;
|
|
67
|
+
/** Name of the button on a failed photo that tries again. */
|
|
68
|
+
retryUpload: (name: string) => string;
|
|
50
69
|
}
|
|
51
70
|
export declare const PHOTO_GRID_STRINGS: PhotoGridStrings;
|
|
52
71
|
/** What the user did to close the viewer. `swipe` is a swipe down on the photo. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"photo.d.ts","sourceRoot":"","sources":["../../../src/components/util/photo.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvC,oEAAoE;AACpE,MAAM,WAAW,KAAK;IAClB,8GAA8G;IAC9G,EAAE,CAAC,EAAE,QAAQ,CAAC;IACd,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,sGAAsG;IACtG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yDAAyD;IACzD,GAAG,EAAE,MAAM,CAAC;IACZ,qGAAqG;IACrG,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"photo.d.ts","sourceRoot":"","sources":["../../../src/components/util/photo.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvC,oEAAo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G;AACH,wBAAgB,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE/C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** Types and pure helpers for `Progress`. Kept out of the component so they can be tested without a DOM. */
|
|
2
|
+
/** Every built-in string. Pass a partial object to `strings` to translate. */
|
|
3
|
+
export interface ProgressStrings {
|
|
4
|
+
/**
|
|
5
|
+
* The count of a segmented bar, as its accessible value and as the
|
|
6
|
+
* read-out beside the label: "4 of 19". `value` is the number of filled
|
|
7
|
+
* segments.
|
|
8
|
+
*/
|
|
9
|
+
valueText: (value: number, max: number) => string;
|
|
10
|
+
}
|
|
11
|
+
export declare const PROGRESS_STRINGS: ProgressStrings;
|
|
12
|
+
/** The fewest and the most segments a segmented bar is drawn with. */
|
|
13
|
+
export declare const SEGMENTS_MIN = 2;
|
|
14
|
+
export declare const SEGMENTS_MAX = 24;
|
|
15
|
+
/** Whether `max` can be drawn as separate segments: a whole number from 2 to 24. */
|
|
16
|
+
export declare function canSegment(max: number): boolean;
|
|
17
|
+
/** Filled segments: `value` rounded down, held within 0..max; 0 for something that is not a number. */
|
|
18
|
+
export declare function filledSegments(value: number, max: number): number;
|
|
19
|
+
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/util/progress.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAE5G,8EAA8E;AAC9E,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CACrD;AAED,eAAO,MAAM,gBAAgB,EAAE,eAE9B,CAAC;AAEF,sEAAsE;AACtE,eAAO,MAAM,YAAY,IAAI,CAAC;AAC9B,eAAO,MAAM,YAAY,KAAK,CAAC;AAE/B,oFAAoF;AACpF,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAE/C;AAED,uGAAuG;AACvG,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAGjE"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether content is under a bar (D123): the one thing a bar needs to know to
|
|
3
|
+
* choose between flush with the page and glass.
|
|
4
|
+
*
|
|
5
|
+
* Pure DOM, no Svelte. `AppShell` uses it on its scroller and shares the
|
|
6
|
+
* result with the bars inside it; a bar on its own uses it on its nearest
|
|
7
|
+
* scroll parent, or on the window.
|
|
8
|
+
*/
|
|
9
|
+
/** `scrollEdge` on a bar: follow the scroll position, or force the glass on or off. */
|
|
10
|
+
export type ScrollEdgeMode = "auto" | "always" | "never";
|
|
11
|
+
export interface ScrollEdge {
|
|
12
|
+
/** Scrolled away from the start: content is under a bar at the top. */
|
|
13
|
+
top: boolean;
|
|
14
|
+
/** Not at the end: content is under a bar at the bottom. */
|
|
15
|
+
bottom: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** The edges for a scroll position, clamped against rubber-banding past either end. */
|
|
18
|
+
export declare function measureScrollEdge(position: number, scrollable: number, topThreshold?: number): ScrollEdge;
|
|
19
|
+
/** The value a bar writes as `data-scrolled-under`: the mode, or what the scroll position says. */
|
|
20
|
+
export declare function resolveScrolledUnder(mode: ScrollEdgeMode | undefined, auto: boolean): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Reports `{ top, bottom }` for `container` (null for the window): once on
|
|
23
|
+
* start, then whenever either changes. It listens to `scroll` (passive) and,
|
|
24
|
+
* where `ResizeObserver` exists, to the size of the container and of what is
|
|
25
|
+
* in it, since content that grows or shrinks moves the end. Returns the
|
|
26
|
+
* cleanup. Call it in the browser.
|
|
27
|
+
*
|
|
28
|
+
* `topThreshold` (px, default 0) is how far it has to scroll before `top` is
|
|
29
|
+
* true: a bar with a large title is only over content once the large row has
|
|
30
|
+
* gone under it. Call it again to change it.
|
|
31
|
+
*/
|
|
32
|
+
export declare function watchScrollEdge(container: HTMLElement | null, onChange: (edge: ScrollEdge) => void, topThreshold?: number): () => void;
|
|
33
|
+
//# sourceMappingURL=scroll-edge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scroll-edge.d.ts","sourceRoot":"","sources":["../../../src/components/util/scroll-edge.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,uFAAuF;AACvF,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEzD,MAAM,WAAW,UAAU;IACvB,uEAAuE;IACvE,GAAG,EAAE,OAAO,CAAC;IACb,4DAA4D;IAC5D,MAAM,EAAE,OAAO,CAAC;CACnB;AAKD,uFAAuF;AACvF,wBAAgB,iBAAiB,CAC7B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,YAAY,SAAI,GACjB,UAAU,CAIZ;AAED,mGAAmG;AACnG,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAI7F;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC3B,SAAS,EAAE,WAAW,GAAG,IAAI,EAC7B,QAAQ,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,EACpC,YAAY,SAAI,GACjB,MAAM,IAAI,CAkDZ"}
|
|
@@ -25,12 +25,36 @@ export interface SheetDragTargets {
|
|
|
25
25
|
handleZone: HTMLElement;
|
|
26
26
|
/**
|
|
27
27
|
* The scrolling content. A touch that starts here scrolls it; only a
|
|
28
|
-
* downward swipe that begins with the content at its top moves the sheet
|
|
28
|
+
* downward swipe that begins with the content at its top moves the sheet,
|
|
29
|
+
* and not one that begins on a box inside it that scrolls itself or on
|
|
30
|
+
* something that handles its own gesture: marked `data-sheet-no-drag`,
|
|
31
|
+
* a range input, or with a `touch-action` that gives up vertical
|
|
32
|
+
* panning (`contentTakesTouch`). A swipe that begins sideways stays
|
|
33
|
+
* sideways and never moves the sheet.
|
|
29
34
|
*/
|
|
30
35
|
scroller?: HTMLElement | null;
|
|
31
36
|
}
|
|
32
37
|
/** Movement under this many px is a press, not a drag. */
|
|
33
38
|
export declare const DRAG_SLOP = 6;
|
|
39
|
+
/**
|
|
40
|
+
* Movement, on either axis, after which a touch in the content has an axis:
|
|
41
|
+
* more across than down is sideways (a carousel, a row that scrolls, a
|
|
42
|
+
* swipeable item), and stays so until the finger lifts.
|
|
43
|
+
*/
|
|
44
|
+
export declare const AXIS_SLOP = 8;
|
|
45
|
+
/**
|
|
46
|
+
* Whether a touch that begins on `target` belongs to the content and not to the
|
|
47
|
+
* sheet: it started on something that is dragged itself (`OWN_DRAG`), or it
|
|
48
|
+
* has, between it and the sheet's `scroller`, a box that scrolls on the y axis
|
|
49
|
+
* or one whose `touch-action` leaves vertical panning to the page's own code
|
|
50
|
+
* (`ownsVerticalGesture`: a map, a canvas, a drawing pad, a slider).
|
|
51
|
+
* A box that can scroll keeps the gesture whether it is at its top or not: a
|
|
52
|
+
* drag that sometimes scrolls a list and sometimes closes the sheet cannot be
|
|
53
|
+
* predicted, and the list does not hand over what it cannot use
|
|
54
|
+
* (`overscroll-contain`). The scroller itself is not asked here; it is the
|
|
55
|
+
* sheet's own content, and hands a pull down at its top to the sheet.
|
|
56
|
+
*/
|
|
57
|
+
export declare function contentTakesTouch(target: EventTarget | null, scroller: HTMLElement): boolean;
|
|
34
58
|
/**
|
|
35
59
|
* When a pointer or touch event happened: its own `timeStamp`, which is when
|
|
36
60
|
* the finger moved. The time the handler runs is later by however busy the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet-drag.d.ts","sourceRoot":"","sources":["../../../src/components/util/sheet-drag.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,WAAW,kBAAkB;IAC/B,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,OAAO,C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AQ,EAAE,WAAW,GAAG,OAAO,CAY5F;AAKD;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAG3C;AAKD;;;GAGG;AACH,wBAAgB,qBAAqB;aAIpB,MAAM,QAAQ,MAAM;WAGtB,MAAM,QAAQ,MAAM;gBAIf,MAAM;EAYzB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC3B,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,gBAAgB,EAC1C,SAAS,EAAE,kBAAkB,GAC9B,MAAM,IAAI,CAsLZ;AAED,4FAA4F;AAC5F,eAAO,MAAM,cAAc,MAAM,CAAC;AAElC,oFAAoF;AACpF,wBAAgB,oBAAoB,IAAI,OAAO,CAM9C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Every built-in string. Pass a partial object to `strings` to translate. */
|
|
2
|
+
export interface SkeletonStrings {
|
|
3
|
+
/** The name of the loading status, for a lone `Skeleton` and for a `SkeletonGroup`. */
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const DEFAULT_SKELETON_STRINGS: SkeletonStrings;
|
|
7
|
+
/** The fewest and the most lines a text `Skeleton` draws with `lines`. */
|
|
8
|
+
export declare const SKELETON_LINES_MAX = 20;
|
|
9
|
+
/** `lines` as a whole number from 1 to 20, or 0 for "not a paragraph" (unset, below 1, not a number). */
|
|
10
|
+
export declare function skeletonLineCount(lines: number | undefined): number;
|
|
11
|
+
/** For `SkeletonGroup`: marks everything below it as pieces of one status. Call while the component initialises. */
|
|
12
|
+
export declare function provideSkeletonGroup(): void;
|
|
13
|
+
/** For `Skeleton`: whether it sits under a `SkeletonGroup`. Call while the component initialises. */
|
|
14
|
+
export declare function inSkeletonGroup(): boolean;
|
|
15
|
+
//# sourceMappingURL=skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/util/skeleton.ts"],"names":[],"mappings":"AAGA,8EAA8E;AAC9E,MAAM,WAAW,eAAe;IAC5B,uFAAuF;IACvF,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,wBAAwB,EAAE,eAEtC,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,yGAAyG;AACzG,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAGnE;AAID,oHAAoH;AACpH,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAED,qGAAqG;AACrG,wBAAgB,eAAe,IAAI,OAAO,CAEzC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Measuring for the sliding indicator of Tabs and SegmentedControl. The
|
|
3
|
+
* component paints its selected item itself until a box has been measured, so
|
|
4
|
+
* a server render, a page that has not hydrated and an engine that cannot
|
|
5
|
+
* measure all keep the static look.
|
|
6
|
+
*/
|
|
7
|
+
export interface IndicatorBox {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The `item`'s box in the coordinates an absolutely positioned child of
|
|
15
|
+
* `container` uses: from the container's padding box, plus what the container
|
|
16
|
+
* has scrolled (so an indicator inside a scrolling list stays on its item).
|
|
17
|
+
* Measured as physical boxes, so a right-to-left layout needs nothing extra.
|
|
18
|
+
* Null where nothing can be measured (no layout, or the item is not shown).
|
|
19
|
+
*/
|
|
20
|
+
export declare function measureIndicator(container: HTMLElement, item: HTMLElement): IndicatorBox | null;
|
|
21
|
+
/** Calls `onChange` when any of the `targets` changes size; a no-op without ResizeObserver. */
|
|
22
|
+
export declare function observeSizes(targets: Array<Element | null | undefined>, onChange: () => void): () => void;
|
|
23
|
+
/** Runs `callback` after the next frame; the timer stands in where there are no frames. */
|
|
24
|
+
export declare function afterFrame(callback: () => void): () => void;
|
|
25
|
+
//# sourceMappingURL=sliding-indicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sliding-indicator.d.ts","sourceRoot":"","sources":["../../../src/components/util/sliding-indicator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,YAAY;IACzB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,GAAG,YAAY,GAAG,IAAI,CAU/F;AAED,+FAA+F;AAC/F,wBAAgB,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAKzG;AAED,2FAA2F;AAC3F,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAO3D"}
|