@headless-adminapp/fluent 1.1.3 → 1.1.6
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/DataGrid/TableCell/TableCellChoice.js +2 -30
- package/DataGrid/useTableColumns.js +41 -2
- package/PageEntityForm/PageEntityForm.js +8 -0
- package/PageEntityForm/SectionContainer.d.ts +2 -2
- package/PageEntityForm/SectionContainer.js +16 -2
- package/PageEntityForm/StandardControl.js +10 -0
- package/components/ChoiceBadge.d.ts +9 -0
- package/components/ChoiceBadge.js +29 -0
- package/components/LoginForm.d.ts +8 -0
- package/components/LoginForm.js +4 -4
- package/components/PageLogin.d.ts +5 -0
- package/components/PageLogin.js +2 -1
- package/form/controls/RegardingControl.d.ts +25 -0
- package/form/controls/RegardingControl.js +202 -0
- package/form/controls/SelectControl.d.ts +1 -1
- package/form/controls/SelectControl.js +1 -3
- package/form/controls/TimeControl.d.ts +4 -0
- package/form/controls/TimeControl.js +89 -0
- package/form/controls/useLookupData.d.ts +12 -2
- package/form/controls/useLookupData.js +71 -20
- package/package.json +2 -2
- package/App/NavigationContainer.d.ts +0 -10
- package/App/NavigationContainer.js +0 -68
- package/App/utils.d.ts +0 -14
- package/App/utils.js +0 -26
- package/Insights/CommandBarContainer.d.ts +0 -1
- package/Insights/CommandBarContainer.js +0 -18
- package/Insights/FilterBarContainer.d.ts +0 -1
- package/Insights/FilterBarContainer.js +0 -99
- package/Insights/hooks/useQueriesData.d.ts +0 -7
- package/Insights/hooks/useQueriesData.js +0 -89
- package/Insights/hooks/useWidgetDetail.d.ts +0 -10
- package/Insights/hooks/useWidgetDetail.js +0 -39
- package/PageCalendar/baseEventAttributes.d.ts +0 -35
- package/PageCalendar/baseEventAttributes.js +0 -38
- package/PageCalendar/context.d.ts +0 -20
- package/PageCalendar/context.js +0 -5
- package/PageCalendar/hooks/index.d.ts +0 -1
- package/PageCalendar/hooks/index.js +0 -17
- package/PageCalendar/hooks/useConfig.d.ts +0 -3
- package/PageCalendar/hooks/useConfig.js +0 -8
- package/PageInsights/PageInsights.d.ts +0 -7
- package/PageInsights/PageInsights.js +0 -31
- package/PageInsights/index.d.ts +0 -1
- package/PageInsights/index.js +0 -5
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export declare const baseEventAttributes: {
|
|
2
|
-
id: {
|
|
3
|
-
type: "id";
|
|
4
|
-
label: string;
|
|
5
|
-
string: true;
|
|
6
|
-
};
|
|
7
|
-
title: {
|
|
8
|
-
type: "string";
|
|
9
|
-
format: "text";
|
|
10
|
-
label: string;
|
|
11
|
-
required: true;
|
|
12
|
-
};
|
|
13
|
-
start: {
|
|
14
|
-
type: "date";
|
|
15
|
-
format: "datetime";
|
|
16
|
-
label: string;
|
|
17
|
-
required: true;
|
|
18
|
-
};
|
|
19
|
-
end: {
|
|
20
|
-
type: "date";
|
|
21
|
-
format: "datetime";
|
|
22
|
-
label: string;
|
|
23
|
-
required: true;
|
|
24
|
-
};
|
|
25
|
-
allDay: {
|
|
26
|
-
type: "boolean";
|
|
27
|
-
label: string;
|
|
28
|
-
};
|
|
29
|
-
description: {
|
|
30
|
-
type: "string";
|
|
31
|
-
format: "textarea";
|
|
32
|
-
label: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
export type BaseEventAttributes = typeof baseEventAttributes;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.baseEventAttributes = void 0;
|
|
4
|
-
const utils_1 = require("@headless-adminapp/core/schema/utils");
|
|
5
|
-
exports.baseEventAttributes = (0, utils_1.defineSchemaAttributes)({
|
|
6
|
-
id: {
|
|
7
|
-
type: 'id',
|
|
8
|
-
label: 'ID',
|
|
9
|
-
string: true,
|
|
10
|
-
},
|
|
11
|
-
title: {
|
|
12
|
-
type: 'string',
|
|
13
|
-
format: 'text',
|
|
14
|
-
label: 'Title',
|
|
15
|
-
required: true,
|
|
16
|
-
},
|
|
17
|
-
start: {
|
|
18
|
-
type: 'date',
|
|
19
|
-
format: 'datetime',
|
|
20
|
-
label: 'Start',
|
|
21
|
-
required: true,
|
|
22
|
-
},
|
|
23
|
-
end: {
|
|
24
|
-
type: 'date',
|
|
25
|
-
format: 'datetime',
|
|
26
|
-
label: 'End',
|
|
27
|
-
required: true,
|
|
28
|
-
},
|
|
29
|
-
allDay: {
|
|
30
|
-
type: 'boolean',
|
|
31
|
-
label: 'All day',
|
|
32
|
-
},
|
|
33
|
-
description: {
|
|
34
|
-
type: 'string',
|
|
35
|
-
format: 'textarea',
|
|
36
|
-
label: 'Description',
|
|
37
|
-
},
|
|
38
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { InferredSchemaType, SchemaAttributes } from '@headless-adminapp/core/schema';
|
|
2
|
-
import { CalendarEventResolverFn, CalendarEventSaveFn, CalendarEventsResolverFn } from './types';
|
|
3
|
-
export interface CalendarConfig<SA1 extends SchemaAttributes = SchemaAttributes, SA2 extends SchemaAttributes = SchemaAttributes, SA3 extends SchemaAttributes = SchemaAttributes> {
|
|
4
|
-
eventsResolver: CalendarEventsResolverFn<SA3>;
|
|
5
|
-
eventResolver?: CalendarEventResolverFn;
|
|
6
|
-
saveEvent: CalendarEventSaveFn<SA1, SA2>;
|
|
7
|
-
beforeDescriptionAttributes?: SA1;
|
|
8
|
-
afterDescriptionAttributes?: SA2;
|
|
9
|
-
filterAttributes?: SA3;
|
|
10
|
-
defaultFilter?: InferredSchemaType<SA3>;
|
|
11
|
-
openRecord?: (id: string) => void;
|
|
12
|
-
deleteEvent: (id: string) => Promise<void>;
|
|
13
|
-
title: string;
|
|
14
|
-
description: string;
|
|
15
|
-
eventLabel: string;
|
|
16
|
-
}
|
|
17
|
-
export interface CalendarContextState<SA1 extends SchemaAttributes = SchemaAttributes, SA2 extends SchemaAttributes = SchemaAttributes, SA3 extends SchemaAttributes = SchemaAttributes> {
|
|
18
|
-
config: CalendarConfig<SA1, SA2, SA3>;
|
|
19
|
-
}
|
|
20
|
-
export declare const CalendarContext: import("react").Context<import("@headless-adminapp/app/mutable").ContextValue<CalendarContextState<SchemaAttributes, SchemaAttributes, SchemaAttributes>>>;
|
package/PageCalendar/context.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useConfig';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./useConfig"), exports);
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { SchemaAttributes } from '@headless-adminapp/core/schema';
|
|
2
|
-
import { CalendarConfig } from '../context';
|
|
3
|
-
export declare function useConfig<SA1 extends SchemaAttributes = SchemaAttributes, SA2 extends SchemaAttributes = SchemaAttributes, SA3 extends SchemaAttributes = SchemaAttributes>(): CalendarConfig<SA1, SA2, SA3>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useConfig = useConfig;
|
|
4
|
-
const mutable_1 = require("@headless-adminapp/app/mutable");
|
|
5
|
-
const context_1 = require("../context");
|
|
6
|
-
function useConfig() {
|
|
7
|
-
return (0, mutable_1.useContextSelector)(context_1.CalendarContext, (state) => state.config);
|
|
8
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { InsightConfig } from '@headless-adminapp/core/experience/insights';
|
|
2
|
-
import { SchemaAttributes } from '@headless-adminapp/core/schema';
|
|
3
|
-
interface PageInsightsProps<S extends SchemaAttributes = SchemaAttributes> {
|
|
4
|
-
config: InsightConfig<S>;
|
|
5
|
-
}
|
|
6
|
-
export declare function PageInsights<S extends SchemaAttributes = SchemaAttributes>({ config, }: Readonly<PageInsightsProps<S>>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PageInsights = PageInsights;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const insights_1 = require("@headless-adminapp/app/insights");
|
|
6
|
-
const mutable_1 = require("@headless-adminapp/app/mutable");
|
|
7
|
-
const store_1 = require("@headless-adminapp/app/store");
|
|
8
|
-
const react_1 = require("react");
|
|
9
|
-
const react_hook_form_1 = require("react-hook-form");
|
|
10
|
-
const InsightsContainer_1 = require("../Insights/InsightsContainer");
|
|
11
|
-
function PageInsights({ config, }) {
|
|
12
|
-
const filterForm = (0, react_hook_form_1.useForm)({
|
|
13
|
-
mode: 'all',
|
|
14
|
-
defaultValues: config.defaultFilter,
|
|
15
|
-
shouldUnregister: false,
|
|
16
|
-
});
|
|
17
|
-
const filterValues = filterForm.watch();
|
|
18
|
-
const eventManager = (0, react_1.useMemo)(() => new store_1.EventManager(), []);
|
|
19
|
-
const insightsValues = (0, mutable_1.useCreateContextStore)({
|
|
20
|
-
config,
|
|
21
|
-
filterValues,
|
|
22
|
-
eventManager,
|
|
23
|
-
});
|
|
24
|
-
(0, react_1.useEffect)(() => {
|
|
25
|
-
insightsValues.setValue({
|
|
26
|
-
config,
|
|
27
|
-
filterValues,
|
|
28
|
-
});
|
|
29
|
-
}, [config, filterValues, insightsValues]);
|
|
30
|
-
return ((0, jsx_runtime_1.jsx)(insights_1.InsightsContext.Provider, { value: insightsValues, children: (0, jsx_runtime_1.jsx)(react_hook_form_1.FormProvider, { ...filterForm, children: (0, jsx_runtime_1.jsx)(InsightsContainer_1.InsightsContainer, {}) }) }));
|
|
31
|
-
}
|
package/PageInsights/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PageInsights } from './PageInsights';
|
package/PageInsights/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PageInsights = void 0;
|
|
4
|
-
var PageInsights_1 = require("./PageInsights");
|
|
5
|
-
Object.defineProperty(exports, "PageInsights", { enumerable: true, get: function () { return PageInsights_1.PageInsights; } });
|