origam 2.12.1 → 2.14.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.
Files changed (138) hide show
  1. package/CHANGELOG.md +1975 -0
  2. package/dist/src/assets/locales/en.json +114 -76
  3. package/dist/src/assets/locales/fr.json +117 -74
  4. package/dist/src/components/Avatar/OrigamAvatar.vue +14 -0
  5. package/dist/src/components/BottomNav/OrigamBottomNav.vue +6 -4
  6. package/dist/src/components/Breadcrumb/OrigamBreadcrumb.vue +1 -1
  7. package/dist/src/components/Breadcrumb/OrigamBreadcrumbDivider.vue +1 -1
  8. package/dist/src/components/Breadcrumb/OrigamBreadcrumbItem.vue +2 -2
  9. package/dist/src/components/Btn/OrigamBtn.vue +1 -1
  10. package/dist/src/components/Calendar/OrigamCalendar.vue +3 -3
  11. package/dist/src/components/Carousel/OrigamCarousel.vue +1 -1
  12. package/dist/src/components/Clipboard/OrigamClipboard.vue +1 -1
  13. package/dist/src/components/Code/OrigamCode.vue +1 -1
  14. package/dist/src/components/ColorPicker/OrigamColorPickerCanvas.vue +2 -2
  15. package/dist/src/components/ContextualMenu/OrigamContextualMenu.vue +1 -0
  16. package/dist/src/components/DataTable/OrigamDataTableFooter.vue +8 -8
  17. package/dist/src/components/DataTable/OrigamDataTableHeadersCellMobile.vue +1 -1
  18. package/dist/src/components/DataTable/OrigamDataTableRow.vue +1 -1
  19. package/dist/src/components/DataTable/OrigamDataTableRows.vue +2 -2
  20. package/dist/src/components/DatePicker/OrigamDatePicker.vue +3 -3
  21. package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +1 -1
  22. package/dist/src/components/ExpansionPanel/OrigamExpansionPanelHeader.vue +8 -3
  23. package/dist/src/components/FileField/OrigamFileField.vue +8 -8
  24. package/dist/src/components/InfiniteScroll/OrigamInfiniteScroll.vue +2 -2
  25. package/dist/src/components/List/OrigamList.vue +7 -0
  26. package/dist/src/components/List/OrigamListItem.vue +71 -3
  27. package/dist/src/components/Media/OrigamMediaController.vue +9 -9
  28. package/dist/src/components/Menu/OrigamMenu.vue +6 -1
  29. package/dist/src/components/Messages/OrigamMessages.vue +1 -0
  30. package/dist/src/components/Pagination/OrigamPagination.vue +8 -8
  31. package/dist/src/components/RatingField/OrigamRatingFieldItem.vue +1 -1
  32. package/dist/src/components/Select/OrigamSelect.vue +7 -2
  33. package/dist/src/components/SelectionControl/OrigamSelectionControl.vue +6 -3
  34. package/dist/src/components/SelectionControl/OrigamSelectionControlGroup.vue +15 -0
  35. package/dist/src/components/Stepper/OrigamStepper.vue +1 -1
  36. package/dist/src/components/Stepper/OrigamStepperItem.vue +1 -1
  37. package/dist/src/components/Switch/OrigamSwitch.vue +453 -449
  38. package/dist/src/components/TextField/OrigamTextField.vue +5 -2
  39. package/dist/src/components/TextareaField/OrigamRichToolbar.vue +8 -8
  40. package/dist/src/components/TextareaField/OrigamTextareaField.vue +1 -1
  41. package/dist/src/components/Title/OrigamTitle.vue +6 -4
  42. package/dist/src/components/Video/OrigamVideo.vue +3 -3
  43. package/dist/src/composables/Commons/group.composable.cjs +2 -2
  44. package/dist/src/composables/Commons/group.composable.js +2 -2
  45. package/dist/src/composables/Commons/style.composable.cjs +14 -12
  46. package/dist/src/composables/Commons/style.composable.d.ts +16 -2
  47. package/dist/src/composables/Commons/style.composable.js +16 -14
  48. package/dist/src/consts/Btn/btn-toggle.const.cjs +1 -1
  49. package/dist/src/consts/Btn/btn-toggle.const.js +1 -1
  50. package/dist/src/consts/Chip/chip-group.const.cjs +1 -1
  51. package/dist/src/consts/Chip/chip-group.const.js +1 -1
  52. package/dist/src/consts/Commons/date.const.cjs +2 -2
  53. package/dist/src/consts/Commons/date.const.js +2 -2
  54. package/dist/src/consts/Commons/defaults.const.cjs +1 -1
  55. package/dist/src/consts/Commons/defaults.const.js +1 -1
  56. package/dist/src/consts/Commons/display.const.cjs +1 -1
  57. package/dist/src/consts/Commons/display.const.js +1 -1
  58. package/dist/src/consts/Commons/forwardRefs.const.cjs +1 -1
  59. package/dist/src/consts/Commons/forwardRefs.const.js +1 -1
  60. package/dist/src/consts/Commons/goTo.const.cjs +1 -1
  61. package/dist/src/consts/Commons/goTo.const.js +1 -1
  62. package/dist/src/consts/Commons/hover.const.cjs +1 -1
  63. package/dist/src/consts/Commons/hover.const.js +1 -1
  64. package/dist/src/consts/Commons/layout.const.cjs +2 -2
  65. package/dist/src/consts/Commons/layout.const.js +2 -2
  66. package/dist/src/consts/Commons/locale.const.cjs +1 -1
  67. package/dist/src/consts/Commons/locale.const.js +1 -1
  68. package/dist/src/consts/Commons/nested.const.cjs +1 -1
  69. package/dist/src/consts/Commons/nested.const.js +1 -1
  70. package/dist/src/consts/Commons/ripple.const.cjs +1 -1
  71. package/dist/src/consts/Commons/ripple.const.js +1 -1
  72. package/dist/src/consts/Commons/rounded.const.d.ts +1 -1
  73. package/dist/src/consts/Commons/stack.const.cjs +1 -1
  74. package/dist/src/consts/Commons/stack.const.js +1 -1
  75. package/dist/src/consts/DataTable/expand.const.cjs +1 -1
  76. package/dist/src/consts/DataTable/expand.const.js +1 -1
  77. package/dist/src/consts/DataTable/group.const.cjs +1 -1
  78. package/dist/src/consts/DataTable/group.const.js +1 -1
  79. package/dist/src/consts/DataTable/headers.const.cjs +1 -1
  80. package/dist/src/consts/DataTable/headers.const.js +1 -1
  81. package/dist/src/consts/DataTable/pagination.const.cjs +1 -1
  82. package/dist/src/consts/DataTable/pagination.const.js +1 -1
  83. package/dist/src/consts/DataTable/select.const.cjs +2 -2
  84. package/dist/src/consts/DataTable/select.const.js +2 -2
  85. package/dist/src/consts/DataTable/sort.const.cjs +1 -1
  86. package/dist/src/consts/DataTable/sort.const.js +1 -1
  87. package/dist/src/consts/ExpansionPanel/expansion-panel.const.cjs +1 -1
  88. package/dist/src/consts/ExpansionPanel/expansion-panel.const.js +1 -1
  89. package/dist/src/consts/Form/form.const.cjs +1 -1
  90. package/dist/src/consts/Form/form.const.js +1 -1
  91. package/dist/src/consts/Icon/icon.const.cjs +1 -1
  92. package/dist/src/consts/Icon/icon.const.js +1 -1
  93. package/dist/src/consts/ItemGroup/item-group.const.cjs +1 -1
  94. package/dist/src/consts/ItemGroup/item-group.const.js +1 -1
  95. package/dist/src/consts/List/list.const.cjs +1 -1
  96. package/dist/src/consts/List/list.const.js +1 -1
  97. package/dist/src/consts/Menu/menu.const.cjs +1 -1
  98. package/dist/src/consts/Menu/menu.const.js +1 -1
  99. package/dist/src/consts/Parallax/parallax-container.const.cjs +1 -1
  100. package/dist/src/consts/Parallax/parallax-container.const.js +1 -1
  101. package/dist/src/consts/Parallax/parallax-layer.const.cjs +1 -1
  102. package/dist/src/consts/Parallax/parallax-layer.const.js +1 -1
  103. package/dist/src/consts/SelectionControl/selection-control.const.cjs +1 -1
  104. package/dist/src/consts/SelectionControl/selection-control.const.js +1 -1
  105. package/dist/src/consts/Slide/slide-group.const.cjs +1 -1
  106. package/dist/src/consts/Slide/slide-group.const.js +1 -1
  107. package/dist/src/consts/Stepper/stepper.const.cjs +1 -1
  108. package/dist/src/consts/Stepper/stepper.const.js +1 -1
  109. package/dist/src/consts/Tabs/tabs.const.cjs +3 -3
  110. package/dist/src/consts/Tabs/tabs.const.js +3 -3
  111. package/dist/src/consts/Theme/theme.const.cjs +2 -2
  112. package/dist/src/consts/Theme/theme.const.js +2 -2
  113. package/dist/src/consts/Timeline/timeline.const.cjs +1 -1
  114. package/dist/src/consts/Timeline/timeline.const.js +1 -1
  115. package/dist/src/consts/Treeview/treeview.const.cjs +1 -1
  116. package/dist/src/consts/Treeview/treeview.const.js +1 -1
  117. package/dist/src/consts/Window/window.const.cjs +2 -2
  118. package/dist/src/consts/Window/window.const.js +2 -2
  119. package/dist/src/enums/Commons/rounded.enum.cjs +12 -2
  120. package/dist/src/enums/Commons/rounded.enum.d.ts +25 -0
  121. package/dist/src/enums/Commons/rounded.enum.js +10 -0
  122. package/dist/src/interfaces/Commons/commons.interface.d.ts +18 -0
  123. package/dist/src/interfaces/List/list-item.interface.d.ts +15 -2
  124. package/dist/src/interfaces/List/list.interface.d.ts +10 -2
  125. package/dist/src/interfaces/Pagination/pagination.interface.d.ts +2 -2
  126. package/dist/src/nuxt/module.cjs +3 -2
  127. package/dist/src/nuxt/module.js +2 -1
  128. package/dist/src/origam.cjs +3 -2
  129. package/dist/src/origam.js +3 -2
  130. package/dist/src/services/Commons/circular-buffer.service.cjs +1 -0
  131. package/dist/src/services/Commons/circular-buffer.service.js +1 -0
  132. package/dist/src/themes/origam.theme.cjs +2 -2
  133. package/dist/src/themes/origam.theme.js +2 -2
  134. package/dist/src/types/Commons/rounded.type.d.ts +14 -2
  135. package/dist/src/utils/Commons/dom.util.cjs +32 -0
  136. package/dist/src/utils/Commons/dom.util.d.ts +1 -0
  137. package/dist/src/utils/Commons/dom.util.js +31 -0
  138. package/package.json +12 -6
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.ORIGAM_ICONS_KEY = exports.DEFAULT_SETS = void 0;
7
7
  var _Icon = require("../../components/Icon/index.cjs");
