bge-ui 1.4.1 → 1.4.2

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/index.js CHANGED
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { defineComponent, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, renderSlot, normalizeStyle, createStaticVNode, provide, reactive, toRefs, ref, watch, unref, getCurrentScope, onScopeDispose, readonly, computed, getCurrentInstance, onMounted as onMounted$1, useSlots, inject, createTextVNode, toDisplayString, createCommentVNode, TransitionGroup, withCtx, withDirectives, vModelDynamic, vModelText, createBlock, withModifiers, cloneVNode, Fragment, Text, Comment, Teleport, onUnmounted, h, Transition, vShow, onBeforeMount, nextTick, resolveDynamicComponent, shallowReactive, render as render$7, isVNode, vModelCheckbox, renderList, toRef, useAttrs, normalizeProps, mergeProps, onBeforeUpdate, withKeys, createSlots, guardReactiveProps, isRef } from "vue";
7
+ import { defineComponent, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, renderSlot, normalizeStyle, createStaticVNode, provide, reactive, toRefs, ref, watch, unref, getCurrentScope, onScopeDispose, readonly, computed, getCurrentInstance, onMounted, useSlots, inject, createTextVNode, toDisplayString, createCommentVNode, TransitionGroup, withCtx, withDirectives, vModelDynamic, vModelText, createBlock, withModifiers, cloneVNode, Fragment, Text, Comment, Teleport, onUnmounted, h, Transition, vShow, onBeforeMount, nextTick, resolveDynamicComponent, shallowReactive, render as render$7, isVNode, vModelCheckbox, renderList, toRef, useAttrs, normalizeProps, mergeProps, onBeforeUpdate, withKeys, createSlots, guardReactiveProps, isRef } from "vue";
8
8
  const _hoisted_1$26 = ["disabled"];
9
9
  const _hoisted_2$1M = { class: "loading-icon" };
