@retailcrm/embed-ui-v1-components 0.9.11-alpha.6 → 0.9.11-alpha.7

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/dist/host.cjs CHANGED
@@ -6560,10 +6560,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
6560
6560
  const props = __props;
6561
6561
  const emit = __emit;
6562
6562
  const uid2 = vue.useId();
6563
- const boxId = vue.computed(() => props.id ?? uid2);
6564
- const inputId = vue.computed(() => `${boxId.value}-input`);
6565
- const popperId = vue.computed(() => `${boxId.value}-popper`);
6566
- const popperContentId = vue.computed(() => `${boxId.value}-content`);
6563
+ const inputId = vue.computed(() => props.id ?? uid2);
6567
6564
  const i18n = vue.computed(() => _i18n$4.init(vue.inject(I18nInjectKey, null)?.locale ?? _i18n$4.fallback));
6568
6565
  const trigger = vue.ref(null);
6569
6566
  const popperContent = vue.ref(null);
@@ -6797,10 +6794,10 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
6797
6794
  });
6798
6795
  return (_ctx, _cache) => {
6799
6796
  return vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
6800
- id: boxId.value,
6797
+ id: `${inputId.value}-root`,
6801
6798
  ref_key: "trigger",
6802
6799
  ref: trigger,
6803
- "aria-controls": popperId.value,
6800
+ "aria-controls": `${inputId.value}-popper`,
6804
6801
  "aria-disabled": __props.disabled ? "true" : "false",
6805
6802
  "aria-expanded": showCalendar.value ? "true" : "false",
6806
6803
  "aria-haspopup": "dialog",
@@ -6849,7 +6846,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
6849
6846
  } : void 0
6850
6847
  ]), 1040, ["id", "clearable", "value", "placeholder", "active", "disabled", "readonly"])),