8
- const ORIGAM_ICONS_KEY = exports.ORIGAM_ICONS_KEY = Symbol.for("origam:icons");
8
+ const ORIGAM_ICONS_KEY = exports.ORIGAM_ICONS_KEY = /* @__PURE__ */Symbol.for("origam:icons");
9
9
  const DEFAULT_SETS = exports.DEFAULT_SETS = {
10
10
  svg: {
11
11
  component: _Icon.OrigamSvgIcon
@@ -1,5 +1,5 @@
1
1
  import { OrigamClassIcon, OrigamSvgIcon } from "../../components/Icon/index.js";
2
- export const ORIGAM_ICONS_KEY = Symbol.for("origam:icons");
2
+ export const ORIGAM_ICONS_KEY = /* @__PURE__ */ Symbol.for("origam:icons");
3
3
  export const DEFAULT_SETS = {
4
4
  svg: {
5
5
  component: OrigamSvgIcon
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_ITEM_GROUP_KEY = void 0;
7
- const ORIGAM_ITEM_GROUP_KEY = exports.ORIGAM_ITEM_GROUP_KEY = Symbol.for("origam:item-group");
7
+ const ORIGAM_ITEM_GROUP_KEY = exports.ORIGAM_ITEM_GROUP_KEY = /* @__PURE__ */Symbol.for("origam:item-group");
@@ -1 +1 @@
1
- export const ORIGAM_ITEM_GROUP_KEY = Symbol.for("origam:item-group");
1
+ export const ORIGAM_ITEM_GROUP_KEY = /* @__PURE__ */ Symbol.for("origam:item-group");
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_LIST_KEY = void 0;
7
- const ORIGAM_LIST_KEY = exports.ORIGAM_LIST_KEY = Symbol.for("origam:list");
7
+ const ORIGAM_LIST_KEY = exports.ORIGAM_LIST_KEY = /* @__PURE__ */Symbol.for("origam:list");
@@ -1 +1 @@
1
- export const ORIGAM_LIST_KEY = Symbol.for("origam:list");
1
+ export const ORIGAM_LIST_KEY = /* @__PURE__ */ Symbol.for("origam:list");
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_MENU_KEY = void 0;
7
- const ORIGAM_MENU_KEY = exports.ORIGAM_MENU_KEY = Symbol.for("origam:menu");
7
+ const ORIGAM_MENU_KEY = exports.ORIGAM_MENU_KEY = /* @__PURE__ */Symbol.for("origam:menu");
@@ -1 +1 @@
1
- export const ORIGAM_MENU_KEY = Symbol.for("origam:menu");
1
+ export const ORIGAM_MENU_KEY = /* @__PURE__ */ Symbol.for("origam:menu");
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_PARALLAX_KEY = void 0;
7
- const ORIGAM_PARALLAX_KEY = exports.ORIGAM_PARALLAX_KEY = Symbol.for("origam:parallax");
7
+ const ORIGAM_PARALLAX_KEY = exports.ORIGAM_PARALLAX_KEY = /* @__PURE__ */Symbol.for("origam:parallax");
@@ -1 +1 @@
1
- export const ORIGAM_PARALLAX_KEY = Symbol.for("origam:parallax");
1
+ export const ORIGAM_PARALLAX_KEY = /* @__PURE__ */ Symbol.for("origam:parallax");
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_PARALLAX_LAYER_KEY = void 0;
7
- const ORIGAM_PARALLAX_LAYER_KEY = exports.ORIGAM_PARALLAX_LAYER_KEY = Symbol.for("origam:parallax-layer");
7
+ const ORIGAM_PARALLAX_LAYER_KEY = exports.ORIGAM_PARALLAX_LAYER_KEY = /* @__PURE__ */Symbol.for("origam:parallax-layer");
@@ -1 +1 @@
1
- export const ORIGAM_PARALLAX_LAYER_KEY = Symbol.for("origam:parallax-layer");
1
+ export const ORIGAM_PARALLAX_LAYER_KEY = /* @__PURE__ */ Symbol.for("origam:parallax-layer");
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_SELECTION_CONTROL_GROUP_KEY = void 0;
7
- const ORIGAM_SELECTION_CONTROL_GROUP_KEY = exports.ORIGAM_SELECTION_CONTROL_GROUP_KEY = Symbol.for("origam:selection-control-group");
7
+ const ORIGAM_SELECTION_CONTROL_GROUP_KEY = exports.ORIGAM_SELECTION_CONTROL_GROUP_KEY = /* @__PURE__ */Symbol.for("origam:selection-control-group");
@@ -1 +1 @@
1
- export const ORIGAM_SELECTION_CONTROL_GROUP_KEY = Symbol.for("origam:selection-control-group");
1
+ export const ORIGAM_SELECTION_CONTROL_GROUP_KEY = /* @__PURE__ */ Symbol.for("origam:selection-control-group");
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_SLIDE_GROUP_KEY = void 0;
7
- const ORIGAM_SLIDE_GROUP_KEY = exports.ORIGAM_SLIDE_GROUP_KEY = Symbol.for("origam:slide-group");
7
+ const ORIGAM_SLIDE_GROUP_KEY = exports.ORIGAM_SLIDE_GROUP_KEY = /* @__PURE__ */Symbol.for("origam:slide-group");
@@ -1 +1 @@
1
- export const ORIGAM_SLIDE_GROUP_KEY = Symbol.for("origam:slide-group");
1
+ export const ORIGAM_SLIDE_GROUP_KEY = /* @__PURE__ */ Symbol.for("origam:slide-group");
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_STEPPER_KEY = void 0;
7
- const ORIGAM_STEPPER_KEY = exports.ORIGAM_STEPPER_KEY = Symbol.for("origam:stepper");
7
+ const ORIGAM_STEPPER_KEY = exports.ORIGAM_STEPPER_KEY = /* @__PURE__ */Symbol.for("origam:stepper");
@@ -1 +1 @@
1
- export const ORIGAM_STEPPER_KEY = Symbol.for("origam:stepper");
1
+ export const ORIGAM_STEPPER_KEY = /* @__PURE__ */ Symbol.for("origam:stepper");
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_TAB_PANELS_KEY = exports.ORIGAM_TAB_PANELS_CTX_KEY = exports.ORIGAM_TABS_KEY = void 0;
7
- const ORIGAM_TABS_KEY = exports.ORIGAM_TABS_KEY = Symbol.for("origam:tabs");
8
- const ORIGAM_TAB_PANELS_KEY = exports.ORIGAM_TAB_PANELS_KEY = Symbol.for("origam:tab-panels");
9
- const ORIGAM_TAB_PANELS_CTX_KEY = exports.ORIGAM_TAB_PANELS_CTX_KEY = Symbol.for("origam:tab-panels-ctx");
7
+ const ORIGAM_TABS_KEY = exports.ORIGAM_TABS_KEY = /* @__PURE__ */Symbol.for("origam:tabs");
8
+ const ORIGAM_TAB_PANELS_KEY = exports.ORIGAM_TAB_PANELS_KEY = /* @__PURE__ */Symbol.for("origam:tab-panels");
9
+ const ORIGAM_TAB_PANELS_CTX_KEY = exports.ORIGAM_TAB_PANELS_CTX_KEY = /* @__PURE__ */Symbol.for("origam:tab-panels-ctx");
@@ -1,3 +1,3 @@
1
- export const ORIGAM_TABS_KEY = Symbol.for("origam:tabs");
2
- export const ORIGAM_TAB_PANELS_KEY = Symbol.for("origam:tab-panels");
3
- export const ORIGAM_TAB_PANELS_CTX_KEY = Symbol.for("origam:tab-panels-ctx");
1
+ export const ORIGAM_TABS_KEY = /* @__PURE__ */ Symbol.for("origam:tabs");
2
+ export const ORIGAM_TAB_PANELS_KEY = /* @__PURE__ */ Symbol.for("origam:tab-panels");
3
+ export const ORIGAM_TAB_PANELS_CTX_KEY = /* @__PURE__ */ Symbol.for("origam:tab-panels-ctx");
@@ -7,8 +7,8 @@ exports.ORIGAM_THEME_STORAGE_KEY = exports.ORIGAM_THEME_LIGHT = exports.ORIGAM_T
7
7
  const ORIGAM_THEME_AUTO = exports.ORIGAM_THEME_AUTO = "auto";
8
8
  const ORIGAM_THEME_LIGHT = exports.ORIGAM_THEME_LIGHT = "light";
9
9
  const ORIGAM_THEME_DARK = exports.ORIGAM_THEME_DARK = "dark";
10
- const ORIGAM_THEMES_KEY = exports.ORIGAM_THEMES_KEY = Symbol.for("origam:themes");
11
- const ORIGAM_THEME_DEFAULTS_KEY = exports.ORIGAM_THEME_DEFAULTS_KEY = Symbol.for("origam:theme-defaults");
10
+ const ORIGAM_THEMES_KEY = exports.ORIGAM_THEMES_KEY = /* @__PURE__ */Symbol.for("origam:themes");
11
+ const ORIGAM_THEME_DEFAULTS_KEY = exports.ORIGAM_THEME_DEFAULTS_KEY = /* @__PURE__ */Symbol.for("origam:theme-defaults");
12
12
  const ORIGAM_THEME_STORAGE_KEY = exports.ORIGAM_THEME_STORAGE_KEY = "origam-theme";
13
13
  const ORIGAM_THEME_ATTR = exports.ORIGAM_THEME_ATTR = "data-theme";
14
14
  const ORIGAM_MODE_AUTO = exports.ORIGAM_MODE_AUTO = "auto";
@@ -1,8 +1,8 @@
1
1
  export const ORIGAM_THEME_AUTO = "auto";
2
2
  export const ORIGAM_THEME_LIGHT = "light";
3
3
  export const ORIGAM_THEME_DARK = "dark";
4
- export const ORIGAM_THEMES_KEY = Symbol.for("origam:themes");
5
- export const ORIGAM_THEME_DEFAULTS_KEY = Symbol.for("origam:theme-defaults");
4
+ export const ORIGAM_THEMES_KEY = /* @__PURE__ */ Symbol.for("origam:themes");
5
+ export const ORIGAM_THEME_DEFAULTS_KEY = /* @__PURE__ */ Symbol.for("origam:theme-defaults");
6
6
  export const ORIGAM_THEME_STORAGE_KEY = "origam-theme";
7
7
  export const ORIGAM_THEME_ATTR = "data-theme";
8
8
  export const ORIGAM_MODE_AUTO = "auto";
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.TIMELINE_CONTEXT_KEY = void 0;
7
- const TIMELINE_CONTEXT_KEY = exports.TIMELINE_CONTEXT_KEY = Symbol.for("origam:timeline");
7
+ const TIMELINE_CONTEXT_KEY = exports.TIMELINE_CONTEXT_KEY = /* @__PURE__ */Symbol.for("origam:timeline");
@@ -1 +1 @@
1
- export const TIMELINE_CONTEXT_KEY = Symbol.for("origam:timeline");
1
+ export const TIMELINE_CONTEXT_KEY = /* @__PURE__ */ Symbol.for("origam:timeline");
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_TREEVIEW_KEY = void 0;
7
- const ORIGAM_TREEVIEW_KEY = exports.ORIGAM_TREEVIEW_KEY = Symbol.for("origam:treeview");
7
+ const ORIGAM_TREEVIEW_KEY = exports.ORIGAM_TREEVIEW_KEY = /* @__PURE__ */Symbol.for("origam:treeview");
@@ -1 +1 @@
1
- export const ORIGAM_TREEVIEW_KEY = Symbol.for("origam:treeview");
1
+ export const ORIGAM_TREEVIEW_KEY = /* @__PURE__ */ Symbol.for("origam:treeview");
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_WINDOW_KEY = exports.ORIGAM_WINDOW_GROUP_KEY = void 0;
7
- const ORIGAM_WINDOW_KEY = exports.ORIGAM_WINDOW_KEY = Symbol.for("origam:window");
8
- const ORIGAM_WINDOW_GROUP_KEY = exports.ORIGAM_WINDOW_GROUP_KEY = Symbol.for("origam:window-group");
7
+ const ORIGAM_WINDOW_KEY = exports.ORIGAM_WINDOW_KEY = /* @__PURE__ */Symbol.for("origam:window");
8
+ const ORIGAM_WINDOW_GROUP_KEY = exports.ORIGAM_WINDOW_GROUP_KEY = /* @__PURE__ */Symbol.for("origam:window-group");
@@ -1,2 +1,2 @@
1
- export const ORIGAM_WINDOW_KEY = Symbol.for("origam:window");
2
- export const ORIGAM_WINDOW_GROUP_KEY = Symbol.for("origam:window-group");
1
+ export const ORIGAM_WINDOW_KEY = /* @__PURE__ */ Symbol.for("origam:window");
2
+ export const ORIGAM_WINDOW_GROUP_KEY = /* @__PURE__ */ Symbol.for("origam:window-group");
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.ROUNDED = void 0;
6
+ exports.ROUNDED_TOKEN = exports.ROUNDED = void 0;
7
7
  var ROUNDED = exports.ROUNDED = /* @__PURE__ */(ROUNDED2 => {
8
8
  ROUNDED2["X_SMALL"] = "x-small";
9
9
  ROUNDED2["SMALL"] = "small";
@@ -14,4 +14,14 @@ var ROUNDED = exports.ROUNDED = /* @__PURE__ */(ROUNDED2 => {
14
14
  ROUNDED2["SHAPED"] = "shaped";
15
15
  ROUNDED2["SHAPED_INVERT"] = "shaped-invert";
16
16
  return ROUNDED2;
17
- })(ROUNDED || {});
17
+ })(ROUNDED || {});
18
+ var ROUNDED_TOKEN = exports.ROUNDED_TOKEN = /* @__PURE__ */(ROUNDED_TOKEN2 => {
19
+ ROUNDED_TOKEN2["NONE"] = "none";
20
+ ROUNDED_TOKEN2["XS"] = "xs";
21
+ ROUNDED_TOKEN2["SM"] = "sm";
22
+ ROUNDED_TOKEN2["MD"] = "md";
23
+ ROUNDED_TOKEN2["LG"] = "lg";
24
+ ROUNDED_TOKEN2["XL"] = "xl";
25
+ ROUNDED_TOKEN2["FULL"] = "full";
26
+ return ROUNDED_TOKEN2;
27
+ })(ROUNDED_TOKEN || {});
@@ -15,3 +15,28 @@ export declare enum ROUNDED {
15
15
  SHAPED = "shaped",
16
16
  SHAPED_INVERT = "shaped-invert"
17
17
  }
18
+ /**
19
+ * The token-scale rungs, resolved by `useRounded` to the generated utility
20
+ * classes (`.origam--rounded-full` → `var(--origam-radius---full)`).
21
+ *
22
+ * They were always accepted at runtime — the brand themes have shipped
23
+ * `rounded: 'md'` / `'lg'` / `'none'` for a while — but `TRounded` only
24
+ * described the component scale above, so TypeScript rejected them and they
25
+ * were invisible to autocompletion. `FULL` in particular is the only way to
26
+ * obtain a circle, which made a round avatar undiscoverable: none of the
27
+ * component-scale names produces one.
28
+ *
29
+ * Declared as a separate enum rather than merged into `ROUNDED` because the
30
+ * two scales are different things — `ROUNDED` names an intent (`shaped`),
31
+ * this one names a radius rung — and merging them would suggest
32
+ * `x-small` and `xs` are interchangeable. They are not.
33
+ */
34
+ export declare enum ROUNDED_TOKEN {
35
+ NONE = "none",
36
+ XS = "xs",
37
+ SM = "sm",
38
+ MD = "md",
39
+ LG = "lg",
40
+ XL = "xl",
41
+ FULL = "full"
42
+ }
@@ -9,3 +9,13 @@ export var ROUNDED = /* @__PURE__ */ ((ROUNDED2) => {
9
9
  ROUNDED2["SHAPED_INVERT"] = "shaped-invert";
10
10
  return ROUNDED2;
11
11
  })(ROUNDED || {});
12
+ export var ROUNDED_TOKEN = /* @__PURE__ */ ((ROUNDED_TOKEN2) => {
13
+ ROUNDED_TOKEN2["NONE"] = "none";
14
+ ROUNDED_TOKEN2["XS"] = "xs";
15
+ ROUNDED_TOKEN2["SM"] = "sm";
16
+ ROUNDED_TOKEN2["MD"] = "md";
17
+ ROUNDED_TOKEN2["LG"] = "lg";
18
+ ROUNDED_TOKEN2["XL"] = "xl";
19
+ ROUNDED_TOKEN2["FULL"] = "full";
20
+ return ROUNDED_TOKEN2;
21
+ })(ROUNDED_TOKEN || {});
@@ -108,3 +108,21 @@ export interface IFilterPropsOptions<PropsOptions extends {
108
108
  export interface IConfigurableDocument {
109
109
  document?: Document;
110
110
  }
111
+ /**
112
+ * The extra surface Nuxt puts on a Vue `App` instance.
113
+ *
114
+ * Nuxt attaches `$nuxt` to the app at runtime, but the type augmentation
115
+ * that declares it ships with Nuxt's own types. The library must not depend
116
+ * on them: it is framework-agnostic and type-checks standalone, so
117
+ * `app.$nuxt` resolves to `Property '$nuxt' does not exist on type
118
+ * 'App<any>'` in CI even though the property really is there under Nuxt.
119
+ *
120
+ * Intersecting `App` with this interface keeps the runtime guard honest —
121
+ * `$nuxt` stays optional, so the `else` branch remains reachable and
122
+ * type-checked — without pulling `@nuxt/schema` into the type graph.
123
+ */
124
+ export interface INuxtAwareApp {
125
+ $nuxt?: {
126
+ hook: (name: string, callback: () => void) => void;
127
+ };
128
+ }
@@ -1,6 +1,19 @@
1
- import type { IActiveProps, IAdjacentEmits, IAdjacentProps, IBgColorProps, IBorderProps, IClickEmits, IColorProps, ICommonsComponentProps, IDensityProps, IDimensionProps, IElevationProps, IHoverProps, ILinkProps, IMarginProps, IPaddingProps, IRippleProps, IRoundedProps, ITagProps, ITypographyProps } from '../../interfaces';
1
+ import type { IActiveProps, IAdjacentEmits, IAdjacentProps, IBgColorProps, IBorderProps, IClickEmits, IColorProps, ICommonsComponentProps, IDensityProps, IDimensionProps, IElevationProps, IHoverProps, ILinkProps, IMarginProps, IPaddingProps, IRippleProps, IRoundedProps, ISizeProps, ITagProps, ITypographyProps } from '../../interfaces';
2
2
  import type { TLines } from '../../types';
3
- export interface IListItemProps extends IBorderProps, ICommonsComponentProps, IDensityProps, IDimensionProps, IElevationProps, IRoundedProps, ITagProps, ILinkProps, IColorProps, IBgColorProps, IRippleProps, IPaddingProps, IMarginProps, IAdjacentProps, IActiveProps, IHoverProps, ITypographyProps {
3
+ /**
4
+ * `size` picks a rung of the shared control-height scale (28 / 36 / 44 / 52 px,
5
+ * the same one `--origam-input__control---height-{sm,md,lg,xl}` drives) and
6
+ * paints it on the row: `min-height` plus the matching block padding. The
7
+ * title typography is deliberately NOT scaled — `.origam-field` keeps a fixed
8
+ * 16px text at every size, so shrinking the row text would re-introduce the
9
+ * mismatch this scale exists to remove.
10
+ *
11
+ * `size` composes with `density`, it does not replace it. The resolved height is
12
+ * `max(<size rung> + <density>, <title line box> + 2 * <block padding>)` — the
13
+ * same expression `.origam-field__input` uses, floor included, so a `small` row
14
+ * at `compact` density holds 28px instead of collapsing to 20px.
15
+ */
16
+ export interface IListItemProps extends IBorderProps, ICommonsComponentProps, IDensityProps, IDimensionProps, IElevationProps, IRoundedProps, ISizeProps, ITagProps, ILinkProps, IColorProps, IBgColorProps, IRippleProps, IPaddingProps, IMarginProps, IAdjacentProps, IActiveProps, IHoverProps, ITypographyProps {
4
17
  active?: boolean;
5
18
  activeClass?: string;
6
19
  disabled?: boolean;
@@ -1,7 +1,15 @@
1
- import type { IBorderProps, IBgColorProps, IColorProps, ICommonsComponentProps, IDensityProps, IDimensionProps, IElevationProps, IMarginProps, INestedProps, IPaddingProps, IRoundedProps, ITagProps } from '../../interfaces';
1
+ import type { IBorderProps, IBgColorProps, IColorProps, ICommonsComponentProps, IDensityProps, IDimensionProps, IElevationProps, IMarginProps, INestedProps, IPaddingProps, IRoundedProps, ISizeProps, ITagProps } from '../../interfaces';
2
2
  import type { TLines, TSelectItemKey } from '../../types';
3
3
  import { deepEqual } from '../../utils';
4
- export interface IListProps extends ITagProps, ICommonsComponentProps, IElevationProps, IBorderProps, IDensityProps, IRoundedProps, IDimensionProps, INestedProps, IItemProps, IColorProps, IBgColorProps, IPaddingProps, IMarginProps {
4
+ /**
5
+ * `size` is a FORWARDING prop on the list: the root paints nothing from it,
6
+ * it is pushed down to every descendant `<origam-list-item>` through the
7
+ * defaults provider (same channel as `density` / `color` / `bgColor`), where
8
+ * it drives the row height scale. It exists so a container that owns a size
9
+ * — a `<origam-select>` dropdown, a sized `<origam-menu>` — can keep its
10
+ * popup rows on the same vertical scale as its control.
11
+ */
12
+ export interface IListProps extends ITagProps, ICommonsComponentProps, IElevationProps, IBorderProps, IDensityProps, ISizeProps, IRoundedProps, IDimensionProps, INestedProps, IItemProps, IColorProps, IBgColorProps, IPaddingProps, IMarginProps {
5
13
  activeClass?: string;
6
14
  disabled?: boolean;
7
15
  expandIcon?: string;
@@ -58,9 +58,9 @@ export interface IPaginationProps extends ICommonsComponentProps, ITagProps, ICo
58
58
  nextText?: string;
59
59
  /**
60
60
  * aria-label for the compact mode page number `<input>`. Falls back to
61
- * the `origam.pagination.ariaLabel.pageNumber` i18n key.
61
+ * the `origam.pagination.aria_label.page_number` i18n key.
62
62
  *
63
- * @default 'origam.pagination.ariaLabel.pageNumber'
63
+ * @default 'origam.pagination.aria_label.page_number'
64
64
  */
65
65
  pageNumberAriaLabel?: string;
66
66
  /** @deprecated Use the `hover` object prop instead. Kept for back-compat. */
@@ -34,7 +34,7 @@ const SCALAR_DEFAULTS = {
34
34
  includeUtilities: DEFAULTS.includeUtilities,
35
35
  prefix: DEFAULTS.prefix
36
36
  };
37
- module.exports = (0, _kit.defineNuxtModule)({
37
+ const origamNuxtModule = (0, _kit.defineNuxtModule)({
38
38
  meta: {
39
39
  name: MODULE_NAME,
40
40
  configKey: CONFIG_KEY,
@@ -141,4 +141,5 @@ module.exports = (0, _kit.defineNuxtModule)({
141
141
  cookieMaxAge
142
142
  };
143
143
  }
144
- });
144
+ });
145
+ module.exports = origamNuxtModule;
@@ -33,7 +33,7 @@ const SCALAR_DEFAULTS = {
33
33
  includeUtilities: DEFAULTS.includeUtilities,
34
34
  prefix: DEFAULTS.prefix
35
35
  };
36
- export default defineNuxtModule({
36
+ const origamNuxtModule = defineNuxtModule({
37
37
  meta: {
38
38
  name: MODULE_NAME,
39
39
  configKey: CONFIG_KEY,
@@ -138,3 +138,4 @@ export default defineNuxtModule({
138
138
  };
139
139
  }
140
140
  });
141
+ export default origamNuxtModule;
@@ -69,8 +69,9 @@ function createOrigam(origam = {}) {
69
69
  app.provide(_consts.ORIGAM_DEFAULTS_KEY, defaultsRef);
70
70
  app.provide(_consts.ORIGAM_THEME_DEFAULTS_KEY, (brand, mode) => activeDefaultsFor(allThemes, brand, mode));
71
71
  if (_consts.IN_BROWSER && options.ssr) {
72
- if (app.$nuxt) {
73
- app.$nuxt.hook("app:suspense:resolve", () => {
72
+ const nuxt = app.$nuxt;
73
+ if (nuxt) {
74
+ nuxt.hook("app:suspense:resolve", () => {
74
75
  display.update();
75
76
  });
76
77
  } else {
@@ -71,8 +71,9 @@ export function createOrigam(origam = {}) {
71
71
  app.provide(ORIGAM_DEFAULTS_KEY, defaultsRef);
72
72
  app.provide(ORIGAM_THEME_DEFAULTS_KEY, (brand, mode) => activeDefaultsFor(allThemes, brand, mode));
73
73
  if (IN_BROWSER && options.ssr) {
74
- if (app.$nuxt) {
75
- app.$nuxt.hook("app:suspense:resolve", () => {
74
+ const nuxt = app.$nuxt;
75
+ if (nuxt) {
76
+ nuxt.hook("app:suspense:resolve", () => {
76
77
  display.update();
77
78
  });
78
79
  } else {
@@ -8,6 +8,7 @@ class CircularBuffer {
8
8
  constructor(size) {
9
9
  this.size = size;
10
10
  }
11
+ size;
11
12
  #arr = [];
12
13
  #pointer = 0;
13
14
  push(val) {
@@ -2,6 +2,7 @@ export class CircularBuffer {
2
2
  constructor(size) {
3
3
  this.size = size;
4
4
  }
5
+ size;
5
6
  #arr = [];
6
7
  #pointer = 0;
7
8
  push(val) {
@@ -210,7 +210,7 @@ const origamLightTheme = exports.origamLightTheme = {
210
210
  "origam-avatar": {
211
211
  tag: "div",
212
212
  size: "default",
213
- rounded: "lg",
213
+ rounded: "full",
214
214
  color: "primary"
215
215
  },
216
216
  "origam-badge": {
@@ -609,7 +609,7 @@ const origamDarkTheme = exports.origamDarkTheme = {
609
609
  "origam-avatar": {
610
610
  tag: "div",
611
611
  size: "default",
612
- rounded: "lg",
612
+ rounded: "full",
613
613
  color: "primary"
614
614
  },
615
615
  "origam-badge": {
@@ -149,7 +149,7 @@ export const origamLightTheme = {
149
149
  components: {
150
150
  "origam-alert": { tag: "div", density: "default" },
151
151
  "origam-audio": { tag: "article", variant: "expanded", position: "relative" },
152
- "origam-avatar": { tag: "div", size: "default", rounded: "lg", color: "primary" },
152
+ "origam-avatar": { tag: "div", size: "default", rounded: "full", color: "primary" },
153
153
  "origam-badge": { tag: "div", location: "top right" },
154
154
  "origam-blockquote": { tag: "blockquote", variant: "default" },
155
155
  "origam-bottom-nav": { tag: "nav", position: "start" },
@@ -299,7 +299,7 @@ export const origamDarkTheme = {
299
299
  components: {
300
300
  "origam-alert": { tag: "div", density: "default" },
301
301
  "origam-audio": { tag: "article", variant: "expanded", position: "relative" },
302
- "origam-avatar": { tag: "div", size: "default", rounded: "lg", color: "primary" },
302
+ "origam-avatar": { tag: "div", size: "default", rounded: "full", color: "primary" },
303
303
  "origam-badge": { tag: "div", location: "top right" },
304
304
  "origam-blockquote": { tag: "blockquote", variant: "default" },
305
305
  "origam-bottom-nav": { tag: "nav", position: "start" },
@@ -1,2 +1,14 @@
1
- import { ROUNDED } from '../../enums';
2
- export type TRounded = `${ROUNDED}`;
1
+ import { ROUNDED, ROUNDED_TOKEN } from '../../enums';
2
+ /**
3
+ * Every value the `rounded` prop accepts.
4
+ *
5
+ * Two scales, deliberately kept distinct (see `rounded.enum.ts`):
6
+ * - `ROUNDED` — the component scale, naming an intent (`shaped`, `large`);
7
+ * - `ROUNDED_TOKEN` — the radius rungs (`md`, `full`), resolved to the
8
+ * generated utility classes.
9
+ *
10
+ * The token scale was already honoured at runtime but was missing from this
11
+ * type, so `rounded="full"` — the only way to get a circle — failed to
12
+ * type-check and never surfaced in autocompletion.
13
+ */
14
+ export type TRounded = `${ROUNDED}` | `${ROUNDED_TOKEN}`;
@@ -4,6 +4,38 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.attachedRoot = attachedRoot;
7
+ exports.escapeCssIdent = escapeCssIdent;
8
+ function isDigit(code) {
9
+ return code >= 48 && code <= 57;
10
+ }
11
+ function isIdentSafe(code) {
12
+ return code >= 128 || code === 45 || code === 95 || isDigit(code) || code >= 65 && code <= 90 || code >= 97 && code <= 122;
13
+ }
14
+ function needsHexEscape(code, index, value) {
15
+ if (code <= 31 || code === 127) return true;
16
+ if (!isDigit(code)) return false;
17
+ return index === 0 || index === 1 && value.charCodeAt(0) === 45;
18
+ }
19
+ function isLoneHyphen(code, index, value) {
20
+ return index === 0 && code === 45 && value.length === 1;
21
+ }
22
+ function escapeIdentChar(value, index) {
23
+ const code = value.charCodeAt(index);
24
+ if (code === 0) return "\uFFFD";
25
+ if (needsHexEscape(code, index, value)) return `\\${code.toString(16)} `;
26
+ if (isLoneHyphen(code, index, value)) return `\\${value[index]}`;
27
+ if (isIdentSafe(code)) return value[index];
28
+ return `\\${value[index]}`;
29
+ }
30
+ function escapeCssIdent(value) {
31
+ const css = globalThis.CSS;
32
+ if (typeof css?.escape === "function") return css.escape(value);
33
+ let out = "";
34
+ for (let i = 0; i < value.length; i++) {
35
+ out += escapeIdentChar(value, i);
36
+ }
37
+ return out;
38
+ }
7
39
  function attachedRoot(node) {
8
40
  if (typeof node.getRootNode !== "function") {
9
41
  while (node.parentNode) node = node.parentNode;
@@ -1,3 +1,4 @@
1
+ export declare function escapeCssIdent(value: string): string;
1
2
  /**
2
3
  * Returns:
3
4
  * - 'null' if the node is not attached to the DOM
@@ -1,3 +1,34 @@
1
+ function isDigit(code) {
2
+ return code >= 48 && code <= 57;
3
+ }
4
+ function isIdentSafe(code) {
5
+ return code >= 128 || code === 45 || code === 95 || isDigit(code) || code >= 65 && code <= 90 || code >= 97 && code <= 122;
6
+ }
7
+ function needsHexEscape(code, index, value) {
8
+ if (code <= 31 || code === 127) return true;
9
+ if (!isDigit(code)) return false;
10
+ return index === 0 || index === 1 && value.charCodeAt(0) === 45;
11
+ }
12
+ function isLoneHyphen(code, index, value) {
13
+ return index === 0 && code === 45 && value.length === 1;
14
+ }
15
+ function escapeIdentChar(value, index) {
16
+ const code = value.charCodeAt(index);
17
+ if (code === 0) return "\uFFFD";
18
+ if (needsHexEscape(code, index, value)) return `\\${code.toString(16)} `;
19
+ if (isLoneHyphen(code, index, value)) return `\\${value[index]}`;
20
+ if (isIdentSafe(code)) return value[index];
21
+ return `\\${value[index]}`;
22
+ }
23
+ export function escapeCssIdent(value) {
24
+ const css = globalThis.CSS;
25
+ if (typeof css?.escape === "function") return css.escape(value);
26
+ let out = "";
27
+ for (let i = 0; i < value.length; i++) {
28
+ out += escapeIdentChar(value, i);
29
+ }
30
+ return out;
31
+ }
1
32
  export function attachedRoot(node) {
2
33
  if (typeof node.getRootNode !== "function") {
3
34
  while (node.parentNode) node = node.parentNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "origam",
3
- "version": "2.12.1",
3
+ "version": "2.14.0",
4
4
  "type": "module",
5
5
  "description": "origam — a Vue 3 design system with multi-theme design tokens, CSS-first components and TypeScript types.",
6
6
  "keywords": [
@@ -23,13 +23,17 @@
23
23
  ],
24
24
  "license": "MIT",
25
25
  "author": "Prioul Arnaud",
26
- "homepage": "https://github.com/arnaudprioul/origam#readme",
26
+ "homepage": "https://github.com/Elyseranet/origam#readme",
27
+ "funding": {
28
+ "type": "custom",
29
+ "url": "https://www.paypal.com/donate/?hosted_button_id=EQFUQ2JV95YGQ"
30
+ },
27
31
  "repository": {
28
32
  "type": "git",
29
- "url": "git+https://github.com/arnaudprioul/origam.git"
33
+ "url": "git+https://github.com/Elyseranet/origam.git"
30
34
  },
31
35
  "bugs": {
32
- "url": "https://github.com/arnaudprioul/origam/issues"
36
+ "url": "https://github.com/Elyseranet/origam/issues"
33
37
  },
34
38
  "engines": {
35
39
  "node": ">=22"
@@ -102,7 +106,8 @@
102
106
  "styles:build": "sass src/assets/scss/main.scss src/assets/css/main.css --no-source-map --style=compressed",
103
107
  "tokens:watch": "node scripts/build-tokens.mjs --watch",
104
108
  "tokens:lint": "node scripts/build-tokens.mjs --dry-run --strict",
105
- "prepublishOnly": "pnpm run build"
109
+ "prepublishOnly": "pnpm run build",
110
+ "prepack": "node -e \"require('fs').copyFileSync('../../CHANGELOG.md','CHANGELOG.md')\""
106
111
  },
107
112
  "dependencies": {
108
113
  "@mdi/font": "^7.4.47",
@@ -126,7 +131,8 @@
126
131
  }
127
132
  },
128
133
  "devDependencies": {
129
- "@nuxt/kit": "^4.4.5",
134
+ "@nuxt/kit": "^4.5.1",
135
+ "@nuxt/schema": "^4.5.1",
130
136
  "@tokens-studio/sd-transforms": "^2.0.3",
131
137
  "@types/node": "^26.1.0",
132
138
  "@vitejs/plugin-vue": "^6.0.7",