vueless 0.0.354 → 0.0.355

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.354",
3
+ "version": "0.0.355",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless Component Framework.",
6
6
  "homepage": "https://vueless.com",
@@ -321,7 +321,7 @@ function preventOverlayFromScrolling(newValue) {
321
321
  if (newValue) {
322
322
  document.body.style.overflow = "hidden";
323
323
  } else {
324
- document.getElementById(`${props.id}`).style.overflow = "hidden";
324
+ document.getElementById(`${elementId}`).style.overflow = "hidden";
325
325
  document.body.style.overflow = "auto";
326
326
  }
327
327
  }
@@ -460,7 +460,7 @@ const localValue = computed({
460
460
  },
461
461
  });
462
462
 
463
- const rangeInputName = computed(() => `rangeInput-${props.id}`);
463
+ const rangeInputName = computed(() => `rangeInput-${elementId}`);
464
464
 
465
465
  const isVariant = computed(() => ({
466
466
  button: props.variant === DATE_PICKER_BUTTON_TYPE,
@@ -388,7 +388,7 @@ function onInput(inputEvent) {
388
388
  let value = inputEvent.target.value;
389
389
 
390
390
  if (props.validationRule) {
391
- const input = document.querySelector(`#${props.id}`);
391
+ const input = document.querySelector(`#${elementId}`);
392
392
 
393
393
  value = VALIDATION_RULES_REG_EX[props.validationRule]
394
394
  ? transformValue(value, VALIDATION_RULES_REG_EX[props.validationRule])
@@ -438,7 +438,7 @@ function onClickShowPassword() {
438
438
  */
439
439
  function toggleReadonlyToPreventAutocomplete(toggleState) {
440
440
  if (props.noAutocomplete && !props.readonly) {
441
- const input = document.getElementById(props.id);
441
+ const input = document.getElementById(elementId);
442
442
 
443
443
  toggleState ? input.setAttribute("readonly", "readonly") : input.removeAttribute("readonly");
444
444
  }
@@ -797,7 +797,7 @@ function deactivate() {
797
797
  search.value = "";
798
798
  isOpen.value = false;
799
799
 
800
- nextTick(() => emit("close", localValue.value, props.id));
800
+ nextTick(() => emit("close", localValue.value, elementId));
801
801
  }
802
802
 
803
803
  function activate() {
@@ -815,7 +815,7 @@ function activate() {
815
815
 
816
816
  if (wrapperRef.value !== undefined && !props.searchable) wrapperRef.value.focus();
817
817
 
818
- emit("open", props.id);
818
+ emit("open", elementId);
819
819
  }
820
820
 
821
821
  function adjustPosition() {
@@ -851,7 +851,7 @@ function removeElement(option, shouldClose = true) {
851
851
  }
852
852
 
853
853
  emit("update:modelValue", value);
854
- emit("remove", option, props.id);
854
+ emit("remove", option, elementId);
855
855
 
856
856
  if (shouldClose) {
857
857
  deactivate();
@@ -318,7 +318,7 @@ function onMousedown() {
318
318
 
319
319
  function toggleReadonly(hasReadonly) {
320
320
  if (props.noAutocomplete && !props.readonly) {
321
- const textarea = document.getElementById(props.id);
321
+ const textarea = document.getElementById(elementId);
322
322
 
323
323
  hasReadonly
324
324
  ? textarea.setAttribute("readonly", "readonly")
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.354",
4
+ "version": "0.0.355",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",