sit-onyx 1.2.0-dev-20251015054546 → 1.2.0-dev-20251016073921

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.
@@ -198,10 +198,6 @@
198
198
  "headline": "Sprache ändern",
199
199
  "subtitle": "Wähle die Sprache der Anwendung:"
200
200
  },
201
- "notificationCard": {
202
- "moreActions": "Weitere Aktionen",
203
- "toggleActions": "Aktionen umschalten"
204
- },
205
201
  "resizeHandle": {
206
202
  "label": "Ziehen, um die Breite zu ändern"
207
203
  },
@@ -231,5 +227,12 @@
231
227
  "calenderWeek": "KW",
232
228
  "previousMonthButton": "Vorheriger Monat",
233
229
  "nextMonthButton": "Nächster Monat"
230
+ },
231
+ "flyoutMenu": {
232
+ "moreActions": "Weitere Aktionen",
233
+ "toggleActions": {
234
+ "click": "Klicken, um die Sichtbarkeit der Aktionen umzuschalten",
235
+ "hover": "Mit der Maus darüberfahren/fokussieren, um die Sichtbarkeit der Aktionen umzuschalten"
236
+ }
234
237
  }
235
238
  }
@@ -198,10 +198,6 @@
198
198
  "headline": "Change language",
199
199
  "subtitle": "Select the language of the application:"
200
200
  },
201
- "notificationCard": {
202
- "moreActions": "More actions",
203
- "toggleActions": "Toggle actions"
204
- },
205
201
  "resizeHandle": {
206
202
  "label": "Drag to change width"
207
203
  },
@@ -234,5 +230,12 @@
234
230
  "calenderWeek": "CW",
235
231
  "previousMonthButton": "Previous month",
236
232
  "nextMonthButton": "Next month"
233
+ },
234
+ "flyoutMenu": {
235
+ "moreActions": "More actions",
236
+ "toggleActions": {
237
+ "click": "Click to toggle action visibility",
238
+ "hover": "Hover/Focus to toggle action visibility"
239
+ }
237
240
  }
238
241
  }
@@ -198,10 +198,6 @@ declare const _default: {
198
198
  "headline": "Change language",
199
199
  "subtitle": "Select the language of the application:"
200
200
  },
201
- "notificationCard": {
202
- "moreActions": "More actions",
203
- "toggleActions": "Toggle actions"
204
- },
205
201
  "resizeHandle": {
206
202
  "label": "Drag to change width"
207
203
  },
@@ -234,6 +230,13 @@ declare const _default: {
234
230
  "calenderWeek": "CW",
235
231
  "previousMonthButton": "Previous month",
236
232
  "nextMonthButton": "Next month"
233
+ },
234
+ "flyoutMenu": {
235
+ "moreActions": "More actions",
236
+ "toggleActions": {
237
+ "click": "Click to toggle action visibility",
238
+ "hover": "Hover/Focus to toggle action visibility"
239
+ }
237
240
  }
238
241
  }
239
242
  ;
@@ -1,5 +1,5 @@
1
1
  import { computed, provide, inject, toRef, ref, watch, defineComponent, watchEffect, toRefs, createElementBlock, openBlock, normalizeClass, renderSlot, onMounted, createBlock, resolveDynamicComponent, withCtx, createVNode, createElementVNode, withModifiers, readonly, reactive, onBeforeMount, onBeforeUnmount, useId, toValue, nextTick, unref, shallowRef, useTemplateRef, createCommentVNode, createTextVNode, toDisplayString, normalizeProps, mergeProps, Fragment, useAttrs, isProxy, toRaw, customRef, onUnmounted, normalizeStyle, useSlots, createSlots, renderList, toHandlers, resolveComponent, withDirectives, guardReactiveProps, vShow, Teleport, vModelCheckbox, vModelText, h, vModelDynamic, withKeys, createStaticVNode, useModel } from "vue";
