glib-web 0.11.11 → 0.11.14

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.
Files changed (44) hide show
  1. package/LICENSE +0 -0
  2. package/actions/auth/restart.js +0 -0
  3. package/actions/dialogs/oauth.js +0 -0
  4. package/actions/dialogs/options.js +0 -0
  5. package/actions/windows/openWeb.js +0 -0
  6. package/components/_chip.vue +56 -0
  7. package/components/_message.vue +0 -0
  8. package/components/chip.vue +7 -28
  9. package/components/datetime.vue +0 -0
  10. package/components/fab.vue +0 -0
  11. package/components/fields/country/countries.js +0 -0
  12. package/components/fields/country/field.vue +0 -0
  13. package/components/fields/country/regions.js +0 -0
  14. package/components/fields/datetime.vue +0 -0
  15. package/components/fields/dynamicSelect.vue +0 -0
  16. package/components/fields/radio.vue +27 -22
  17. package/components/fields/radioGroup.vue +8 -1
  18. package/components/fields/select.vue +0 -0
  19. package/components/fields/textarea.vue +1 -0
  20. package/components/fields/timeZone.vue +0 -0
  21. package/components/hr.vue +0 -0
  22. package/components/html.vue +0 -0
  23. package/components/mixins/longClick.js +0 -0
  24. package/components/mixins/scrolling.js +0 -0
  25. package/components/mixins/table/export.js +0 -0
  26. package/components/mixins/table/import.js +0 -0
  27. package/components/p.vue +0 -0
  28. package/components/panels/split.vue +0 -0
  29. package/components/panels/ul.vue +0 -0
  30. package/index.js +2 -0
  31. package/keys.js +0 -0
  32. package/nav/drawerButton.vue +0 -0
  33. package/package.json +1 -1
  34. package/settings.json.example +0 -0
  35. package/styles/test.sass +0 -0
  36. package/styles/test.scss +0 -0
  37. package/templates/featured.vue +11 -6
  38. package/templates/thumbnail.vue +10 -8
  39. package/templates/unsupported.vue +0 -0
  40. package/utils/dom.js +0 -0
  41. package/utils/public.js +0 -0
  42. package/utils/settings.js +0 -0
  43. package/utils/storage.js +0 -0
  44. package/utils/url.js +0 -0
package/LICENSE CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,56 @@
1
+ <template>
2
+ <v-tooltip
3
+ :disabled="!spec.tooltip"
4
+ :top="tooltipPositionMatches('top')"
5
+ :right="tooltipPositionMatches('right')"
6
+ :bottom="tooltipPositionMatches('bottom')"
7
+ :left="tooltipPositionMatches('left')"
8
+ >
9
+ <template v-slot:activator="{ on }">
10
+ <span v-on="on">
11
+ <v-chip
12
+ v-if="spec.onClick"
13
+ :style="genericStyles()"
14
+ :class="$classes()"
15
+ :href="$href()"
16
+ @click="$onClick()"
17
+ >
18
+ {{ spec.text }}
19
+ <common-badge :spec="spec" />
20
+ </v-chip>
21
+ <v-chip v-else :style="genericStyles()" :class="$classes()">
22
+ {{ spec.text }}
23
+ <common-badge :spec="spec" />
24
+ </v-chip>
25
+ </span>
26
+ </template>
27
+ <span>{{ tooltip.text }}</span>
28
+ </v-tooltip>
29
+ </template>
30
+
31
+ <script>
32
+ import TooltipMixins from "./mixins/tooltip";
33
+ export default {
34
+ mixins: [TooltipMixins],
35
+ props: {
36
+ spec: { type: Object, required: true }
37
+ },
38
+ data: function() {
39
+ return {
40
+ tooltip: {}
41
+ };
42
+ },
43
+ methods: {
44
+ $ready() {
45
+ this.tooltip = this.spec.tooltip || {};
46
+ }
47
+ }
48
+ };
49
+ </script>
50
+
51
+ <style lang="scss" scoped>
52
+ // Prevent hover effect if the chip is not clickable.
53
+ span.theme--light.v-chip:hover:before {
54
+ opacity: 0;
55
+ }
56
+ </style>
File without changes
@@ -1,31 +1,5 @@
1
1
  <template>
