@cwellt_software/cwellt-reactjs-lib 1.4.15 → 1.5.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/dist/content/icons/new-cw-icons/NewCwIcons.json +1 -1
- package/dist/content/icons/new-cw-icons/css/new-cw-icons.css +260 -824
- package/dist/content/icons/new-cw-icons/fonts/NewCwIcons.woff +0 -0
- package/dist/index.cjs.js +355 -203
- package/dist/index.css +2 -2
- package/dist/index.d.ts +133 -48
- package/dist/index.es.js +351 -202
- package/dist/src/components/control/action/search/CwSearch.d.ts +2 -0
- package/dist/src/components/control/action/search/CwSearch.d.ts.map +1 -1
- package/dist/src/components/control/action/search/searchKeyboardNavigation.d.ts +35 -0
- package/dist/src/components/control/action/search/searchKeyboardNavigation.d.ts.map +1 -0
- package/dist/src/components/control/choice/nav-menu/CwNavMenu.d.ts +78 -0
- package/dist/src/components/control/choice/nav-menu/CwNavMenu.d.ts.map +1 -0
- package/dist/src/components/control/choice/nav-menu/filterNavItems.d.ts +9 -0
- package/dist/src/components/control/choice/nav-menu/filterNavItems.d.ts.map +1 -0
- package/dist/src/components/control/choice/nav-menu/sortNavItems.d.ts +9 -0
- package/dist/src/components/control/choice/nav-menu/sortNavItems.d.ts.map +1 -0
- package/dist/src/components/control/input/file/CwFileUploadMultiple.d.ts +12 -0
- package/dist/src/components/control/input/file/CwFileUploadMultiple.d.ts.map +1 -1
- package/dist/src/components/control/input/image/CwInputImage.d.ts +17 -2
- package/dist/src/components/control/input/image/CwInputImage.d.ts.map +1 -1
- package/dist/src/components/display/graphics/icon/CwIcon.d.ts +1 -1
- package/dist/src/components/display/graphics/icon/CwIcon.d.ts.map +1 -1
- package/dist/src/components/display/graphics/loading/CwLoading.d.ts +3 -14
- package/dist/src/components/display/graphics/loading/CwLoading.d.ts.map +1 -1
- package/dist/src/components/display/graphics/loading/loadingConfig.d.ts +16 -0
- package/dist/src/components/display/graphics/loading/loadingConfig.d.ts.map +1 -0
- package/dist/src/index.d.ts +4 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/playground/PlaygroundApp.d.ts.map +1 -1
- package/dist/src/playground/pages/CwFileUploadMultiplePage.d.ts +3 -0
- package/dist/src/playground/pages/CwFileUploadMultiplePage.d.ts.map +1 -0
- package/dist/src/playground/pages/CwInputImagePage.d.ts.map +1 -1
- package/dist/src/playground/pages/CwNavMenuPage.d.ts +3 -0
- package/dist/src/playground/pages/CwNavMenuPage.d.ts.map +1 -0
- package/dist/src/playground/pages/IconLibraryPage.d.ts +3 -0
- package/dist/src/playground/pages/IconLibraryPage.d.ts.map +1 -0
- package/dist/src/playground/pages/LoadingPage.d.ts +3 -0
- package/dist/src/playground/pages/LoadingPage.d.ts.map +1 -0
- package/dist/src/playground/pages/SelectorsPage.d.ts.map +1 -1
- package/dist/test/components/control/action/search/searchKeyboardNavigation.test.d.ts +2 -0
- package/dist/test/components/control/action/search/searchKeyboardNavigation.test.d.ts.map +1 -0
- package/dist/test/components/control/choice/nav-menu/filterNavItems.test.d.ts +2 -0
- package/dist/test/components/control/choice/nav-menu/filterNavItems.test.d.ts.map +1 -0
- package/dist/test/components/control/choice/nav-menu/sortNavItems.test.d.ts +2 -0
- package/dist/test/components/control/choice/nav-menu/sortNavItems.test.d.ts.map +1 -0
- package/dist/test/components/control/input/file/fileMatchesAccept.test.d.ts +2 -0
- package/dist/test/components/control/input/file/fileMatchesAccept.test.d.ts.map +1 -0
- package/dist/test/components/control/input/image/readImageFileAsDataUrl.test.d.ts +2 -0
- package/dist/test/components/control/input/image/readImageFileAsDataUrl.test.d.ts.map +1 -0
- package/dist/test/components/display/graphics/loading/CwLoading.test.d.ts +2 -0
- package/dist/test/components/display/graphics/loading/CwLoading.test.d.ts.map +1 -0
- package/package.json +1 -2
|
@@ -25,6 +25,8 @@ export interface CwSearchInputProps extends HTMLProps<HTMLDivElement> {
|
|
|
25
25
|
error?: boolean;
|
|
26
26
|
/** Custom renderer for each suggestion item. Receives the matching `CwSelectList` entry. */
|
|
27
27
|
renderOption?: (option: CwSelectList) => React.ReactNode;
|
|
28
|
+
/** Focuses the internal `<input>` on mount when `true`. */
|
|
29
|
+
autoFocus?: boolean;
|
|
28
30
|
}
|
|
29
31
|
/**
|
|
30
32
|
* Text input with a live-filtered suggestion dropdown backed by a local `CwSelectList` array.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwSearch.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/search/CwSearch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"CwSearch.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/search/CwSearch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAsC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAIvE,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAC/F,OAAO,EAAW,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAW,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAGpF,uCAAuC;AACvC,MAAM,WAAW,kBAAmB,SAAQ,SAAS,CAAC,cAAc,CAAC;IACpE,oFAAoF;IACpF,UAAU,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAChC,iDAAiD;IACjD,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,oDAAoD;IACpD,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,uDAAuD;IACvD,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,gEAAgE;IAChE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oDAAoD;IACpD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,4FAA4F;IAC5F,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,KAAK,CAAC,SAAS,CAAC;IACzD,2DAA2D;IAC3D,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,qBAuNtF"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure keyboard-navigation resolver shared by the `CwSearchInput` combobox.
|
|
3
|
+
* Kept side-effect-free so the arrow/home/end/enter/escape behaviour can be unit
|
|
4
|
+
* tested without a DOM (the library's vitest runs with `environment: "node"`).
|
|
5
|
+
*/
|
|
6
|
+
/** Action the combobox should perform in response to a key press. */
|
|
7
|
+
export type SearchKeyAction =
|
|
8
|
+
/** Move the highlight to `index` (arrow / home / end). */
|
|
9
|
+
{
|
|
10
|
+
type: "move";
|
|
11
|
+
index: number;
|
|
12
|
+
}
|
|
13
|
+
/** Commit the option at `index` (Enter on a highlighted row). */
|
|
14
|
+
| {
|
|
15
|
+
type: "select";
|
|
16
|
+
index: number;
|
|
17
|
+
}
|
|
18
|
+
/** Close the dropdown and reset the highlight (Escape). */
|
|
19
|
+
| {
|
|
20
|
+
type: "close";
|
|
21
|
+
}
|
|
22
|
+
/** Key is not handled — let it propagate untouched. */
|
|
23
|
+
| {
|
|
24
|
+
type: "none";
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Resolves a key press against the current highlight into a {@link SearchKeyAction}.
|
|
28
|
+
* Arrow navigation wraps around; `Enter` selects only when a valid row is highlighted.
|
|
29
|
+
*
|
|
30
|
+
* @param key `KeyboardEvent.key` value.
|
|
31
|
+
* @param currentIndex Currently highlighted option index (`-1` = none).
|
|
32
|
+
* @param optionsLength Number of options currently in the dropdown.
|
|
33
|
+
*/
|
|
34
|
+
export declare function resolveSearchKeyAction(key: string, currentIndex: number, optionsLength: number): SearchKeyAction;
|
|
35
|
+
//# sourceMappingURL=searchKeyboardNavigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchKeyboardNavigation.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/search/searchKeyboardNavigation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,qEAAqE;AACrE,MAAM,MAAM,eAAe;AAC1B,0DAA0D;AACxD;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE;AACjC,iEAAiE;GAC/D;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE;AACnC,2DAA2D;GACzD;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE;AACnB,uDAAuD;GACrD;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpB;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACrC,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,MAAM,GACnB,eAAe,CAqBjB"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export interface CwNavItem {
|
|
3
|
+
/** Stable id, also the React key */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Resolved display text — the consumer owns i18n / tenant naming */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Link target for leaves; groups may omit it */
|
|
8
|
+
href?: string;
|
|
9
|
+
/** Resolved secondary text — not rendered by the menu, but searched alongside label and href */
|
|
10
|
+
description?: string;
|
|
11
|
+
/** CW icon name */
|
|
12
|
+
icon?: string;
|
|
13
|
+
/** Non-empty children make this item a collapsible group */
|
|
14
|
+
children?: CwNavItem[];
|
|
15
|
+
}
|
|
16
|
+
/** Remaining props land on the <nav> — `data-*` (CBT walkthrough targets), `aria-*`, `data-testid`. */
|
|
17
|
+
export interface CwNavMenuProps extends Omit<HTMLAttributes<HTMLElement>, "children"> {
|
|
18
|
+
/** Already permission-filtered and ordered by the consumer */
|
|
19
|
+
items: CwNavItem[];
|
|
20
|
+
/** Renders placeholder rows instead of the tree */
|
|
21
|
+
loading?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Router-agnostic active detection; nothing is highlighted when omitted. Injected because the
|
|
24
|
+
* library cannot depend on a router (WinOps: react-router-dom 6.28, Improve: a different one,
|
|
25
|
+
* playground: none) — the consumer answers "is this the current page?", the component owns the
|
|
26
|
+
* highlight. Revisitable: if the apps ever converge on one router, this could move inside.
|
|
27
|
+
*/
|
|
28
|
+
isActive?: (item: CwNavItem) => boolean;
|
|
29
|
+
/** Inject a router link component; defaults to a plain <a href> */
|
|
30
|
+
renderLink?: (item: CwNavItem, children: ReactNode) => ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* Show a trailing chevron on **top-level** group rows. Nested groups (level 2+) always show it
|
|
33
|
+
* and ignore this flag — don't normalise the two cases: a level-1 group is already marked by
|
|
34
|
+
* its heavier type and [open] background, while a nested group is otherwise indistinguishable
|
|
35
|
+
* from its sibling leaf links.
|
|
36
|
+
*/
|
|
37
|
+
showExpandIndicator?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Filters the tree through `filterNavItems`: a group survives when it or any descendant matches.
|
|
40
|
+
* Quoted `"phrases"` match the label; loose words match label + description + href. Blank or
|
|
41
|
+
* omitted means no filtering.
|
|
42
|
+
*/
|
|
43
|
+
search?: string;
|
|
44
|
+
/** Shown only while a search is active and nothing matched — an empty `items` still renders nothing */
|
|
45
|
+
emptyMessage?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Sorts the **top level** alphabetically; nested lists keep the consumer's order. Off by default.
|
|
48
|
+
* Level-1-only is deliberate: a long list of modules is hard to scan, while the pages inside one
|
|
49
|
+
* are ordered on purpose.
|
|
50
|
+
*/
|
|
51
|
+
sortAlphabetically?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Rows for the sticky favourites section above the tree. Omit it and no section renders. The
|
|
54
|
+
* library owns the disclosure and its look; the rows are yours, so their markup, secondary text
|
|
55
|
+
* and any `data-*` stay under your control.
|
|
56
|
+
*/
|
|
57
|
+
favoritesSlot?: ReactNode;
|
|
58
|
+
/** Header for the favourites section. Pass your own translation. */
|
|
59
|
+
favoritesLabel?: string;
|
|
60
|
+
/** Attributes for the favourites `<details>` — `data-tour`, or `open` to override the default. */
|
|
61
|
+
favoritesProps?: HTMLAttributes<HTMLDetailsElement>;
|
|
62
|
+
/**
|
|
63
|
+
* Marks a leaf as favourited with a star. Indicator only — toggling stays with the consumer
|
|
64
|
+
* (a context menu on the link, for instance), so no row gains a control it didn't have.
|
|
65
|
+
*/
|
|
66
|
+
isFavorite?: (item: CwNavItem) => boolean;
|
|
67
|
+
/**
|
|
68
|
+
* An app-provided section between the favourites and the tree — WinOps's external "Places" links,
|
|
69
|
+
* for instance. Kept out of `items` on purpose: it is a parallel list, so it is not filtered by
|
|
70
|
+
* `search` or reordered by `sortAlphabetically`.
|
|
71
|
+
*
|
|
72
|
+
* A `<details>` placed here is styled as a top-level section automatically.
|
|
73
|
+
*/
|
|
74
|
+
beforeTreeSlot?: ReactNode;
|
|
75
|
+
}
|
|
76
|
+
/** Sizes only its own icons — content injected via `renderLink` is styled by the consumer. */
|
|
77
|
+
export declare function CwNavMenu({ items, loading, isActive, renderLink, showExpandIndicator, search, emptyMessage, sortAlphabetically, favoritesSlot, favoritesLabel, favoritesProps, isFavorite, beforeTreeSlot, className, ...navProps }: CwNavMenuProps): import("react").JSX.Element;
|
|
78
|
+
//# sourceMappingURL=CwNavMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwNavMenu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/nav-menu/CwNavM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EAAE,SAAS,KAAK,OAAO,CAAC;IAC1C;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;CAC3B;AAQD,8FAA8F;AAC9F,wBAAgB,SAAS,CAAC,EACzB,KAAK,EACL,OAAe,EACf,QAAQ,EACR,UAA8B,EAC9B,mBAA2B,EAC3B,MAAM,EACN,YAAY,EACZ,kBAA0B,EAC1B,aAAa,EACb,cAA4B,EAC5B,cAAc,EACd,UAAU,EACV,cAAc,EACd,SAAS,EACT,GAAG,QAAQ,EACX,EAAE,cAAc,+BAmEhB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CwNavItem } from "./CwNavMenu";
|
|
2
|
+
/**
|
|
3
|
+
* Filters a nav tree by a search string, keeping a group whose descendants match.
|
|
4
|
+
*
|
|
5
|
+
* Supports `"quoted phrases"` (must appear in the label) alongside loose words (any field) — this is
|
|
6
|
+
* behaviour users are told about, so don't simplify it.
|
|
7
|
+
*/
|
|
8
|
+
export declare function filterNavItems(items: CwNavItem[], search?: string): CwNavItem[];
|
|
9
|
+
//# sourceMappingURL=filterNavItems.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filterNavItems.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/nav-menu/filterNavItems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAoBxC;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,EAAE,CAmC/E"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CwNavItem } from "./CwNavMenu";
|
|
2
|
+
/**
|
|
3
|
+
* Sorts the top level alphabetically, leaving every nested list in the order the consumer gave.
|
|
4
|
+
*
|
|
5
|
+
* Deliberately level 1 only: this exists because a long list of modules is hard to scan, while the
|
|
6
|
+
* pages inside a module are ordered on purpose. Returns the input untouched when not sorting.
|
|
7
|
+
*/
|
|
8
|
+
export declare function sortNavItems(items: CwNavItem[], alphabetically?: boolean): CwNavItem[];
|
|
9
|
+
//# sourceMappingURL=sortNavItems.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sortNavItems.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/nav-menu/sortNavItems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,EAAE,CAItF"}
|
|
@@ -7,6 +7,7 @@ export interface CwFileUploadMultipleLabels {
|
|
|
7
7
|
allTypesAccepted: string;
|
|
8
8
|
changeFile: string;
|
|
9
9
|
clearAll: string;
|
|
10
|
+
upload: string;
|
|
10
11
|
addMoreFiles: string;
|
|
11
12
|
filesSelected: (count: number) => string;
|
|
12
13
|
fileTooLarge: (name: string, maxSize: number) => string;
|
|
@@ -14,6 +15,13 @@ export interface CwFileUploadMultipleLabels {
|
|
|
14
15
|
invalidMimeType: (name: string, types: string) => string;
|
|
15
16
|
alreadySelected: (name: string) => string;
|
|
16
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Checks a file against an `accept` string (comma-separated tokens). A token can be a dotted
|
|
20
|
+
* extension (".pdf"), an exact MIME type ("application/pdf"), a wildcard MIME ("image" + slash + "star"),
|
|
21
|
+
* or a bare "star" / "star-slash-star" for anything. Returns true if the file matches ANY token
|
|
22
|
+
* (or if `accept` is empty).
|
|
23
|
+
*/
|
|
24
|
+
export declare function fileMatchesAccept(fileName: string, fileType: string, accept: string): boolean;
|
|
17
25
|
interface CwFileUploadMultipleProps {
|
|
18
26
|
name?: string;
|
|
19
27
|
accept?: string;
|
|
@@ -22,10 +30,14 @@ interface CwFileUploadMultipleProps {
|
|
|
22
30
|
allowedTypes?: string[];
|
|
23
31
|
onSelect?: (files: FileList | null) => void;
|
|
24
32
|
onError?: (error: string) => void;
|
|
33
|
+
onConfirm?: (files: FileList) => void;
|
|
34
|
+
confirmLabel?: string;
|
|
35
|
+
confirmDisabled?: boolean;
|
|
25
36
|
className?: string;
|
|
26
37
|
disabled?: boolean;
|
|
27
38
|
hideClearAll?: boolean;
|
|
28
39
|
initialFileName?: string;
|
|
40
|
+
statusText?: string;
|
|
29
41
|
labels?: Partial<CwFileUploadMultipleLabels>;
|
|
30
42
|
}
|
|
31
43
|
export declare function CwFileUploadMultiple(fileUploadProps: React.PropsWithChildren<CwFileUploadMultipleProps>): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwFileUploadMultiple.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/file/CwFileUploadMultiple.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CwFileUploadMultiple.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/file/CwFileUploadMultiple.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAM7D,MAAM,WAAW,0BAA0B;IAE1C,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1C,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAEzC,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;IACxD,aAAa,EAAE,CAAC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LProps, InputHTMLAttributes } from "react";
|
|
2
|
-
export interface
|
|
2
|
+
export interface CwInputImageLabels {
|
|
3
|
+
dropImageHere: string;
|
|
4
|
+
paste: string;
|
|
5
|
+
browse: string;
|
|
6
|
+
acceptedFormats: (formats: string) => string;
|
|
7
|
+
clipboardError: string;
|
|
8
|
+
invalidType: (formats: string) => string;
|
|
9
|
+
readError: string;
|
|
10
|
+
}
|
|
11
|
+
/** Reads a file/blob into a base64 data URL (persistable, no blob URL to revoke). */
|
|
12
|
+
export declare function readImageFileAsDataUrl(file: Blob): Promise<string>;
|
|
13
|
+
export interface CwInputImageProps extends Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "className" | "type" | "onChange" | "onError" | "size"> {
|
|
3
14
|
allowedImageFormats?: string[];
|
|
4
|
-
onChange?: (
|
|
15
|
+
onChange?: (dataUrl: string | null, file?: File) => void;
|
|
16
|
+
onError?: (error: string) => void;
|
|
17
|
+
labels?: Partial<CwInputImageLabels>;
|
|
18
|
+
/** Scales the dropzone and drives the size of the Paste/Browse buttons. Unset = default (medium) size. */
|
|
19
|
+
size?: "small" | "medium" | "large";
|
|
5
20
|
}
|
|
6
21
|
export declare function CwInputImage(props: CwInputImageProps): import("react").JSX.Element;
|
|
7
22
|
//# sourceMappingURL=CwInputImage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwInputImage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/image/CwInputImage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,iBAAiB,EAAa,mBAAmB,EAAoB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CwInputImage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/image/CwInputImage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,iBAAiB,EAAa,mBAAmB,EAAoB,MAAM,OAAO,CAAC;AAMzG,MAAM,WAAW,kBAAkB;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;IAC7C,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC;CAClB;AAqBD,qFAAqF;AACrF,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAOlE;AAED,MAAM,WAAW,iBAChB,SAAQ,IAAI,CACX,iBAAiB,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,EAC1E,WAAW,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CACtD;IACD,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC;IACzD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,MAAM,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACrC,0GAA0G;IAC1G,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CACpC;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAyFpD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLProps } from "react";
|
|
2
2
|
import "./cw-icon.css";
|
|
3
|
-
export interface CwIconProps extends Omit<HTMLProps<HTMLSpanElement>, "
|
|
3
|
+
export interface CwIconProps extends Omit<HTMLProps<HTMLSpanElement>, "size"> {
|
|
4
4
|
/** Icon identifier */
|
|
5
5
|
iconId: string;
|
|
6
6
|
/** Color variant **/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/graphics/icon/CwIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAgB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CwIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/graphics/icon/CwIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAgB,MAAM,OAAO,CAAC;AAEvD,OAAO,eAAe,CAAC;AAGvB,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAC5E,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,KAAK,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;IACrD,oBAAoB;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IACzD,wBAAwB;IACxB,eAAe,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;CACtD;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,qBA+BxC"}
|
|
@@ -11,31 +11,20 @@ interface CwLoadingProps {
|
|
|
11
11
|
size?: LoadingSize;
|
|
12
12
|
/** Position of the icon */
|
|
13
13
|
iconPosition?: IconPosition;
|
|
14
|
-
/** Custom icon class
|
|
14
|
+
/** Custom icon class. Falls back to the global default (configureCwLoading); with none, a neutral ring is shown. */
|
|
15
15
|
iconName?: string;
|
|
16
16
|
/** Custom animation (default: 'spin') */
|
|
17
17
|
animation?: string;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* CwLoading
|
|
20
|
+
* CwLoading — a spinner with optional text that dims the wrapped content while loading.
|
|
21
21
|
*
|
|
22
|
-
*
|
|
23
|
-
* and disables the wrapped content while in loading state.
|
|
22
|
+
* Icon resolves as `iconName` prop → `getCwLoadingDefaults().icon` → none (neutral ring).
|
|
24
23
|
*
|
|
25
24
|
* @example
|
|
26
|
-
* // Basic usage
|
|
27
25
|
* <CwLoading isLoading={isSubmitting}>
|
|
28
26
|
* <form>...</form>
|
|
29
27
|
* </CwLoading>
|
|
30
|
-
*
|
|
31
|
-
* // With custom text and size
|
|
32
|
-
* <CwLoading
|
|
33
|
-
* isLoading={isLoading}
|
|
34
|
-
* text="Please wait..."
|
|
35
|
-
* size="large"
|
|
36
|
-
* >
|
|
37
|
-
* <UserProfile />
|
|
38
|
-
* </CwLoading>
|
|
39
28
|
*/
|
|
40
29
|
export declare function CwLoading({ isLoading, text, size, iconPosition, iconName, animation, children }: React.PropsWithChildren<CwLoadingProps>): React.JSX.Element;
|
|
41
30
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwLoading.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/graphics/loading/CwLoading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"CwLoading.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/graphics/loading/CwLoading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,kBAAkB,CAAC;AAI1B,KAAK,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAGjD,KAAK,YAAY,GAAG,QAAQ,GAAG,SAAS,CAAC;AAGzC,UAAU,cAAc;IACvB,mCAAmC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,2BAA2B;IAC3B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,oHAAoH;IACpH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,EACzB,SAAiB,EACjB,IAAS,EACT,IAAgB,EAChB,YAAwB,EACxB,QAAQ,EACR,SAAkB,EAClB,QAAQ,EACR,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,qBAyCzC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Global, module-level defaults for CwLoading (singleton, no provider).
|
|
3
|
+
* An app sets these once at init; every CwLoading reads them at render time.
|
|
4
|
+
*/
|
|
5
|
+
export interface CwLoadingDefaults {
|
|
6
|
+
/** Icon class applied when a CwLoading has no explicit `iconName` (e.g. 'cwi-plane-solid'). */
|
|
7
|
+
icon?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Register global CwLoading defaults. Call once at app init, before the first render.
|
|
11
|
+
* Merges into any previously configured defaults.
|
|
12
|
+
*/
|
|
13
|
+
export declare function configureCwLoading(next: CwLoadingDefaults): void;
|
|
14
|
+
/** Read the currently configured CwLoading defaults. */
|
|
15
|
+
export declare function getCwLoadingDefaults(): CwLoadingDefaults;
|
|
16
|
+
//# sourceMappingURL=loadingConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadingConfig.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/graphics/loading/loadingConfig.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IACjC,+FAA+F;IAC/F,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AAID;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,CAEhE;AAED,wDAAwD;AACxD,wBAAgB,oBAAoB,IAAI,iBAAiB,CAExD"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export { CwImageGallery, type ImageItem } from "./components/display/graphics/im
|
|
|
13
13
|
export { CwImageZoom, type ZoomImageItem } from "./components/display/graphics/image-zoom/CwImageZoom";
|
|
14
14
|
export { CwIcon } from "./components/display/graphics/icon/CwIcon";
|
|
15
15
|
export { CwLoading } from "./components/display/graphics/loading/CwLoading";
|
|
16
|
-
export {
|
|
16
|
+
export { configureCwLoading, getCwLoadingDefaults, type CwLoadingDefaults } from "./components/display/graphics/loading/loadingConfig";
|
|
17
17
|
export { CwGenericTooltip } from "./components/display/data/generic_tooltip/CwGenericTooltip";
|
|
18
18
|
export { CwTooltipNew } from "./components/display/data/tooltip_manager/CwTooltip";
|
|
19
19
|
export { CwTooltipManager } from "./components/display/data/tooltip_manager/CwTooltipManager";
|
|
@@ -39,7 +39,6 @@ export { CwKeyValueList, type CwKeyValueListProps } from "./components/layout/li
|
|
|
39
39
|
export { CwSortableList, type CwSortableListProps } from "./components/layout/list/sortable/CwSortableList";
|
|
40
40
|
export { useSortableList } from "./components/layout/list/sortable/useSortableList";
|
|
41
41
|
export { CwTableGrouped, type CwTableGroupedData, type CwTableGroupedData_Group, type CwTableGroupedData_Row, type CwTableGroupedProps } from "./components/layout/table/grouped/CwTableGrouped";
|
|
42
|
-
export { CwFileUpload } from "./components/control/input/file/CwFileUpload";
|
|
43
42
|
export { CwFileUploadMultiple } from "./components/control/input/file/CwFileUploadMultiple";
|
|
44
43
|
export { CwInput } from "./components/control/input/any/CwInput";
|
|
45
44
|
export { CwDigit } from "./components/control/input/digit/CwDigit";
|
|
@@ -70,6 +69,9 @@ export { CwMultiFilterTag, type CwMultiFilterTagProps, type ICwMultiFilterTag }
|
|
|
70
69
|
export { CwMultiFilter, type CwMultiFilterProps } from "./components/control/choice/multi-filter/CwMultiFilter";
|
|
71
70
|
export { CwTagSelector, type CwTagSelectorProps, type CwTagSelectorOption } from "./components/control/choice/tag-selector/CwTagSelector";
|
|
72
71
|
export { CwTreeView, type CwTreeNode } from "./components/control/choice/tree-view/CwTreeView";
|
|
72
|
+
export { CwNavMenu, type CwNavItem, type CwNavMenuProps } from "./components/control/choice/nav-menu/CwNavMenu";
|
|
73
|
+
export { filterNavItems } from "./components/control/choice/nav-menu/filterNavItems";
|
|
74
|
+
export { sortNavItems } from "./components/control/choice/nav-menu/sortNavItems";
|
|
73
75
|
export { CwSearchInput } from "./components/control/action/search/CwSearch";
|
|
74
76
|
export { CwSearchAsync } from "./components/control/action/search/CwSearchAsync";
|
|
75
77
|
export type { CwSearchAsyncProps, CwSearchAsyncOption } from "./components/control/action/search/CwSearchAsync";
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAOA,OAAO,aAAa,CAAC;AAKrB,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAG/E,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAQhG,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AAGpF,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAGrF,OAAO,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAIxH,OAAO,EACN,gBAAgB,EAChB,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,KAAK,cAAc,EACnB,MAAM,6CAA6C,CAAC;AAGrD,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,uCAAu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"file":"PlaygroundApp.d.ts","sourceRoot":"","sources":["../../../src/playground/PlaygroundApp.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PlaygroundApp.d.ts","sourceRoot":"","sources":["../../../src/playground/PlaygroundApp.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAqBjD,OAAO,kBAAkB,CAAC;AAoE1B,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAwBjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwFileUploadMultiplePage.d.ts","sourceRoot":"","sources":["../../../../src/playground/pages/CwFileUploadMultiplePage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAiBxC,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAqI5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwInputImagePage.d.ts","sourceRoot":"","sources":["../../../../src/playground/pages/CwInputImagePage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAKhD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"CwInputImagePage.d.ts","sourceRoot":"","sources":["../../../../src/playground/pages/CwInputImagePage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAKhD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAuMpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwNavMenuPage.d.ts","sourceRoot":"","sources":["../../../../src/playground/pages/CwNavMenuPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAyHnD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAkIjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconLibraryPage.d.ts","sourceRoot":"","sources":["../../../../src/playground/pages/IconLibraryPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAC;AA2K5E,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAmLnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingPage.d.ts","sourceRoot":"","sources":["../../../../src/playground/pages/LoadingPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAqCxC,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAiG/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectorsPage.d.ts","sourceRoot":"","sources":["../../../../src/playground/pages/SelectorsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAiIxC,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"SelectorsPage.d.ts","sourceRoot":"","sources":["../../../../src/playground/pages/SelectorsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAiIxC,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAkejC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchKeyboardNavigation.test.d.ts","sourceRoot":"","sources":["../../../../../../test/components/control/action/search/searchKeyboardNavigation.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filterNavItems.test.d.ts","sourceRoot":"","sources":["../../../../../../test/components/control/choice/nav-menu/filterNavItems.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sortNavItems.test.d.ts","sourceRoot":"","sources":["../../../../../../test/components/control/choice/nav-menu/sortNavItems.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fileMatchesAccept.test.d.ts","sourceRoot":"","sources":["../../../../../../test/components/control/input/file/fileMatchesAccept.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readImageFileAsDataUrl.test.d.ts","sourceRoot":"","sources":["../../../../../../test/components/control/input/image/readImageFileAsDataUrl.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwLoading.test.d.ts","sourceRoot":"","sources":["../../../../../../test/components/display/graphics/loading/CwLoading.test.tsx"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cwellt_software/cwellt-reactjs-lib",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"start": "rollup -c --watch",
|
|
23
23
|
"test": "vitest run",
|
|
24
24
|
"lint": "eslint **/*.{ts,tsx} --fix",
|
|
25
|
-
"style": "stylelint \"./src/**/*.css\" --fix",
|
|
26
25
|
"build": "npm run lint && npm test && rollup -c",
|
|
27
26
|
"release": "rollup -c",
|
|
28
27
|
"link": "npm link",
|