2
- import { iconChevronDownSmall, iconCircleAttention, iconXSmall, iconX, iconMoreHorizontalSmall, iconMoreVertical, iconCircleCheck, iconCircleX, iconCircleInformation, iconUser, iconArrowSmallUpRight, iconChevronRightSmall, iconArrowSmallLeft, iconMoreHorizontal, iconHome, iconChevronLeftSmall, iconSearch, iconCheck, iconSearchX, iconChevronDownUp, iconCheckSmall, iconPlusSmall, iconEyeDisabled, iconListArrowUp, iconListArrowDown, iconArrowsSort, iconCircleBlock, iconFileDisabled, iconEyeClosed, iconEye, iconCircleContrast, iconTranslate, iconMenu, iconNotificationFlag, iconPlus, iconMinus, iconFile, iconFilePdf, iconFileCsv, iconAudio, iconVideocam, iconPicture, iconFileRtf, iconFilePpt, iconFileXls, iconFileXlsx, iconFileDoc, iconFileGlobe, iconFileArchive, iconFileText, iconTrash, iconCloudArrowUp, iconShareIos, iconSettings, iconLogout, iconArrowSmallRight } from "@sit-onyx/icons";
2
+ import { iconChevronDownSmall, iconCircleAttention, iconXSmall, iconMoreVertical, iconX, iconMoreHorizontalSmall, iconCircleCheck, iconCircleX, iconCircleInformation, iconUser, iconArrowSmallUpRight, iconChevronRightSmall, iconArrowSmallLeft, iconMoreHorizontal, iconHome, iconChevronLeftSmall, iconSearch, iconCheck, iconSearchX, iconChevronDownUp, iconCheckSmall, iconPlusSmall, iconEyeDisabled, iconListArrowUp, iconListArrowDown, iconArrowsSort, iconCircleBlock, iconFileDisabled, iconEyeClosed, iconEye, iconCircleContrast, iconTranslate, iconMenu, iconNotificationFlag, iconPlus, iconMinus, iconFile, iconFilePdf, iconFileCsv, iconAudio, iconVideocam, iconPicture, iconFileRtf, iconFilePpt, iconFileXls, iconFileXlsx, iconFileDoc, iconFileGlobe, iconFileArchive, iconFileText, iconTrash, iconCloudArrowUp, iconShareIos, iconSettings, iconLogout, iconArrowSmallRight } from "@sit-onyx/icons";
3
3
  const DENSITIES = ["compact", "default", "cozy"];
