@seij/common-ui 0.0.1
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/LICENSE +201 -0
- package/README.md +7 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +113 -0
- package/dist/index.js.map +1 -0
- package/dist/init/SeijUIProvider.d.ts +15 -0
- package/dist/init/SeijUIProvider.d.ts.map +1 -0
- package/dist/init/SeijUIProvider.js +20 -0
- package/dist/init/SeijUIProvider.js.map +1 -0
- package/dist/lib/applicationshell/ApplicationShell.d.ts +13 -0
- package/dist/lib/applicationshell/ApplicationShell.d.ts.map +1 -0
- package/dist/lib/applicationshell/ApplicationShell.js +110 -0
- package/dist/lib/applicationshell/ApplicationShell.js.map +1 -0
- package/dist/lib/applicationshell/ApplicationShell.types.d.ts +9 -0
- package/dist/lib/applicationshell/ApplicationShell.types.d.ts.map +1 -0
- package/dist/lib/applicationshell/TitleBar.d.ts +9 -0
- package/dist/lib/applicationshell/TitleBar.d.ts.map +1 -0
- package/dist/lib/applicationshell/TitleBar.js +100 -0
- package/dist/lib/applicationshell/TitleBar.js.map +1 -0
- package/dist/lib/badge/Badge.d.ts +5 -0
- package/dist/lib/badge/Badge.d.ts.map +1 -0
- package/dist/lib/badge/Badge.js +9 -0
- package/dist/lib/badge/Badge.js.map +1 -0
- package/dist/lib/button/Button.d.ts +16 -0
- package/dist/lib/button/Button.d.ts.map +1 -0
- package/dist/lib/button/Button.js +15 -0
- package/dist/lib/button/Button.js.map +1 -0
- package/dist/lib/button_bar/ButtonBar.d.ts +5 -0
- package/dist/lib/button_bar/ButtonBar.d.ts.map +1 -0
- package/dist/lib/button_bar/ButtonBar.js +26 -0
- package/dist/lib/button_bar/ButtonBar.js.map +1 -0
- package/dist/lib/common-ui.d.ts +5 -0
- package/dist/lib/common-ui.d.ts.map +1 -0
- package/dist/lib/common-ui.js +9 -0
- package/dist/lib/common-ui.js.map +1 -0
- package/dist/lib/commons/currencysymbol.d.ts +2 -0
- package/dist/lib/commons/currencysymbol.d.ts.map +1 -0
- package/dist/lib/commons/currencysymbol.js +15 -0
- package/dist/lib/commons/currencysymbol.js.map +1 -0
- package/dist/lib/commons/obfuscatelabel.d.ts +17 -0
- package/dist/lib/commons/obfuscatelabel.d.ts.map +1 -0
- package/dist/lib/commons/obfuscatelabel.js +23 -0
- package/dist/lib/commons/obfuscatelabel.js.map +1 -0
- package/dist/lib/data_table/DataTable.d.ts +32 -0
- package/dist/lib/data_table/DataTable.d.ts.map +1 -0
- package/dist/lib/data_table/DataTable.js +40 -0
- package/dist/lib/data_table/DataTable.js.map +1 -0
- package/dist/lib/datatabledynamic/DataTableDynamic.d.ts +14 -0
- package/dist/lib/datatabledynamic/DataTableDynamic.d.ts.map +1 -0
- package/dist/lib/datatabledynamic/DataTableDynamic.js +18 -0
- package/dist/lib/datatabledynamic/DataTableDynamic.js.map +1 -0
- package/dist/lib/devise/DeviseContext.d.ts +2 -0
- package/dist/lib/devise/DeviseContext.d.ts.map +1 -0
- package/dist/lib/devise/DeviseContext.js +6 -0
- package/dist/lib/devise/DeviseContext.js.map +1 -0
- package/dist/lib/error_notifier/ErrorNotifier.d.ts +6 -0
- package/dist/lib/error_notifier/ErrorNotifier.d.ts.map +1 -0
- package/dist/lib/error_notifier/ErrorNotifier.js +29 -0
- package/dist/lib/error_notifier/ErrorNotifier.js.map +1 -0
- package/dist/lib/errorbox/ErrorBox.d.ts +6 -0
- package/dist/lib/errorbox/ErrorBox.d.ts.map +1 -0
- package/dist/lib/errorbox/ErrorBox.js +26 -0
- package/dist/lib/errorbox/ErrorBox.js.map +1 -0
- package/dist/lib/form_layout/FormLayout.d.ts +23 -0
- package/dist/lib/form_layout/FormLayout.d.ts.map +1 -0
- package/dist/lib/form_layout/FormLayout.js +102 -0
- package/dist/lib/form_layout/FormLayout.js.map +1 -0
- package/dist/lib/i18n/i18n.detect.d.ts +10 -0
- package/dist/lib/i18n/i18n.detect.d.ts.map +1 -0
- package/dist/lib/i18n/i18n.detect.js +30 -0
- package/dist/lib/i18n/i18n.detect.js.map +1 -0
- package/dist/lib/i18n/i18n.factory.d.ts +3 -0
- package/dist/lib/i18n/i18n.factory.d.ts.map +1 -0
- package/dist/lib/i18n/i18n.factory.js +70 -0
- package/dist/lib/i18n/i18n.factory.js.map +1 -0
- package/dist/lib/i18n/i18n.react.d.ts +19 -0
- package/dist/lib/i18n/i18n.react.d.ts.map +1 -0
- package/dist/lib/i18n/i18n.react.js +29 -0
- package/dist/lib/i18n/i18n.react.js.map +1 -0
- package/dist/lib/i18n/i18n.types.d.ts +28 -0
- package/dist/lib/i18n/i18n.types.d.ts.map +1 -0
- package/dist/lib/i18n/index.d.ts +3 -0
- package/dist/lib/i18n/index.d.ts.map +1 -0
- package/dist/lib/info_box/InfoBox.d.ts +7 -0
- package/dist/lib/info_box/InfoBox.d.ts.map +1 -0
- package/dist/lib/info_box/InfoBox.js +13 -0
- package/dist/lib/info_box/InfoBox.js.map +1 -0
- package/dist/lib/inlineedit/InlineEdit.d.ts +9 -0
- package/dist/lib/inlineedit/InlineEdit.d.ts.map +1 -0
- package/dist/lib/inlineedit/InlineEdit.js +47 -0
- package/dist/lib/inlineedit/InlineEdit.js.map +1 -0
- package/dist/lib/listview/ListView.d.ts +16 -0
- package/dist/lib/listview/ListView.d.ts.map +1 -0
- package/dist/lib/listview/ListView.js +100 -0
- package/dist/lib/listview/ListView.js.map +1 -0
- package/dist/lib/loader/Loader.d.ts +4 -0
- package/dist/lib/loader/Loader.d.ts.map +1 -0
- package/dist/lib/loader/Loader.js +9 -0
- package/dist/lib/loader/Loader.js.map +1 -0
- package/dist/lib/localdate/InputLocalDate.d.ts +17 -0
- package/dist/lib/localdate/InputLocalDate.d.ts.map +1 -0
- package/dist/lib/localdate/InputLocalDate.js +61 -0
- package/dist/lib/localdate/InputLocalDate.js.map +1 -0
- package/dist/lib/localdate/LabelLocalDate.d.ts +6 -0
- package/dist/lib/localdate/LabelLocalDate.d.ts.map +1 -0
- package/dist/lib/localdate/LabelLocalDate.js +9 -0
- package/dist/lib/localdate/LabelLocalDate.js.map +1 -0
- package/dist/lib/money/InputMoneyDec.d.ts +20 -0
- package/dist/lib/money/InputMoneyDec.d.ts.map +1 -0
- package/dist/lib/money/InputMoneyDec.js +24 -0
- package/dist/lib/money/InputMoneyDec.js.map +1 -0
- package/dist/lib/money/InputMoneyInt.d.ts +24 -0
- package/dist/lib/money/InputMoneyInt.d.ts.map +1 -0
- package/dist/lib/money/InputMoneyInt.js +24 -0
- package/dist/lib/money/InputMoneyInt.js.map +1 -0
- package/dist/lib/money/LabelMoneyDec.d.ts +33 -0
- package/dist/lib/money/LabelMoneyDec.d.ts.map +1 -0
- package/dist/lib/money/LabelMoneyDec.js +22 -0
- package/dist/lib/money/LabelMoneyDec.js.map +1 -0
- package/dist/lib/money/LabelMoneyInt.d.ts +33 -0
- package/dist/lib/money/LabelMoneyInt.d.ts.map +1 -0
- package/dist/lib/money/LabelMoneyInt.js +22 -0
- package/dist/lib/money/LabelMoneyInt.js.map +1 -0
- package/dist/lib/month/InputDurationMonths.d.ts +9 -0
- package/dist/lib/month/InputDurationMonths.d.ts.map +1 -0
- package/dist/lib/month/InputDurationMonths.js +22 -0
- package/dist/lib/month/InputDurationMonths.js.map +1 -0
- package/dist/lib/month/InputMonth.d.ts +13 -0
- package/dist/lib/month/InputMonth.d.ts.map +1 -0
- package/dist/lib/month/InputMonth.js +15 -0
- package/dist/lib/month/InputMonth.js.map +1 -0
- package/dist/lib/navigation/Navigation.d.ts +9 -0
- package/dist/lib/navigation/Navigation.d.ts.map +1 -0
- package/dist/lib/navigation/Navigation.js +38 -0
- package/dist/lib/navigation/Navigation.js.map +1 -0
- package/dist/lib/navigation/Navigation.types.d.ts +48 -0
- package/dist/lib/navigation/Navigation.types.d.ts.map +1 -0
- package/dist/lib/navigation/NavigationService.d.ts +8 -0
- package/dist/lib/navigation/NavigationService.d.ts.map +1 -0
- package/dist/lib/navigation/NavigationService.js +13 -0
- package/dist/lib/navigation/NavigationService.js.map +1 -0
- package/dist/lib/number/InputNumber.d.ts +22 -0
- package/dist/lib/number/InputNumber.d.ts.map +1 -0
- package/dist/lib/number/InputNumber.js +82 -0
- package/dist/lib/number/InputNumber.js.map +1 -0
- package/dist/lib/number/InputNumberDec.d.ts +16 -0
- package/dist/lib/number/InputNumberDec.d.ts.map +1 -0
- package/dist/lib/number/InputNumberDec.js +21 -0
- package/dist/lib/number/InputNumberDec.js.map +1 -0
- package/dist/lib/number/InputNumberInt.d.ts +19 -0
- package/dist/lib/number/InputNumberInt.d.ts.map +1 -0
- package/dist/lib/number/InputNumberInt.js +21 -0
- package/dist/lib/number/InputNumberInt.js.map +1 -0
- package/dist/lib/number/index.d.ts +4 -0
- package/dist/lib/number/index.d.ts.map +1 -0
- package/dist/lib/percent/InputPercent.d.ts +9 -0
- package/dist/lib/percent/InputPercent.d.ts.map +1 -0
- package/dist/lib/percent/InputPercent.js +29 -0
- package/dist/lib/percent/InputPercent.js.map +1 -0
- package/dist/lib/percent/LabelPercent.d.ts +8 -0
- package/dist/lib/percent/LabelPercent.d.ts.map +1 -0
- package/dist/lib/percent/LabelPercent.js +9 -0
- package/dist/lib/percent/LabelPercent.js.map +1 -0
- package/dist/lib/percent/LabelPercentInt.d.ts +4 -0
- package/dist/lib/percent/LabelPercentInt.d.ts.map +1 -0
- package/dist/lib/percent/LabelPercentInt.js +10 -0
- package/dist/lib/percent/LabelPercentInt.js.map +1 -0
- package/dist/lib/select/InputCombobox.d.ts +49 -0
- package/dist/lib/select/InputCombobox.d.ts.map +1 -0
- package/dist/lib/select/InputCombobox.js +42 -0
- package/dist/lib/select/InputCombobox.js.map +1 -0
- package/dist/lib/select/InputSelect.d.ts +22 -0
- package/dist/lib/select/InputSelect.d.ts.map +1 -0
- package/dist/lib/select/InputSelect.js +31 -0
- package/dist/lib/select/InputSelect.js.map +1 -0
- package/dist/lib/switchbutton/SwitchButton.d.ts +9 -0
- package/dist/lib/switchbutton/SwitchButton.d.ts.map +1 -0
- package/dist/lib/switchbutton/SwitchButton.js +18 -0
- package/dist/lib/switchbutton/SwitchButton.js.map +1 -0
- package/dist/lib/tabs/Tabs.d.ts +18 -0
- package/dist/lib/tabs/Tabs.d.ts.map +1 -0
- package/dist/lib/tabs/Tabs.js +30 -0
- package/dist/lib/tabs/Tabs.js.map +1 -0
- package/dist/lib/tabs/index.d.ts +2 -0
- package/dist/lib/tabs/index.d.ts.map +1 -0
- package/dist/lib/text/InputText.d.ts +12 -0
- package/dist/lib/text/InputText.d.ts.map +1 -0
- package/dist/lib/text/InputText.js +32 -0
- package/dist/lib/text/InputText.js.map +1 -0
- package/dist/lib/typography/description/Description.d.ts +4 -0
- package/dist/lib/typography/description/Description.d.ts.map +1 -0
- package/dist/lib/typography/description/Description.js +9 -0
- package/dist/lib/typography/description/Description.js.map +1 -0
- package/dist/lib/typography/description/index.d.ts +2 -0
- package/dist/lib/typography/description/index.d.ts.map +1 -0
- package/dist/lib/typography/index.d.ts +5 -0
- package/dist/lib/typography/index.d.ts.map +1 -0
- package/dist/lib/typography/label_and_description/LabelAndDescription.d.ts +5 -0
- package/dist/lib/typography/label_and_description/LabelAndDescription.d.ts.map +1 -0
- package/dist/lib/typography/label_and_description/LabelAndDescription.js +16 -0
- package/dist/lib/typography/label_and_description/LabelAndDescription.js.map +1 -0
- package/dist/lib/typography/label_and_description/index.d.ts +2 -0
- package/dist/lib/typography/label_and_description/index.d.ts.map +1 -0
- package/dist/lib/typography/sectiontitle/SectionTitle.d.ts +5 -0
- package/dist/lib/typography/sectiontitle/SectionTitle.d.ts.map +1 -0
- package/dist/lib/typography/sectiontitle/SectionTitle.js +8 -0
- package/dist/lib/typography/sectiontitle/SectionTitle.js.map +1 -0
- package/dist/lib/typography/todo/Todo.d.ts +5 -0
- package/dist/lib/typography/todo/Todo.d.ts.map +1 -0
- package/dist/lib/typography/todo/Todo.js +7 -0
- package/dist/lib/typography/todo/Todo.js.map +1 -0
- package/dist/lib/view_layout/ViewBody.d.ts +8 -0
- package/dist/lib/view_layout/ViewBody.d.ts.map +1 -0
- package/dist/lib/view_layout/ViewBody.js +8 -0
- package/dist/lib/view_layout/ViewBody.js.map +1 -0
- package/dist/lib/view_layout/ViewFooter.d.ts +10 -0
- package/dist/lib/view_layout/ViewFooter.d.ts.map +1 -0
- package/dist/lib/view_layout/ViewFooter.js +8 -0
- package/dist/lib/view_layout/ViewFooter.js.map +1 -0
- package/dist/lib/view_layout/ViewHeader.d.ts +5 -0
- package/dist/lib/view_layout/ViewHeader.d.ts.map +1 -0
- package/dist/lib/view_layout/ViewHeader.js +8 -0
- package/dist/lib/view_layout/ViewHeader.js.map +1 -0
- package/dist/lib/view_layout/ViewLayout.d.ts +16 -0
- package/dist/lib/view_layout/ViewLayout.d.ts.map +1 -0
- package/dist/lib/view_layout/ViewLayout.js +127 -0
- package/dist/lib/view_layout/ViewLayout.js.map +1 -0
- package/dist/lib/view_layout/ViewTitle.d.ts +21 -0
- package/dist/lib/view_layout/ViewTitle.d.ts.map +1 -0
- package/dist/lib/view_layout/ViewTitle.js +71 -0
- package/dist/lib/view_layout/ViewTitle.js.map +1 -0
- package/dist/lib/year/InputDurationYears.d.ts +9 -0
- package/dist/lib/year/InputDurationYears.d.ts.map +1 -0
- package/dist/lib/year/InputDurationYears.js +22 -0
- package/dist/lib/year/InputDurationYears.js.map +1 -0
- package/dist/lib/year/InputYear.d.ts +9 -0
- package/dist/lib/year/InputYear.d.ts.map +1 -0
- package/dist/lib/year/InputYear.js +21 -0
- package/dist/lib/year/InputYear.js.map +1 -0
- package/dist/locales/en.d.ts +8 -0
- package/dist/locales/en.d.ts.map +1 -0
- package/dist/locales/en.js +41 -0
- package/dist/locales/en.js.map +1 -0
- package/dist/locales/fr.d.ts +8 -0
- package/dist/locales/fr.d.ts.map +1 -0
- package/dist/locales/fr.js +41 -0
- package/dist/locales/fr.js.map +1 -0
- package/dist/locales/interfaces.d.ts +11 -0
- package/dist/locales/interfaces.d.ts.map +1 -0
- package/dist/stories/utils/SeijUIProviderDecorator.d.ts +2 -0
- package/dist/stories/utils/SeijUIProviderDecorator.d.ts.map +1 -0
- package/dist/stories/utils/StoryComponentFrame.d.ts +11 -0
- package/dist/stories/utils/StoryComponentFrame.d.ts.map +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface Action {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: "plus" | "trash";
|
|
6
|
+
onClick: () => any;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
type: "PRIMARY" | "SECONDARY" | "ADDITIONAL";
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Zone de titre d'une vue
|
|
12
|
+
*/
|
|
13
|
+
export declare function ViewTitle({ children, onBack, actions, }: {
|
|
14
|
+
/** Titre de la vue (en tout cas ce que l'on met dans la zone de titre) */
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
/** Si spécifié, on ajoute une fleche "back" pour revenir en arrière */
|
|
17
|
+
onBack?: () => void;
|
|
18
|
+
/** Liste d'actions a ajouter à droite dans la zone d'actions */
|
|
19
|
+
actions?: Action[];
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=ViewTitle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewTitle.d.ts","sourceRoot":"","sources":["../../../src/lib/view_layout/ViewTitle.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,OAAO,EAAE,MAAM,GAAG,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,SAAS,GAAG,WAAW,GAAG,YAAY,CAAC;CAC9C;AAmCD;;GAEG;AACH,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,MAAM,EACN,OAAO,GACR,EAAE;IACD,0EAA0E;IAC1E,QAAQ,EAAE,SAAS,CAAC;IACpB,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,2CAuDA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { jsxs as c, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { makeStyles as y, Button as r, Title3 as x, Menu as b, MenuTrigger as g, MenuPopover as C, MenuList as I, MenuItem as k } from "@fluentui/react-components";
|
|
3
|
+
import { ArrowLeftFilled as A, MoreVerticalFilled as M, AddSquareRegular as N, DeleteRegular as j } from "@fluentui/react-icons";
|
|
4
|
+
import { isFunction as v } from "lodash-es";
|
|
5
|
+
const B = y({
|
|
6
|
+
root: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
align: "center",
|
|
9
|
+
justify: "space-between",
|
|
10
|
+
justifyContent: "center",
|
|
11
|
+
height: "48px"
|
|
12
|
+
},
|
|
13
|
+
title: {
|
|
14
|
+
flex: 1,
|
|
15
|
+
display: "flex",
|
|
16
|
+
alignItems: "center"
|
|
17
|
+
},
|
|
18
|
+
backButton: {
|
|
19
|
+
flex: 0,
|
|
20
|
+
display: "flex",
|
|
21
|
+
alignItems: "center",
|
|
22
|
+
justifyContent: "flex-start"
|
|
23
|
+
},
|
|
24
|
+
actions: {
|
|
25
|
+
flex: 0,
|
|
26
|
+
display: "flex",
|
|
27
|
+
alignItems: "center"
|
|
28
|
+
},
|
|
29
|
+
moreActions: {
|
|
30
|
+
flex: 0,
|
|
31
|
+
display: "flex",
|
|
32
|
+
alignItems: "center",
|
|
33
|
+
minWidth: "48px",
|
|
34
|
+
justifyContent: "flex-end"
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
function E({
|
|
38
|
+
children: l,
|
|
39
|
+
onBack: t,
|
|
40
|
+
actions: i
|
|
41
|
+
}) {
|
|
42
|
+
const s = B(), d = v(t), o = (i ?? []).filter((e) => e.type === "ADDITIONAL"), p = (i ?? []).filter((e) => e.type === "SECONDARY"), u = (i ?? []).filter((e) => e.type === "PRIMARY"), m = () => {
|
|
43
|
+
d && t && t();
|
|
44
|
+
}, a = async (e) => {
|
|
45
|
+
var f;
|
|
46
|
+
(f = (i ?? []).find((h) => h.id === e)) == null || f.onClick();
|
|
47
|
+
};
|
|
48
|
+
return /* @__PURE__ */ c("div", { className: s.root, children: [
|
|
49
|
+
d && /* @__PURE__ */ n("div", { className: s.backButton, children: /* @__PURE__ */ n(r, { icon: /* @__PURE__ */ n(A, {}), appearance: "subtle", onClick: m }) }),
|
|
50
|
+
/* @__PURE__ */ n("div", { className: s.title, children: /* @__PURE__ */ n(x, { children: l }) }),
|
|
51
|
+
/* @__PURE__ */ c("div", { className: s.actions, children: [
|
|
52
|
+
p.length > 0 && p.map((e) => /* @__PURE__ */ n(r, { disabled: e.disabled, appearance: "secondary", onClick: () => a(e.id), children: e.label }, e.id)),
|
|
53
|
+
u.length > 0 && u.map((e) => /* @__PURE__ */ n(r, { disabled: e.disabled, appearance: "primary", onClick: () => a(e.id), children: e.label }, e.id))
|
|
54
|
+
] }),
|
|
55
|
+
/* @__PURE__ */ n("div", { className: s.moreActions, children: o.length > 0 && /* @__PURE__ */ c(b, { positioning: { autoSize: !0 }, children: [
|
|
56
|
+
/* @__PURE__ */ n(g, { disableButtonEnhancement: !0, children: /* @__PURE__ */ n(r, { icon: /* @__PURE__ */ n(M, {}) }) }),
|
|
57
|
+
/* @__PURE__ */ n(C, { children: /* @__PURE__ */ n(I, { children: o.map((e) => /* @__PURE__ */ n(R, { action: e, onClick: a }, e.id)) }) })
|
|
58
|
+
] }) })
|
|
59
|
+
] });
|
|
60
|
+
}
|
|
61
|
+
function L() {
|
|
62
|
+
return /* @__PURE__ */ n("span", {});
|
|
63
|
+
}
|
|
64
|
+
function R({ action: l, onClick: t }) {
|
|
65
|
+
let i;
|
|
66
|
+
return l.icon === "plus" ? i = N : l.icon === "trash" ? i = j : i = L, /* @__PURE__ */ n(k, { disabled: l.disabled, onClick: () => t(l.id), icon: /* @__PURE__ */ n(i, {}), children: l.label });
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
E as ViewTitle
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=ViewTitle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewTitle.js","sources":["../../../src/lib/view_layout/ViewTitle.tsx"],"sourcesContent":["import {\n Button,\n makeStyles,\n Menu,\n MenuItem,\n MenuList,\n MenuPopover,\n MenuTrigger,\n Title3,\n} from \"@fluentui/react-components\";\nimport { AddSquareRegular, ArrowLeftFilled, DeleteRegular, MoreVerticalFilled } from \"@fluentui/react-icons\";\nimport { isFunction } from \"lodash-es\";\nimport { ReactNode } from \"react\";\n\nexport interface Action {\n id: string;\n label: string;\n icon?: \"plus\" | \"trash\";\n onClick: () => any;\n disabled?: boolean;\n type: \"PRIMARY\" | \"SECONDARY\" | \"ADDITIONAL\";\n}\n\nconst useStyles = makeStyles({\n root: {\n display: \"flex\",\n align: \"center\",\n justify: \"space-between\",\n justifyContent: \"center\",\n height: \"48px\",\n },\n title: {\n flex: 1,\n display: \"flex\",\n alignItems: \"center\",\n },\n backButton: {\n flex: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n },\n actions: {\n flex: 0,\n display: \"flex\",\n alignItems: \"center\",\n },\n moreActions: {\n flex: 0,\n display: \"flex\",\n alignItems: \"center\",\n minWidth: \"48px\",\n justifyContent: \"flex-end\",\n },\n});\n\n/**\n * Zone de titre d'une vue\n */\nexport function ViewTitle({\n children,\n onBack,\n actions,\n}: {\n /** Titre de la vue (en tout cas ce que l'on met dans la zone de titre) */\n children: ReactNode;\n /** Si spécifié, on ajoute une fleche \"back\" pour revenir en arrière */\n onBack?: () => void;\n /** Liste d'actions a ajouter à droite dans la zone d'actions */\n actions?: Action[];\n}) {\n const styles = useStyles();\n\n const displayBackButton = isFunction(onBack);\n const additionalList = (actions ?? []).filter((it) => it.type === \"ADDITIONAL\");\n const secondaryList = (actions ?? []).filter((it) => it.type === \"SECONDARY\");\n const primary = (actions ?? []).filter((it) => it.type === \"PRIMARY\");\n const handleBack = () => {\n if (displayBackButton && onBack) onBack();\n };\n const handleClick = async (id: string) => {\n (actions ?? []).find((it) => it.id === id)?.onClick();\n };\n return (\n <div className={styles.root}>\n {displayBackButton && (\n <div className={styles.backButton}>\n <Button icon={<ArrowLeftFilled />} appearance=\"subtle\" onClick={handleBack} />\n </div>\n )}\n <div className={styles.title}>\n <Title3>{children}</Title3>\n </div>\n <div className={styles.actions}>\n {secondaryList.length > 0 &&\n secondaryList.map((it) => (\n <Button key={it.id} disabled={it.disabled} appearance=\"secondary\" onClick={() => handleClick(it.id)}>\n {it.label}\n </Button>\n ))}\n {primary.length > 0 &&\n primary.map((it) => (\n <Button key={it.id} disabled={it.disabled} appearance=\"primary\" onClick={() => handleClick(it.id)}>\n {it.label}\n </Button>\n ))}\n </div>\n <div className={styles.moreActions}>\n {additionalList.length > 0 && (\n <Menu positioning={{ autoSize: true }}>\n <MenuTrigger disableButtonEnhancement>\n <Button icon={<MoreVerticalFilled />} />\n </MenuTrigger>\n <MenuPopover>\n <MenuList>\n {additionalList.map((it) => (\n <AdditionalActionMenuItem key={it.id} action={it} onClick={handleClick} />\n ))}\n </MenuList>\n </MenuPopover>\n </Menu>\n )}\n </div>\n </div>\n );\n}\n\nfunction EmptyIcon() {\n return <span />;\n}\n\nfunction AdditionalActionMenuItem({ action, onClick }: { action: Action; onClick: (id: string) => void }) {\n let Icon: any;\n if (action.icon === \"plus\") {\n Icon = AddSquareRegular;\n } else if (action.icon === \"trash\") {\n Icon = DeleteRegular;\n } else {\n Icon = EmptyIcon;\n }\n return (\n <MenuItem disabled={action.disabled} onClick={() => onClick(action.id)} icon={<Icon />}>\n {action.label}\n </MenuItem>\n );\n}\n"],"names":["useStyles","makeStyles","ViewTitle","children","onBack","actions","styles","displayBackButton","isFunction","additionalList","it","secondaryList","primary","handleBack","handleClick","id","_a","jsxs","jsx","Button","ArrowLeftFilled","Title3","Menu","MenuTrigger","MoreVerticalFilled","MenuPopover","MenuList","AdditionalActionMenuItem","EmptyIcon","action","onClick","Icon","AddSquareRegular","DeleteRegular","MenuItem"],"mappings":"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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { InputNumberProps } from '../number/InputNumber';
|
|
3
|
+
export interface InputDurationYearProps extends InputNumberProps {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Un input special annee.
|
|
7
|
+
*/
|
|
8
|
+
export declare const InputDurationYears: React.FC<InputDurationYearProps>;
|
|
9
|
+
//# sourceMappingURL=InputDurationYears.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputDurationYears.d.ts","sourceRoot":"","sources":["../../../src/lib/year/InputDurationYears.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAe,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGtE,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;CAAG;AAEnE;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAe/D,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { InputNumber as a } from "../number/InputNumber.js";
|
|
3
|
+
import { useI18n as u } from "../i18n/i18n.react.js";
|
|
4
|
+
const p = (t) => {
|
|
5
|
+
const { ...o } = t, { t: r } = u(), e = r("InputDurationYears_unit");
|
|
6
|
+
return /* @__PURE__ */ n(
|
|
7
|
+
a,
|
|
8
|
+
{
|
|
9
|
+
decimalScale: 0,
|
|
10
|
+
allowNegative: !1,
|
|
11
|
+
inputMode: "numeric",
|
|
12
|
+
thousandSeparator: !1,
|
|
13
|
+
size: 4,
|
|
14
|
+
unit: e,
|
|
15
|
+
...o
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
p as InputDurationYears
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=InputDurationYears.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputDurationYears.js","sources":["../../../src/lib/year/InputDurationYears.tsx"],"sourcesContent":["import React from \"react\";\nimport { InputNumber, InputNumberProps } from \"../number/InputNumber\";\nimport { useI18n } from \"../i18n/i18n.react\";\n\nexport interface InputDurationYearProps extends InputNumberProps {}\n\n/**\n * Un input special annee.\n */\nexport const InputDurationYears: React.FC<InputDurationYearProps> = (props) => {\n const { ...other } = props;\n const { t } = useI18n();\n const unit = t(\"InputDurationYears_unit\");\n return (\n <InputNumber\n decimalScale={0}\n allowNegative={false}\n inputMode=\"numeric\"\n thousandSeparator={false}\n size={4}\n unit={unit}\n {...other}\n />\n );\n};\n"],"names":["InputDurationYears","props","other","t","useI18n","unit","jsx","InputNumber"],"mappings":";;;AASO,MAAMA,IAAuD,CAACC,MAAU;AAC7E,QAAM,EAAE,GAAGC,EAAA,IAAUD,GACf,EAAE,GAAAE,EAAA,IAAMC,EAAA,GACRC,IAAOF,EAAE,yBAAyB;AACxC,SACE,gBAAAG;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,cAAc;AAAA,MACd,eAAe;AAAA,MACf,WAAU;AAAA,MACV,mBAAmB;AAAA,MACnB,MAAM;AAAA,MACN,MAAAF;AAAA,MACC,GAAGH;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { InputNumberProps } from '../number/InputNumber';
|
|
3
|
+
export interface InputYearProps extends InputNumberProps {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Permet de saisir une année.
|
|
7
|
+
*/
|
|
8
|
+
export declare const InputYear: React.FC<InputYearProps>;
|
|
9
|
+
//# sourceMappingURL=InputYear.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputYear.d.ts","sourceRoot":"","sources":["../../../src/lib/year/InputYear.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAe,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,MAAM,WAAW,cAAe,SAAQ,gBAAgB;CAAG;AAE3D;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAc9C,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { InputNumber as o } from "../number/InputNumber.js";
|
|
3
|
+
const i = (e) => {
|
|
4
|
+
const { ...t } = e;
|
|
5
|
+
return /* @__PURE__ */ r(
|
|
6
|
+
o,
|
|
7
|
+
{
|
|
8
|
+
decimalScale: 0,
|
|
9
|
+
allowNegative: !1,
|
|
10
|
+
inputMode: "numeric",
|
|
11
|
+
thousandSeparator: !1,
|
|
12
|
+
size: 4,
|
|
13
|
+
unit: "année",
|
|
14
|
+
...t
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
i as InputYear
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=InputYear.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputYear.js","sources":["../../../src/lib/year/InputYear.tsx"],"sourcesContent":["import React from \"react\";\nimport { InputNumber, InputNumberProps } from \"../number/InputNumber\";\n\nexport interface InputYearProps extends InputNumberProps {}\n\n/**\n * Permet de saisir une année.\n */\nexport const InputYear: React.FC<InputYearProps> = (props) => {\n const { ...other } = props;\n\n return (\n <InputNumber\n decimalScale={0}\n allowNegative={false}\n inputMode=\"numeric\"\n thousandSeparator={false}\n size={4}\n unit={\"année\"}\n {...other}\n />\n );\n};\n"],"names":["InputYear","props","other","jsx","InputNumber"],"mappings":";;AAQO,MAAMA,IAAsC,CAACC,MAAU;AAC5D,QAAM,EAAE,GAAGC,EAAA,IAAUD;AAErB,SACE,gBAAAE;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,cAAc;AAAA,MACd,eAAe;AAAA,MACf,WAAU;AAAA,MACV,mBAAmB;AAAA,MACnB,MAAM;AAAA,MACN,MAAM;AAAA,MACL,GAAGF;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/locales/en.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,QAAA,MAAM,MAAM,EAAE;IAAE,QAAQ,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CA8BzD,CAAC;AACF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
messages: {
|
|
3
|
+
errorbox_unknown_error: "Unknown error: {error}",
|
|
4
|
+
errorbox_unknown_error_status: "could not find error status.",
|
|
5
|
+
InputDurationMonths_unit: "months",
|
|
6
|
+
InputDurationYears_unit: "years",
|
|
7
|
+
InputSelect_select: "Select",
|
|
8
|
+
InputCombobox_noresult: "No result",
|
|
9
|
+
ListView_search: "Search",
|
|
10
|
+
ListView_no_result: "No result"
|
|
11
|
+
},
|
|
12
|
+
formats: {
|
|
13
|
+
localdate: {
|
|
14
|
+
placeholder: "mm/dd/yyyy",
|
|
15
|
+
inputmask: "MM/dd/yyyy"
|
|
16
|
+
},
|
|
17
|
+
date: {
|
|
18
|
+
short: { dateStyle: "short" },
|
|
19
|
+
// 12/08/2025
|
|
20
|
+
medium: { dateStyle: "medium" },
|
|
21
|
+
// 12 août 2025
|
|
22
|
+
datetime: { dateStyle: "medium", timeStyle: "short" }
|
|
23
|
+
// 12 août 2025 à 14:05
|
|
24
|
+
},
|
|
25
|
+
number: {
|
|
26
|
+
currency: { style: "currency", currency: "EUR", currencyDisplay: "symbol" },
|
|
27
|
+
compact: { notation: "compact" }
|
|
28
|
+
// 1,2 M
|
|
29
|
+
},
|
|
30
|
+
list: {
|
|
31
|
+
and: { style: "short", type: "conjunction" },
|
|
32
|
+
// pommes, poires et bananes
|
|
33
|
+
or: { style: "short", type: "disjunction" }
|
|
34
|
+
// pommes, poires ou bananes
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
t as default
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=en.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.js","sources":["../../src/locales/en.ts"],"sourcesContent":["import { Formats } from \"../lib/i18n\";\nimport { ModuleMessages } from \"./interfaces\";\n\nconst locale: { messages: ModuleMessages; formats: Formats } = {\n messages: {\n errorbox_unknown_error: \"Unknown error: {error}\",\n errorbox_unknown_error_status: \"could not find error status.\",\n InputDurationMonths_unit: \"months\",\n InputDurationYears_unit: \"years\",\n InputSelect_select: \"Select\",\n InputCombobox_noresult: \"No result\",\n ListView_search: \"Search\",\n ListView_no_result: \"No result\",\n },\n formats: {\n localdate: {\n placeholder: \"mm/dd/yyyy\",\n inputmask: \"MM/dd/yyyy\",\n },\n date: {\n short: { dateStyle: \"short\" }, // 12/08/2025\n medium: { dateStyle: \"medium\" }, // 12 août 2025\n datetime: { dateStyle: \"medium\", timeStyle: \"short\" }, // 12 août 2025 à 14:05\n },\n number: {\n currency: { style: \"currency\", currency: \"EUR\", currencyDisplay: \"symbol\" },\n compact: { notation: \"compact\" }, // 1,2 M\n },\n list: {\n and: { style: \"short\", type: \"conjunction\" }, // pommes, poires et bananes\n or: { style: \"short\", type: \"disjunction\" }, // pommes, poires ou bananes\n },\n },\n};\nexport default locale;\n"],"names":["locale"],"mappings":"AAGA,MAAMA,IAAyD;AAAA,EAC7D,UAAU;AAAA,IACR,wBAAwB;AAAA,IACxB,+BAA+B;AAAA,IAC/B,0BAA0B;AAAA,IAC1B,yBAAyB;AAAA,IACzB,oBAAoB;AAAA,IACpB,wBAAwB;AAAA,IACxB,iBAAiB;AAAA,IACjB,oBAAoB;AAAA,EAAA;AAAA,EAEtB,SAAS;AAAA,IACP,WAAW;AAAA,MACT,aAAa;AAAA,MACb,WAAW;AAAA,IAAA;AAAA,IAEb,MAAM;AAAA,MACJ,OAAO,EAAE,WAAW,QAAA;AAAA;AAAA,MACpB,QAAQ,EAAE,WAAW,SAAA;AAAA;AAAA,MACrB,UAAU,EAAE,WAAW,UAAU,WAAW,QAAA;AAAA;AAAA,IAAQ;AAAA,IAEtD,QAAQ;AAAA,MACN,UAAU,EAAE,OAAO,YAAY,UAAU,OAAO,iBAAiB,SAAA;AAAA,MACjE,SAAS,EAAE,UAAU,UAAA;AAAA;AAAA,IAAU;AAAA,IAEjC,MAAM;AAAA,MACJ,KAAK,EAAE,OAAO,SAAS,MAAM,cAAA;AAAA;AAAA,MAC7B,IAAI,EAAE,OAAO,SAAS,MAAM,cAAA;AAAA;AAAA,IAAc;AAAA,EAC5C;AAEJ;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/locales/fr.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,QAAA,MAAM,MAAM,EAAE;IAAE,QAAQ,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CA8BzD,CAAC;AACF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
messages: {
|
|
3
|
+
errorbox_unknown_error: "Erreur inconnue : {error}",
|
|
4
|
+
errorbox_unknown_error_status: "numéro de status d'erreur non trouvé.",
|
|
5
|
+
InputDurationMonths_unit: "mois",
|
|
6
|
+
InputDurationYears_unit: "ans",
|
|
7
|
+
InputSelect_select: "Sélectionnez",
|
|
8
|
+
InputCombobox_noresult: "Aucun résultat",
|
|
9
|
+
ListView_search: "Rechercher",
|
|
10
|
+
ListView_no_result: "Aucun résultat"
|
|
11
|
+
},
|
|
12
|
+
formats: {
|
|
13
|
+
localdate: {
|
|
14
|
+
placeholder: "jj/mm/aaaa",
|
|
15
|
+
inputmask: "dd/MM/yyyy"
|
|
16
|
+
},
|
|
17
|
+
date: {
|
|
18
|
+
short: { dateStyle: "short" },
|
|
19
|
+
// 12/08/2025
|
|
20
|
+
medium: { dateStyle: "medium" },
|
|
21
|
+
// 12 août 2025
|
|
22
|
+
datetime: { dateStyle: "medium", timeStyle: "short" }
|
|
23
|
+
// 12 août 2025 à 14:05
|
|
24
|
+
},
|
|
25
|
+
number: {
|
|
26
|
+
currency: { style: "currency", currency: "EUR", currencyDisplay: "symbol" },
|
|
27
|
+
compact: { notation: "compact" }
|
|
28
|
+
// 1,2 M
|
|
29
|
+
},
|
|
30
|
+
list: {
|
|
31
|
+
and: { style: "short", type: "conjunction" },
|
|
32
|
+
// pommes, poires et bananes
|
|
33
|
+
or: { style: "short", type: "disjunction" }
|
|
34
|
+
// pommes, poires ou bananes
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
t as default
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=fr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fr.js","sources":["../../src/locales/fr.ts"],"sourcesContent":["import { Formats } from \"../lib/i18n\";\nimport { ModuleMessages } from \"./interfaces\";\n\nconst locale: { messages: ModuleMessages; formats: Formats } = {\n messages: {\n errorbox_unknown_error: \"Erreur inconnue : {error}\",\n errorbox_unknown_error_status: \"numéro de status d'erreur non trouvé.\",\n InputDurationMonths_unit: \"mois\",\n InputDurationYears_unit: \"ans\",\n InputSelect_select: \"Sélectionnez\",\n InputCombobox_noresult: \"Aucun résultat\",\n ListView_search: \"Rechercher\",\n ListView_no_result: \"Aucun résultat\",\n },\n formats: {\n localdate: {\n placeholder: \"jj/mm/aaaa\",\n inputmask: \"dd/MM/yyyy\",\n },\n date: {\n short: { dateStyle: \"short\" }, // 12/08/2025\n medium: { dateStyle: \"medium\" }, // 12 août 2025\n datetime: { dateStyle: \"medium\", timeStyle: \"short\" }, // 12 août 2025 à 14:05\n },\n number: {\n currency: { style: \"currency\", currency: \"EUR\", currencyDisplay: \"symbol\" },\n compact: { notation: \"compact\" }, // 1,2 M\n },\n list: {\n and: { style: \"short\", type: \"conjunction\" }, // pommes, poires et bananes\n or: { style: \"short\", type: \"disjunction\" }, // pommes, poires ou bananes\n },\n },\n};\nexport default locale;\n"],"names":["locale"],"mappings":"AAGA,MAAMA,IAAyD;AAAA,EAC7D,UAAU;AAAA,IACR,wBAAwB;AAAA,IACxB,+BAA+B;AAAA,IAC/B,0BAA0B;AAAA,IAC1B,yBAAyB;AAAA,IACzB,oBAAoB;AAAA,IACpB,wBAAwB;AAAA,IACxB,iBAAiB;AAAA,IACjB,oBAAoB;AAAA,EAAA;AAAA,EAEtB,SAAS;AAAA,IACP,WAAW;AAAA,MACT,aAAa;AAAA,MACb,WAAW;AAAA,IAAA;AAAA,IAEb,MAAM;AAAA,MACJ,OAAO,EAAE,WAAW,QAAA;AAAA;AAAA,MACpB,QAAQ,EAAE,WAAW,SAAA;AAAA;AAAA,MACrB,UAAU,EAAE,WAAW,UAAU,WAAW,QAAA;AAAA;AAAA,IAAQ;AAAA,IAEtD,QAAQ;AAAA,MACN,UAAU,EAAE,OAAO,YAAY,UAAU,OAAO,iBAAiB,SAAA;AAAA,MACjE,SAAS,EAAE,UAAU,UAAA;AAAA;AAAA,IAAU;AAAA,IAEjC,MAAM;AAAA,MACJ,KAAK,EAAE,OAAO,SAAS,MAAM,cAAA;AAAA;AAAA,MAC7B,IAAI,EAAE,OAAO,SAAS,MAAM,cAAA;AAAA;AAAA,IAAc;AAAA,EAC5C;AAEJ;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type ModuleMessages = {
|
|
2
|
+
errorbox_unknown_error: string;
|
|
3
|
+
errorbox_unknown_error_status: string;
|
|
4
|
+
InputDurationMonths_unit: string;
|
|
5
|
+
InputDurationYears_unit: string;
|
|
6
|
+
InputSelect_select: string;
|
|
7
|
+
InputCombobox_noresult: string;
|
|
8
|
+
ListView_search: string;
|
|
9
|
+
ListView_no_result: string;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/locales/interfaces.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,6BAA6B,EAAE,MAAM,CAAC;IACtC,wBAAwB,EAAE,MAAM,CAAC;IACjC,uBAAuB,EAAE,MAAM,CAAC;IAChC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SeijUIProviderDecorator.d.ts","sourceRoot":"","sources":["../../../src/stories/utils/SeijUIProviderDecorator.tsx"],"names":[],"mappings":"AAEA,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,GAAG,2CAMjD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* StoryComponentFrame visually highlights the boundaries and spacing of a wrapped component.
|
|
4
|
+
* It renders a yellow background with padding, and places the child component inside a white box with a dashed border.
|
|
5
|
+
*
|
|
6
|
+
* Use this frame in Storybook to clearly see the actual margins, padding, and positioning of your component within its container.
|
|
7
|
+
*/
|
|
8
|
+
export declare const StoryComponentFrame: ({ title, children }: PropsWithChildren & {
|
|
9
|
+
title: string;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=StoryComponentFrame.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoryComponentFrame.d.ts","sourceRoot":"","sources":["../../../src/stories/utils/StoryComponentFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC1C;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,qBAAqB,iBAAiB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,4CAS7F,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@seij/common-ui",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/seij-net/seij-commons-js.git"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@seij/common-types": "0.1.2",
|
|
12
|
+
"i18next-icu": "2.4.1",
|
|
13
|
+
"@fluentui/react-components": "9.72.9",
|
|
14
|
+
"date-fns": "4.1.0",
|
|
15
|
+
"i18next": "25.7.3",
|
|
16
|
+
"rifm": "0.12.1",
|
|
17
|
+
"@fluentui/react-icons": "2.0.316",
|
|
18
|
+
"lodash-es": "4.17.22"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@types/lodash-es": "4.17.12"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"react": "18.3.1",
|
|
25
|
+
"react-dom": "18.3.1"
|
|
26
|
+
},
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"import": "./dist/index.js",
|
|
30
|
+
"types": "./dist/index.d.ts"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist/**",
|
|
35
|
+
"README.md",
|
|
36
|
+
"LICENSE"
|
|
37
|
+
],
|
|
38
|
+
"scripts": {
|
|
39
|
+
"clean": "rm -rf ./dist",
|
|
40
|
+
"build": "vite build -c vite.config.ts",
|
|
41
|
+
"test": "vitest run",
|
|
42
|
+
"lint": "eslint .",
|
|
43
|
+
"typecheck": "tsc -p tsconfig.lib.json --noEmit",
|
|
44
|
+
"watch": "tsc -p tsconfig.lib.json --noEmit --watch",
|
|
45
|
+
"storybook": "storybook dev -p 6006",
|
|
46
|
+
"build-storybook": "storybook build"
|
|
47
|
+
}
|
|
48
|
+
}
|