glib-web 0.9.0 → 0.10.0
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/LICENSE +0 -0
- package/actions/auth/restart.js +0 -0
- package/actions/dialogs/oauth.js +0 -0
- package/actions/dialogs/options.js +0 -0
- package/actions/sheets/select.js +0 -0
- package/actions/snackbars/alert.js +0 -0
- package/actions/snackbars/select.js +0 -0
- package/actions/windows/openWeb.js +0 -0
- package/components/_message.vue +0 -0
- package/components/datetime.vue +0 -0
- package/components/fab.vue +0 -0
- package/components/fields/_select.vue +0 -0
- package/components/fields/country/countries.js +0 -0
- package/components/fields/country/field.vue +0 -0
- package/components/fields/country/regions.js +0 -0
- package/components/fields/creditCard.vue +0 -7
- package/components/fields/datetime.vue +0 -0
- package/components/fields/dynamicSelect.vue +0 -0
- package/components/fields/select.vue +0 -0
- package/components/fields/timeZone.vue +0 -0
- package/components/hr.vue +0 -0
- package/components/html.vue +0 -0
- package/components/image.vue +0 -0
- package/components/mixins/events.js +0 -3
- package/components/mixins/list/autoload.js +33 -2
- package/components/mixins/longClick.js +0 -0
- package/components/mixins/scrolling.js +0 -0
- package/components/mixins/styles.js +2 -1
- package/components/mixins/table/export.js +0 -0
- package/components/mixins/table/import.js +0 -0
- package/components/p.vue +0 -0
- package/components/panels/column.vue +0 -0
- package/components/panels/custom.vue +0 -0
- package/components/panels/horizontal.vue +1 -1
- package/components/panels/list.vue +1 -0
- package/components/panels/split.vue +0 -0
- package/components/panels/ul.vue +0 -0
- package/keys.js +0 -0
- package/nav/drawerButton.vue +0 -0
- package/package.json +1 -1
- package/settings.json.example +0 -0
- package/styles/test.sass +0 -0
- package/styles/test.scss +0 -0
- package/templates/featured.vue +0 -0
- package/templates/unsupported.vue +0 -0
- package/utils/dom.js +0 -0
- package/utils/public.js +0 -0
- package/utils/settings.js +0 -0
- package/utils/storage.js +0 -0
- package/utils/url.js +0 -0
package/LICENSE
CHANGED
|
File without changes
|
package/actions/auth/restart.js
CHANGED
|
File without changes
|
package/actions/dialogs/oauth.js
CHANGED
|
File without changes
|
|
File without changes
|
package/actions/sheets/select.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/components/_message.vue
CHANGED
|
File without changes
|
package/components/datetime.vue
CHANGED
|
File without changes
|
package/components/fab.vue
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -84,13 +84,6 @@ export default {
|
|
|
84
84
|
stripe.createPaymentMethod("card", card).then(function(result) {
|
|
85
85
|
if (result.error) {
|
|
86
86
|
vm._displayError(result.error.message);
|
|
87
|
-
|
|
88
|
-
// // Show error in payment form
|
|
89
|
-
// vm.displayError.textContent = result.error.message;
|
|
90
|
-
// vm.clearData();
|
|
91
|
-
// setTimeout(function() {
|
|
92
|
-
// vm.retrieveToken.status = "complete";
|
|
93
|
-
// }, 50);
|
|
94
87
|
} else {
|
|
95
88
|
vm._displayError("");
|
|
96
89
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/components/hr.vue
CHANGED
|
File without changes
|
package/components/html.vue
CHANGED
|
File without changes
|
package/components/image.vue
CHANGED
|
File without changes
|
|
@@ -125,10 +125,7 @@ export default {
|
|
|
125
125
|
|
|
126
126
|
// Make sure events are dispatched after $ready(). Dispatching them during $ready() causes errors.
|
|
127
127
|
for (const event of this.$data._events) {
|
|
128
|
-
// Execute later to ensure the parent has registered its event listener
|
|
129
|
-
// setTimeout(() => {
|
|
130
128
|
this.$el.dispatchEvent(event);
|
|
131
|
-
// }, 100)
|
|
132
129
|
}
|
|
133
130
|
this.$data._events = null;
|
|
134
131
|
},
|
|
@@ -29,6 +29,9 @@ export default {
|
|
|
29
29
|
const onScrollToBottom = this.spec.onScrollToBottom;
|
|
30
30
|
const onScrollToTop = this.spec.onScrollToTop;
|
|
31
31
|
|
|
32
|
+
// Reset state for reuse.
|
|
33
|
+
this.nextPageUrl = null;
|
|
34
|
+
this.prevPageUrl = null;
|
|
32
35
|
if (this.infiniteScroll) {
|
|
33
36
|
this.nextPageUrl = nextPage.url;
|
|
34
37
|
this.prevPageUrl = prevPage.url;
|
|
@@ -71,6 +74,8 @@ export default {
|
|
|
71
74
|
this.prevPageUrl = null;
|
|
72
75
|
}
|
|
73
76
|
|
|
77
|
+
var previousFirstRowIndex = null;
|
|
78
|
+
|
|
74
79
|
for (const [
|
|
75
80
|
index,
|
|
76
81
|
prependedSection
|
|
@@ -78,13 +83,17 @@ export default {
|
|
|
78
83
|
const section = this.sections[index];
|
|
79
84
|
|
|
80
85
|
Utils.type.ifArray(prependedSection.rows, rows => {
|
|
86
|
+
// Get the number of rows prepended to the top section
|
|
87
|
+
if (index == 0) {
|
|
88
|
+
previousFirstRowIndex = rows.length;
|
|
89
|
+
}
|
|
90
|
+
|
|
81
91
|
for (const row of rows) {
|
|
82
92
|
section.rows.unshift(row);
|
|
83
93
|
}
|
|
84
94
|
});
|
|
85
95
|
|
|
86
|
-
|
|
87
|
-
// https://stackoverflow.com/questions/54765451/preserve-scroll-position-on-dom-update-in-vue-js
|
|
96
|
+
this._updateScrollAfterPrepending(previousFirstRowIndex);
|
|
88
97
|
}
|
|
89
98
|
Utils.history.updatePage();
|
|
90
99
|
}
|
|
@@ -93,6 +102,28 @@ export default {
|
|
|
93
102
|
|
|
94
103
|
GLib.action.execute(onScrollToTop, this);
|
|
95
104
|
},
|
|
105
|
+
_updateScrollAfterPrepending(previousFirstRowIndex) {
|
|
106
|
+
// Scroll back to where the position was before the prepending.
|
|
107
|
+
if (previousFirstRowIndex) {
|
|
108
|
+
// Pre-record the height to get an accurate value
|
|
109
|
+
const anchorHeight = this.$refs.topAnchor.clientHeight;
|
|
110
|
+
|
|
111
|
+
this.$nextTick(() => {
|
|
112
|
+
const prependedBottomElement = this.$refs[
|
|
113
|
+
`row_0_${previousFirstRowIndex - 1}`
|
|
114
|
+
][0];
|
|
115
|
+
|
|
116
|
+
const top =
|
|
117
|
+
prependedBottomElement.offsetTop +
|
|
118
|
+
prependedBottomElement.clientHeight -
|
|
119
|
+
anchorHeight;
|
|
120
|
+
|
|
121
|
+
const pageBody = Utils.history._pageBody;
|
|
122
|
+
|
|
123
|
+
pageBody.scrollTop = top;
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
},
|
|
96
127
|
_registerBottomScroll(onScrollToBottom) {
|
|
97
128
|
this.bottomScrollHandler = this.$onVisibilityChange(
|
|
98
129
|
this.$refs.bottomAnchor,
|
|
File without changes
|
|
File without changes
|
|
@@ -46,11 +46,12 @@ export default {
|
|
|
46
46
|
this.$internalizeValue(val)
|
|
47
47
|
);
|
|
48
48
|
|
|
49
|
+
const dirtyCheckEnabled = !this.spec.disableDirtyCheck;
|
|
49
50
|
// Make sure value has changed and make sure that it is different from the original value.
|
|
50
51
|
// Be strict with this so it doesn't execute when the component is just initializing (e.g value changing
|
|
51
52
|
// from `null` to `this.spec.value`).
|
|
52
53
|
if (
|
|
53
|
-
|
|
54
|
+
dirtyCheckEnabled &&
|
|
54
55
|
!window.vueApp.isFormDirty &&
|
|
55
56
|
val != oldVal &&
|
|
56
57
|
val != this.spec.value
|
|
File without changes
|
|
File without changes
|
package/components/p.vue
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/components/panels/ul.vue
CHANGED
|
File without changes
|
package/keys.js
CHANGED
|
File without changes
|
package/nav/drawerButton.vue
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/settings.json.example
CHANGED
|
File without changes
|
package/styles/test.sass
CHANGED
|
File without changes
|
package/styles/test.scss
CHANGED
|
File without changes
|
package/templates/featured.vue
CHANGED
|
File without changes
|
|
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
|