10
10
  const _sfc_main$2g = /* @__PURE__ */ defineComponent({
@@ -4882,7 +4882,7 @@ function onClickOutside$1(target, handler, options = {}) {
4882
4882
  function useMounted() {
4883
4883
  const isMounted = ref(false);
4884
4884
  if (getCurrentInstance()) {
4885
- onMounted$1(() => {
4885
+ onMounted(() => {
4886
4886
  isMounted.value = true;
4887
4887
  });
4888
4888
  }
@@ -6122,7 +6122,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
6122
6122
  const shouldShowError = computed(
6123
6123
  () => validateStateDebounced.value === "error"
6124
6124
  );
6125
- onMounted$1(() => {
6125
+ onMounted(() => {
6126
6126
  formContext == null ? void 0 : formContext.addField(context);
6127
6127
  });
6128
6128
  return (_ctx, _cache) => {
@@ -6242,7 +6242,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
6242
6242
  emit("change", input.value);
6243
6243
  emit("update:modelValue", input.value);
6244
6244
  }
6245
- onMounted$1(() => {
6245
+ onMounted(() => {
6246
6246
  if (props.modelValue) {
6247
6247
  input.value = props.modelValue;
6248
6248
  }
@@ -6377,7 +6377,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
6377
6377
  };
6378
6378
  const barStyle = ref();
6379
6379
  const update = () => barStyle.value = getBarStyle();
6380
- onMounted$1(() => {
6380
+ onMounted(() => {
6381
6381
  update();
6382
6382
  });
6383
6383
  return (_ctx, _cache) => {
@@ -6418,7 +6418,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
6418
6418
  function setActive(active) {
6419
6419
  isActive.value = active;
6420
6420
  }
6421
- onMounted$1(() => {
6421
+ onMounted(() => {
6422
6422
  tabContext.addPane(reactive({
6423
6423
  ref: tabPaneRef.value,
6424
6424
  value: props.value,
@@ -8492,7 +8492,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
8492
8492
  toggleTooltip.value = result.toggleTooltip;
8493
8493
  tooltipElement.value = result.tooltipElement;
8494
8494
  }
8495
- onMounted$1(() => {
8495
+ onMounted(() => {
8496
8496
  initTooltip();
8497
8497
  });
8498
8498
  __expose({
@@ -8651,7 +8651,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
8651
8651
  zIndex: 3e3
8652
8652
  };
8653
8653
  });
8654
- onMounted$1(() => {
8654
+ onMounted(() => {
8655
8655
  visible.value = true;
8656
8656
  startTimer();
8657
8657
  });
@@ -9080,7 +9080,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
9080
9080
  return props.falseValue;
9081
9081
  }
9082
9082
  }
9083
- onMounted$1(() => {
9083
+ onMounted(() => {
9084
9084
  if (props.modelValue === props.trueValue) {
9085
9085
  input.value = true;
9086
9086
  } else {
@@ -10897,7 +10897,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
10897
10897
  const defaultSlot = useSlots().default;
10898
10898
  const props = __props;
10899
10899
  const context = inject("bge-select-context", void 0);
10900
- onMounted$1(() => {
10900
+ onMounted(() => {
10901
10901
  context.addOption({
10902
10902
  ...props
10903
10903
  });
@@ -17478,7 +17478,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
17478
17478
  const previewStyle = ref({});
17479
17479
  const actionBtnContainer = ref(null);
17480
17480
  const actionRowRef = ref(null);
17481
- onMounted$1(() => {
17481
+ onMounted(() => {
17482
17482
  if (props.arrowNavigation) {
17483
17483
  buildMatrix([unrefElement(cancelButtonRef), unrefElement(selectButtonRef)], "actionRow");
17484
17484
  }
@@ -17678,7 +17678,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
17678
17678
  onBeforeUpdate(() => {
17679
17679
  selectionActiveRef.value = null;
17680
17680
  });
17681
- onMounted$1(() => {
17681
+ onMounted(() => {
17682
17682
  nextTick().then(() => setContainerHeightAndScroll());
17683
17683
  if (!props.noOverlayFocus) {
17684
17684
  focusGrid();
@@ -17976,7 +17976,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
17976
17976
  setup(__props, { emit: __emit }) {
17977
17977
  const emit = __emit;
17978
17978
  const elRef = ref(null);
17979
- onMounted$1(() => emit("set-ref", elRef));
17979
+ onMounted(() => emit("set-ref", elRef));
17980
17980
  return (_ctx, _cache) => {
17981
17981
  return openBlock(), createElementBlock("button", {
17982
17982
  ref_key: "elRef",
@@ -18271,7 +18271,7 @@ const useMonthOrQuarterPicker = ({
18271
18271
  }
18272
18272
  }
18273
18273
  });
18274
- onMounted$1(() => {
18274
+ onMounted(() => {
18275
18275
  assign();
18276
18276
  });
18277
18277
  const selectYear = (year2, instance) => {
@@ -18372,7 +18372,7 @@ const useMonthPicker = (props, emit) => {
18372
18372
  props,
18373
18373
  emit
18374
18374
  });
18375
- onMounted$1(() => {
18375
+ onMounted(() => {
18376
18376
  if (props.startDate) {
18377
18377
  if (modelValue.value && props.focusStartDate || !modelValue.value) {
18378
18378
  onYearSelect(getYear(getDate(props.startDate)), 0);
@@ -18545,7 +18545,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
18545
18545
  const slots2 = useSlots();
18546
18546
  const yearModeSlots = mapSlots(slots2, "yearMode");
18547
18547
  const props = __props;
18548
- onMounted$1(() => {
18548
+ onMounted(() => {
18549
18549
  if (!props.shadow) {
18550
18550
  emit("mount", null);
18551
18551
  }
@@ -18660,7 +18660,7 @@ const useYearPicker = (props, emit) => {
18660
18660
  const hoverDate = ref(null);
18661
18661
  const { defaultedHighlight, defaultedMultiDates, defaultedFilters, defaultedRange, propDates } = useDefaults(props);
18662
18662
  const focusYear = ref();
18663
- onMounted$1(() => {
18663
+ onMounted(() => {
18664
18664
  if (props.startDate) {
18665
18665
  if (modelValue.value && props.focusStartDate || !modelValue.value) {
18666
18666
  focusYear.value = getYear(getDate(props.startDate));
@@ -18860,7 +18860,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
18860
18860
  const elementRefs = ref([]);
18861
18861
  const holdTimeout = ref();
18862
18862
  const timeOverlayOpen = ref(false);
18863
- onMounted$1(() => {
18863
+ onMounted(() => {
18864
18864
  emit("mounted");
18865
18865
  });
18866
18866
  const setTime = (time) => {
@@ -19300,7 +19300,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
19300
19300
  const timeInputRefs = ref([]);
19301
19301
  const overlayRef = ref(null);
19302
19302
  const timePickerOverlayOpen = ref(false);
19303
- onMounted$1(() => {
19303
+ onMounted(() => {
19304
19304
  emit("mount");
19305
19305
  if (!props.timePicker && props.arrowNavigation) {
19306
19306
  buildMatrix([unrefElement(openTimePickerBtn.value)], "time");
@@ -19704,7 +19704,7 @@ const useTimePicker = (props, emit) => {
19704
19704
  }
19705
19705
  return assignTime(first.hours, first.minutes, first.seconds);
19706
19706
  };
19707
- onMounted$1(() => {
19707
+ onMounted(() => {
19708
19708
  if (!props.shadow) {
19709
19709
  assignStartTime(defaultedStartTime.value);
19710
19710
  if (!modelValue.value)
@@ -19761,7 +19761,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
19761
19761
  const timePickerSlots = mapSlots(slots2, "timePicker");
19762
19762
  const tpRef = ref(null);
19763
19763
  const { time, modelValue, disabledTimesConfig, updateTime, validateTime: validateTime2 } = useTimePicker(props, emit);
19764
- onMounted$1(() => {
19764
+ onMounted(() => {
19765
19765
  if (!props.shadow) {
19766
19766
  emit("mount", null);
19767
19767
  }
@@ -19862,7 +19862,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
19862
19862
  const showYearPicker = ref(false);
19863
19863
  const overlayOpen = ref(false);
19864
19864
  const elementRefs = ref([null, null, null, null]);
19865
- onMounted$1(() => {
19865
+ onMounted(() => {
19866
19866
  emit("mount");
19867
19867
  });
19868
19868
  const bindOptions = (type4) => ({
@@ -20223,7 +20223,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
20223
20223
  }
20224
20224
  return getDayNames(props.formatLocale, props.locale, +props.weekStart);
20225
20225
  });
20226
- onMounted$1(() => {
20226
+ onMounted(() => {
20227
20227
  emit("mount", { cmp: "calendar", refs: dayRefs });
20228
20228
  if (!defaultedConfig.value.noSwipe) {
20229
20229
  if (calendarWrapRef.value) {
@@ -20594,7 +20594,7 @@ const useDatePicker = (props, emit, triggerCalendarTransition, updateFlow) => {
20594
20594
  emit("select-date");
20595
20595
  }
20596
20596
  };
20597
- onMounted$1(() => {
20597
+ onMounted(() => {
20598
20598
  if (!props.shadow) {
20599
20599
  if (!modelValue.value) {
20600
20600
  setStartDate();
@@ -21677,7 +21677,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
21677
21677
  const innerMenuRef = ref(null);
21678
21678
  const menuMount = ref(false);
21679
21679
  const dynCmpRef = ref(null);
21680
- onMounted$1(() => {
21680
+ onMounted(() => {
21681
21681
  if (!props.shadow) {
21682
21682
  menuMount.value = true;
21683
21683
  getCalendarWidth();
@@ -22142,7 +22142,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
22142
22142
  defaultedMultiDates
22143
22143
  } = useDefaults(props);
22144
22144
  const { menuTransition, showTransition } = useTransitions(defaultedTransitions);
22145
- onMounted$1(() => {
22145
+ onMounted(() => {
22146
22146
  parseExternalModelValue(props.modelValue);
22147
22147
  nextTick().then(() => {
22148
22148
  if (!defaultedInline.value.enabled) {
@@ -22597,7 +22597,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
22597
22597
  emit("change", val2);
22598
22598
  emit("update:modelValue", val2);
22599
22599
  });
22600
- onMounted$1(() => {
22600
+ onMounted(() => {
22601
22601
  if (props.modelValue) {
22602
22602
  date4.value = props.modelValue;
22603
22603
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bge-ui",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -25,7 +25,7 @@
25
25
  </label>
26
26
  </template>
27
27
  <script lang="ts" setup>
28
- import { ref, watch, inject } from 'vue'
28
+ import { ref, watch, inject, onMounted } from 'vue'
29
29
  defineOptions({
30
30
  name: 'CheckBox',
31
31
  })