glib-web 4.39.7 → 4.39.8

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.
@@ -2,7 +2,7 @@
2
2
  <div ref="container" :style="$styles()" :class="$classes()" v-if="loadIf">
3
3
  <!-- Set `menu-props` so the menu will never be wider than the select field.
4
4
  See https://github.com/vuetifyjs/vuetify/issues/17751 -->
5
- <component :is="compName" :color="gcolor" v-model="fieldModel" :label="label" :items="normalizedOptions"
5
+ <component ref="comp" :is="compName" :color="gcolor" v-model="fieldModel" :label="label" :items="normalizedOptions"
6
6
  :chips="useChips" :disabled="inputDisabled" :multiple="spec.multiple" :readonly="spec.readOnly"
7
7
  :clearable="spec.clearable" :placeholder="spec.placeholder" :rules="$validation()" persistent-hint
8
8
  :append-icon="append.icon" validate-on="blur" item-title='text' :variant="variant" :closable-chips="spec.multiple"
@@ -62,7 +62,7 @@ import { triggerOnChange, triggerOnInput, useGlibInput } from "../composable/for
62
62
  import { isBoolean } from '../../utils/type';
63
63
 
64
64
  import { useGlibSelectable, watchNoneOfAbove } from '../composable/selectable';
65
- import { ref } from 'vue';
65
+ import { ref, defineExpose } from 'vue';
66
66
  import SelectItemDefault from "./_selectItemDefault.vue";
67
67
  import SelectItemWithImage from "./_selectItemWithImage.vue";
68
68
  import SelectItemWithIcon from "./_selectItemWithIcon.vue";
@@ -83,6 +83,7 @@ export default {
83
83
 
84
84
  const fieldModel = ref(props.spec.value || props.defaultValue);
85
85
  const options = ref(props.spec.options);
86
+ const comp = ref(null);
86
87
  const append = props.spec.append || {};
87
88
 
88
89
  const valueForDisableAll = props.spec.valueForDisableAll;
@@ -91,7 +92,13 @@ export default {
91
92
  watchNoneOfAbove({ model: fieldModel, options: options, valueForDisableAll });
92
93
  }
93
94
 
94
- return { fieldModel, checkAll, isIndeterminate, isAllSelected, append };
95
+ // This is a public method that is called by other parts of the code, do not delete it.
96
+ function toggle() {
97
+ comp.value.menu = !comp.value.menu;
98
+ }
99
+ defineExpose(['toggle']);
100
+
101
+ return { fieldModel, checkAll, isIndeterminate, isAllSelected, append, toggle, comp };
95
102
  },
96
103
  data() {
97
104
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glib-web",
3
- "version": "4.39.7",
3
+ "version": "4.39.8",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,18 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Read(//home/hgani/workspace/glib-web/app/views/json_ui/garage/**)",
5
- "Read(//home/hgani/workspace/glib-web-npm/doc/garage/**)",
6
- "Read(//home/hgani/workspace/glib-web-npm/doc/common/**)",
7
- "Bash(find:*)",
8
- "Bash(npx cypress run:*)",
9
- "Read(//home/hgani/workspace/glib-web/**)",
10
- "Bash(curl:*)",
11
- "Bash(pkill:*)",
12
- "Bash(gh pr list:*)",
13
- "WebSearch"
14
- ],
15
- "deny": [],
16
- "ask": []
17
- }
18
- }