2
- <v-tooltip
3
- :disabled="!spec.tooltip"
4
- :top="tooltipPositionMatches('top')"
5
- :right="tooltipPositionMatches('right')"
6
- :bottom="tooltipPositionMatches('bottom')"
7
- :left="tooltipPositionMatches('left')"
8
- >
9
- <template v-slot:activator="{ on }">
10
- <div v-on="on">
11
- <v-chip
12
- v-if="spec.onClick"
13
- :style="genericStyles()"
14
- :class="$classes()"
15
- :href="$href()"
16
- @click="$onClick()"
17
- >
18
- {{ spec.text }}
19
- <common-badge :spec="spec" />
20
- </v-chip>
21
- <v-chip v-else :style="genericStyles()" :class="$classes()">
22
- {{ spec.text }}
23
- <common-badge :spec="spec" />
24
- </v-chip>
25
- </div>
26
- </template>
27
- <span>{{ tooltip.text }}</span>
28
- </v-tooltip>
2
+ <common-chip :spec="spec" />
29
3
  </template>
30
4
 
31
5
  <script>
@@ -48,4 +22,9 @@ export default {
48
22
  };
49
23
  </script>
50
24
 
51
- <style scoped></style>
25
+ <style lang="scss" scoped>
26
+ // Prevent hover effect if the chip is not clickable.
27
+ span.theme--light.v-chip:hover:before {
28
+ opacity: 0;
29
+ }
30
+ </style>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,26 +1,31 @@
1
1
  <template>
2
- <v-tooltip
3
- :disabled="tooltip.disabled"
4
- :top="tooltipPositionMatches('top')"
5
- :right="tooltipPositionMatches('right')"
6
- :bottom="tooltipPositionMatches('bottom')"
7
- :left="tooltipPositionMatches('left')"
8
- >
9
- <template v-slot:activator="{ on }">
10
- <v-radio
11
- :label="spec.label"
12
- :value="spec.value.presence() || vuetifyEmptyString"
13
- :class="$classes()"
14
- :disabled="spec.readOnly"
15
- :on-icon="spec.onIcon"
16
- :off-icon="spec.offIcon"
17
- v-on="on"
18
- @click="$onClick()"
19
- >
20
- </v-radio>
21
- </template>
22
- <span>{{ tooltip.text }}</span>
23
- </v-tooltip>
2
+ <div :class="$classes()">
3
+ <v-tooltip
4
+ :disabled="tooltip.disabled"
5
+ :top="tooltipPositionMatches('top')"
6
+ :right="tooltipPositionMatches('right')"
7
+ :bottom="tooltipPositionMatches('bottom')"
8
+ :left="tooltipPositionMatches('left')"
9
+ >
10
+ <template v-slot:activator="{ on }">
11
+ <v-radio
12
+ :label="spec.label"
13
+ :value="spec.value.presence() || vuetifyEmptyString"
14
+ :disabled="spec.readOnly"
15
+ :on-icon="spec.onIcon"
16
+ :off-icon="spec.offIcon"
17
+ v-on="on"
18
+ @click="$onClick()"
19
+ />
20
+ <div v-if="spec.childViews" class="radio-childviews">
21
+ <div v-for="(item, i) in spec.childViews" :key="i">
22
+ <glib-component :spec="item" />
23
+ </div>
24
+ </div>
25
+ </template>
26
+ <span>{{ tooltip.text }}</span>
27
+ </v-tooltip>
28
+ </div>
24
29
  </template>
25
30
 
26
31
  <script>
@@ -8,7 +8,9 @@
8
8
  @change="onChange"
9
9
  >
10
10
  <div v-for="(item, index) in spec.childViews" :key="index">
11
- <ui-component :spec="item" />
11
+ <div @click="updateValue(item)">
12
+ <glib-component :spec="item" />
13
+ </div>
12
14
  </div>
13
15
 
14
16
  <input
@@ -32,6 +34,11 @@ export default {
32
34
  GLib.action.execute(onChange, this);
33
35
  });
34
36
  });
37
+ },
38
+ updateValue(variable) {
39
+ if (variable.value) {
40
+ this.fieldModel = variable.value;
41
+ }
35
42
  }
36
43
  }
37
44
  };
File without changes
@@ -13,6 +13,7 @@
13
13
  :rules="$validation()"