4
4
  const useDensity = (props) => ({
5
5
  densityClass: computed(() => ({ [`onyx-density-${props.density}`]: !!props.density }))
@@ -351,11 +351,11 @@ const headline = { "copyLink": "Copy link to this headline", "copyLinkTo": "Copy
351
351
  const avatar = { "ariaLabel": "Avatar of {fullName}" };
352
352
  const filterTag = { "clickToAdd": "Add {label} filter", "clickToRemove": "Remove {label} filter" };
353
353
  const languageSelect = { "label": "Language", "headline": "Change language", "subtitle": "Select the language of the application:" };
354
- const notificationCard = { "moreActions": "More actions", "toggleActions": "Toggle actions" };
355
354
  const resizeHandle = { "label": "Drag to change width" };
356
355
  const fileUpload = { "select": "Select", "clickToUpload": "Click to select", "orDragAndDrop": "or drag and drop file", "maxFileSize": "Maximum file size", "inTotal": "in total", "maxFileCount": "Maximum {n} files to select in total", "allowedFileTypes": "Allowed file types: {types}", "hideFilesButton": "Hide all files", "revealFilesButton": "Show all files", "removeFile": "Remove file", "status": { "fileTypeError": "File with extension '.{extension}' is invalid", "fileSizeError": "File exceeds maximum allowed size of {size}", "maxFileSizeError": "Total size of all files exceeds maximum allowed of {size}", "maxCountError": "Number of files exceeds maximum allowed of {count}" } };
357
356
  const globalFAB = { "label": "Global actions" };
358
357
  const calendar = { "todayButton": { "label": "Today", "tooltip": "Jump to today" }, "calenderWeek": "CW", "previousMonthButton": "Previous month", "nextMonthButton": "Next month" };
358
+ const flyoutMenu = { "moreActions": "More actions", "toggleActions": { "click": "Click to toggle action visibility", "hover": "Hover/Focus to toggle action visibility" } };
359
359
  const enUS = {
360
360
  yes,
361
361
  no,
@@ -384,11 +384,11 @@ const enUS = {
384
384
  avatar,
385
385
  filterTag,
386
386
  languageSelect,
387
- notificationCard,
388
387
  resizeHandle,
389
388
  fileUpload,
390
389
  globalFAB,
391
- calendar
390
+ calendar,
391
+ flyoutMenu
392
392
  };
393
393
  const NUMBER_FORMATS = {
394
394
  decimal: { style: "decimal" }
@@ -2723,6 +2723,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
2723
2723
  const slots = useSlots();
2724
2724
  const popover = ref();
2725
2725
  const actualPosition = computed(() => popover.value?.popoverPosition);
2726
+ const { t } = injectI18n();
2726
2727
  const {
2727
2728
  elements: { root, button, menu }
2728
2729
  } = createMenuButton({
@@ -2732,9 +2733,11 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
2732
2733
  disabled: computed(() => props.disabled),
2733
2734
  position: computed(() => actualPosition.value?.includes("top") ? "top" : "bottom")
2734
2735
  });
2735
- const __returned__ = { props, emit, isExpanded, slots, popover, actualPosition, root, button, menu, get mergeVueProps() {
2736
+ const __returned__ = { props, emit, isExpanded, slots, popover, actualPosition, t, root, button, menu, get iconMoreVertical() {
2737
+ return iconMoreVertical;
2738
+ }, get mergeVueProps() {
2736
2739
  return mergeVueProps;
2737
- }, OnyxBasicPopover };
2740
+ }, OnyxBasicPopover, OnyxSystemButton };
2738
2741
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
2739
2742
  return __returned__;
2740
2743
  }
@@ -2772,7 +2775,12 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
2772
2775
  $setup.slots.options || $setup.slots.header || $setup.slots.footer ? {
2773
2776
  name: "default",
2774
2777
  fn: withCtx(() => [
2775
- renderSlot(_ctx.$slots, "button", { trigger: $setup.button })
2778
+ renderSlot(_ctx.$slots, "button", { trigger: $setup.button }, () => [
2779
+ createVNode($setup["OnyxSystemButton"], mergeProps($setup.button, {
2780
+ icon: $setup.iconMoreVertical,
2781
+ label: $setup.t(`flyoutMenu.toggleActions.${$setup.props.trigger}`)
2782
+ }), null, 16, ["icon", "label"])
2783
+ ])
2776
2784
  ]),
2777
2785
  key: "0"
2778
2786
  } : void 0
@@ -3270,13 +3278,13 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
3270
3278
  $setup.slots.headerActions ? (openBlock(), createBlock($setup["OnyxFlyoutMenu"], {
3271
3279
  key: 1,
3272
3280
  class: "onyx-info-card__action",
3273
- label: $setup.t("notificationCard.moreActions"),
3281
+ label: $setup.t("flyoutMenu.moreActions"),
3274
3282
  trigger: "click",
3275
3283
  alignment: "right"
3276
3284
  }, {
3277
3285
  button: withCtx(({ trigger }) => [
3278
3286
  createVNode($setup["OnyxSystemButton"], mergeProps(trigger, {
3279
- label: $setup.t("notificationCard.toggleActions"),
3287
+ label: $setup.t("flyoutMenu.toggleActions.click"),
3280
3288
  icon: $setup.iconMoreVertical,
3281
3289
  color: $setup.systemButtonColor
3282
3290
  }), null, 16, ["label", "icon", "color"])
@@ -6564,7 +6572,7 @@ const useDataGridFeatures = (featureDefinitions, {
6564
6572
  const header = renderer.value.getFor("header", column.type.name);
6565
6573
  const menuItems = actions.map(({ menuItems: menuItems2 }) => menuItems2).filter((item) => !!item);
6566
6574
  const iconComponent = actions.map(({ iconComponent: iconComponent2 }) => iconComponent2);
6567
- const flyoutMenu = h(
6575
+ const flyoutMenu2 = h(
6568
6576
  OnyxFlyoutMenu,
6569
6577
  {
6570
6578
  label: i18n.t.value("navigation.moreActionsFlyout", { column: column.label }),
@@ -6598,7 +6606,7 @@ const useDataGridFeatures = (featureDefinitions, {
6598
6606
  const shouldShowFlyout = filteredActions.length > 1 || actions.some((action) => action.showFlyoutMenu);
6599
6607
  return [
6600
6608
  ...shouldShowFlyout ? headerIcons : [],
6601
- shouldShowFlyout ? flyoutMenu : nonHeaderIcon
6609
+ shouldShowFlyout ? flyoutMenu2 : nonHeaderIcon
6602
6610
  ].filter(Boolean);
6603
6611
  }
6604
6612
  };
@@ -8410,7 +8418,7 @@ const useHideColumns = (options) => createFeature((ctx) => {
8410
8418
  const hiddenColumns = computed(
8411
8419
  () => columnConfig.value.filter((c) => hiddenColumnKeys.value.has(c.key))
8412
8420
  );
8413
- const flyoutMenu = () => h(
8421
+ const flyoutMenu2 = () => h(
8414
8422
  OnyxFlyoutMenu,
8415
8423
  {
8416
8424
  label: i18n.t.value("dataGrid.head.hideColumns.revealFlyout"),
@@ -8484,7 +8492,7 @@ const useHideColumns = (options) => createFeature((ctx) => {
8484
8492
  [HIDDEN_COLUMN]: {
8485
8493
  header: {
8486
8494
  thAttributes: { class: "onyx-data-grid-hide-columns-cell" },
8487
- component: flyoutMenu
8495
+ component: flyoutMenu2
8488
8496
  },
8489
8497
  cell: {
8490
8498
  tdAttributes: { class: "onyx-data-grid-hide-columns-cell" },
@@ -11180,9 +11188,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
11180
11188
  time: toRef(props, "createdAt"),
11181
11189
  options: { numeric: "auto" }
11182
11190
  });
11183
- const __returned__ = { props, slots, densityClass, skeleton, d, t, timeAgo, get iconMoreVertical() {
11184
- return iconMoreVertical;
11185
- }, OnyxBadge, OnyxHeadline, OnyxIcon, OnyxFlyoutMenu, OnyxSkeleton, OnyxSystemButton };
11191
+ const __returned__ = { props, slots, densityClass, skeleton, d, t, timeAgo, OnyxBadge, OnyxHeadline, OnyxIcon, OnyxFlyoutMenu, OnyxSkeleton };
11186
11192
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
11187
11193
  return __returned__;
11188
11194
  }
@@ -11254,16 +11260,10 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
11254
11260
  !!$setup.slots.headerActions ? (openBlock(), createBlock($setup["OnyxFlyoutMenu"], {
11255
11261
  key: 1,
11256
11262
  class: "onyx-notification-card__more-actions",
11257
- label: $setup.t("notificationCard.moreActions"),
11263
+ label: $setup.t("flyoutMenu.moreActions"),
11258
11264
  trigger: "click",
11259
11265
  alignment: "right"
11260
11266
  }, {
11261
- button: withCtx(({ trigger }) => [
11262
- createVNode($setup["OnyxSystemButton"], mergeProps(trigger, {
11263
- label: $setup.t("notificationCard.toggleActions"),
11264
- icon: $setup.iconMoreVertical
11265
- }), null, 16, ["label", "icon"])
11266
- ]),
11267
11267
  options: withCtx(() => [
11268
11268
  renderSlot(_ctx.$slots, "headerActions")
11269
11269
  ]),