@smartsoft001/react 2.200.0 → 2.202.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/package.json +4 -4
- package/src/lib/components/command-palette/preset/command-palette-preset.d.ts +1 -1
- package/src/lib/components/command-palette/preset/command-palette-preset.js +3 -1
- package/src/lib/components/command-palette/preset/command-palette-preset.js.map +1 -1
- package/src/lib/components/command-palette/standard/command-palette-standard.d.ts +2 -2
- package/src/lib/components/command-palette/standard/command-palette-standard.js +4 -2
- package/src/lib/components/command-palette/standard/command-palette-standard.js.map +1 -1
- package/src/lib/components/command-palette/use-close-on-escape.d.ts +6 -0
- package/src/lib/components/command-palette/use-close-on-escape.js +22 -0
- package/src/lib/components/command-palette/use-close-on-escape.js.map +1 -0
- package/src/lib/components/input/error/input-error-messages.d.ts +2 -1
- package/src/lib/components/input/error/input-error-messages.js +5 -2
- package/src/lib/components/input/error/input-error-messages.js.map +1 -1
- package/src/lib/components/input/long-text/index.d.ts +2 -0
- package/src/lib/components/input/long-text/index.js +3 -1
- package/src/lib/components/input/long-text/index.js.map +1 -1
- package/src/lib/components/page-heading/preset/page-heading-preset.d.ts +6 -4
- package/src/lib/components/page-heading/preset/page-heading-preset.js +9 -6
- package/src/lib/components/page-heading/preset/page-heading-preset.js.map +1 -1
- package/src/lib/components/searchbar/standard/searchbar-standard.js +6 -2
- package/src/lib/components/searchbar/standard/searchbar-standard.js.map +1 -1
- package/src/lib/components/toggle/preset/toggle-preset.d.ts +4 -1
- package/src/lib/components/toggle/preset/toggle-preset.js +10 -3
- package/src/lib/components/toggle/preset/toggle-preset.js.map +1 -1
- package/src/lib/i18n/translations-default.js +2 -2
- package/src/lib/i18n/translations-default.js.map +1 -1
- package/src/lib/models/interfaces.d.ts +31 -0
- package/src/lib/models/interfaces.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartsoft001/react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.202.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "A metadata-driven React UI library: Smart* components, the provider, services and hooks behind them, and the form factory that turns model metadata into a form.",
|
|
6
6
|
"publishConfig": {
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"moment": "^2.31.0"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@smartsoft001/domain-core": "2.
|
|
19
|
-
"@smartsoft001/models": "2.
|
|
20
|
-
"@smartsoft001/utils": "2.
|
|
18
|
+
"@smartsoft001/domain-core": "2.202.0",
|
|
19
|
+
"@smartsoft001/models": "2.202.0",
|
|
20
|
+
"@smartsoft001/utils": "2.202.0",
|
|
21
21
|
"react": "^19.0.0",
|
|
22
22
|
"react-dom": "^19.0.0",
|
|
23
23
|
"reflect-metadata": "^0.2.1"
|
|
@@ -8,6 +8,6 @@ import { SmartCommandPaletteProps } from '../command-palette.types';
|
|
|
8
8
|
* component only adds the visual variants driven by `options.variant`
|
|
9
9
|
* (`simple` by default): looser rows, icons, images, a translucent dialog,
|
|
10
10
|
* group headers, a footer, or a preview pane showing the first result (or the
|
|
11
|
-
* hovered one).
|
|
11
|
+
* hovered one). Like the standard, it closes on Escape while open.
|
|
12
12
|
*/
|
|
13
13
|
export declare function SmartCommandPalettePreset(props: SmartCommandPaletteProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,6 +4,7 @@ exports.SmartCommandPalettePreset = SmartCommandPalettePreset;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const class_names_1 = require("../../../utils/class-names");
|
|
7
|
+
const use_close_on_escape_1 = require("../use-close-on-escape");
|
|
7
8
|
const use_command_palette_1 = require("../use-command-palette");
|
|
8
9
|
const preset_classes_1 = require("./preset-classes");
|
|
9
10
|
function groupCommands(commands) {
|
|
@@ -29,12 +30,13 @@ function groupCommands(commands) {
|
|
|
29
30
|
* component only adds the visual variants driven by `options.variant`
|
|
30
31
|
* (`simple` by default): looser rows, icons, images, a translucent dialog,
|
|
31
32
|
* group headers, a footer, or a preview pane showing the first result (or the
|
|
32
|
-
* hovered one).
|
|
33
|
+
* hovered one). Like the standard, it closes on Escape while open.
|
|
33
34
|
*/
|
|
34
35
|
function SmartCommandPalettePreset(props) {
|
|
35
36
|
const { options, className = '' } = props;
|
|
36
37
|
const { open, query, setQuery, filteredCommands, selectCommand, close } = (0, use_command_palette_1.useCommandPalette)(props);
|
|
37
38
|
const [previewOverride, setPreviewOverride] = (0, react_1.useState)(null);
|
|
39
|
+
(0, use_close_on_escape_1.useCloseOnEscape)(open, close);
|
|
38
40
|
const variant = options?.variant ?? 'simple';
|
|
39
41
|
const emptyText = options?.emptyText ?? 'No results';
|
|
40
42
|
const itemClasses = (0, preset_classes_1.getCommandPaletteItemClasses)(variant);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-palette-preset.js","sourceRoot":"","sources":["../../../../../../../../../packages/shared/react/src/lib/components/command-palette/preset/command-palette-preset.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"command-palette-preset.js","sourceRoot":"","sources":["../../../../../../../../../packages/shared/react/src/lib/components/command-palette/preset/command-palette-preset.tsx"],"names":[],"mappings":";;AAuDA,8DAyJC;;AAhND,iCAA2C;AAI3C,4DAAgD;AAEhD,gEAA0D;AAC1D,gEAA2D;AAC3D,qDAe0B;AAO1B,SAAS,aAAa,CAAC,QAAoB;IACzC,MAAM,MAAM,GAAoB,EAAE,CAAC;IACnC,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC;QACrC,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,GAAG,CAAC,CAAC;QACrD,IAAI,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AAC,SAAS,EAAE,4CAA2B,aACjE,iCACE,SAAS,EAAE,4CAA2B,EACtC,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,iBACV,MAAM,aAElB,mCAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,GAAG,GAAG,EAChC,iCAAM,CAAC,EAAC,gBAAgB,GAAG,IACvB,EACN,+CACY,QAAQ,EAClB,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,uCAAsB,EACjC,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,OAAO,EAAE,WAAW,gBACrB,OAAO,EAAE,SAAS,EAC9B,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,GACjD,IACE,EAEL,IAAI,EAEJ,OAAO,KAAK,aAAa,IAAI,CAC5B,8CAAe,QAAQ,EAAC,SAAS,EAAE,uCAAsB,aACvD,2CAAO,GAAG,gBAAgB,CAAC,MAAM,UAAU,GAAQ,EACnD,gFAA+C,IAC3C,CACP,IACM,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { SmartCommandPaletteProps } from '../command-palette.types';
|
|
|
2
2
|
/**
|
|
3
3
|
* The default command palette: a native `<dialog>` with a search input and a
|
|
4
4
|
* `listbox` of the filtered commands. Clicking an option runs it and closes the
|
|
5
|
-
* palette;
|
|
6
|
-
*
|
|
5
|
+
* palette; Escape anywhere in the document closes an open palette, and so
|
|
6
|
+
* does the dialog's `close` event.
|
|
7
7
|
*/
|
|
8
8
|
export declare function SmartCommandPaletteStandard(props: SmartCommandPaletteProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SmartCommandPaletteStandard = SmartCommandPaletteStandard;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const use_close_on_escape_1 = require("../use-close-on-escape");
|
|
5
6
|
const use_command_palette_1 = require("../use-command-palette");
|
|
6
7
|
/**
|
|
7
8
|
* The default command palette: a native `<dialog>` with a search input and a
|
|
8
9
|
* `listbox` of the filtered commands. Clicking an option runs it and closes the
|
|
9
|
-
* palette;
|
|
10
|
-
*
|
|
10
|
+
* palette; Escape anywhere in the document closes an open palette, and so
|
|
11
|
+
* does the dialog's `close` event.
|
|
11
12
|
*/
|
|
12
13
|
function SmartCommandPaletteStandard(props) {
|
|
13
14
|
const { options, className = '' } = props;
|
|
14
15
|
const { open, query, setQuery, filteredCommands, selectCommand, close } = (0, use_command_palette_1.useCommandPalette)(props);
|
|
16
|
+
(0, use_close_on_escape_1.useCloseOnEscape)(open, close);
|
|
15
17
|
return ((0, jsx_runtime_1.jsxs)("dialog", { open: open, className: className || undefined, onClose: close, children: [(0, jsx_runtime_1.jsx)("input", { type: "search", value: query, placeholder: options?.placeholder, "aria-label": options?.ariaLabel, onChange: (event) => setQuery(event.target.value) }), (0, jsx_runtime_1.jsx)("ul", { role: "listbox", children: filteredCommands.length > 0 ? (filteredCommands.map((command) => ((0, jsx_runtime_1.jsx)("li", { role: "option", onClick: () => selectCommand(command.id), children: command.label }, command.id)))) : ((0, jsx_runtime_1.jsx)("li", { className: "smart-command-palette-empty", children: options?.emptyText ?? 'No results' })) })] }));
|
|
16
18
|
}
|
|
17
19
|
//# sourceMappingURL=command-palette-standard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-palette-standard.js","sourceRoot":"","sources":["../../../../../../../../../packages/shared/react/src/lib/components/command-palette/standard/command-palette-standard.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"command-palette-standard.js","sourceRoot":"","sources":["../../../../../../../../../packages/shared/react/src/lib/components/command-palette/standard/command-palette-standard.tsx"],"names":[],"mappings":";;AAUA,kEAmCC;;AA5CD,gEAA0D;AAC1D,gEAA2D;AAE3D;;;;;GAKG;AACH,SAAgB,2BAA2B,CAAC,KAA+B;IACzE,MAAM,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IAC1C,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,aAAa,EAAE,KAAK,EAAE,GACrE,IAAA,uCAAiB,EAAC,KAAK,CAAC,CAAC;IAE3B,IAAA,sCAAgB,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAE9B,OAAO,CACL,oCAAQ,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,IAAI,SAAS,EAAE,OAAO,EAAE,KAAK,aACnE,kCACE,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,OAAO,EAAE,WAAW,gBACrB,OAAO,EAAE,SAAS,EAC9B,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,GACjD,EACF,+BAAI,IAAI,EAAC,SAAS,YACf,gBAAgB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC7B,gBAAgB,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAChC,+BAEE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC,YAEvC,OAAO,CAAC,KAAK,IAJT,OAAO,CAAC,EAAE,CAKZ,CACN,CAAC,CACH,CAAC,CAAC,CAAC,CACF,+BAAI,SAAS,EAAC,6BAA6B,YACxC,OAAO,EAAE,SAAS,IAAI,YAAY,GAChC,CACN,GACE,IACE,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calls `close` on an Escape key press anywhere in the document while `open`
|
|
3
|
+
* is true. Used by the standard and the preset; `useCommandPalette` itself
|
|
4
|
+
* binds no keyboard listeners, so a custom implementation decides on its own.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useCloseOnEscape(open: boolean, close: () => void): void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useCloseOnEscape = useCloseOnEscape;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
/**
|
|
6
|
+
* Calls `close` on an Escape key press anywhere in the document while `open`
|
|
7
|
+
* is true. Used by the standard and the preset; `useCommandPalette` itself
|
|
8
|
+
* binds no keyboard listeners, so a custom implementation decides on its own.
|
|
9
|
+
*/
|
|
10
|
+
function useCloseOnEscape(open, close) {
|
|
11
|
+
(0, react_1.useEffect)(() => {
|
|
12
|
+
if (!open)
|
|
13
|
+
return undefined;
|
|
14
|
+
const listener = (event) => {
|
|
15
|
+
if (event.key === 'Escape')
|
|
16
|
+
close();
|
|
17
|
+
};
|
|
18
|
+
document.addEventListener('keydown', listener);
|
|
19
|
+
return () => document.removeEventListener('keydown', listener);
|
|
20
|
+
}, [open, close]);
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=use-close-on-escape.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-close-on-escape.js","sourceRoot":"","sources":["../../../../../../../../packages/shared/react/src/lib/components/command-palette/use-close-on-escape.ts"],"names":[],"mappings":";;AAOA,4CAYC;AAnBD,iCAAkC;AAElC;;;;GAIG;AACH,SAAgB,gBAAgB,CAAC,IAAa,EAAE,KAAiB;IAC/D,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,CAAC,IAAI;YAAE,OAAO,SAAS,CAAC;QAE5B,MAAM,QAAQ,GAAG,CAAC,KAAoB,EAAE,EAAE;YACxC,IAAI,KAAK,CAAC,GAAG,KAAK,QAAQ;gBAAE,KAAK,EAAE,CAAC;QACtC,CAAC,CAAC;QAEF,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QAE/C,OAAO,GAAG,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IACjE,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;AACpB,CAAC"}
|
|
@@ -3,7 +3,8 @@ import { SmartTranslateFn } from '../../../i18n/translate';
|
|
|
3
3
|
/**
|
|
4
4
|
* The messages a field shows for its validation errors, in a fixed order.
|
|
5
5
|
* `required` hides `confirm`: an empty confirmation field only reports that it
|
|
6
|
-
* is empty.
|
|
6
|
+
* is empty. `pesel` (form factory) and `invalidPesel` (pesel preset field)
|
|
7
|
+
* share the `INPUT.ERRORS.invalidPeselFormat` message, shown once.
|
|
7
8
|
*/
|
|
8
9
|
export declare function getInputErrorMessages(errors: SmartValidationErrors | null | undefined, t: SmartTranslateFn): Array<{
|
|
9
10
|
key: string;
|
|
@@ -4,7 +4,8 @@ exports.getInputErrorMessages = getInputErrorMessages;
|
|
|
4
4
|
/**
|
|
5
5
|
* The messages a field shows for its validation errors, in a fixed order.
|
|
6
6
|
* `required` hides `confirm`: an empty confirmation field only reports that it
|
|
7
|
-
* is empty.
|
|
7
|
+
* is empty. `pesel` (form factory) and `invalidPesel` (pesel preset field)
|
|
8
|
+
* share the `INPUT.ERRORS.invalidPeselFormat` message, shown once.
|
|
8
9
|
*/
|
|
9
10
|
function getInputErrorMessages(errors, t) {
|
|
10
11
|
if (!errors)
|
|
@@ -34,7 +35,9 @@ function getInputErrorMessages(errors, t) {
|
|
|
34
35
|
text: t('INPUT.ERRORS.invalidPhoneNumberFormat'),
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
+
// `pesel` comes from the form factory, `invalidPesel` from the pesel preset
|
|
39
|
+
// field: both report the same malformed PESEL, so they share one message.
|
|
40
|
+
if (errors['pesel'] || errors['invalidPesel']) {
|
|
38
41
|
messages.push({ key: 'pesel', text: t('INPUT.ERRORS.invalidPeselFormat') });
|
|
39
42
|
}
|
|
40
43
|
if (errors['minlength']) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-error-messages.js","sourceRoot":"","sources":["../../../../../../../../../packages/shared/react/src/lib/components/input/error/input-error-messages.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"input-error-messages.js","sourceRoot":"","sources":["../../../../../../../../../packages/shared/react/src/lib/components/input/error/input-error-messages.ts"],"names":[],"mappings":";;AASA,sDA8EC;AApFD;;;;;GAKG;AACH,SAAgB,qBAAqB,CACnC,MAAgD,EAChD,CAAmB;IAEnB,IAAI,CAAC,MAAM;QAAE,OAAO,EAAE,CAAC;IAEvB,MAAM,QAAQ,GAAyC,EAAE,CAAC;IAE1D,IAAI,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC;QACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAAC;IACvE,CAAC;SAAM,IAAI,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC;QAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,IAAI,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC;QACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,yBAAyB,CAAC,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,IAAI,MAAM,CAAC,eAAe,CAAC,EAAE,CAAC;QAC5B,QAAQ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,CAAC,IAAI,CAAC;YACZ,GAAG,EAAE,KAAK;YACV,IAAI,EAAE,GAAG,CAAC,CAAC,yBAAyB,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE;SAC/D,CAAC,CAAC;IACL,CAAC;IAED,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;QAClB,QAAQ,CAAC,IAAI,CAAC;YACZ,GAAG,EAAE,KAAK;YACV,IAAI,EAAE,GAAG,CAAC,CAAC,yBAAyB,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE;SAC/D,CAAC,CAAC;IACL,CAAC;IAED,IAAI,MAAM,CAAC,eAAe,CAAC,EAAE,CAAC;QAC5B,QAAQ,CAAC,IAAI,CAAC;YACZ,GAAG,EAAE,eAAe;YACpB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;SACtC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -2,3 +2,5 @@ export * from './input-long-text';
|
|
|
2
2
|
export * from './preset/input-long-text-preset';
|
|
3
3
|
export { SmartRichTextEditor } from './rich-text-editor';
|
|
4
4
|
export type { SmartRichTextEditorProps } from './rich-text-editor';
|
|
5
|
+
export { LONG_TEXT_TOOLBAR } from './rich-text-toolbar';
|
|
6
|
+
export type { SmartRichTextColorKind, SmartRichTextHeading, SmartRichTextToggle, SmartRichTextToolbar, SmartRichTextToolbarItem, } from './rich-text-toolbar';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SmartRichTextEditor = void 0;
|
|
3
|
+
exports.LONG_TEXT_TOOLBAR = exports.SmartRichTextEditor = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
tslib_1.__exportStar(require("./input-long-text"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./preset/input-long-text-preset"), exports);
|
|
7
7
|
var rich_text_editor_1 = require("./rich-text-editor");
|
|
8
8
|
Object.defineProperty(exports, "SmartRichTextEditor", { enumerable: true, get: function () { return rich_text_editor_1.SmartRichTextEditor; } });
|
|
9
|
+
var rich_text_toolbar_1 = require("./rich-text-toolbar");
|
|
10
|
+
Object.defineProperty(exports, "LONG_TEXT_TOOLBAR", { enumerable: true, get: function () { return rich_text_toolbar_1.LONG_TEXT_TOOLBAR; } });
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/shared/react/src/lib/components/input/long-text/index.ts"],"names":[],"mappings":";;;;AAAA,4DAAkC;AAClC,0EAAgD;AAChD,uDAAyD;AAAhD,uHAAA,mBAAmB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/shared/react/src/lib/components/input/long-text/index.ts"],"names":[],"mappings":";;;;AAAA,4DAAkC;AAClC,0EAAgD;AAChD,uDAAyD;AAAhD,uHAAA,mBAAmB,OAAA;AAE5B,yDAAwD;AAA/C,sHAAA,iBAAiB,OAAA"}
|
|
@@ -5,9 +5,11 @@ import { SmartPageHeadingProps } from '../page-heading.types';
|
|
|
5
5
|
* `<SmartPageHeading>`, or render it directly.
|
|
6
6
|
*
|
|
7
7
|
* Unlike the standard page heading it renders a navbar-look `<header>`: a
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* a
|
|
11
|
-
* (`links-left` default,
|
|
8
|
+
* brand zone (the `logoTpl`, followed by the `title` as an `<h1>` and the
|
|
9
|
+
* `subtitle` under it), a desktop nav zone, an actions zone (an avatar zone
|
|
10
|
+
* for the `user` layout) and a mobile hamburger toggling a collapsible panel,
|
|
11
|
+
* laid out by `options.presentation.layout` (`links-left` default,
|
|
12
|
+
* `links-center`, `links-right`, `user`). The breadcrumbs, banner, meta,
|
|
13
|
+
* stats and filters slots are rendered by the standard page heading only.
|
|
12
14
|
*/
|
|
13
15
|
export declare function SmartPageHeadingPreset({ options, className, }: SmartPageHeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,7 +5,8 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const class_names_1 = require("../../../utils/class-names");
|
|
7
7
|
const preset_classes_1 = require("./preset-classes");
|
|
8
|
-
const TITLE_CLASSES = 'smart:text-lg smart:font-semibold smart:text-gray-900 smart:dark:text-white';
|
|
8
|
+
const TITLE_CLASSES = 'smart:truncate smart:text-lg smart:font-semibold smart:text-gray-900 smart:dark:text-white';
|
|
9
|
+
const SUBTITLE_CLASSES = 'smart:truncate smart:text-sm smart:text-gray-500 smart:dark:text-gray-400';
|
|
9
10
|
const HAMBURGER_CLASSES = 'smart:block smart:md:hidden smart:rounded-sm smart:bg-gray-100 smart:p-2.5 smart:text-gray-600 smart:transition smart:hover:text-gray-600/75 smart:dark:bg-gray-800 smart:dark:text-white smart:dark:hover:text-white/75';
|
|
10
11
|
/**
|
|
11
12
|
* HyperUI-styled page heading variation (preset). Register it as
|
|
@@ -13,16 +14,18 @@ const HAMBURGER_CLASSES = 'smart:block smart:md:hidden smart:rounded-sm smart:bg
|
|
|
13
14
|
* `<SmartPageHeading>`, or render it directly.
|
|
14
15
|
*
|
|
15
16
|
* Unlike the standard page heading it renders a navbar-look `<header>`: a
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* a
|
|
19
|
-
* (`links-left` default,
|
|
17
|
+
* brand zone (the `logoTpl`, followed by the `title` as an `<h1>` and the
|
|
18
|
+
* `subtitle` under it), a desktop nav zone, an actions zone (an avatar zone
|
|
19
|
+
* for the `user` layout) and a mobile hamburger toggling a collapsible panel,
|
|
20
|
+
* laid out by `options.presentation.layout` (`links-left` default,
|
|
21
|
+
* `links-center`, `links-right`, `user`). The breadcrumbs, banner, meta,
|
|
22
|
+
* stats and filters slots are rendered by the standard page heading only.
|
|
20
23
|
*/
|
|
21
24
|
function SmartPageHeadingPreset({ options, className, }) {
|
|
22
25
|
const [menuOpened, setMenuOpened] = (0, react_1.useState)(false);
|
|
23
26
|
const layout = options?.presentation?.layout ?? 'links-left';
|
|
24
27
|
const barClasses = (0, preset_classes_1.getPageHeadingBarClasses)(layout);
|
|
25
|
-
const logoZone = ((0, jsx_runtime_1.
|
|
28
|
+
const logoZone = ((0, jsx_runtime_1.jsxs)("div", { className: "smart:flex smart:items-center smart:gap-3", "data-role": "logo", children: [options?.logoTpl ?? null, options?.title || options?.subtitle ? ((0, jsx_runtime_1.jsxs)("div", { className: "smart:min-w-0", "data-role": "heading", children: [options.title ? ((0, jsx_runtime_1.jsx)("h1", { className: TITLE_CLASSES, "data-role": "title", children: options.title })) : null, options.subtitle ? ((0, jsx_runtime_1.jsx)("p", { className: SUBTITLE_CLASSES, "data-role": "subtitle", children: options.subtitle })) : null] })) : null] }));
|
|
26
29
|
const navZone = options?.navTpl ? ((0, jsx_runtime_1.jsx)("div", { className: "smart:hidden smart:md:block", "data-role": "nav", children: options.navTpl })) : null;
|
|
27
30
|
const actionsZone = options?.actionsTpl ? ((0, jsx_runtime_1.jsx)("div", { className: "smart:hidden smart:md:flex smart:items-center smart:gap-4", "data-role": "actions", children: options.actionsTpl })) : null;
|
|
28
31
|
const avatarZone = options?.avatarTpl ? ((0, jsx_runtime_1.jsx)("div", { className: "smart:hidden smart:md:relative smart:md:block", "data-role": "avatar", children: options.avatarTpl })) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-heading-preset.js","sourceRoot":"","sources":["../../../../../../../../../packages/shared/react/src/lib/components/page-heading/preset/page-heading-preset.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"page-heading-preset.js","sourceRoot":"","sources":["../../../../../../../../../packages/shared/react/src/lib/components/page-heading/preset/page-heading-preset.tsx"],"names":[],"mappings":";;AA8BA,wDAiKC;;AA/LD,i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AAO,EACP,WAAW,IACR,EACL,aAAa,IACV,CACP,CAAC;YACF,MAAM;QACR,KAAK,MAAM;YACT,GAAG,GAAG,CACJ,iCAAK,SAAS,EAAE,UAAU,aACxB,gCAAK,SAAS,EAAC,4CAA4C,YACxD,QAAQ,GACL,EACN,iCAAK,SAAS,EAAC,kEAAkE,aAC9E,OAAO,EACP,UAAU,IACP,EACL,aAAa,IACV,CACP,CAAC;YACF,MAAM;QACR;YACE,GAAG,GAAG,CACJ,iCAAK,SAAS,EAAE,UAAU,aACvB,QAAQ,EACT,iCAAK,SAAS,EAAC,uFAAuF,aACnG,OAAO,EACR,iCAAK,SAAS,EAAC,2CAA2C,aACvD,WAAW,EACX,aAAa,IACV,IACF,IACF,CACP,CAAC;IACN,CAAC;IAED,OAAO,CACL,oCACE,SAAS,EAAE,IAAA,gBAAE,EAAC,IAAA,4CAA2B,GAAE,EAAE,SAAS,CAAC,eAC7C,QAAQ,aAElB,gCAAK,SAAS,EAAC,sEAAsE,YAClF,GAAG,GACA,EAEL,UAAU,CAAC,CAAC,CAAC,CACZ,iCACE,SAAS,EAAC,uCAAuC,eACvC,cAAc,aAEvB,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EACvC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,CACrB,gCAAK,SAAS,EAAC,YAAY,YAAE,OAAO,CAAC,UAAU,GAAO,CACvD,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -49,6 +49,10 @@ const TOGGLE_BUTTON_CLASSES = [
|
|
|
49
49
|
'smart:dark:outline-white/10',
|
|
50
50
|
'smart:dark:hover:bg-white/10',
|
|
51
51
|
];
|
|
52
|
+
/** The Heroicons 20 solid magnifying glass, sized and coloured by `className`. */
|
|
53
|
+
function MagnifyingGlassIcon({ className }) {
|
|
54
|
+
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", "data-icon": "magnifying-glass", className: className, children: (0, jsx_runtime_1.jsx)("path", { d: "M9 3.5a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11ZM2 9a7 7 0 1 1 12.452 4.391l3.328 3.329a.75.75 0 1 1-1.06 1.06l-3.329-3.328A7 7 0 0 1 2 9Z", clipRule: "evenodd", fillRule: "evenodd" }) }));
|
|
55
|
+
}
|
|
52
56
|
/**
|
|
53
57
|
* The default searchbar: a search input bound to the hook's `control`, hidden
|
|
54
58
|
* on blur while empty. While hidden it renders a magnifier button that shows it
|
|
@@ -63,10 +67,10 @@ function SmartSearchbarStandard(props) {
|
|
|
63
67
|
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, class_names_1.cn)(CONTAINER_CLASSES), children: [(0, jsx_runtime_1.jsx)("input", { type: "search", className: (0, class_names_1.cn)(INPUT_CLASSES, className), placeholder: t(options?.placeholder ?? 'search'), value: binding.value ?? '', onChange: (event) => binding.onChange(event.target.value), onBlur: () => {
|
|
64
68
|
binding.onBlur();
|
|
65
69
|
tryHide();
|
|
66
|
-
} }), (0, jsx_runtime_1.jsx)(
|
|
70
|
+
} }), (0, jsx_runtime_1.jsx)(MagnifyingGlassIcon, { className: "smart:pointer-events-none smart:absolute smart:inset-y-0 smart:right-0 smart:mr-3 smart:size-5 smart:self-center smart:text-gray-400 smart:dark:text-gray-500" })] }));
|
|
67
71
|
}
|
|
68
72
|
if (options?.showToggleButton) {
|
|
69
|
-
return ((0, jsx_runtime_1.jsx)("button", { type: "button", className: (0, class_names_1.cn)(TOGGLE_BUTTON_CLASSES),
|
|
73
|
+
return ((0, jsx_runtime_1.jsx)("button", { type: "button", className: (0, class_names_1.cn)(TOGGLE_BUTTON_CLASSES), "aria-label": t('search'), onClick: setShow, children: (0, jsx_runtime_1.jsx)(MagnifyingGlassIcon, { className: "smart:size-5" }) }));
|
|
70
74
|
}
|
|
71
75
|
return null;
|
|
72
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchbar-standard.js","sourceRoot":"","sources":["../../../../../../../../../packages/shared/react/src/lib/components/searchbar/standard/searchbar-standard.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"searchbar-standard.js","sourceRoot":"","sources":["../../../../../../../../../packages/shared/react/src/lib/components/searchbar/standard/searchbar-standard.tsx"],"names":[],"mappings":";;AA4EA,wDAuCC;;AAnHD,gDAAyD;AACzD,oDAAwD;AACxD,4DAAgD;AAEhD,oDAAgD;AAEhD,MAAM,iBAAiB,GAAG,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;AAE3D,MAAM,aAAa,GAAG;IACpB,aAAa;IACb,cAAc;IACd,kBAAkB;IAClB,gBAAgB;IAChB,cAAc;IACd,aAAa;IACb,YAAY;IACZ,iBAAiB;IACjB,qBAAqB;IACrB,iBAAiB;IACjB,yBAAyB;IACzB,wBAAwB;IACxB,iCAAiC;IACjC,uBAAuB;IACvB,+BAA+B;IAC/B,gCAAgC;IAChC,oBAAoB;IACpB,uBAAuB;IACvB,uBAAuB;IACvB,6BAA6B;IAC7B,sCAAsC;IACtC,qCAAqC;CACtC,CAAC;AAEF,MAAM,qBAAqB,GAAG;IAC5B,mBAAmB;IACnB,oBAAoB;IACpB,sBAAsB;IACtB,kBAAkB;IAClB,gBAAgB;IAChB,WAAW;IACX,qBAAqB;IACrB,iBAAiB;IACjB,iBAAiB;IACjB,yBAAyB;IACzB,wBAAwB;IACxB,wBAAwB;IACxB,uBAAuB;IACvB,0BAA0B;IAC1B,6BAA6B;IAC7B,8BAA8B;CAC/B,CAAC;AAEF,kFAAkF;AAClF,SAAS,mBAAmB,CAAC,EAAE,SAAS,EAAyB;IAC/D,OAAO,CACL,gCACE,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,cAAc,iBACP,MAAM,eACR,kBAAkB,EAC5B,SAAS,EAAE,SAAS,YAEpB,iCACE,CA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,OAAO,YAEhB,uBAAC,mBAAmB,IAAC,SAAS,EAAC,cAAc,GAAG,GACzC,CACV,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -8,6 +8,9 @@ import { SmartToggleProps } from '../toggle.types';
|
|
|
8
8
|
* drives the track / thumb visuals via `peer-*` states, while `value` holds the
|
|
9
9
|
* checked state. Optional `options.label` / `options.description` render
|
|
10
10
|
* beside the switch on the side given by `options.labelPosition` (right by
|
|
11
|
-
* default)
|
|
11
|
+
* default): the label is a `<label htmlFor>` of the checkbox (its accessible
|
|
12
|
+
* name) and the description is referenced by `aria-describedby`.
|
|
13
|
+
* `options.ariaLabel` names the checkbox only when there is no `label`.
|
|
14
|
+
* `className` goes on the root.
|
|
12
15
|
*/
|
|
13
16
|
export declare function SmartTogglePreset(props: SmartToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SmartTogglePreset = SmartTogglePreset;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
5
6
|
const class_names_1 = require("../../../utils/class-names");
|
|
6
7
|
const use_toggle_1 = require("../use-toggle");
|
|
7
8
|
const preset_classes_1 = require("./preset-classes");
|
|
@@ -14,16 +15,22 @@ const preset_classes_1 = require("./preset-classes");
|
|
|
14
15
|
* drives the track / thumb visuals via `peer-*` states, while `value` holds the
|
|
15
16
|
* checked state. Optional `options.label` / `options.description` render
|
|
16
17
|
* beside the switch on the side given by `options.labelPosition` (right by
|
|
17
|
-
* default)
|
|
18
|
+
* default): the label is a `<label htmlFor>` of the checkbox (its accessible
|
|
19
|
+
* name) and the description is referenced by `aria-describedby`.
|
|
20
|
+
* `options.ariaLabel` names the checkbox only when there is no `label`.
|
|
21
|
+
* `className` goes on the root.
|
|
18
22
|
*/
|
|
19
23
|
function SmartTogglePreset(props) {
|
|
20
24
|
const { disabled = false, options, className } = props;
|
|
21
25
|
const { value, setValue } = (0, use_toggle_1.useToggle)(props);
|
|
26
|
+
const instanceId = 'smart-toggle-preset-' + (0, react_1.useId)();
|
|
27
|
+
const inputId = instanceId + '-input';
|
|
28
|
+
const descriptionId = instanceId + '-description';
|
|
22
29
|
const label = options?.label ?? '';
|
|
23
30
|
const description = options?.description ?? '';
|
|
24
31
|
const labelPosition = options?.labelPosition ?? 'right';
|
|
25
32
|
const hasText = Boolean(label || description);
|
|
26
|
-
const text = ((0, jsx_runtime_1.jsxs)("span", { className: (0, preset_classes_1.getToggleTextWrapClasses)(), children: [label && (0, jsx_runtime_1.jsx)("
|
|
27
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, class_names_1.cn)((0, preset_classes_1.getToggleContainerClasses)(hasText), className), children: [hasText && labelPosition === 'left' && text, (0, jsx_runtime_1.jsxs)("label", { className: (0, preset_classes_1.getToggleSwitchClasses)(), children: [(0, jsx_runtime_1.jsx)("input", { type: "checkbox", className: preset_classes_1.TOGGLE_INPUT_CLASSES, checked: value, disabled: disabled, "aria-label": options?.ariaLabel, onChange: (event) => setValue(event.target.checked) }), (0, jsx_runtime_1.jsx)("span", { className: (0, preset_classes_1.getToggleTrackClasses)() }), (0, jsx_runtime_1.jsx)("span", { className: (0, preset_classes_1.getToggleThumbClasses)() })] }), hasText && labelPosition === 'right' && text] }));
|
|
33
|
+
const text = ((0, jsx_runtime_1.jsxs)("span", { className: (0, preset_classes_1.getToggleTextWrapClasses)(), children: [label && ((0, jsx_runtime_1.jsx)("label", { className: (0, preset_classes_1.getToggleLabelClasses)(), htmlFor: inputId, children: label })), description && ((0, jsx_runtime_1.jsx)("span", { className: (0, preset_classes_1.getToggleDescriptionClasses)(), id: descriptionId, children: description }))] }));
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, class_names_1.cn)((0, preset_classes_1.getToggleContainerClasses)(hasText), className), children: [hasText && labelPosition === 'left' && text, (0, jsx_runtime_1.jsxs)("label", { className: (0, preset_classes_1.getToggleSwitchClasses)(), children: [(0, jsx_runtime_1.jsx)("input", { type: "checkbox", id: inputId, className: preset_classes_1.TOGGLE_INPUT_CLASSES, checked: value, disabled: disabled, "aria-label": label ? undefined : options?.ariaLabel, "aria-describedby": description ? descriptionId : undefined, onChange: (event) => setValue(event.target.checked) }), (0, jsx_runtime_1.jsx)("span", { className: (0, preset_classes_1.getToggleTrackClasses)() }), (0, jsx_runtime_1.jsx)("span", { className: (0, preset_classes_1.getToggleThumbClasses)() })] }), hasText && labelPosition === 'right' && text] }));
|
|
28
35
|
}
|
|
29
36
|
//# sourceMappingURL=toggle-preset.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-preset.js","sourceRoot":"","sources":["../../../../../../../../../packages/shared/react/src/lib/components/toggle/preset/toggle-preset.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"toggle-preset.js","sourceRoot":"","sources":["../../../../../../../../../packages/shared/react/src/lib/components/toggle/preset/toggle-preset.tsx"],"names":[],"mappings":";;AA8BA,8CAkDC;;AAhFD,iCAA8B;AAE9B,4DAAgD;AAEhD,8CAA0C;AAC1C,qDAS0B;AAE1B;;;;;;;;;;;;;GAaG;AACH,SAAgB,iBAAiB,CAAC,KAAuB;IACvD,MAAM,EAAE,QAAQ,GAAG,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACvD,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAA,sBAAS,EAAC,KAAK,CAAC,CAAC;IAE7C,MAAM,UAAU,GAAG,sBAAsB,GAAG,IAAA,aAAK,GAAE,CAAC;IACpD,MAAM,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;IACtC,MAAM,aAAa,GAAG,UAAU,GAAG,cAAc,CAAC;IAElD,MAAM,KAAK,GAAG,OAAO,EAAE,KAAK,IAAI,EAAE,CAAC;IACnC,MAAM,WAA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|
|
@@ -111,11 +111,11 @@ exports.TRANSLATE_DATA_ENG = {
|
|
|
111
111
|
invalidMax: 'max value',
|
|
112
112
|
upperLetters: 'upper letters',
|
|
113
113
|
lowerLetters: 'lower letters',
|
|
114
|
-
symbols: '
|
|
114
|
+
symbols: 'special characters',
|
|
115
115
|
},
|
|
116
116
|
'PASSWORD-STRENGTH': {
|
|
117
117
|
poor: 'poor',
|
|
118
|
-
notGood: 'not
|
|
118
|
+
notGood: 'not good',
|
|
119
119
|
good: 'good',
|
|
120
120
|
},
|
|
121
121
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations-default.js","sourceRoot":"","sources":["../../../../../../../packages/shared/react/src/lib/i18n/translations-default.ts"],"names":[],"mappings":";;;AAoIa,QAAA,kBAAkB,GAAmB;IAChD,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,eAAe;IACtB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,EAAE,EAAE,IAAI;IACR,iBAAiB,EAAE,sBAAsB;IACzC,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,YAAY;IACvB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,IA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I,EAAE,MAAM;QACZ,MAAM,EAAE,QAAQ;QAChB,QAAQ,EAAE,WAAW;QACrB,OAAO,EAAE,UAAU;KACpB;IACD,KAAK,EAAE;QACL,cAAc,EAAE,mBAAmB;QACnC,MAAM,EAAE;YACN,QAAQ,EAAE,mBAAmB;YAC7B,QAAQ,EAAE,qBAAqB;YAC/B,UAAU,EAAE,oBAAoB;YAChC,aAAa,EAAE,sBAAsB;YACrC,eAAe,EAAE,mBAAmB;YACpC,OAAO,EAAE,eAAe;YACxB,kBAAkB,EAAE,sBAAsB;YAC1C,wBAAwB,EAAE,kCAAkC;YAC5D,kBAAkB,EAAE,eAAe;YACnC,gBAAgB,EAAE,YAAY;YAC9B,gBAAgB,EAAE,YAAY;YAC9B,UAAU,EAAE,WAAW;YACvB,UAAU,EAAE,WAAW;YACvB,YAAY,EAAE,eAAe;YAC7B,YAAY,EAAE,eAAe;YAC7B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"translations-default.js","sourceRoot":"","sources":["../../../../../../../packages/shared/react/src/lib/i18n/translations-default.ts"],"names":[],"mappings":";;;AAoIa,QAAA,kBAAkB,GAAmB;IAChD,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,eAAe;IACtB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,EAAE,EAAE,IAAI;IACR,iBAAiB,EAAE,sBAAsB;IACzC,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,YAAY;IACvB,MA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yB,EAAE,0CAA0C;QACrE,KAAK,EAAE,eAAe;KACvB;CACF,CAAC"}
|
|
@@ -47,6 +47,7 @@ export interface IIconButtonOptions {
|
|
|
47
47
|
icon: string;
|
|
48
48
|
text?: string;
|
|
49
49
|
handler?: () => void;
|
|
50
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
50
51
|
component?: any;
|
|
51
52
|
type?: 'default' | 'popover';
|
|
52
53
|
disabled?: boolean;
|
|
@@ -60,6 +61,7 @@ export interface IDynamicComponentData {
|
|
|
60
61
|
}
|
|
61
62
|
export interface IFormOptions<T> {
|
|
62
63
|
model: T;
|
|
64
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
63
65
|
show: boolean;
|
|
64
66
|
treeLevel?: number;
|
|
65
67
|
/** A ready form; without it the form is built from `model` by the form factory. */
|
|
@@ -74,6 +76,7 @@ export interface IFormOptions<T> {
|
|
|
74
76
|
inputComponents?: {
|
|
75
77
|
[key: string]: InputComponentType<T>;
|
|
76
78
|
};
|
|
79
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
77
80
|
fieldOptions?: IFieldOptions;
|
|
78
81
|
modelOptions?: IModelOptions;
|
|
79
82
|
}
|
|
@@ -98,6 +101,7 @@ export interface IDetailsOptions<T extends IEntity<string>> {
|
|
|
98
101
|
cellPipe?: ICellPipe<T>;
|
|
99
102
|
type: any;
|
|
100
103
|
item: T | null | undefined;
|
|
104
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
101
105
|
loading?: boolean;
|
|
102
106
|
itemHandler?: ((id: string) => void) | null;
|
|
103
107
|
removeHandler?: ((item: T) => void) | null;
|
|
@@ -172,6 +176,7 @@ export interface IEmptyStateItem {
|
|
|
172
176
|
export interface IEmptyStateOptions {
|
|
173
177
|
title?: string;
|
|
174
178
|
description?: string;
|
|
179
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
175
180
|
layout?: SmartEmptyStateLayout;
|
|
176
181
|
iconTpl?: ReactNode;
|
|
177
182
|
actions?: IEmptyStateAction[];
|
|
@@ -190,6 +195,7 @@ export interface INavbarItem {
|
|
|
190
195
|
iconTpl?: ReactNode;
|
|
191
196
|
}
|
|
192
197
|
export interface INavbarOptions {
|
|
198
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
193
199
|
layout?: SmartNavbarLayout;
|
|
194
200
|
dark?: boolean;
|
|
195
201
|
menuButtonOnLeft?: boolean;
|
|
@@ -242,6 +248,10 @@ export interface IProgressBarsOptions {
|
|
|
242
248
|
value?: number;
|
|
243
249
|
columns?: IProgressBarColumn[];
|
|
244
250
|
}
|
|
251
|
+
/**
|
|
252
|
+
* The preset's layouts. `'simple-with-chevrons'` looks the same as the default
|
|
253
|
+
* layout, since the chevron is already the default separator.
|
|
254
|
+
*/
|
|
245
255
|
export type SmartBreadcrumbsLayout = 'contained' | 'full-width-bar' | 'simple-with-chevrons' | 'simple-with-slashes';
|
|
246
256
|
export type SmartBreadcrumbsSeparator = 'chevron' | 'slash' | 'arrow';
|
|
247
257
|
export interface IBreadcrumbItem {
|
|
@@ -274,6 +284,7 @@ export interface IVerticalNavGroup {
|
|
|
274
284
|
items: IVerticalNavItem[];
|
|
275
285
|
}
|
|
276
286
|
export interface IVerticalNavOptions {
|
|
287
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
277
288
|
layout?: SmartVerticalNavLayout;
|
|
278
289
|
ariaLabel?: string;
|
|
279
290
|
items?: IVerticalNavItem[];
|
|
@@ -289,6 +300,7 @@ export interface IButtonOptions {
|
|
|
289
300
|
color?: SmartColor;
|
|
290
301
|
rounded?: boolean;
|
|
291
302
|
circular?: boolean;
|
|
303
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
292
304
|
iconPosition?: 'leading' | 'trailing';
|
|
293
305
|
}
|
|
294
306
|
export interface IInfoOptions {
|
|
@@ -296,6 +308,7 @@ export interface IInfoOptions {
|
|
|
296
308
|
}
|
|
297
309
|
export interface ISearchbarOptions {
|
|
298
310
|
placeholder?: string;
|
|
311
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
299
312
|
label?: string;
|
|
300
313
|
debounceTime?: number;
|
|
301
314
|
showToggleButton?: boolean;
|
|
@@ -314,6 +327,7 @@ export interface ICommand {
|
|
|
314
327
|
label: string;
|
|
315
328
|
icon?: string;
|
|
316
329
|
group?: string;
|
|
330
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
317
331
|
href?: string;
|
|
318
332
|
description?: string;
|
|
319
333
|
imageUrl?: string;
|
|
@@ -358,6 +372,7 @@ export interface IDrawerOptions {
|
|
|
358
372
|
wide?: boolean;
|
|
359
373
|
withOverlay?: boolean;
|
|
360
374
|
brandedHeader?: boolean;
|
|
375
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
361
376
|
stickyFooter?: boolean;
|
|
362
377
|
variant?: SmartDrawerVariant;
|
|
363
378
|
}
|
|
@@ -421,6 +436,7 @@ export interface IDropdownItem {
|
|
|
421
436
|
id: string;
|
|
422
437
|
label: string;
|
|
423
438
|
icon?: string;
|
|
439
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
424
440
|
href?: string;
|
|
425
441
|
disabled?: boolean;
|
|
426
442
|
divider?: boolean;
|
|
@@ -449,6 +465,7 @@ export interface IContainerOptions {
|
|
|
449
465
|
export type SmartListContainerVariant = 'simple-dividers' | 'card-dividers' | 'separate-cards' | 'flat-card-dividers';
|
|
450
466
|
export interface IListContainerOptions {
|
|
451
467
|
variant?: SmartListContainerVariant;
|
|
468
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
452
469
|
fullWidthOnMobile?: boolean;
|
|
453
470
|
}
|
|
454
471
|
export interface IMediaObjectOptions {
|
|
@@ -551,8 +568,11 @@ export type SmartCalendarView = 'month' | 'week' | 'day' | 'year';
|
|
|
551
568
|
export interface ICalendarEvent {
|
|
552
569
|
id: string | number;
|
|
553
570
|
start: Date;
|
|
571
|
+
/** Not rendered by the built-in implementations (they show a dot or a count per day); available to `dayCellTpl` and to a custom implementation. */
|
|
554
572
|
end?: Date;
|
|
573
|
+
/** Not rendered by the built-in implementations (they show a dot or a count per day); available to `dayCellTpl` and to a custom implementation. */
|
|
555
574
|
title?: string;
|
|
575
|
+
/** Not rendered by the built-in implementations (they show a dot or a count per day); available to `dayCellTpl` and to a custom implementation. */
|
|
556
576
|
meta?: Record<string, unknown>;
|
|
557
577
|
}
|
|
558
578
|
export interface ICalendarDayCell {
|
|
@@ -563,6 +583,7 @@ export interface ICalendarDayCell {
|
|
|
563
583
|
}
|
|
564
584
|
export interface ICalendarOptions {
|
|
565
585
|
view?: SmartCalendarView;
|
|
586
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
566
587
|
monthsCount?: 1 | 2 | 12;
|
|
567
588
|
weekStart?: 0 | 1;
|
|
568
589
|
showToolbar?: boolean;
|
|
@@ -570,6 +591,7 @@ export interface ICalendarOptions {
|
|
|
570
591
|
eventListTpl?: ReactNode;
|
|
571
592
|
sidePanelTpl?: ReactNode;
|
|
572
593
|
dayCellTpl?: ReactNode;
|
|
594
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
573
595
|
eventTpl?: ReactNode;
|
|
574
596
|
}
|
|
575
597
|
export interface IStackedListItem {
|
|
@@ -650,6 +672,7 @@ export type SmartSelectMenuVariant = 'native' | 'custom' | 'with-check' | 'with-
|
|
|
650
672
|
export interface ISelectMenuItem {
|
|
651
673
|
value: string | number;
|
|
652
674
|
label: string;
|
|
675
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
653
676
|
avatarUrl?: string;
|
|
654
677
|
iconTpl?: ReactNode;
|
|
655
678
|
secondary?: string;
|
|
@@ -660,6 +683,7 @@ export interface ISelectMenuItem {
|
|
|
660
683
|
export interface ISelectMenuOptions {
|
|
661
684
|
items?: ISelectMenuItem[];
|
|
662
685
|
placeholder?: string;
|
|
686
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
663
687
|
variant?: SmartSelectMenuVariant;
|
|
664
688
|
emptyTpl?: ReactNode;
|
|
665
689
|
ariaLabel?: string;
|
|
@@ -680,6 +704,7 @@ export interface IFeedEvent {
|
|
|
680
704
|
iconTpl?: ReactNode;
|
|
681
705
|
avatarUrl?: string;
|
|
682
706
|
href?: string;
|
|
707
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
683
708
|
type?: string;
|
|
684
709
|
comments?: IFeedComment[];
|
|
685
710
|
ariaLabel?: string;
|
|
@@ -688,6 +713,7 @@ export interface IFeedOptions {
|
|
|
688
713
|
title?: string;
|
|
689
714
|
description?: string;
|
|
690
715
|
events?: IFeedEvent[];
|
|
716
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
691
717
|
variant?: SmartFeedVariant;
|
|
692
718
|
commentSubmitTpl?: ReactNode;
|
|
693
719
|
emptyTpl?: ReactNode;
|
|
@@ -773,6 +799,7 @@ export interface ISidebarNavProfile {
|
|
|
773
799
|
srOnlyText?: string;
|
|
774
800
|
}
|
|
775
801
|
export interface ISidebarNavOptions {
|
|
802
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
776
803
|
layout?: SmartSidebarNavLayout;
|
|
777
804
|
ariaLabel?: string;
|
|
778
805
|
logo?: ISidebarNavLogo;
|
|
@@ -786,6 +813,7 @@ export interface ISidebarLayoutOptions {
|
|
|
786
813
|
sidebarTpl?: ReactNode;
|
|
787
814
|
headerTpl?: ReactNode;
|
|
788
815
|
sidebarPosition?: 'left' | 'right';
|
|
816
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
789
817
|
mobileBreakpoint?: SmartSidebarLayoutMobileBreakpoint;
|
|
790
818
|
condensed?: boolean;
|
|
791
819
|
}
|
|
@@ -794,6 +822,7 @@ export interface IDetailOptions<T> {
|
|
|
794
822
|
item?: T | null;
|
|
795
823
|
options: IFieldOptions;
|
|
796
824
|
cellPipe?: ICellPipe<T>;
|
|
825
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
797
826
|
loading?: boolean;
|
|
798
827
|
}
|
|
799
828
|
export interface ICellPipe<T> {
|
|
@@ -824,6 +853,7 @@ export interface IPageOptions {
|
|
|
824
853
|
logoTpl?: ReactNode;
|
|
825
854
|
statsTpl?: ReactNode;
|
|
826
855
|
subtitleTpl?: ReactNode;
|
|
856
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
827
857
|
navTpl?: ReactNode;
|
|
828
858
|
sidebarTpl?: ReactNode;
|
|
829
859
|
}
|
|
@@ -837,6 +867,7 @@ export interface IListProvider<T> {
|
|
|
837
867
|
}
|
|
838
868
|
export interface IListPaginationOptions {
|
|
839
869
|
mode?: PaginationMode;
|
|
870
|
+
/** Not read by the built-in implementations (standard or preset); available to a custom implementation registered for the component. */
|
|
840
871
|
limit: number;
|
|
841
872
|
loadNextPage: () => Promise<boolean>;
|
|
842
873
|
loadPrevPage: () => Promise<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../../packages/shared/react/src/lib/models/interfaces.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../../packages/shared/react/src/lib/models/interfaces.ts"],"names":[],"mappings":";;;AAiqCA,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mDAAiC,CAAA;IACjC,2CAAyB,CAAA;AAC3B,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,6BAAiB,CAAA;IACjB,+BAAmB,CAAA;IACnB,uCAA2B,CAAA;AAC7B,CAAC,EAJW,QAAQ,wBAAR,QAAQ,QAInB"}
|