14
14
  counter
15
15
  :outlined="$classes().includes('outlined')"
16
+ :no-resize="$classes().includes('no-resize')"
16
17
  validate-on-blur
17
18
  @keyup="$onTyping"
18
19
  ></v-textarea>
File without changes
package/components/hr.vue CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/components/p.vue CHANGED
File without changes
File without changes
File without changes
package/index.js CHANGED
@@ -51,6 +51,7 @@ import Component from "./components/component";
51
51
  import CommonIcon from "./components/_icon";
52
52
  import CommonBadge from "./components/_badge";
53
53
  import CommonButton from "./components/_button";
54
+ import CommonChip from "./components/_chip";
54
55
  import CommonMessage from "./components/_message";
55
56
  import CommonDropdownMenu from "./components/_dropdownMenu";
56
57
  import CommonResponsive from "./components/_responsive";
@@ -60,6 +61,7 @@ Vue.component("panels-responsive", ResponsivePanel);
60
61
  Vue.component("common-button", CommonButton);
61
62
  Vue.component("common-icon", CommonIcon);
62
63
  Vue.component("common-badge", CommonBadge);
64
+ Vue.component("common-chip", CommonChip);
63
65
  Vue.component("common-message", CommonMessage);
64
66
  Vue.component("common-dropdownMenu", CommonDropdownMenu);
65
67
  Vue.component("common-responsive", CommonResponsive);
package/keys.js CHANGED
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glib-web",
3
- "version": "0.11.11",
3
+ "version": "0.11.14",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
File without changes
package/styles/test.sass CHANGED
File without changes
package/styles/test.scss CHANGED
File without changes
@@ -13,20 +13,25 @@
13
13
  }}</v-list-item-subtitle>
14
14
  </v-list-item-content>
15
15
 
16
- <template-menu :edit-buttons="spec.editButtons || []" />
16
+ <templates-menu :edit-buttons="editButtons" />
17
17
  </v-list-item>
18
18
  </v-card>
19
19
  </template>
20
20
 
21
21
  <script>
22
- // import Menu from "./menu";
23
-
24
22
  export default {
25
- // components: {
26
- // "template-menu": Menu
27
- // },
28
23
  props: {
29
24
  spec: { type: Object, required: true }
25
+ },
26
+ data() {
27
+ return {
28
+ editButtons: []
29
+ };
30
+ },
31
+ methods: {
32
+ $ready() {
33
+ this.editButtons = this.spec.editButtons || [];
34
+ }
30
35
  }
31
36
  };
32
37
  </script>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div style="display:flex;">
2
+ <div style="display:flex;" class="thumbnail">
3
3
  <div
4
4
  v-if="spec.leftOuterButtons"
5
5
  class="left-universal"
@@ -72,13 +72,9 @@
72
72
  spec.subsubtitle
73
73
  }}</v-list-item-subtitle>
74
74
 
75
- <div>
75
+ <div class="chips">
76
76
  <template v-for="(item, index) in chips">
77
- <v-chip :key="index" class="ma-1" :color="item.color" small>
78
- <div>
79
- {{ item.text }}
80
- </div>
81
- </v-chip>
77
+ <common-chip :key="index" :spec="item" />
82
78
  </template>
83
79
  </div>
84
80
 
@@ -131,7 +127,7 @@ export default {
131
127
  }
132
128
  }
133
129
  });
134
- return Object.assign({}, item, { color: color });
130
+ return Object.assign({}, item, { color: color, view: "chip" });
135
131
  });
136
132
  }
137
133
  },
@@ -155,6 +151,12 @@ export default {
155
151
  };
156
152
  </script>
157
153
 
154
+ <style lang="scss">
155
+ .chips > * {
156
+ margin-right: 10px;
157
+ }
158
+ </style>
159
+
158
160
  <style lang="scss" scoped>
159
161
  @media (min-width: 600px) {
160
162
  .left-thumbnail.v-avatar.v-list-item__avatar {
File without changes
package/utils/dom.js CHANGED
File without changes
package/utils/public.js CHANGED
File without changes
package/utils/settings.js CHANGED
File without changes
package/utils/storage.js CHANGED
File without changes
package/utils/url.js CHANGED
File without changes