@agnos-ui/core-bootstrap 0.3.0 → 0.4.0-next.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/{accordion-jB0Q8V5J.cjs → accordion-B-uoNLHJ.cjs} +31 -5
- package/{accordion-Bgd6SWnD.js → accordion-DBVC9W8u.js} +31 -5
- package/{alert-CegOWFcG.js → alert-BgtRL35m.js} +2 -2
- package/{alert-B9JCvO-j.cjs → alert-CKtd0QdX.cjs} +2 -2
- package/components/accordion/accordion.d.ts +21 -11
- package/components/accordion/index.cjs +5 -6
- package/components/accordion/index.js +1 -1
- package/components/alert/alert.d.ts +4 -5
- package/components/alert/index.cjs +5 -6
- package/components/alert/index.js +1 -1
- package/components/modal/index.cjs +5 -6
- package/components/modal/index.js +1 -1
- package/components/modal/modal.d.ts +15 -6
- package/components/pagination/index.cjs +4 -5
- package/components/pagination/pagination.d.ts +4 -5
- package/components/progressbar/index.cjs +5 -6
- package/components/progressbar/index.js +1 -1
- package/components/progressbar/progressbar.d.ts +3 -4
- package/components/rating/index.cjs +5 -6
- package/components/rating/index.js +1 -1
- package/components/rating/rating.d.ts +3 -4
- package/components/select/index.cjs +5 -6
- package/components/select/index.js +1 -1
- package/components/select/select.d.ts +6 -7
- package/components/slider/index.cjs +5 -6
- package/components/slider/index.js +1 -1
- package/components/slider/slider.d.ts +5 -6
- package/components/toast/index.cjs +5 -6
- package/components/toast/index.js +1 -1
- package/components/toast/toast.d.ts +5 -6
- package/index.cjs +44 -53
- package/index.js +8 -8
- package/{modal-CXM6wQ-N.js → modal-BIfiTSEV.js} +2 -1
- package/{modal-CJt6Fp1P.cjs → modal-DjcVpsmH.cjs} +2 -1
- package/package.json +2 -3
- package/{progressbar-Cb_c2h_2.js → progressbar-YdR19Yjo.js} +1 -1
- package/{progressbar-I6Jvhy5T.cjs → progressbar-lnU6H0H4.cjs} +1 -1
- package/{rating-BvtHfl45.cjs → rating-Bf8cRtHn.cjs} +1 -1
- package/{rating-CNQcp5pm.js → rating-C1UqlpFs.js} +1 -1
- package/{select-psgTS2xQ.cjs → select-9qmK2r6f.cjs} +2 -2
- package/{select-2BdFlVLo.js → select-DMeOSbKZ.js} +2 -2
- package/{slider-DjrZ5zAy.js → slider-BOtu3bQi.js} +3 -3
- package/{slider-DCSKvhja.cjs → slider-DA7_i-am.cjs} +3 -3
- package/{toast-kMbwghA_.cjs → toast-CnSdkWfG.cjs} +3 -3
- package/{toast-kK5X1pf9.js → toast-aPzxFEq9.js} +3 -3
|
@@ -3,16 +3,42 @@ const accordion = require("@agnos-ui/core/components/accordion");
|
|
|
3
3
|
const collapse = require("./collapse-sUYbZqEx.cjs");
|
|
4
4
|
const extendWidget = require("@agnos-ui/core/services/extendWidget");
|
|
5
5
|
const defaultConfigExtraProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
itemStructure: void 0
|
|
7
|
+
};
|
|
8
|
+
const defaultConfigItemExtraProps = {
|
|
9
|
+
structure: void 0,
|
|
10
|
+
children: void 0,
|
|
11
|
+
header: void 0
|
|
9
12
|
};
|
|
10
13
|
const defaultPropsWithoutOverride = {
|
|
11
14
|
...accordion.getAccordionDefaultConfig(),
|
|
12
15
|
...defaultConfigExtraProps
|
|
13
16
|
};
|
|
14
|
-
const
|
|
15
|
-
|
|
17
|
+
const accordionItemDefaultConfig = {
|
|
18
|
+
animated: false,
|
|
19
|
+
transition: collapse.collapseVerticalTransition,
|
|
20
|
+
destroyOnHide: false,
|
|
21
|
+
onShown: () => {
|
|
22
|
+
},
|
|
23
|
+
onHidden: () => {
|
|
24
|
+
},
|
|
25
|
+
onVisibleChange: () => {
|
|
26
|
+
},
|
|
27
|
+
visible: false,
|
|
28
|
+
disabled: false,
|
|
29
|
+
id: "",
|
|
30
|
+
headerClassName: "",
|
|
31
|
+
buttonClassName: "",
|
|
32
|
+
bodyContainerClassName: "",
|
|
33
|
+
bodyClassName: "",
|
|
34
|
+
headingTag: "",
|
|
35
|
+
className: "",
|
|
36
|
+
structure: void 0,
|
|
37
|
+
children: void 0,
|
|
38
|
+
header: void 0
|
|
39
|
+
};
|
|
40
|
+
const accordionItemProps = Object.keys(accordionItemDefaultConfig);
|
|
41
|
+
const createAccordionItem = extendWidget.extendWidgetProps(accordion.createAccordionItem, defaultConfigItemExtraProps);
|
|
16
42
|
const coreOverride = {
|
|
17
43
|
itemTransition: collapse.collapseVerticalTransition
|
|
18
44
|
};
|
|
@@ -2,16 +2,42 @@ import { getAccordionDefaultConfig as getAccordionDefaultConfig$1, createAccordi
|
|
|
2
2
|
import { c as collapseVerticalTransition } from "./collapse-CVjUhnIz.js";
|
|
3
3
|
import { extendWidgetProps } from "@agnos-ui/core/services/extendWidget";
|
|
4
4
|
const defaultConfigExtraProps = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
itemStructure: void 0
|
|
6
|
+
};
|
|
7
|
+
const defaultConfigItemExtraProps = {
|
|
8
|
+
structure: void 0,
|
|
9
|
+
children: void 0,
|
|
10
|
+
header: void 0
|
|
8
11
|
};
|
|
9
12
|
const defaultPropsWithoutOverride = {
|
|
10
13
|
...getAccordionDefaultConfig$1(),
|
|
11
14
|
...defaultConfigExtraProps
|
|
12
15
|
};
|
|
13
|
-
const
|
|
14
|
-
|
|
16
|
+
const accordionItemDefaultConfig = {
|
|
17
|
+
animated: false,
|
|
18
|
+
transition: collapseVerticalTransition,
|
|
19
|
+
destroyOnHide: false,
|
|
20
|
+
onShown: () => {
|
|
21
|
+
},
|
|
22
|
+
onHidden: () => {
|
|
23
|
+
},
|
|
24
|
+
onVisibleChange: () => {
|
|
25
|
+
},
|
|
26
|
+
visible: false,
|
|
27
|
+
disabled: false,
|
|
28
|
+
id: "",
|
|
29
|
+
headerClassName: "",
|
|
30
|
+
buttonClassName: "",
|
|
31
|
+
bodyContainerClassName: "",
|
|
32
|
+
bodyClassName: "",
|
|
33
|
+
headingTag: "",
|
|
34
|
+
className: "",
|
|
35
|
+
structure: void 0,
|
|
36
|
+
children: void 0,
|
|
37
|
+
header: void 0
|
|
38
|
+
};
|
|
39
|
+
const accordionItemProps = Object.keys(accordionItemDefaultConfig);
|
|
40
|
+
const createAccordionItem = extendWidgetProps(createAccordionItem$1, defaultConfigItemExtraProps);
|
|
15
41
|
const coreOverride = {
|
|
16
42
|
itemTransition: collapseVerticalTransition
|
|
17
43
|
};
|
|
@@ -3,8 +3,8 @@ import { typeString } from "@agnos-ui/core/utils/writables";
|
|
|
3
3
|
import { extendWidgetProps } from "@agnos-ui/core/services/extendWidget";
|
|
4
4
|
import { f as fadeTransition } from "./fade-uOobJKgw.js";
|
|
5
5
|
const defaultConfigExtraProps = {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
structure: void 0,
|
|
7
|
+
children: void 0,
|
|
8
8
|
type: "primary"
|
|
9
9
|
};
|
|
10
10
|
const coreOverride = {
|
|
@@ -4,8 +4,8 @@ const writables = require("@agnos-ui/core/utils/writables");
|
|
|
4
4
|
const extendWidget = require("@agnos-ui/core/services/extendWidget");
|
|
5
5
|
const fade = require("./fade-CJ0jXGio.cjs");
|
|
6
6
|
const defaultConfigExtraProps = {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
structure: void 0,
|
|
8
|
+
children: void 0,
|
|
9
9
|
type: "primary"
|
|
10
10
|
};
|
|
11
11
|
const coreOverride = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { AccordionApi, AccordionDirectives, AccordionItemActions, AccordionItemApi, AccordionProps as CoreProps, AccordionState as CoreState, AccordionItemState as CoreItemState, AccordionItemProps as CoreItemProps, AccordionItemDirectives } from '@agnos-ui/core/components/accordion';
|
|
2
|
-
import type { ExtendWidgetAdaptSlotWidgetProps } from '@agnos-ui/core/services/extendWidget';
|
|
3
2
|
import type { SlotContent, Widget, WidgetFactory, WidgetSlotContext } from '@agnos-ui/core/types';
|
|
4
3
|
export * from '@agnos-ui/core/components/accordion';
|
|
5
4
|
export type AccordionItemContext = WidgetSlotContext<AccordionItemWidget>;
|
|
@@ -7,33 +6,44 @@ interface AccordionExtraProps {
|
|
|
7
6
|
/**
|
|
8
7
|
* Structure of the accordion-item. The default item structure is: accordion-item
|
|
9
8
|
* contains accordion header and accordion-item body container; the accordion header contains the accordion button
|
|
10
|
-
* (that contains `
|
|
11
|
-
* The itemTransition
|
|
9
|
+
* (that contains `header`), while the accordion-item body container contains the accordion body (that contains `children`).
|
|
10
|
+
* The itemTransition is applied on this element.
|
|
12
11
|
*
|
|
13
12
|
* It is a prop of the accordion-item.
|
|
14
13
|
*/
|
|
15
|
-
|
|
14
|
+
itemStructure: SlotContent<AccordionItemContext>;
|
|
15
|
+
}
|
|
16
|
+
interface AccordionItemExtraProps {
|
|
17
|
+
/**
|
|
18
|
+
* Structure of the accordion-item. The default item structure is: accordion-item
|
|
19
|
+
* contains accordion header and accordion-item body container; the accordion header contains the accordion button
|
|
20
|
+
* (that contains `header`), while the accordion-item body container contains the accordion body (that contains `children`).
|
|
21
|
+
* The itemTransition is applied on this element.
|
|
22
|
+
*
|
|
23
|
+
* It is a prop of the accordion-item.
|
|
24
|
+
*/
|
|
25
|
+
structure: SlotContent<AccordionItemContext>;
|
|
16
26
|
/**
|
|
17
27
|
* Content present in the accordion body.
|
|
18
28
|
*
|
|
19
29
|
* It is a prop of the accordion-item.
|
|
20
30
|
*/
|
|
21
|
-
|
|
31
|
+
children: SlotContent<AccordionItemContext>;
|
|
22
32
|
/**
|
|
23
33
|
* Content present in the accordion button inside the accordion header.
|
|
24
34
|
*
|
|
25
35
|
* It is a prop of the accordion-item.
|
|
26
36
|
*/
|
|
27
|
-
|
|
37
|
+
header: SlotContent<AccordionItemContext>;
|
|
28
38
|
}
|
|
29
|
-
export interface AccordionState extends
|
|
39
|
+
export interface AccordionState extends CoreState, AccordionExtraProps {
|
|
30
40
|
}
|
|
31
|
-
export interface AccordionProps extends
|
|
41
|
+
export interface AccordionProps extends CoreProps, AccordionExtraProps {
|
|
32
42
|
}
|
|
33
43
|
export type AccordionWidget = Widget<AccordionProps, AccordionState, AccordionApi, object, AccordionDirectives>;
|
|
34
|
-
export interface AccordionItemState extends
|
|
44
|
+
export interface AccordionItemState extends CoreItemState, AccordionItemExtraProps {
|
|
35
45
|
}
|
|
36
|
-
export interface AccordionItemProps extends
|
|
46
|
+
export interface AccordionItemProps extends CoreItemProps, AccordionItemExtraProps {
|
|
37
47
|
}
|
|
38
48
|
export type AccordionItemWidget = Widget<AccordionItemProps, AccordionItemState, AccordionItemApi, AccordionItemActions, AccordionItemDirectives>;
|
|
39
49
|
/**
|
|
@@ -41,7 +51,7 @@ export type AccordionItemWidget = Widget<AccordionItemProps, AccordionItemState,
|
|
|
41
51
|
* @param config - an optional alert config
|
|
42
52
|
* @returns an AccordionWidget
|
|
43
53
|
*/
|
|
44
|
-
export declare const createAccordionItem: WidgetFactory<import("@agnos-ui/core/services/extendWidget").ExtendWidgetProps<import("@agnos-ui/core/components/accordion").AccordionItemWidget,
|
|
54
|
+
export declare const createAccordionItem: WidgetFactory<import("@agnos-ui/core/services/extendWidget").ExtendWidgetProps<import("@agnos-ui/core/components/accordion").AccordionItemWidget, AccordionItemExtraProps, object>>;
|
|
45
55
|
/**
|
|
46
56
|
* Retrieve a shallow copy of the default accordion config
|
|
47
57
|
* @returns the default accordion config
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const accordion = require("../../accordion-
|
|
3
|
+
const accordion = require("../../accordion-B-uoNLHJ.cjs");
|
|
4
4
|
const accordion$1 = require("@agnos-ui/core/components/accordion");
|
|
5
5
|
exports.createAccordion = accordion.createAccordion;
|
|
6
6
|
exports.createAccordionItem = accordion.createAccordionItem;
|
|
7
7
|
exports.getAccordionDefaultConfig = accordion.getAccordionDefaultConfig;
|
|
8
8
|
Object.keys(accordion$1).forEach((k) => {
|
|
9
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
});
|
|
9
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: () => accordion$1[k]
|
|
12
|
+
});
|
|
14
13
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { AlertDirectives, AlertState as CoreState, AlertProps as CoreProps, AlertApi } from '@agnos-ui/core/components/alert';
|
|
2
2
|
import type { SlotContent, Widget, WidgetFactory, WidgetSlotContext } from '@agnos-ui/core/types';
|
|
3
|
-
import type { ExtendWidgetAdaptSlotWidgetProps } from '@agnos-ui/core/services/extendWidget';
|
|
4
3
|
import type { BSContextualClass } from '../../types';
|
|
5
4
|
export * from '@agnos-ui/core/components/alert';
|
|
6
5
|
export type AlertContext = WidgetSlotContext<AlertWidget>;
|
|
@@ -8,19 +7,19 @@ interface AlertExtraProps {
|
|
|
8
7
|
/**
|
|
9
8
|
* Global template for the alert component
|
|
10
9
|
*/
|
|
11
|
-
|
|
10
|
+
structure: SlotContent<AlertContext>;
|
|
12
11
|
/**
|
|
13
12
|
* Template for the alert content
|
|
14
13
|
*/
|
|
15
|
-
|
|
14
|
+
children: SlotContent<AlertContext>;
|
|
16
15
|
/**
|
|
17
16
|
* Type of the alert, following bootstrap types.
|
|
18
17
|
*/
|
|
19
18
|
type: BSContextualClass;
|
|
20
19
|
}
|
|
21
|
-
export interface AlertState extends
|
|
20
|
+
export interface AlertState extends CoreState, AlertExtraProps {
|
|
22
21
|
}
|
|
23
|
-
export interface AlertProps extends
|
|
22
|
+
export interface AlertProps extends CoreProps, AlertExtraProps {
|
|
24
23
|
}
|
|
25
24
|
export type AlertWidget = Widget<AlertProps, AlertState, AlertApi, object, AlertDirectives>;
|
|
26
25
|
/**
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const alert = require("../../alert-
|
|
3
|
+
const alert = require("../../alert-CKtd0QdX.cjs");
|
|
4
4
|
const alert$1 = require("@agnos-ui/core/components/alert");
|
|
5
5
|
exports.createAlert = alert.createAlert;
|
|
6
6
|
exports.getAlertDefaultConfig = alert.getAlertDefaultConfig;
|
|
7
7
|
Object.keys(alert$1).forEach((k) => {
|
|
8
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
8
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: () => alert$1[k]
|
|
11
|
+
});
|
|
13
12
|
});
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const modal = require("../../modal-
|
|
3
|
+
const modal = require("../../modal-DjcVpsmH.cjs");
|
|
4
4
|
const modal$1 = require("@agnos-ui/core/components/modal");
|
|
5
5
|
exports.createModal = modal.createModal;
|
|
6
6
|
exports.getModalDefaultConfig = modal.getModalDefaultConfig;
|
|
7
7
|
Object.keys(modal$1).forEach((k) => {
|
|
8
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
8
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: () => modal$1[k]
|
|
11
|
+
});
|
|
13
12
|
});
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import type { ModalProps as CoreProps, ModalState as CoreState, ModalActions, ModalApi, ModalDirectives } from '@agnos-ui/core/components/modal';
|
|
1
|
+
import type { ModalProps as CoreProps, ModalState as CoreState, ModalActions, ModalApi as CoreApi, ModalDirectives } from '@agnos-ui/core/components/modal';
|
|
2
2
|
import type { PropsConfig, SlotContent, Widget, WidgetSlotContext } from '@agnos-ui/core/types';
|
|
3
|
-
import type { ExtendWidgetAdaptSlotWidgetProps } from '@agnos-ui/core/services/extendWidget';
|
|
4
3
|
export * from '@agnos-ui/core/components/modal';
|
|
5
4
|
export type ModalContext<Data> = WidgetSlotContext<ModalWidget<Data>>;
|
|
6
5
|
interface ModalExtraProps<Data> {
|
|
6
|
+
/**
|
|
7
|
+
* Data to use in content slots
|
|
8
|
+
*/
|
|
9
|
+
contentData: Data;
|
|
7
10
|
/**
|
|
8
11
|
* Body of the modal.
|
|
9
12
|
*/
|
|
10
|
-
|
|
13
|
+
children: SlotContent<ModalContext<Data>>;
|
|
11
14
|
/**
|
|
12
15
|
* Footer of the modal.
|
|
13
16
|
*/
|
|
@@ -18,7 +21,7 @@ interface ModalExtraProps<Data> {
|
|
|
18
21
|
slotHeader: SlotContent<ModalContext<Data>>;
|
|
19
22
|
/**
|
|
20
23
|
* Structure of the modal.
|
|
21
|
-
* The default structure uses {@link ModalCommonPropsAndState.slotHeader|slotHeader}, {@link ModalCommonPropsAndState.
|
|
24
|
+
* The default structure uses {@link ModalCommonPropsAndState.slotHeader|slotHeader}, {@link ModalCommonPropsAndState.children|children} and {@link ModalCommonPropsAndState.slotFooter|slotFooter}.
|
|
22
25
|
*/
|
|
23
26
|
slotStructure: SlotContent<ModalContext<Data>>;
|
|
24
27
|
/**
|
|
@@ -30,9 +33,15 @@ interface ModalExtraProps<Data> {
|
|
|
30
33
|
*/
|
|
31
34
|
fullscreen: boolean;
|
|
32
35
|
}
|
|
33
|
-
export interface ModalState<Data> extends
|
|
36
|
+
export interface ModalState<Data> extends CoreState, ModalExtraProps<Data> {
|
|
37
|
+
}
|
|
38
|
+
export interface ModalProps<Data> extends CoreProps, ModalExtraProps<Data> {
|
|
34
39
|
}
|
|
35
|
-
export interface
|
|
40
|
+
export interface ModalApi<Data> extends Omit<CoreApi, 'patch'> {
|
|
41
|
+
/**
|
|
42
|
+
* Method to change some modal properties.
|
|
43
|
+
*/
|
|
44
|
+
patch: ModalWidget<Data>['patch'];
|
|
36
45
|
}
|
|
37
46
|
export type ModalWidget<Data> = Widget<ModalProps<Data>, ModalState<Data>, ModalApi<Data>, ModalActions, ModalDirectives>;
|
|
38
47
|
/**
|
|
@@ -6,9 +6,8 @@ exports.createPagination = pageFactory.createPagination;
|
|
|
6
6
|
exports.getPaginationDefaultConfig = pageFactory.getPaginationDefaultConfig;
|
|
7
7
|
exports.ngBootstrapPagination = pageFactory.ngBootstrapPagination;
|
|
8
8
|
Object.keys(pagination).forEach((k) => {
|
|
9
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
});
|
|
9
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: () => pagination[k]
|
|
12
|
+
});
|
|
14
13
|
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type ExtendWidgetAdaptSlotWidgetProps } from '@agnos-ui/core/services/extendWidget';
|
|
2
1
|
import type { SlotContent, Widget, WidgetFactory, WidgetSlotContext } from '@agnos-ui/core/types';
|
|
3
2
|
import type { PaginationActions, PaginationApi, PaginationDirectives, PaginationProps as CoreProps, PaginationState as CoreState } from '@agnos-ui/core/components/pagination';
|
|
4
3
|
export * from '@agnos-ui/core/components/pagination';
|
|
@@ -9,12 +8,12 @@ export type PaginationContext = WidgetSlotContext<PaginationWidget>;
|
|
|
9
8
|
/**
|
|
10
9
|
* A type for the slot context of the pagination widget when the slot is the number label
|
|
11
10
|
*/
|
|
12
|
-
export
|
|
11
|
+
export type PaginationNumberContext = PaginationContext & {
|
|
13
12
|
/**
|
|
14
13
|
* Displayed page
|
|
15
14
|
*/
|
|
16
15
|
displayedPage: number;
|
|
17
|
-
}
|
|
16
|
+
};
|
|
18
17
|
interface PaginationExtraProps {
|
|
19
18
|
/**
|
|
20
19
|
* The template to use for the structure of the pagination component
|
|
@@ -77,9 +76,9 @@ interface PaginationExtraProps {
|
|
|
77
76
|
*/
|
|
78
77
|
slotNumberLabel: SlotContent<PaginationNumberContext>;
|
|
79
78
|
}
|
|
80
|
-
export interface PaginationState extends
|
|
79
|
+
export interface PaginationState extends CoreState, PaginationExtraProps {
|
|
81
80
|
}
|
|
82
|
-
export interface PaginationProps extends
|
|
81
|
+
export interface PaginationProps extends CoreProps, PaginationExtraProps {
|
|
83
82
|
}
|
|
84
83
|
export type PaginationWidget = Widget<PaginationProps, PaginationState, PaginationApi, PaginationActions, PaginationDirectives>;
|
|
85
84
|
/**
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const progressbar = require("../../progressbar-
|
|
3
|
+
const progressbar = require("../../progressbar-lnU6H0H4.cjs");
|
|
4
4
|
const progressbar$1 = require("@agnos-ui/core/components/progressbar");
|
|
5
5
|
exports.createProgressbar = progressbar.createProgressbar;
|
|
6
6
|
exports.getProgressbarDefaultConfig = progressbar.getProgressbarDefaultConfig;
|
|
7
7
|
Object.keys(progressbar$1).forEach((k) => {
|
|
8
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
8
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: () => progressbar$1[k]
|
|
11
|
+
});
|
|
13
12
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ProgressbarDirectives, ProgressbarState as CoreState, ProgressbarProps as CoreProps, ProgressbarApi } from '@agnos-ui/core/components/progressbar';
|
|
2
2
|
import type { SlotContent, Widget, WidgetFactory, WidgetSlotContext } from '@agnos-ui/core/types';
|
|
3
|
-
import type { ExtendWidgetAdaptSlotWidgetProps } from '@agnos-ui/core/services/extendWidget';
|
|
4
3
|
import type { BSContextualClass } from '../../types';
|
|
5
4
|
export * from '@agnos-ui/core/components/progressbar';
|
|
6
5
|
export type ProgressbarContext = WidgetSlotContext<ProgressbarWidget>;
|
|
@@ -12,7 +11,7 @@ interface ProgressbarExtraProps {
|
|
|
12
11
|
/**
|
|
13
12
|
* Label of the progress.
|
|
14
13
|
*/
|
|
15
|
-
|
|
14
|
+
children: SlotContent<ProgressbarContext>;
|
|
16
15
|
/**
|
|
17
16
|
* Height of the progressbar, can be any valid css height value.
|
|
18
17
|
*/
|
|
@@ -31,9 +30,9 @@ interface ProgressbarExtraProps {
|
|
|
31
30
|
*/
|
|
32
31
|
type: BSContextualClass | undefined;
|
|
33
32
|
}
|
|
34
|
-
export interface ProgressbarState extends
|
|
33
|
+
export interface ProgressbarState extends CoreState, ProgressbarExtraProps {
|
|
35
34
|
}
|
|
36
|
-
export interface ProgressbarProps extends
|
|
35
|
+
export interface ProgressbarProps extends CoreProps, ProgressbarExtraProps {
|
|
37
36
|
}
|
|
38
37
|
export type ProgressbarWidget = Widget<ProgressbarProps, ProgressbarState, ProgressbarApi, object, ProgressbarDirectives>;
|
|
39
38
|
/**
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const rating = require("../../rating-
|
|
3
|
+
const rating = require("../../rating-Bf8cRtHn.cjs");
|
|
4
4
|
const rating$1 = require("@agnos-ui/core/components/rating");
|
|
5
5
|
exports.createRating = rating.createRating;
|
|
6
6
|
exports.getRatingDefaultConfig = rating.getRatingDefaultConfig;
|
|
7
7
|
Object.keys(rating$1).forEach((k) => {
|
|
8
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
8
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: () => rating$1[k]
|
|
11
|
+
});
|
|
13
12
|
});
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import type { RatingActions, RatingDirectives, StarContext, RatingState as CoreState, RatingProps as CoreProps } from '@agnos-ui/core/components/rating';
|
|
2
|
-
import { type ExtendWidgetAdaptSlotWidgetProps } from '@agnos-ui/core/services/extendWidget';
|
|
3
2
|
import type { SlotContent, Widget, WidgetFactory } from '@agnos-ui/core/types';
|
|
4
3
|
export * from '@agnos-ui/core/components/rating';
|
|
5
4
|
interface RatingExtraProps {
|
|
6
5
|
/**
|
|
7
6
|
* The template to override the way each star is displayed.
|
|
8
7
|
*/
|
|
9
|
-
|
|
8
|
+
star: SlotContent<StarContext>;
|
|
10
9
|
}
|
|
11
|
-
export interface RatingState extends
|
|
10
|
+
export interface RatingState extends CoreState, RatingExtraProps {
|
|
12
11
|
}
|
|
13
|
-
export interface RatingProps extends
|
|
12
|
+
export interface RatingProps extends CoreProps, RatingExtraProps {
|
|
14
13
|
}
|
|
15
14
|
export type RatingWidget = Widget<RatingProps, RatingState, object, RatingActions, RatingDirectives>;
|
|
16
15
|
/**
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const select = require("../../select-
|
|
3
|
+
const select = require("../../select-9qmK2r6f.cjs");
|
|
4
4
|
const select$1 = require("@agnos-ui/core/components/select");
|
|
5
5
|
exports.createSelect = select.createSelect;
|
|
6
6
|
exports.getSelectDefaultConfig = select.getSelectDefaultConfig;
|
|
7
7
|
Object.keys(select$1).forEach((k) => {
|
|
8
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
8
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: () => select$1[k]
|
|
11
|
+
});
|
|
13
12
|
});
|
|
@@ -1,32 +1,31 @@
|
|
|
1
1
|
import type { ItemContext, SelectActions, SelectApi, SelectDirectives, SelectProps as CoreProps, SelectState as CoreState } from '@agnos-ui/core/components/select';
|
|
2
|
-
import { type ExtendWidgetAdaptSlotWidgetProps } from '@agnos-ui/core/services/extendWidget';
|
|
3
2
|
import type { PropsConfig, SlotContent, Widget, WidgetSlotContext } from '@agnos-ui/core/types';
|
|
4
3
|
export * from '@agnos-ui/core/components/select';
|
|
5
4
|
/**
|
|
6
5
|
* A type for the slot context of the pagination widget
|
|
7
6
|
*/
|
|
8
7
|
export type SelectContext<Item> = WidgetSlotContext<SelectWidget<Item>>;
|
|
9
|
-
export
|
|
8
|
+
export type SelectItemContext<Item> = SelectContext<Item> & {
|
|
10
9
|
/**
|
|
11
10
|
* Contextual data related to an item
|
|
12
11
|
*/
|
|
13
12
|
itemContext: ItemContext<Item>;
|
|
14
|
-
}
|
|
13
|
+
};
|
|
15
14
|
interface SelectExtraProps<Item> {
|
|
16
15
|
/**
|
|
17
16
|
* The template to override the way each badge on the left of the input is displayed.
|
|
18
17
|
* This define the content of the badge inside the badge container.
|
|
19
18
|
*/
|
|
20
|
-
|
|
19
|
+
badgeLabel: SlotContent<SelectItemContext<Item>>;
|
|
21
20
|
/**
|
|
22
21
|
* The template to override the way each item is displayed in the list.
|
|
23
22
|
* This define the content of the badge inside the badge container.
|
|
24
23
|
*/
|
|
25
|
-
|
|
24
|
+
itemLabel: SlotContent<SelectItemContext<Item>>;
|
|
26
25
|
}
|
|
27
|
-
export interface SelectState<Item> extends
|
|
26
|
+
export interface SelectState<Item> extends CoreState<Item>, SelectExtraProps<Item> {
|
|
28
27
|
}
|
|
29
|
-
export interface SelectProps<Item> extends
|
|
28
|
+
export interface SelectProps<Item> extends CoreProps<Item>, SelectExtraProps<Item> {
|
|
30
29
|
}
|
|
31
30
|
export type SelectWidget<Item> = Widget<SelectProps<Item>, SelectState<Item>, SelectApi<Item>, SelectActions<Item>, SelectDirectives<Item>>;
|
|
32
31
|
/**
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const slider = require("../../slider-
|
|
3
|
+
const slider = require("../../slider-DA7_i-am.cjs");
|
|
4
4
|
const slider$1 = require("@agnos-ui/core/components/slider");
|
|
5
5
|
exports.createSlider = slider.createSlider;
|
|
6
6
|
exports.getSliderDefaultConfig = slider.getSliderDefaultConfig;
|
|
7
7
|
Object.keys(slider$1).forEach((k) => {
|
|
8
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
8
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: () => slider$1[k]
|
|
11
|
+
});
|
|
13
12
|
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { SliderActions, SliderApi, SliderDirectives, SliderHandle, SliderProps as CoreProps, SliderState as CoreState } from '@agnos-ui/core/components/slider';
|
|
2
|
-
import { type ExtendWidgetAdaptSlotWidgetProps } from '@agnos-ui/core/services/extendWidget';
|
|
3
2
|
import type { SlotContent, Widget, WidgetFactory, WidgetSlotContext } from '@agnos-ui/core/types';
|
|
4
3
|
export * from '@agnos-ui/core/components/slider';
|
|
5
4
|
export type SliderContext = WidgetSlotContext<SliderWidget>;
|
|
@@ -13,19 +12,19 @@ interface SliderExtraProps {
|
|
|
13
12
|
/**
|
|
14
13
|
* Slot to change the default display of the slider
|
|
15
14
|
*/
|
|
16
|
-
|
|
15
|
+
structure: SlotContent<SliderContext>;
|
|
17
16
|
/**
|
|
18
17
|
* Slot to change the default labels of the slider
|
|
19
18
|
*/
|
|
20
|
-
|
|
19
|
+
label: SlotContent<SliderSlotLabelContext>;
|
|
21
20
|
/**
|
|
22
21
|
* Slot to change the handlers
|
|
23
22
|
*/
|
|
24
|
-
|
|
23
|
+
handle: SlotContent<SliderSlotHandleContext>;
|
|
25
24
|
}
|
|
26
|
-
export interface SliderState extends
|
|
25
|
+
export interface SliderState extends CoreState, SliderExtraProps {
|
|
27
26
|
}
|
|
28
|
-
export interface SliderProps extends
|
|
27
|
+
export interface SliderProps extends CoreProps, SliderExtraProps {
|
|
29
28
|
}
|
|
30
29
|
export type SliderWidget = Widget<SliderProps, SliderState, SliderApi, SliderActions, SliderDirectives>;
|
|
31
30
|
/**
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const toast = require("../../toast-
|
|
3
|
+
const toast = require("../../toast-CnSdkWfG.cjs");
|
|
4
4
|
const toast$1 = require("@agnos-ui/core/components/toast");
|
|
5
5
|
exports.createToast = toast.createToast;
|
|
6
6
|
exports.getToastDefaultConfig = toast.getToastDefaultConfig;
|
|
7
7
|
Object.keys(toast$1).forEach((k) => {
|
|
8
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
8
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: () => toast$1[k]
|
|
11
|
+
});
|
|
13
12
|
});
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import type { ToastDirectives, ToastState as CoreState, ToastProps as CoreProps, ToastApi } from '@agnos-ui/core/components/toast';
|
|
2
2
|
import type { SlotContent, Widget, WidgetFactory, WidgetSlotContext } from '@agnos-ui/core/types';
|
|
3
|
-
import type { ExtendWidgetAdaptSlotWidgetProps } from '@agnos-ui/core/services/extendWidget';
|
|
4
3
|
export * from '@agnos-ui/core/components/toast';
|
|
5
4
|
export type ToastContext = WidgetSlotContext<ToastWidget>;
|
|
6
5
|
export interface ToastExtraProps {
|
|
7
6
|
/**
|
|
8
7
|
* Global template for the toast component
|
|
9
8
|
*/
|
|
10
|
-
|
|
9
|
+
structure: SlotContent<ToastContext>;
|
|
11
10
|
/**
|
|
12
11
|
* Template for the toast content
|
|
13
12
|
*/
|
|
14
|
-
|
|
13
|
+
children: SlotContent<ToastContext>;
|
|
15
14
|
/**
|
|
16
15
|
* Header template for the toast component
|
|
17
16
|
*/
|
|
18
|
-
|
|
17
|
+
header: SlotContent<ToastContext>;
|
|
19
18
|
}
|
|
20
|
-
export interface ToastState extends
|
|
19
|
+
export interface ToastState extends CoreState, ToastExtraProps {
|
|
21
20
|
}
|
|
22
|
-
export interface ToastProps extends
|
|
21
|
+
export interface ToastProps extends CoreProps, ToastExtraProps {
|
|
23
22
|
}
|
|
24
23
|
export type ToastWidget = Widget<ToastProps, ToastState, ToastApi, object, ToastDirectives>;
|
|
25
24
|
/**
|
package/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const accordion = require("./accordion-
|
|
4
|
-
const alert = require("./alert-
|
|
5
|
-
const modal = require("./modal-
|
|
3
|
+
const accordion = require("./accordion-B-uoNLHJ.cjs");
|
|
4
|
+
const alert = require("./alert-CKtd0QdX.cjs");
|
|
5
|
+
const modal = require("./modal-DjcVpsmH.cjs");
|
|
6
6
|
const pageFactory = require("./pageFactory-Dubi5rdt.cjs");
|
|
7
|
-
const progressbar = require("./progressbar-
|
|
8
|
-
const rating = require("./rating-
|
|
9
|
-
const select = require("./select-
|
|
10
|
-
const slider = require("./slider-
|
|
11
|
-
const toast = require("./toast-
|
|
7
|
+
const progressbar = require("./progressbar-lnU6H0H4.cjs");
|
|
8
|
+
const rating = require("./rating-Bf8cRtHn.cjs");
|
|
9
|
+
const select = require("./select-9qmK2r6f.cjs");
|
|
10
|
+
const slider = require("./slider-DA7_i-am.cjs");
|
|
11
|
+
const toast = require("./toast-CnSdkWfG.cjs");
|
|
12
12
|
const collapse = require("./collapse-sUYbZqEx.cjs");
|
|
13
13
|
const fade = require("./fade-CJ0jXGio.cjs");
|
|
14
14
|
const accordion$1 = require("@agnos-ui/core/components/accordion");
|
|
@@ -44,65 +44,56 @@ exports.collapseHorizontalTransition = collapse.collapseHorizontalTransition;
|
|
|
44
44
|
exports.collapseVerticalTransition = collapse.collapseVerticalTransition;
|
|
45
45
|
exports.fadeTransition = fade.fadeTransition;
|
|
46
46
|
Object.keys(accordion$1).forEach((k) => {
|
|
47
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
});
|
|
47
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: () => accordion$1[k]
|
|
50
|
+
});
|
|
52
51
|
});
|
|
53
52
|
Object.keys(alert$1).forEach((k) => {
|
|
54
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
});
|
|
53
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
54
|
+
enumerable: true,
|
|
55
|
+
get: () => alert$1[k]
|
|
56
|
+
});
|
|
59
57
|
});
|
|
60
58
|
Object.keys(modal$1).forEach((k) => {
|
|
61
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
});
|
|
59
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: () => modal$1[k]
|
|
62
|
+
});
|
|
66
63
|
});
|
|
67
64
|
Object.keys(pagination).forEach((k) => {
|
|
68
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
});
|
|
65
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: () => pagination[k]
|
|
68
|
+
});
|
|
73
69
|
});
|
|
74
70
|
Object.keys(progressbar$1).forEach((k) => {
|
|
75
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
});
|
|
71
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: () => progressbar$1[k]
|
|
74
|
+
});
|
|
80
75
|
});
|
|
81
76
|
Object.keys(rating$1).forEach((k) => {
|
|
82
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
});
|
|
77
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: () => rating$1[k]
|
|
80
|
+
});
|
|
87
81
|
});
|
|
88
82
|
Object.keys(select$1).forEach((k) => {
|
|
89
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
});
|
|
83
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
get: () => select$1[k]
|
|
86
|
+
});
|
|
94
87
|
});
|
|
95
88
|
Object.keys(slider$1).forEach((k) => {
|
|
96
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
});
|
|
89
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
get: () => slider$1[k]
|
|
92
|
+
});
|
|
101
93
|
});
|
|
102
94
|
Object.keys(toast$1).forEach((k) => {
|
|
103
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
});
|
|
95
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get: () => toast$1[k]
|
|
98
|
+
});
|
|
108
99
|
});
|
package/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a, c, g } from "./accordion-
|
|
2
|
-
import { c as c2, g as g2 } from "./alert-
|
|
3
|
-
import { c as c3, g as g3 } from "./modal-
|
|
1
|
+
import { a, c, g } from "./accordion-DBVC9W8u.js";
|
|
2
|
+
import { c as c2, g as g2 } from "./alert-BgtRL35m.js";
|
|
3
|
+
import { c as c3, g as g3 } from "./modal-BIfiTSEV.js";
|
|
4
4
|
import { c as c4, g as g4, n } from "./pageFactory-C8ZmJXYi.js";
|
|
5
|
-
import { c as c5, g as g5 } from "./progressbar-
|
|
6
|
-
import { c as c6, g as g6 } from "./rating-
|
|
7
|
-
import { c as c7, g as g7 } from "./select-
|
|
8
|
-
import { c as c8, g as g8 } from "./slider-
|
|
9
|
-
import { c as c9, g as g9 } from "./toast-
|
|
5
|
+
import { c as c5, g as g5 } from "./progressbar-YdR19Yjo.js";
|
|
6
|
+
import { c as c6, g as g6 } from "./rating-C1UqlpFs.js";
|
|
7
|
+
import { c as c7, g as g7 } from "./select-DMeOSbKZ.js";
|
|
8
|
+
import { c as c8, g as g8 } from "./slider-BOtu3bQi.js";
|
|
9
|
+
import { c as c9, g as g9 } from "./toast-aPzxFEq9.js";
|
|
10
10
|
import { a as a2, c as c10 } from "./collapse-CVjUhnIz.js";
|
|
11
11
|
import { f } from "./fade-uOobJKgw.js";
|
|
12
12
|
export * from "@agnos-ui/core/components/accordion";
|
|
@@ -3,7 +3,8 @@ import { f as fadeTransition } from "./fade-uOobJKgw.js";
|
|
|
3
3
|
import { extendWidgetProps } from "@agnos-ui/core/services/extendWidget";
|
|
4
4
|
import { typeBoolean } from "@agnos-ui/core/utils/writables";
|
|
5
5
|
const defaultConfigExtraProps = {
|
|
6
|
-
|
|
6
|
+
contentData: void 0,
|
|
7
|
+
children: void 0,
|
|
7
8
|
slotFooter: void 0,
|
|
8
9
|
slotHeader: void 0,
|
|
9
10
|
slotStructure: void 0,
|
|
@@ -4,7 +4,8 @@ const fade = require("./fade-CJ0jXGio.cjs");
|
|
|
4
4
|
const extendWidget = require("@agnos-ui/core/services/extendWidget");
|
|
5
5
|
const writables = require("@agnos-ui/core/utils/writables");
|
|
6
6
|
const defaultConfigExtraProps = {
|
|
7
|
-
|
|
7
|
+
contentData: void 0,
|
|
8
|
+
children: void 0,
|
|
8
9
|
slotFooter: void 0,
|
|
9
10
|
slotHeader: void 0,
|
|
10
11
|
slotStructure: void 0,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agnos-ui/core-bootstrap",
|
|
3
3
|
"description": "Styles and widget interface extensions necessary to use AgnosUI with Bootstrap.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0-next.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bootstrap",
|
|
7
7
|
"headless",
|
|
@@ -60,9 +60,8 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@agnos-ui/core": "0.
|
|
63
|
+
"@agnos-ui/core": "0.4.0-next.0"
|
|
64
64
|
},
|
|
65
|
-
"peerDependencies": {},
|
|
66
65
|
"sideEffects": false,
|
|
67
66
|
"homepage": "https://amadeusitgroup.github.io/AgnosUI/latest/",
|
|
68
67
|
"bugs": "https://github.com/AmadeusITGroup/AgnosUI/issues",
|
|
@@ -3,7 +3,7 @@ import { typeString, typeBoolean } from "@agnos-ui/core/utils/writables";
|
|
|
3
3
|
import { extendWidgetProps } from "@agnos-ui/core/services/extendWidget";
|
|
4
4
|
const defaultConfigExtraProps = {
|
|
5
5
|
slotStructure: void 0,
|
|
6
|
-
|
|
6
|
+
children: void 0,
|
|
7
7
|
height: "",
|
|
8
8
|
striped: false,
|
|
9
9
|
animated: false,
|
|
@@ -4,7 +4,7 @@ const writables = require("@agnos-ui/core/utils/writables");
|
|
|
4
4
|
const extendWidget = require("@agnos-ui/core/services/extendWidget");
|
|
5
5
|
const defaultConfigExtraProps = {
|
|
6
6
|
slotStructure: void 0,
|
|
7
|
-
|
|
7
|
+
children: void 0,
|
|
8
8
|
height: "",
|
|
9
9
|
striped: false,
|
|
10
10
|
animated: false,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const rating = require("@agnos-ui/core/components/rating");
|
|
3
3
|
const extendWidget = require("@agnos-ui/core/services/extendWidget");
|
|
4
4
|
const defaultConfigExtraProps = {
|
|
5
|
-
|
|
5
|
+
star: ({ fill }) => String.fromCharCode(fill === 100 ? 9733 : 9734)
|
|
6
6
|
};
|
|
7
7
|
function getRatingDefaultConfig() {
|
|
8
8
|
return { ...rating.getRatingDefaultConfig(), ...defaultConfigExtraProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getRatingDefaultConfig as getRatingDefaultConfig$1, createRating as createRating$1 } from "@agnos-ui/core/components/rating";
|
|
2
2
|
import { extendWidgetProps } from "@agnos-ui/core/services/extendWidget";
|
|
3
3
|
const defaultConfigExtraProps = {
|
|
4
|
-
|
|
4
|
+
star: ({ fill }) => String.fromCharCode(fill === 100 ? 9733 : 9734)
|
|
5
5
|
};
|
|
6
6
|
function getRatingDefaultConfig() {
|
|
7
7
|
return { ...getRatingDefaultConfig$1(), ...defaultConfigExtraProps };
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
const select = require("@agnos-ui/core/components/select");
|
|
3
3
|
const extendWidget = require("@agnos-ui/core/services/extendWidget");
|
|
4
4
|
const defaultConfigExtraProps = {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
badgeLabel: ({ itemContext }) => itemContext.item,
|
|
6
|
+
itemLabel: ({ itemContext }) => itemContext.item
|
|
7
7
|
};
|
|
8
8
|
function getSelectDefaultConfig() {
|
|
9
9
|
return { ...select.getSelectDefaultConfig(), ...defaultConfigExtraProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getSelectDefaultConfig as getSelectDefaultConfig$1, createSelect as createSelect$1 } from "@agnos-ui/core/components/select";
|
|
2
2
|
import { extendWidgetProps } from "@agnos-ui/core/services/extendWidget";
|
|
3
3
|
const defaultConfigExtraProps = {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
badgeLabel: ({ itemContext }) => itemContext.item,
|
|
5
|
+
itemLabel: ({ itemContext }) => itemContext.item
|
|
6
6
|
};
|
|
7
7
|
function getSelectDefaultConfig() {
|
|
8
8
|
return { ...getSelectDefaultConfig$1(), ...defaultConfigExtraProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { getSliderDefaultConfig as getSliderDefaultConfig$1, createSlider as createSlider$1 } from "@agnos-ui/core/components/slider";
|
|
2
2
|
import { extendWidgetProps } from "@agnos-ui/core/services/extendWidget";
|
|
3
3
|
const defaultConfigExtraProps = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
structure: void 0,
|
|
5
|
+
label: ({ value }) => "" + value,
|
|
6
|
+
handle: void 0
|
|
7
7
|
};
|
|
8
8
|
function getSliderDefaultConfig() {
|
|
9
9
|
return { ...getSliderDefaultConfig$1(), ...defaultConfigExtraProps };
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
const slider = require("@agnos-ui/core/components/slider");
|
|
3
3
|
const extendWidget = require("@agnos-ui/core/services/extendWidget");
|
|
4
4
|
const defaultConfigExtraProps = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
structure: void 0,
|
|
6
|
+
label: ({ value }) => "" + value,
|
|
7
|
+
handle: void 0
|
|
8
8
|
};
|
|
9
9
|
function getSliderDefaultConfig() {
|
|
10
10
|
return { ...slider.getSliderDefaultConfig(), ...defaultConfigExtraProps };
|
|
@@ -3,9 +3,9 @@ const toast = require("@agnos-ui/core/components/toast");
|
|
|
3
3
|
const extendWidget = require("@agnos-ui/core/services/extendWidget");
|
|
4
4
|
const fade = require("./fade-CJ0jXGio.cjs");
|
|
5
5
|
const defaultConfigExtraProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
structure: void 0,
|
|
7
|
+
children: void 0,
|
|
8
|
+
header: void 0
|
|
9
9
|
};
|
|
10
10
|
const coreOverride = {
|
|
11
11
|
transition: fade.fadeTransition
|
|
@@ -2,9 +2,9 @@ import { getToastDefaultConfig as getToastDefaultConfig$1, createToast as create
|
|
|
2
2
|
import { extendWidgetProps } from "@agnos-ui/core/services/extendWidget";
|
|
3
3
|
import { f as fadeTransition } from "./fade-uOobJKgw.js";
|
|
4
4
|
const defaultConfigExtraProps = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
structure: void 0,
|
|
6
|
+
children: void 0,
|
|
7
|
+
header: void 0
|
|
8
8
|
};
|
|
9
9
|
const coreOverride = {
|
|
10
10
|
transition: fadeTransition
|