@agnos-ui/core-bootstrap 0.4.0-next.0 → 0.4.0-next.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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const modal = require("../../modal-DjcVpsmH.cjs");
3
+ const modal = require("../../modal-B3BJCG4T.cjs");
4
4
  const modal$1 = require("@agnos-ui/core/components/modal");
5
5
  exports.createModal = modal.createModal;
6
6
  exports.getModalDefaultConfig = modal.getModalDefaultConfig;
@@ -1,4 +1,4 @@
1
- import { c, g } from "../../modal-BIfiTSEV.js";
1
+ import { c, g } from "../../modal-CvEa8ExQ.js";
2
2
  export * from "@agnos-ui/core/components/modal";
3
3
  export {
4
4
  c as createModal,
@@ -14,20 +14,20 @@ interface ModalExtraProps<Data> {
14
14
  /**
15
15
  * Footer of the modal.
16
16
  */
17
- slotFooter: SlotContent<ModalContext<Data>>;
17
+ footer: SlotContent<ModalContext<Data>>;
18
18
  /**
19
- * Header of the modal. The default header includes {@link ModalCommonPropsAndState.slotTitle|slotTitle}.
19
+ * Header of the modal. The default header includes {@link ModalCommonPropsAndState.title|title}.
20
20
  */
21
- slotHeader: SlotContent<ModalContext<Data>>;
21
+ header: SlotContent<ModalContext<Data>>;
22
22
  /**
23
23
  * Structure of the modal.
24
- * The default structure uses {@link ModalCommonPropsAndState.slotHeader|slotHeader}, {@link ModalCommonPropsAndState.children|children} and {@link ModalCommonPropsAndState.slotFooter|slotFooter}.
24
+ * The default structure uses {@link ModalCommonPropsAndState.header|header}, {@link ModalCommonPropsAndState.children|children} and {@link ModalCommonPropsAndState.footer|footer}.
25
25
  */
26
- slotStructure: SlotContent<ModalContext<Data>>;
26
+ structure: SlotContent<ModalContext<Data>>;
27
27
  /**
28
28
  * Title of the modal.
29
29
  */
30
- slotTitle: SlotContent<ModalContext<Data>>;
30
+ title: SlotContent<ModalContext<Data>>;
31
31
  /**
32
32
  * Option to create a fullscreen modal, according to the bootstrap documentation.
33
33
  */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const pageFactory = require("../../pageFactory-Dubi5rdt.cjs");
3
+ const pageFactory = require("../../pageFactory-ClmOTwC3.cjs");
4
4
  const pagination = require("@agnos-ui/core/components/pagination");
5
5
  exports.createPagination = pageFactory.createPagination;
6
6
  exports.getPaginationDefaultConfig = pageFactory.getPaginationDefaultConfig;
@@ -1,4 +1,4 @@
1
- import { c, g, n } from "../../pageFactory-C8ZmJXYi.js";
1
+ import { c, g, n } from "../../pageFactory-BMdGxeJT.js";
2
2
  export * from "@agnos-ui/core/components/pagination";
3
3
  export {
4
4
  c as createPagination,
@@ -17,53 +17,53 @@ export type PaginationNumberContext = PaginationContext & {
17
17
  interface PaginationExtraProps {
18
18
  /**
19
19
  * The template to use for the structure of the pagination component
20
- * The default structure uses {@link PaginationCommonPropsAndState.slotEllipsis|slotEllipsis}, {@link PaginationCommonPropsAndState.slotFirst|slotFirst},
21
- * {@link PaginationCommonPropsAndState.slotPrevious|slotPrevious}, {@link PaginationCommonPropsAndState.slotNext|slotNext},
22
- * {@link PaginationCommonPropsAndState.slotLast|slotLast}, {@link PaginationCommonPropsAndState.slotPages|slotPages},
23
- * {@link PaginationCommonPropsAndState.slotNumberLabel|slotNumberLabel},
20
+ * The default structure uses {@link PaginationProps.ellipsisLabel|ellipsisLabel}, {@link PaginationProps.firstPageLabel|firstPageLabel},
21
+ * {@link PaginationProps.previousPageLabel|previousPageLabel}, {@link PaginationProps.nextPageLabel|nextPageLabel},
22
+ * {@link PaginationProps.lastPageLabel|lastPageLabel}, {@link PaginationProps.pagesDisplay|pagesDisplay},
23
+ * {@link PaginationProps.numberLabel|numberLabel},
24
24
  */
25
- slotStructure: SlotContent<PaginationContext>;
25
+ structure: SlotContent<PaginationContext>;
26
26
  /**
27
27
  * The template to use for the ellipsis slot
28
28
  * for I18n, we suggest to use the global configuration
29
29
  * override any configuration parameters provided for this
30
30
  * @defaultValue '…'
31
31
  */
32
- slotEllipsis: SlotContent<PaginationContext>;
32
+ ellipsisLabel: SlotContent<PaginationContext>;
33
33
  /**
34
34
  * The template to use for the first slot
35
35
  * for I18n, we suggest to use the global configuration
36
36
  * override any configuration parameters provided for this
37
37
  * @defaultValue '«'
38
38
  */
39
- slotFirst: SlotContent<PaginationContext>;
39
+ firstPageLabel: SlotContent<PaginationContext>;
40
40
  /**
41
41
  * The template to use for the previous slot
42
42
  * for I18n, we suggest to use the global configuration
43
43
  * override any configuration parameters provided for this
44
44
  * @defaultValue '‹'
45
45
  */
46
- slotPrevious: SlotContent<PaginationContext>;
46
+ previousPageLabel: SlotContent<PaginationContext>;
47
47
  /**
48
48
  * The template to use for the next slot
49
49
  * for I18n, we suggest to use the global configuration
50
50
  * override any configuration parameters provided for this
51
51
  * @defaultValue '›'
52
52
  */
53
- slotNext: SlotContent<PaginationContext>;
53
+ nextPageLabel: SlotContent<PaginationContext>;
54
54
  /**
55
55
  * The template to use for the last slot
56
56
  * for I18n, we suggest to use the global configuration
57
57
  * override any configuration parameters provided for this
58
58
  * @defaultValue '»'
59
59
  */
60
- slotLast: SlotContent<PaginationContext>;
60
+ lastPageLabel: SlotContent<PaginationContext>;
61
61
  /**
62
62
  * The template to use for the pages slot
63
63
  * To use to customize the pages view
64
64
  * override any configuration parameters provided for this
65
65
  */
66
- slotPages: SlotContent<PaginationContext>;
66
+ pagesDisplay: SlotContent<PaginationContext>;
67
67
  /**
68
68
  * The template to use for the number slot
69
69
  * override any configuration parameters provided for this
@@ -74,7 +74,7 @@ interface PaginationExtraProps {
74
74
  * ```
75
75
  * @param displayedPage - The current page number
76
76
  */
77
- slotNumberLabel: SlotContent<PaginationNumberContext>;
77
+ numberLabel: SlotContent<PaginationNumberContext>;
78
78
  }
79
79
  export interface PaginationState extends CoreState, PaginationExtraProps {
80
80
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const progressbar = require("../../progressbar-lnU6H0H4.cjs");
3
+ const progressbar = require("../../progressbar-BSwy_XPW.cjs");
4
4
  const progressbar$1 = require("@agnos-ui/core/components/progressbar");
5
5
  exports.createProgressbar = progressbar.createProgressbar;
6
6
  exports.getProgressbarDefaultConfig = progressbar.getProgressbarDefaultConfig;
@@ -1,4 +1,4 @@
1
- import { c, g } from "../../progressbar-YdR19Yjo.js";
1
+ import { c, g } from "../../progressbar-B-Ne074g.js";
2
2
  export * from "@agnos-ui/core/components/progressbar";
3
3
  export {
4
4
  c as createProgressbar,
@@ -7,7 +7,7 @@ interface ProgressbarExtraProps {
7
7
  /**
8
8
  * Global template for the Progressbar.
9
9
  */
10
- slotStructure: SlotContent<ProgressbarContext>;
10
+ structure: SlotContent<ProgressbarContext>;
11
11
  /**
12
12
  * Label of the progress.
13
13
  */
package/css/agnosui.css CHANGED
@@ -112,7 +112,7 @@
112
112
  .au-slider .au-slider-handle:not([disabled]):hover {
113
113
  border: var(--bs-slider-handle-border-hover);
114
114
  }
115
- .au-slider .au-slider-handle:focus {
115
+ .au-slider .au-slider-handle:focus-visible {
116
116
  box-shadow: var(--bs-slider-handle-focus-box-shadow);
117
117
  }
118
118
  .au-slider .au-slider-progress {
package/index.cjs CHANGED
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const accordion = require("./accordion-B-uoNLHJ.cjs");
4
4
  const alert = require("./alert-CKtd0QdX.cjs");
5
- const modal = require("./modal-DjcVpsmH.cjs");
6
- const pageFactory = require("./pageFactory-Dubi5rdt.cjs");
7
- const progressbar = require("./progressbar-lnU6H0H4.cjs");
5
+ const modal = require("./modal-B3BJCG4T.cjs");
6
+ const pageFactory = require("./pageFactory-ClmOTwC3.cjs");
7
+ const progressbar = require("./progressbar-BSwy_XPW.cjs");
8
8
  const rating = require("./rating-Bf8cRtHn.cjs");
9
9
  const select = require("./select-9qmK2r6f.cjs");
10
10
  const slider = require("./slider-DA7_i-am.cjs");
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { a, c, g } from "./accordion-DBVC9W8u.js";
2
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
- import { c as c4, g as g4, n } from "./pageFactory-C8ZmJXYi.js";
5
- import { c as c5, g as g5 } from "./progressbar-YdR19Yjo.js";
3
+ import { c as c3, g as g3 } from "./modal-CvEa8ExQ.js";
4
+ import { c as c4, g as g4, n } from "./pageFactory-BMdGxeJT.js";
5
+ import { c as c5, g as g5 } from "./progressbar-B-Ne074g.js";
6
6
  import { c as c6, g as g6 } from "./rating-C1UqlpFs.js";
7
7
  import { c as c7, g as g7 } from "./select-DMeOSbKZ.js";
8
8
  import { c as c8, g as g8 } from "./slider-BOtu3bQi.js";
@@ -6,10 +6,10 @@ const writables = require("@agnos-ui/core/utils/writables");
6
6
  const defaultConfigExtraProps = {
7
7
  contentData: void 0,
8
8
  children: void 0,
9
- slotFooter: void 0,
10
- slotHeader: void 0,
11
- slotStructure: void 0,
12
- slotTitle: void 0,
9
+ footer: void 0,
10
+ header: void 0,
11
+ structure: void 0,
12
+ title: void 0,
13
13
  fullscreen: false
14
14
  };
15
15
  const coreOverride = {
@@ -5,10 +5,10 @@ import { typeBoolean } from "@agnos-ui/core/utils/writables";
5
5
  const defaultConfigExtraProps = {
6
6
  contentData: void 0,
7
7
  children: void 0,
8
- slotFooter: void 0,
9
- slotHeader: void 0,
10
- slotStructure: void 0,
11
- slotTitle: void 0,
8
+ footer: void 0,
9
+ header: void 0,
10
+ structure: void 0,
11
+ title: void 0,
12
12
  fullscreen: false
13
13
  };
14
14
  const coreOverride = {
package/package.json CHANGED
@@ -1,10 +1,9 @@
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.0-next.0",
4
+ "version": "0.4.0-next.1",
5
5
  "keywords": [
6
6
  "bootstrap",
7
- "headless",
8
7
  "css",
9
8
  "scss",
10
9
  "AgnosUI",
@@ -60,7 +59,7 @@
60
59
  }
61
60
  },
62
61
  "dependencies": {
63
- "@agnos-ui/core": "0.4.0-next.0"
62
+ "@agnos-ui/core": "0.4.0-next.1"
64
63
  },
65
64
  "sideEffects": false,
66
65
  "homepage": "https://amadeusitgroup.github.io/AgnosUI/latest/",
@@ -1,14 +1,14 @@
1
1
  import { extendWidgetProps } from "@agnos-ui/core/services/extendWidget";
2
2
  import { getPaginationDefaultConfig as getPaginationDefaultConfig$1, createPagination as createPagination$1 } from "@agnos-ui/core/components/pagination";
3
3
  const defaultConfigExtraProps = {
4
- slotEllipsis: "…",
5
- slotFirst: "«",
6
- slotPrevious: "",
7
- slotNext: "",
8
- slotLast: "»",
9
- slotPages: void 0,
10
- slotStructure: void 0,
11
- slotNumberLabel: ({ displayedPage }) => `${displayedPage}`
4
+ structure: void 0,
5
+ ellipsisLabel: "",
6
+ firstPageLabel: "«",
7
+ previousPageLabel: "",
8
+ nextPageLabel: "",
9
+ lastPageLabel: "»",
10
+ numberLabel: ({ displayedPage }) => `${displayedPage}`,
11
+ pagesDisplay: void 0
12
12
  };
13
13
  function getPaginationDefaultConfig() {
14
14
  return { ...getPaginationDefaultConfig$1(), ...defaultConfigExtraProps };
@@ -2,14 +2,14 @@
2
2
  const extendWidget = require("@agnos-ui/core/services/extendWidget");
3
3
  const pagination = require("@agnos-ui/core/components/pagination");
4
4
  const defaultConfigExtraProps = {
5
- slotEllipsis: "…",
6
- slotFirst: "«",
7
- slotPrevious: "",
8
- slotNext: "",
9
- slotLast: "»",
10
- slotPages: void 0,
11
- slotStructure: void 0,
12
- slotNumberLabel: ({ displayedPage }) => `${displayedPage}`
5
+ structure: void 0,
6
+ ellipsisLabel: "",
7
+ firstPageLabel: "«",
8
+ previousPageLabel: "",
9
+ nextPageLabel: "",
10
+ lastPageLabel: "»",
11
+ numberLabel: ({ displayedPage }) => `${displayedPage}`,
12
+ pagesDisplay: void 0
13
13
  };
14
14
  function getPaginationDefaultConfig() {
15
15
  return { ...pagination.getPaginationDefaultConfig(), ...defaultConfigExtraProps };
@@ -2,7 +2,7 @@ import { getProgressbarDefaultConfig as getProgressbarDefaultConfig$1, createPro
2
2
  import { typeString, typeBoolean } from "@agnos-ui/core/utils/writables";
3
3
  import { extendWidgetProps } from "@agnos-ui/core/services/extendWidget";
4
4
  const defaultConfigExtraProps = {
5
- slotStructure: void 0,
5
+ structure: void 0,
6
6
  children: void 0,
7
7
  height: "",
8
8
  striped: false,
@@ -3,7 +3,7 @@ const progressbar = require("@agnos-ui/core/components/progressbar");
3
3
  const writables = require("@agnos-ui/core/utils/writables");
4
4
  const extendWidget = require("@agnos-ui/core/services/extendWidget");
5
5
  const defaultConfigExtraProps = {
6
- slotStructure: void 0,
6
+ structure: void 0,
7
7
  children: void 0,
8
8
  height: "",
9
9
  striped: false,
package/scss/_slider.scss CHANGED
@@ -119,7 +119,7 @@
119
119
  &:not([disabled]):hover {
120
120
  border: var(--#{$prefix}slider-handle-border-hover);
121
121
  }
122
- &:focus {
122
+ &:focus-visible {
123
123
  box-shadow: var(--#{$prefix}slider-handle-focus-box-shadow);
124
124
  }
125
125
  }