6851
6848
  vue.createVNode(_sfc_main$u, vue.mergeProps({
6852
- id: popperId.value,
6849
+ id: `${inputId.value}-popper`,
6853
6850
  visible: showCalendar.value,
6854
6851
  target: triggerTarget.value,
6855
6852
  "global-triggers": [],
@@ -6864,7 +6861,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
6864
6861
  }), {
6865
6862
  default: vue.withCtx(() => [
6866
6863
  vue.createElementVNode("div", {
6867
- id: popperContentId.value,
6864
+ id: `${inputId.value}-popper-content`,
6868
6865
  ref_key: "popperContent",
6869
6866
  ref: popperContent,
6870
6867
  class: "ui-v1-date-picker__popper-content",
@@ -7830,7 +7827,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
7830
7827
  "aria-hidden": visibility.value !== "shown" ? "true" : "false",
7831
7828
  class: [_ctx.$attrs.class, {
7832
7829
  ["ui-v1-modal"]: true,
7833
- ["ui-v1-modal_overlapped"]: state.overlapped,
7830
+ ["ui-v1-modal_overlapped"]: state.overlapped || __props.fixed,
7834
7831
  ["ui-v1-modal-sidebar-overlay"]: true,
7835
7832
  ["ui-v1-modal-sidebar-overlay_fixed"]: __props.fixed,
7836
7833
  [`ui-v1-modal-sidebar-overlay_${__props.direction}`]: __props.fixed
@@ -7851,6 +7848,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
7851
7848
  id: __props.id + "-sidebar",
7852
7849
  class: vue.normalizeClass({
7853
7850
  "ui-v1-modal-sidebar": true,
7851
+ "ui-v1-modal-sidebar_fixed": __props.fixed,
7854
7852
  "ui-v1-modal-sidebar_left": __props.direction === vue.unref(DIRECTION$1).LEFT,
7855
7853
  "ui-v1-modal-sidebar_size_sm": __props.size === vue.unref(SIZE$2).SM,
7856
7854
  "ui-v1-modal-sidebar_size_lg": __props.size === vue.unref(SIZE$2).LG
@@ -10366,9 +10364,8 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
10366
10364
  const props = __props;
10367
10365
  const emit = __emit;
10368
10366
  const uid2 = vue.useId();
10369
- const boxId = vue.computed(() => props.id ?? uid2);
10370
- const inputId = vue.computed(() => `${boxId.value}-input`);
10371
- const listboxId = vue.computed(() => `${boxId.value}-listbox`);
10367
+ const inputId = vue.computed(() => props.id ?? uid2);
10368
+ const listboxId = vue.computed(() => `${inputId.value}-listbox`);
10372
10369
  const i18n = vue.computed(() => _i18n.init(vue.inject(I18nInjectKey, null)?.locale ?? _i18n.fallback));
10373
10370
  const root = vue.ref(null);
10374
10371
  const rootTarget = vue.computed(() => root);
@@ -10622,11 +10619,11 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
10622
10619
  });
10623
10620
  return (_ctx, _cache) => {
10624
10621
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
10625
- id: boxId.value,
10622
+ id: `${inputId.value}-root`,
10626
10623
  ref_key: "root",
10627
10624
  ref: root,
10628
10625
  "aria-activedescendant": expanded.value && activeOptionId.value ? activeOptionId.value : void 0,
10629
- "aria-controls": listboxId.value,
10626
+ "aria-controls": `${inputId.value}-listbox`,
10630
10627
  "aria-disabled": __props.disabled ? "true" : "false",
10631
10628
  "aria-expanded": expanded.value ? "true" : "false",
10632
10629
  "aria-haspopup": "listbox",
@@ -10667,7 +10664,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
10667
10664
  _: 3
10668
10665
  }, 16, ["id", "value", "placeholder", "clearable", "disabled", "readonly"]),
10669
10666
  vue.createVNode(_sfc_main$u, {
10670
- id: listboxId.value,
10667
+ id: `${inputId.value}-listbox`,
10671
10668
  visible: expanded.value,
10672
10669
  target: rootTarget.value,
10673
10670
  "global-triggers": [],
package/dist/host.css CHANGED
@@ -2860,10 +2860,12 @@
2860
2860
  background: none;
2861
2861
  }
2862
2862
  .ui-v1-modal-sidebar-overlay_left {
2863
+ left: 0;
2863
2864
  right: auto;
2864
2865
  }
2865
2866
  .ui-v1-modal-sidebar-overlay_right {
2866
2867
  left: auto;
2868
+ right: 0;
2867
2869
  }
2868
2870
  .ui-v1-modal-sidebar {
2869
2871
  display: flex;
@@ -2878,6 +2880,9 @@
2878
2880
  right: 0;
2879
2881
  bottom: 0;
2880
2882
  }
2883
+ .ui-v1-modal-sidebar_fixed {
2884
+ position: fixed;
2885
+ }
2881
2886
  .ui-v1-modal-sidebar_left {
2882
2887
  left: 0;
2883
2888
  right: auto;
package/dist/host.js CHANGED
@@ -6558,10 +6558,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6558
6558
  const props = __props;
6559
6559
  const emit = __emit;
6560
6560
  const uid2 = useId();
6561
- const boxId = computed(() => props.id ?? uid2);
6562
- const inputId = computed(() => `${boxId.value}-input`);
6563
- const popperId = computed(() => `${boxId.value}-popper`);
6564
- const popperContentId = computed(() => `${boxId.value}-content`);
6561
+ const inputId = computed(() => props.id ?? uid2);
6565
6562
  const i18n = computed(() => _i18n$4.init(inject(I18nInjectKey, null)?.locale ?? _i18n$4.fallback));
6566
6563
  const trigger = ref(null);
6567
6564
  const popperContent = ref(null);
@@ -6795,10 +6792,10 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6795
6792
  });
6796
6793
  return (_ctx, _cache) => {
6797
6794
  return openBlock(), createElementBlock("span", mergeProps({
6798
- id: boxId.value,
6795
+ id: `${inputId.value}-root`,
6799
6796
  ref_key: "trigger",
6800
6797
  ref: trigger,
6801
- "aria-controls": popperId.value,
6798
+ "aria-controls": `${inputId.value}-popper`,
6802
6799
  "aria-disabled": __props.disabled ? "true" : "false",
6803
6800
  "aria-expanded": showCalendar.value ? "true" : "false",
6804
6801
  "aria-haspopup": "dialog",
@@ -6847,7 +6844,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6847
6844
  } : void 0
6848
6845
  ]), 1040, ["id", "clearable", "value", "placeholder", "active", "disabled", "readonly"])),
6849
6846
  createVNode(_sfc_main$u, mergeProps({
6850
- id: popperId.value,
6847
+ id: `${inputId.value}-popper`,
6851
6848
  visible: showCalendar.value,
6852
6849
  target: triggerTarget.value,
6853
6850
  "global-triggers": [],
@@ -6862,7 +6859,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6862
6859
  }), {
6863
6860
  default: withCtx(() => [
6864
6861
  createElementVNode("div", {
6865
- id: popperContentId.value,
6862
+ id: `${inputId.value}-popper-content`,
6866
6863
  ref_key: "popperContent",
6867
6864
  ref: popperContent,
6868
6865
  class: "ui-v1-date-picker__popper-content",
@@ -7828,7 +7825,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
7828
7825
  "aria-hidden": visibility.value !== "shown" ? "true" : "false",
7829
7826
  class: [_ctx.$attrs.class, {
7830
7827
  ["ui-v1-modal"]: true,
7831
- ["ui-v1-modal_overlapped"]: state.overlapped,
7828
+ ["ui-v1-modal_overlapped"]: state.overlapped || __props.fixed,
7832
7829
  ["ui-v1-modal-sidebar-overlay"]: true,
7833
7830
  ["ui-v1-modal-sidebar-overlay_fixed"]: __props.fixed,
7834
7831
  [`ui-v1-modal-sidebar-overlay_${__props.direction}`]: __props.fixed
@@ -7849,6 +7846,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
7849
7846
  id: __props.id + "-sidebar",
7850
7847
  class: normalizeClass({
7851
7848
  "ui-v1-modal-sidebar": true,
7849
+ "ui-v1-modal-sidebar_fixed": __props.fixed,
7852
7850
  "ui-v1-modal-sidebar_left": __props.direction === unref(DIRECTION$1).LEFT,
7853
7851
  "ui-v1-modal-sidebar_size_sm": __props.size === unref(SIZE$2).SM,
7854
7852
  "ui-v1-modal-sidebar_size_lg": __props.size === unref(SIZE$2).LG
@@ -10364,9 +10362,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
10364
10362
  const props = __props;
10365
10363
  const emit = __emit;
10366
10364
  const uid2 = useId();
10367
- const boxId = computed(() => props.id ?? uid2);
10368
- const inputId = computed(() => `${boxId.value}-input`);
10369
- const listboxId = computed(() => `${boxId.value}-listbox`);
10365
+ const inputId = computed(() => props.id ?? uid2);
10366
+ const listboxId = computed(() => `${inputId.value}-listbox`);
10370
10367
  const i18n = computed(() => _i18n.init(inject(I18nInjectKey, null)?.locale ?? _i18n.fallback));
10371
10368
  const root = ref(null);
10372
10369
  const rootTarget = computed(() => root);
@@ -10620,11 +10617,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
10620
10617
  });
10621
10618
  return (_ctx, _cache) => {
10622
10619
  return openBlock(), createElementBlock("div", mergeProps({
10623
- id: boxId.value,
10620
+ id: `${inputId.value}-root`,
10624
10621
  ref_key: "root",
10625
10622
  ref: root,
10626
10623
  "aria-activedescendant": expanded.value && activeOptionId.value ? activeOptionId.value : void 0,
10627
- "aria-controls": listboxId.value,
10624
+ "aria-controls": `${inputId.value}-listbox`,
10628
10625
  "aria-disabled": __props.disabled ? "true" : "false",
10629
10626
  "aria-expanded": expanded.value ? "true" : "false",
10630
10627
  "aria-haspopup": "listbox",
@@ -10665,7 +10662,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
10665
10662
  _: 3
10666
10663
  }, 16, ["id", "value", "placeholder", "clearable", "disabled", "readonly"]),
10667
10664
  createVNode(_sfc_main$u, {
10668
- id: listboxId.value,
10665
+ id: `${inputId.value}-listbox`,
10669
10666
  visible: expanded.value,
10670
10667
  target: rootTarget.value,
10671
10668
  "global-triggers": [],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@retailcrm/embed-ui-v1-components",
3
3
  "type": "module",
4
- "version": "0.9.11-alpha.6",
4
+ "version": "0.9.11-alpha.7",
5
5
  "license": "MIT",
6
6
  "author": "RetailDriverLLC <integration@retailcrm.ru>",
7
7
  "repository": "git@github.com:retailcrm/embed-ui.git",