matestack-ui-core 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of matestack-ui-core might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +1 -9
- data/app/concepts/matestack/ui/core/async/async.js +20 -2
- data/app/concepts/matestack/ui/core/blockquote/blockquote.haml +5 -0
- data/app/concepts/matestack/ui/core/blockquote/blockquote.rb +9 -0
- data/app/concepts/matestack/ui/core/button/button.rb +6 -0
- data/app/concepts/matestack/ui/core/caption/caption.haml +6 -0
- data/app/concepts/matestack/ui/core/caption/caption.rb +5 -0
- data/app/concepts/matestack/ui/core/collection/content/content.js +100 -0
- data/app/concepts/matestack/ui/core/collection/content/content.rb +18 -0
- data/app/concepts/matestack/ui/core/collection/content/next/next.haml +3 -0
- data/app/concepts/matestack/ui/core/collection/content/next/next.rb +5 -0
- data/app/concepts/matestack/ui/core/collection/content/page/link/link.haml +3 -0
- data/app/concepts/matestack/ui/core/collection/content/page/link/link.rb +5 -0
- data/app/concepts/matestack/ui/core/collection/content/previous/previous.haml +3 -0
- data/app/concepts/matestack/ui/core/collection/content/previous/previous.rb +5 -0
- data/app/concepts/matestack/ui/core/collection/filter/filter.js +50 -0
- data/app/concepts/matestack/ui/core/collection/filter/filter.rb +17 -0
- data/app/concepts/matestack/ui/core/collection/filter/input/input.haml +8 -0
- data/app/concepts/matestack/ui/core/collection/filter/input/input.rb +13 -0
- data/app/concepts/matestack/ui/core/collection/filter/reset/reset.haml +3 -0
- data/app/concepts/matestack/ui/core/collection/filter/reset/reset.rb +5 -0
- data/app/concepts/matestack/ui/core/collection/filter/submit/submit.haml +3 -0
- data/app/concepts/matestack/ui/core/collection/filter/submit/submit.rb +5 -0
- data/app/concepts/matestack/ui/core/collection/helper.rb +114 -0
- data/app/concepts/matestack/ui/core/collection/order/order.js +58 -0
- data/app/concepts/matestack/ui/core/collection/order/order.rb +17 -0
- data/app/concepts/matestack/ui/core/collection/order/toggle/indicator/indicator.rb +11 -0
- data/app/concepts/matestack/ui/core/collection/order/toggle/toggle.haml +3 -0
- data/app/concepts/matestack/ui/core/collection/order/toggle/toggle.rb +6 -0
- data/app/concepts/matestack/ui/core/component/component.js +2 -2
- data/app/concepts/matestack/ui/core/details/details.haml +3 -0
- data/app/concepts/matestack/ui/core/details/details.rb +4 -0
- data/app/concepts/matestack/ui/core/js/core.js +3 -0
- data/app/concepts/matestack/ui/core/js/helpers/query-params-helper.js +56 -0
- data/app/concepts/matestack/ui/core/link/link.haml +5 -6
- data/app/concepts/matestack/ui/core/link/link.rb +4 -2
- data/app/concepts/matestack/ui/core/page/page.rb +19 -18
- data/app/concepts/matestack/ui/core/small/small.haml +5 -0
- data/app/concepts/matestack/ui/core/small/small.rb +5 -0
- data/app/concepts/matestack/ui/core/span/span.haml +3 -1
- data/app/concepts/matestack/ui/core/strong/strong.haml +5 -0
- data/app/concepts/matestack/ui/core/strong/strong.rb +5 -0
- data/app/concepts/matestack/ui/core/summary/summary.haml +6 -0
- data/app/concepts/matestack/ui/core/summary/summary.rb +4 -0
- data/app/concepts/matestack/ui/core/video/video.haml +1 -0
- data/app/concepts/matestack/ui/core/video/video.rb +7 -0
- data/app/lib/matestack/ui/core/page_node.rb +14 -5
- data/lib/generators/matestack_app/USAGE +21 -0
- data/lib/generators/matestack_app/matestack_app_generator.rb +26 -0
- data/lib/generators/matestack_app/templates/matestack_app.erb +26 -0
- data/lib/generators/matestack_app/templates/matestack_app_controller.erb +7 -0
- data/lib/generators/matestack_component/USAGE +20 -0
- data/lib/generators/matestack_component/matestack_component_generator.rb +30 -0
- data/lib/generators/matestack_component/templates/matestack_component.haml.erb +5 -0
- data/lib/generators/matestack_component/templates/matestack_component.js.erb +17 -0
- data/lib/generators/matestack_component/templates/matestack_component.rb.erb +13 -0
- data/lib/generators/matestack_component/templates/matestack_component.scss.erb +1 -0
- data/lib/generators/matestack_page/USAGE +28 -0
- data/lib/generators/matestack_page/matestack_page_generator.rb +41 -0
- data/lib/generators/matestack_page/templates/matestack_page.erb +15 -0
- data/lib/matestack/ui/core/version.rb +1 -1
- data/vendor/assets/javascripts/matestack-ui-core.js +588 -251
- data/vendor/assets/javascripts/matestack-ui-core.js.map +1 -1
- metadata +53 -3
@@ -0,0 +1,26 @@
|
|
1
|
+
class Apps::<%= class_name %> < Matestack::Ui::App
|
2
|
+
|
3
|
+
# OPTIONAL: Prepare data that gets used on every page of this app
|
4
|
+
# def prepare
|
5
|
+
# API calls and db queries go here
|
6
|
+
# end
|
7
|
+
|
8
|
+
# MANDATORY: This is where your matestack pages get yielded
|
9
|
+
def response
|
10
|
+
components {
|
11
|
+
page_content
|
12
|
+
}
|
13
|
+
end
|
14
|
+
|
15
|
+
# OPTIONAL: Use partials to render stuff like layout components
|
16
|
+
# def partial_one
|
17
|
+
# partial {
|
18
|
+
# # your components go here
|
19
|
+
# }
|
20
|
+
# end
|
21
|
+
|
22
|
+
# OPTIONAL: Slots come after partials
|
23
|
+
# def slots
|
24
|
+
# end
|
25
|
+
|
26
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Description:
|
2
|
+
Stubs out a new matestack component. Pass the component name, under_scored.
|
3
|
+
|
4
|
+
To create a dynamic component, specify it using the --dynamic option.
|
5
|
+
|
6
|
+
To place this component within a namespace, specify the namespace name under_scored and it
|
7
|
+
will get generated into 'app/matestack/components/namespace/*'.
|
8
|
+
|
9
|
+
Example 1:
|
10
|
+
`rails generate matestack_component NAME`
|
11
|
+
|
12
|
+
This will create:
|
13
|
+
app/matestack/components/NAME.rb
|
14
|
+
|
15
|
+
Example 2:
|
16
|
+
`rails generate matestack_component NAME --dynamic --namespace sample_namespace`
|
17
|
+
|
18
|
+
This will create:
|
19
|
+
app/matestack/components/sample_namespace/NAME.rb
|
20
|
+
app/matestack/components/sample_namespace/NAME.js
|
@@ -0,0 +1,30 @@
|
|
1
|
+
class MatestackComponentGenerator < Rails::Generators::NamedBase
|
2
|
+
source_root File.expand_path('templates', __dir__)
|
3
|
+
|
4
|
+
class_option :dynamic, type: :boolean, default: false
|
5
|
+
class_option :scss, type: :boolean, default: false
|
6
|
+
class_option :haml, type: :boolean, default: false
|
7
|
+
class_option :namespace, type: :string
|
8
|
+
|
9
|
+
def create_matestack_component
|
10
|
+
@dynamic = options[:dynamic]
|
11
|
+
@namespace = options[:namespace]
|
12
|
+
|
13
|
+
# Future: Check for matestack-compatible namespacing!
|
14
|
+
|
15
|
+
to_be_created_files = ['.rb']
|
16
|
+
to_be_created_files << '.js' if options[:dynamic]
|
17
|
+
to_be_created_files << '.scss' if options[:scss]
|
18
|
+
to_be_created_files << '.haml' if options[:haml]
|
19
|
+
|
20
|
+
matestack_component_dir_path = "app/matestack/components/"
|
21
|
+
matestack_component_dir_path << "#{@namespace}/" unless @namespace.nil?
|
22
|
+
|
23
|
+
to_be_created_files.each do |file|
|
24
|
+
generator_path = matestack_component_dir_path + "/#{file_name}#{file}"
|
25
|
+
template "matestack_component#{file}.erb", generator_path
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// Require your custom component in your application.js before usage
|
2
|
+
// Place it below "//= require matestack-ui-core" using the following line:
|
3
|
+
//= require <% unless @namespace.nil? %><%= @namespace %>/<% end %><%= file_name %>
|
4
|
+
|
5
|
+
MatestackUiCore.Vue.component('custom<% unless @namespace.nil? %>-<%= @namespace %><% end %>-<%= file_name %>', {
|
6
|
+
mixins: [MatestackUiCore.componentMixin],
|
7
|
+
data: function() {
|
8
|
+
return {
|
9
|
+
foo: 'bar'
|
10
|
+
};
|
11
|
+
},
|
12
|
+
methods: {},
|
13
|
+
mounted: function(){
|
14
|
+
// this is your completeness check and should be deleted before deployment
|
15
|
+
console.log('Custom Dynamic Component <%= class_name %> mounted!')
|
16
|
+
}
|
17
|
+
});
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class Components::<% unless @namespace.nil? %><%= @namespace.camelize %>::<% end %><%= class_name %> < Matestack::Ui::<% if @dynamic == true %>DynamicComponent<% else %>StaticComponent<% end %>
|
2
|
+
|
3
|
+
def prepare
|
4
|
+
# DB queries and API calls go here
|
5
|
+
end
|
6
|
+
|
7
|
+
def response
|
8
|
+
components {
|
9
|
+
# orchestrate existing matestack components here
|
10
|
+
}
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
// your styles for the component <%= class_name %> go here
|
@@ -0,0 +1,28 @@
|
|
1
|
+
Description:
|
2
|
+
Stubs out a new matestack page and its route. Pass the page name and --app-name, both under_scored.
|
3
|
+
|
4
|
+
To place the page within a namespace, specify the namespace name under_scored and it
|
5
|
+
will get generated into 'app/matestack/pages/namespace/*'.
|
6
|
+
|
7
|
+
To create a custom controller#action to use in the created route, specify it as
|
8
|
+
under_scored_controller#under_scored_action
|
9
|
+
|
10
|
+
This generates a matestack page class in app/matestack/pages/ and adds a route to config/routes.rb
|
11
|
+
|
12
|
+
Example 1:
|
13
|
+
`rails generate matestack_page example_page --app_name example_app`
|
14
|
+
|
15
|
+
This will create:
|
16
|
+
app/matestack/pages/example_app/example_page.rb
|
17
|
+
|
18
|
+
This will add to routes:
|
19
|
+
get 'example_app/example_page', to: 'example_app#example_page'
|
20
|
+
|
21
|
+
Example 2:
|
22
|
+
`rails generate matestack_page example_page --app_name example_app --controller_action=static#second`
|
23
|
+
|
24
|
+
This will create:
|
25
|
+
app/matestack/pages/example_app/example_page.rb
|
26
|
+
|
27
|
+
This will add to routes:
|
28
|
+
get 'example_app/example_page', to: 'static#second'
|
@@ -0,0 +1,41 @@
|
|
1
|
+
class MatestackPageGenerator < Rails::Generators::NamedBase
|
2
|
+
source_root File.expand_path('templates', __dir__)
|
3
|
+
|
4
|
+
class_option :app_name, type: :string, required: true
|
5
|
+
class_option :namespace, type: :string
|
6
|
+
class_option :controller_action, type: :string
|
7
|
+
class_option :called_by_app_generator, type: :boolean, default: false
|
8
|
+
|
9
|
+
def create_matestack_page
|
10
|
+
@app_name = options[:app_name]
|
11
|
+
@namespace = options[:namespace]
|
12
|
+
|
13
|
+
if options[:controller_action].nil?
|
14
|
+
@controller_action = "#{@app_name}\##{file_name}"
|
15
|
+
else
|
16
|
+
@controller_action = options[:controller_action]
|
17
|
+
end
|
18
|
+
|
19
|
+
matestack_page_dir_path = "app/matestack/pages"
|
20
|
+
matestack_page_dir_path << "/#{@app_name}" unless @app_name.nil?
|
21
|
+
matestack_page_dir_path << "/#{@namespace}" unless @namespace.nil?
|
22
|
+
|
23
|
+
generator_path = matestack_page_dir_path + "/#{file_name}.rb"
|
24
|
+
|
25
|
+
template "matestack_page.erb", generator_path
|
26
|
+
|
27
|
+
unless options[:called_by_app_generator]
|
28
|
+
route %{get '#{@app_name}/#{@namespace}/#{file_name}', to: '#{@controller_action}'} unless @namespace.nil?
|
29
|
+
route %{get '#{@app_name}/#{file_name}', to: '#{@controller_action}'} if @namespace.nil?
|
30
|
+
puts "Page created! Make sure to modify"
|
31
|
+
puts ""
|
32
|
+
puts "def controller_action"
|
33
|
+
puts " responder_for(Pages::#{@app_name.camelize}::#{@namespace.camelize}::#{file_name.camelize})" unless @namespace.nil?
|
34
|
+
puts " responder_for(Pages::#{@app_name.camelize}::#{file_name.camelize})" if @namespace.nil?
|
35
|
+
puts "end"
|
36
|
+
puts ""
|
37
|
+
puts "and add it to the desired controller!"
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class Pages::<% unless @namespace.nil? %><%= @namespace.camelize %>::<% end %><% unless @app_name.nil? %><%= @app_name.camelize %>::<% end %><%= class_name %> < Matestack::Ui::Page
|
2
|
+
|
3
|
+
# OPTIONAL: Prepare data for the response method
|
4
|
+
# def prepare
|
5
|
+
# API calls and db queries go here
|
6
|
+
# end
|
7
|
+
|
8
|
+
# MANDATORY: This is where the matestack magic happens
|
9
|
+
def response
|
10
|
+
components {
|
11
|
+
plain 'Hello, mate!'
|
12
|
+
}
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
@@ -61,7 +61,7 @@ var MatestackUiCore =
|
|
61
61
|
/******/ __webpack_require__.p = "/../../vendor/assets/javascripts/";
|
62
62
|
/******/
|
63
63
|
/******/ // Load entry module and return exports
|
64
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
64
|
+
/******/ return __webpack_require__(__webpack_require__.s = 17);
|
65
65
|
/******/ })
|
66
66
|
/************************************************************************/
|
67
67
|
/******/ ([
|
@@ -11031,10 +11031,85 @@ Vue.compile = compileToFunctions;
|
|
11031
11031
|
|
11032
11032
|
/* harmony default export */ __webpack_exports__["a"] = (Vue);
|
11033
11033
|
|
11034
|
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../builder/node_modules/webpack/buildin/global.js */ 6), __webpack_require__(/*! ./../../../builder/node_modules/timers-browserify/main.js */
|
11034
|
+
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../builder/node_modules/webpack/buildin/global.js */ 6), __webpack_require__(/*! ./../../../builder/node_modules/timers-browserify/main.js */ 18).setImmediate))
|
11035
11035
|
|
11036
11036
|
/***/ }),
|
11037
11037
|
/* 1 */
|
11038
|
+
/*!****************************************************************!*\
|
11039
|
+
!*** ../app/concepts/matestack/ui/core/component/component.js ***!
|
11040
|
+
\****************************************************************/
|
11041
|
+
/*! exports provided: default */
|
11042
|
+
/*! exports used: default */
|
11043
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
11044
|
+
|
11045
|
+
"use strict";
|
11046
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__ = __webpack_require__(/*! vue/dist/vue.esm */ 0);
|
11047
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(/*! axios */ 5);
|
11048
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
|
11049
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_v_runtime_template__ = __webpack_require__(/*! v-runtime-template */ 15);
|
11050
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_js_event_hub__ = __webpack_require__(/*! js/event-hub */ 3);
|
11051
|
+
|
11052
|
+
|
11053
|
+
|
11054
|
+
|
11055
|
+
|
11056
|
+
|
11057
|
+
const componentMixin = {
|
11058
|
+
props: ['componentConfig', 'params'],
|
11059
|
+
data: function () {
|
11060
|
+
return {
|
11061
|
+
asyncTemplate: null
|
11062
|
+
};
|
11063
|
+
},
|
11064
|
+
methods: {
|
11065
|
+
onRerender: function (event) {
|
11066
|
+
if (this.$el.id === event + "__wrapper") {
|
11067
|
+
this.rerender();
|
11068
|
+
}
|
11069
|
+
},
|
11070
|
+
onMatestackUiCoreChannel: function (event) {
|
11071
|
+
if (this.componentConfig["rerender_on"] == event.message) {
|
11072
|
+
this.rerender();
|
11073
|
+
}
|
11074
|
+
},
|
11075
|
+
rerender: function () {
|
11076
|
+
var self = this;
|
11077
|
+
self.params["component_key"] = self.componentConfig["component_key"];
|
11078
|
+
__WEBPACK_IMPORTED_MODULE_1_axios___default()({
|
11079
|
+
method: "get",
|
11080
|
+
url: location.pathname + location.search,
|
11081
|
+
headers: {
|
11082
|
+
'X-CSRF-Token': document.getElementsByName("csrf-token")[0].getAttribute('content')
|
11083
|
+
},
|
11084
|
+
params: { "component_key": self.componentConfig["component_key"] }
|
11085
|
+
}).then(function (response) {
|
11086
|
+
self.asyncTemplate = response["data"];
|
11087
|
+
});
|
11088
|
+
},
|
11089
|
+
rerenderWith: function (newParams) {
|
11090
|
+
Object.assign(this.params, newParams);
|
11091
|
+
this.rerender();
|
11092
|
+
}
|
11093
|
+
},
|
11094
|
+
created: function () {
|
11095
|
+
const self = this;
|
11096
|
+
__WEBPACK_IMPORTED_MODULE_3_js_event_hub__["a" /* default */].$on('rerender', self.onRerender);
|
11097
|
+
__WEBPACK_IMPORTED_MODULE_3_js_event_hub__["a" /* default */].$on('MatestackUiCoreChannel', self.onMatestackUiCoreChannel);
|
11098
|
+
},
|
11099
|
+
beforeDestroy: function () {
|
11100
|
+
const self = this;
|
11101
|
+
__WEBPACK_IMPORTED_MODULE_3_js_event_hub__["a" /* default */].$off('rerender', self.onRerender);
|
11102
|
+
__WEBPACK_IMPORTED_MODULE_3_js_event_hub__["a" /* default */].$off('MatestackUiCoreChannel', self.onMatestackUiCoreChannel);
|
11103
|
+
},
|
11104
|
+
components: {
|
11105
|
+
VRuntimeTemplate: __WEBPACK_IMPORTED_MODULE_2_v_runtime_template__["a" /* default */]
|
11106
|
+
}
|
11107
|
+
};
|
11108
|
+
|
11109
|
+
/* harmony default export */ __webpack_exports__["a"] = (componentMixin);
|
11110
|
+
|
11111
|
+
/***/ }),
|
11112
|
+
/* 2 */
|
11038
11113
|
/*!******************************************!*\
|
11039
11114
|
!*** ../node_modules/axios/lib/utils.js ***!
|
11040
11115
|
\******************************************/
|
@@ -11045,8 +11120,8 @@ Vue.compile = compileToFunctions;
|
|
11045
11120
|
"use strict";
|
11046
11121
|
|
11047
11122
|
|
11048
|
-
var bind = __webpack_require__(/*! ./helpers/bind */
|
11049
|
-
var isBuffer = __webpack_require__(/*! is-buffer */
|
11123
|
+
var bind = __webpack_require__(/*! ./helpers/bind */ 10);
|
11124
|
+
var isBuffer = __webpack_require__(/*! is-buffer */ 21);
|
11050
11125
|
|
11051
11126
|
/*global toString:true*/
|
11052
11127
|
|
@@ -11348,81 +11423,6 @@ module.exports = {
|
|
11348
11423
|
};
|
11349
11424
|
|
11350
11425
|
|
11351
|
-
/***/ }),
|
11352
|
-
/* 2 */
|
11353
|
-
/*!****************************************************************!*\
|
11354
|
-
!*** ../app/concepts/matestack/ui/core/component/component.js ***!
|
11355
|
-
\****************************************************************/
|
11356
|
-
/*! exports provided: default */
|
11357
|
-
/*! exports used: default */
|
11358
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
11359
|
-
|
11360
|
-
"use strict";
|
11361
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__ = __webpack_require__(/*! vue/dist/vue.esm */ 0);
|
11362
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(/*! axios */ 5);
|
11363
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
|
11364
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_v_runtime_template__ = __webpack_require__(/*! v-runtime-template */ 14);
|
11365
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_js_event_hub__ = __webpack_require__(/*! js/event-hub */ 3);
|
11366
|
-
|
11367
|
-
|
11368
|
-
|
11369
|
-
|
11370
|
-
|
11371
|
-
|
11372
|
-
const componentMixin = {
|
11373
|
-
props: ['componentConfig', 'params'],
|
11374
|
-
data: function () {
|
11375
|
-
return {
|
11376
|
-
asyncTemplate: null
|
11377
|
-
};
|
11378
|
-
},
|
11379
|
-
methods: {
|
11380
|
-
onRerender: function (event) {
|
11381
|
-
if (this.$el.id === event + "__wrapper") {
|
11382
|
-
this.rerender();
|
11383
|
-
}
|
11384
|
-
},
|
11385
|
-
onMatestackUiCoreChannel: function (event) {
|
11386
|
-
if (this.componentConfig["rerender_on"] == event.message) {
|
11387
|
-
this.rerender();
|
11388
|
-
}
|
11389
|
-
},
|
11390
|
-
rerender: function () {
|
11391
|
-
var self = this;
|
11392
|
-
self.params["component_key"] = self.componentConfig["component_key"];
|
11393
|
-
__WEBPACK_IMPORTED_MODULE_1_axios___default()({
|
11394
|
-
method: "get",
|
11395
|
-
url: self.componentConfig["origin_url"],
|
11396
|
-
headers: {
|
11397
|
-
'X-CSRF-Token': document.getElementsByName("csrf-token")[0].getAttribute('content')
|
11398
|
-
},
|
11399
|
-
params: self.params
|
11400
|
-
}).then(function (response) {
|
11401
|
-
self.asyncTemplate = response["data"];
|
11402
|
-
});
|
11403
|
-
},
|
11404
|
-
rerenderWith: function (newParams) {
|
11405
|
-
Object.assign(this.params, newParams);
|
11406
|
-
this.rerender();
|
11407
|
-
}
|
11408
|
-
},
|
11409
|
-
created: function () {
|
11410
|
-
const self = this;
|
11411
|
-
__WEBPACK_IMPORTED_MODULE_3_js_event_hub__["a" /* default */].$on('rerender', self.onRerender);
|
11412
|
-
__WEBPACK_IMPORTED_MODULE_3_js_event_hub__["a" /* default */].$on('MatestackUiCoreChannel', self.onMatestackUiCoreChannel);
|
11413
|
-
},
|
11414
|
-
beforeDestroy: function () {
|
11415
|
-
const self = this;
|
11416
|
-
__WEBPACK_IMPORTED_MODULE_3_js_event_hub__["a" /* default */].$off('rerender', self.onRerender);
|
11417
|
-
__WEBPACK_IMPORTED_MODULE_3_js_event_hub__["a" /* default */].$off('MatestackUiCoreChannel', self.onMatestackUiCoreChannel);
|
11418
|
-
},
|
11419
|
-
components: {
|
11420
|
-
VRuntimeTemplate: __WEBPACK_IMPORTED_MODULE_2_v_runtime_template__["a" /* default */]
|
11421
|
-
}
|
11422
|
-
};
|
11423
|
-
|
11424
|
-
/* harmony default export */ __webpack_exports__["a"] = (componentMixin);
|
11425
|
-
|
11426
11426
|
/***/ }),
|
11427
11427
|
/* 3 */
|
11428
11428
|
/*!*********************************************************!*\
|
@@ -12399,7 +12399,7 @@ var index_esm = {
|
|
12399
12399
|
/*! exports used: default */
|
12400
12400
|
/***/ (function(module, exports, __webpack_require__) {
|
12401
12401
|
|
12402
|
-
module.exports = __webpack_require__(/*! ./lib/axios */
|
12402
|
+
module.exports = __webpack_require__(/*! ./lib/axios */ 20);
|
12403
12403
|
|
12404
12404
|
/***/ }),
|
12405
12405
|
/* 6 */
|
@@ -12445,8 +12445,8 @@ module.exports = g;
|
|
12445
12445
|
"use strict";
|
12446
12446
|
/* WEBPACK VAR INJECTION */(function(process) {
|
12447
12447
|
|
12448
|
-
var utils = __webpack_require__(/*! ./utils */
|
12449
|
-
var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */
|
12448
|
+
var utils = __webpack_require__(/*! ./utils */ 2);
|
12449
|
+
var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ 23);
|
12450
12450
|
|
12451
12451
|
var DEFAULT_CONTENT_TYPE = {
|
12452
12452
|
'Content-Type': 'application/x-www-form-urlencoded'
|
@@ -12462,10 +12462,10 @@ function getDefaultAdapter() {
|
|
12462
12462
|
var adapter;
|
12463
12463
|
if (typeof XMLHttpRequest !== 'undefined') {
|
12464
12464
|
// For browsers use XHR adapter
|
12465
|
-
adapter = __webpack_require__(/*! ./adapters/xhr */
|
12465
|
+
adapter = __webpack_require__(/*! ./adapters/xhr */ 11);
|
12466
12466
|
} else if (typeof process !== 'undefined') {
|
12467
12467
|
// For node use HTTP adapter
|
12468
|
-
adapter = __webpack_require__(/*! ./adapters/http */
|
12468
|
+
adapter = __webpack_require__(/*! ./adapters/http */ 11);
|
12469
12469
|
}
|
12470
12470
|
return adapter;
|
12471
12471
|
}
|
@@ -12540,10 +12540,71 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
12540
12540
|
|
12541
12541
|
module.exports = defaults;
|
12542
12542
|
|
12543
|
-
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../../../builder/node_modules/process/browser.js */
|
12543
|
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../../../builder/node_modules/process/browser.js */ 9)))
|
12544
12544
|
|
12545
12545
|
/***/ }),
|
12546
12546
|
/* 8 */
|
12547
|
+
/*!***************************************************************************!*\
|
12548
|
+
!*** ../app/concepts/matestack/ui/core/js/helpers/query-params-helper.js ***!
|
12549
|
+
\***************************************************************************/
|
12550
|
+
/*! exports provided: default */
|
12551
|
+
/*! exports used: default */
|
12552
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
12553
|
+
|
12554
|
+
"use strict";
|
12555
|
+
const updateQueryParams = (key, value, url) => {
|
12556
|
+
if (!url) url = window.location.href;
|
12557
|
+
let re = new RegExp(`([?&])${key}=.*?(&|#|$)(.*)`, "gi"),
|
12558
|
+
hash;
|
12559
|
+
|
12560
|
+
if (re.test(url)) {
|
12561
|
+
if (typeof value !== 'undefined' && value !== null) return url.replace(re, `$1${key}=${value}$2$3`);else {
|
12562
|
+
hash = url.split('#');
|
12563
|
+
url = hash[0].replace(re, '$1$3').replace(/(&|\?)$/, '');
|
12564
|
+
if (typeof hash[1] !== 'undefined' && hash[1] !== null) url += `#${hash[1]}`;
|
12565
|
+
return url;
|
12566
|
+
}
|
12567
|
+
} else {
|
12568
|
+
if (typeof value !== 'undefined' && value !== null) {
|
12569
|
+
const separator = url.indexOf('?') !== -1 ? '&' : '?';
|
12570
|
+
hash = url.split('#');
|
12571
|
+
url = `${hash[0]}${separator}${key}=${value}`;
|
12572
|
+
if (typeof hash[1] !== 'undefined' && hash[1] !== null) url += `#${hash[1]}`;
|
12573
|
+
return url;
|
12574
|
+
} else return url;
|
12575
|
+
}
|
12576
|
+
};
|
12577
|
+
|
12578
|
+
const getQueryParam = (name, url) => {
|
12579
|
+
if (!url) url = window.location.href;
|
12580
|
+
name = name.replace(/[\[\]]/g, '\\$&');
|
12581
|
+
const regex = new RegExp(`[?&]${name}(=([^&#]*)|&|#|$)`),
|
12582
|
+
results = regex.exec(url);
|
12583
|
+
if (!results) return null;
|
12584
|
+
if (!results[2]) return '';
|
12585
|
+
return decodeURIComponent(results[2].replace(/\+/g, ' '));
|
12586
|
+
};
|
12587
|
+
|
12588
|
+
const queryParamsToObject = () => {
|
12589
|
+
const search = window.location.search.substring(1);
|
12590
|
+
if (search.length === 0) {
|
12591
|
+
return {};
|
12592
|
+
} else {
|
12593
|
+
const result = JSON.parse(`{"${search.replace(/&/g, '","').replace(/=/g, '":"')}"}`, (key, value) => {
|
12594
|
+
return key === "" ? value : decodeURIComponent(value);
|
12595
|
+
});
|
12596
|
+
return result;
|
12597
|
+
}
|
12598
|
+
};
|
12599
|
+
|
12600
|
+
/* harmony default export */ __webpack_exports__["a"] = ({
|
12601
|
+
updateQueryParams: updateQueryParams,
|
12602
|
+
getQueryParam: getQueryParam,
|
12603
|
+
queryParamsToObject: queryParamsToObject
|
12604
|
+
});
|
12605
|
+
|
12606
|
+
/***/ }),
|
12607
|
+
/* 9 */
|
12547
12608
|
/*!*****************************************!*\
|
12548
12609
|
!*** ./node_modules/process/browser.js ***!
|
12549
12610
|
\*****************************************/
|
@@ -12738,7 +12799,7 @@ process.umask = function() { return 0; };
|
|
12738
12799
|
|
12739
12800
|
|
12740
12801
|
/***/ }),
|
12741
|
-
/*
|
12802
|
+
/* 10 */
|
12742
12803
|
/*!*************************************************!*\
|
12743
12804
|
!*** ../node_modules/axios/lib/helpers/bind.js ***!
|
12744
12805
|
\*************************************************/
|
@@ -12761,7 +12822,7 @@ module.exports = function bind(fn, thisArg) {
|
|
12761
12822
|
|
12762
12823
|
|
12763
12824
|
/***/ }),
|
12764
|
-
/*
|
12825
|
+
/* 11 */
|
12765
12826
|
/*!*************************************************!*\
|
12766
12827
|
!*** ../node_modules/axios/lib/adapters/xhr.js ***!
|
12767
12828
|
\*************************************************/
|
@@ -12772,13 +12833,13 @@ module.exports = function bind(fn, thisArg) {
|
|
12772
12833
|
"use strict";
|
12773
12834
|
|
12774
12835
|
|
12775
|
-
var utils = __webpack_require__(/*! ./../utils */
|
12776
|
-
var settle = __webpack_require__(/*! ./../core/settle */
|
12777
|
-
var buildURL = __webpack_require__(/*! ./../helpers/buildURL */
|
12778
|
-
var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */
|
12779
|
-
var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */
|
12780
|
-
var createError = __webpack_require__(/*! ../core/createError */
|
12781
|
-
var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__(/*! ./../helpers/btoa */
|
12836
|
+
var utils = __webpack_require__(/*! ./../utils */ 2);
|
12837
|
+
var settle = __webpack_require__(/*! ./../core/settle */ 24);
|
12838
|
+
var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ 26);
|
12839
|
+
var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ 27);
|
12840
|
+
var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ 28);
|
12841
|
+
var createError = __webpack_require__(/*! ../core/createError */ 12);
|
12842
|
+
var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__(/*! ./../helpers/btoa */ 29);
|
12782
12843
|
|
12783
12844
|
module.exports = function xhrAdapter(config) {
|
12784
12845
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
@@ -12875,7 +12936,7 @@ module.exports = function xhrAdapter(config) {
|
|
12875
12936
|
// This is only done if running in a standard browser environment.
|
12876
12937
|
// Specifically not if we're in a web worker, or react-native.
|
12877
12938
|
if (utils.isStandardBrowserEnv()) {
|
12878
|
-
var cookies = __webpack_require__(/*! ./../helpers/cookies */
|
12939
|
+
var cookies = __webpack_require__(/*! ./../helpers/cookies */ 30);
|
12879
12940
|
|
12880
12941
|
// Add xsrf header
|
12881
12942
|
var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ?
|
@@ -12953,7 +13014,7 @@ module.exports = function xhrAdapter(config) {
|
|
12953
13014
|
|
12954
13015
|
|
12955
13016
|
/***/ }),
|
12956
|
-
/*
|
13017
|
+
/* 12 */
|
12957
13018
|
/*!*****************************************************!*\
|
12958
13019
|
!*** ../node_modules/axios/lib/core/createError.js ***!
|
12959
13020
|
\*****************************************************/
|
@@ -12964,7 +13025,7 @@ module.exports = function xhrAdapter(config) {
|
|
12964
13025
|
"use strict";
|
12965
13026
|
|
12966
13027
|
|
12967
|
-
var enhanceError = __webpack_require__(/*! ./enhanceError */
|
13028
|
+
var enhanceError = __webpack_require__(/*! ./enhanceError */ 25);
|
12968
13029
|
|
12969
13030
|
/**
|
12970
13031
|
* Create an Error with the specified message, config, error code, request and response.
|
@@ -12983,7 +13044,7 @@ module.exports = function createError(message, config, code, request, response)
|
|
12983
13044
|
|
12984
13045
|
|
12985
13046
|
/***/ }),
|
12986
|
-
/*
|
13047
|
+
/* 13 */
|
12987
13048
|
/*!****************************************************!*\
|
12988
13049
|
!*** ../node_modules/axios/lib/cancel/isCancel.js ***!
|
12989
13050
|
\****************************************************/
|
@@ -13000,7 +13061,7 @@ module.exports = function isCancel(value) {
|
|
13000
13061
|
|
13001
13062
|
|
13002
13063
|
/***/ }),
|
13003
|
-
/*
|
13064
|
+
/* 14 */
|
13004
13065
|
/*!**************************************************!*\
|
13005
13066
|
!*** ../node_modules/axios/lib/cancel/Cancel.js ***!
|
13006
13067
|
\**************************************************/
|
@@ -13031,7 +13092,7 @@ module.exports = Cancel;
|
|
13031
13092
|
|
13032
13093
|
|
13033
13094
|
/***/ }),
|
13034
|
-
/*
|
13095
|
+
/* 15 */
|
13035
13096
|
/*!************************************************************************!*\
|
13036
13097
|
!*** ../node_modules/v-runtime-template/dist/v-runtime-template.es.js ***!
|
13037
13098
|
\************************************************************************/
|
@@ -13106,7 +13167,96 @@ var index = {
|
|
13106
13167
|
|
13107
13168
|
|
13108
13169
|
/***/ }),
|
13109
|
-
/*
|
13170
|
+
/* 16 */
|
13171
|
+
/*!********************************************************!*\
|
13172
|
+
!*** ../app/concepts/matestack/ui/core/async/async.js ***!
|
13173
|
+
\********************************************************/
|
13174
|
+
/*! exports provided: default */
|
13175
|
+
/*! exports used: default */
|
13176
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
13177
|
+
|
13178
|
+
"use strict";
|
13179
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__ = __webpack_require__(/*! vue/dist/vue.esm */ 0);
|
13180
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_js_event_hub__ = __webpack_require__(/*! js/event-hub */ 3);
|
13181
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_component_component__ = __webpack_require__(/*! component/component */ 1);
|
13182
|
+
|
13183
|
+
|
13184
|
+
|
13185
|
+
|
13186
|
+
|
13187
|
+
|
13188
|
+
const componentDef = {
|
13189
|
+
mixins: [__WEBPACK_IMPORTED_MODULE_2_component_component__["a" /* default */]],
|
13190
|
+
data: function () {
|
13191
|
+
return {
|
13192
|
+
showing: true,
|
13193
|
+
hide_after_timeout: null,
|
13194
|
+
event: {
|
13195
|
+
data: {}
|
13196
|
+
}
|
13197
|
+
};
|
13198
|
+
},
|
13199
|
+
methods: {
|
13200
|
+
show: function (event_data) {
|
13201
|
+
const self = this;
|
13202
|
+
if (this.showing === true) {
|
13203
|
+
return;
|
13204
|
+
}
|
13205
|
+
this.showing = true;
|
13206
|
+
this.event.data = event_data;
|
13207
|
+
if (this.componentConfig["defer"] != undefined) {
|
13208
|
+
if (!isNaN(this.componentConfig["defer"])) {
|
13209
|
+
this.startDefer();
|
13210
|
+
}
|
13211
|
+
}
|
13212
|
+
if (this.componentConfig["hide_after"] != undefined) {
|
13213
|
+
self.hide_after_timeout = setTimeout(function () {
|
13214
|
+
self.hide();
|
13215
|
+
}, parseInt(this.componentConfig["hide_after"]));
|
13216
|
+
}
|
13217
|
+
},
|
13218
|
+
hide: function () {
|
13219
|
+
this.showing = false;
|
13220
|
+
this.event.data = {};
|
13221
|
+
},
|
13222
|
+
startDefer: function () {
|
13223
|
+
const self = this;
|
13224
|
+
setTimeout(function () {
|
13225
|
+
self.rerender();
|
13226
|
+
}, parseInt(this.componentConfig["defer"]));
|
13227
|
+
}
|
13228
|
+
},
|
13229
|
+
created: function () {
|
13230
|
+
const self = this;
|
13231
|
+
__WEBPACK_IMPORTED_MODULE_1_js_event_hub__["a" /* default */].$on(this.componentConfig["rerender_on"], self.rerender);
|
13232
|
+
__WEBPACK_IMPORTED_MODULE_1_js_event_hub__["a" /* default */].$on(this.componentConfig["show_on"], self.show);
|
13233
|
+
__WEBPACK_IMPORTED_MODULE_1_js_event_hub__["a" /* default */].$on(this.componentConfig["hide_on"], self.hide);
|
13234
|
+
if (this.componentConfig["show_on"] != undefined) {
|
13235
|
+
this.showing = false;
|
13236
|
+
}
|
13237
|
+
if (this.componentConfig["defer"] != undefined) {
|
13238
|
+
if (!isNaN(this.componentConfig["defer"])) {
|
13239
|
+
if (this.componentConfig["show_on"] == undefined) {
|
13240
|
+
this.startDefer();
|
13241
|
+
}
|
13242
|
+
}
|
13243
|
+
}
|
13244
|
+
},
|
13245
|
+
beforeDestroy: function () {
|
13246
|
+
const self = this;
|
13247
|
+
clearTimeout(self.hide_after_timeout);
|
13248
|
+
__WEBPACK_IMPORTED_MODULE_1_js_event_hub__["a" /* default */].$off(this.componentConfig["rerender_on"], self.rerender);
|
13249
|
+
__WEBPACK_IMPORTED_MODULE_1_js_event_hub__["a" /* default */].$off(this.componentConfig["show_on"], self.show);
|
13250
|
+
__WEBPACK_IMPORTED_MODULE_1_js_event_hub__["a" /* default */].$off(this.componentConfig["hide_on"], self.hide);
|
13251
|
+
}
|
13252
|
+
};
|
13253
|
+
|
13254
|
+
let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */].component('matestack-ui-core-async', componentDef);
|
13255
|
+
|
13256
|
+
/* harmony default export */ __webpack_exports__["a"] = (componentDef);
|
13257
|
+
|
13258
|
+
/***/ }),
|
13259
|
+
/* 17 */
|
13110
13260
|
/*!*********************************************!*\
|
13111
13261
|
!*** ./app/javascript/packs/application.js ***!
|
13112
13262
|
\*********************************************/
|
@@ -13121,8 +13271,8 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
13121
13271
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_axios__ = __webpack_require__(/*! axios */ 5);
|
13122
13272
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_axios__);
|
13123
13273
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_js_event_hub__ = __webpack_require__(/*! js/event-hub */ 3);
|
13124
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_component_component__ = __webpack_require__(/*! component/component */
|
13125
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_js_core__ = __webpack_require__(/*! js/core */
|
13274
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_component_component__ = __webpack_require__(/*! component/component */ 1);
|
13275
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_js_core__ = __webpack_require__(/*! js/core */ 38);
|
13126
13276
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Vue", function() { return __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a"]; });
|
13127
13277
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Vuex", function() { return __WEBPACK_IMPORTED_MODULE_1_vuex__["a"]; });
|
13128
13278
|
/* harmony reexport (default from non-hamory) */ __webpack_require__.d(__webpack_exports__, "axios", function() { return __WEBPACK_IMPORTED_MODULE_2_axios___default.a; });
|
@@ -13148,7 +13298,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
13148
13298
|
|
13149
13299
|
|
13150
13300
|
/***/ }),
|
13151
|
-
/*
|
13301
|
+
/* 18 */
|
13152
13302
|
/*!************************************************!*\
|
13153
13303
|
!*** ./node_modules/timers-browserify/main.js ***!
|
13154
13304
|
\************************************************/
|
@@ -13209,7 +13359,7 @@ exports._unrefActive = exports.active = function(item) {
|
|
13209
13359
|
};
|
13210
13360
|
|
13211
13361
|
// setimmediate attaches itself to the global object
|
13212
|
-
__webpack_require__(/*! setimmediate */
|
13362
|
+
__webpack_require__(/*! setimmediate */ 19);
|
13213
13363
|
// On some exotic environments, it's not clear which object `setimmediate` was
|
13214
13364
|
// able to install onto. Search each possibility in the same order as the
|
13215
13365
|
// `setimmediate` library.
|
@@ -13223,7 +13373,7 @@ exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
|
|
13223
13373
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../webpack/buildin/global.js */ 6)))
|
13224
13374
|
|
13225
13375
|
/***/ }),
|
13226
|
-
/*
|
13376
|
+
/* 19 */
|
13227
13377
|
/*!***************************************************!*\
|
13228
13378
|
!*** ./node_modules/setimmediate/setImmediate.js ***!
|
13229
13379
|
\***************************************************/
|
@@ -13418,10 +13568,10 @@ exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
|
|
13418
13568
|
attachTo.clearImmediate = clearImmediate;
|
13419
13569
|
}(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self));
|
13420
13570
|
|
13421
|
-
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../webpack/buildin/global.js */ 6), __webpack_require__(/*! ./../process/browser.js */
|
13571
|
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../webpack/buildin/global.js */ 6), __webpack_require__(/*! ./../process/browser.js */ 9)))
|
13422
13572
|
|
13423
13573
|
/***/ }),
|
13424
|
-
/*
|
13574
|
+
/* 20 */
|
13425
13575
|
/*!******************************************!*\
|
13426
13576
|
!*** ../node_modules/axios/lib/axios.js ***!
|
13427
13577
|
\******************************************/
|
@@ -13432,9 +13582,9 @@ exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
|
|
13432
13582
|
"use strict";
|
13433
13583
|
|
13434
13584
|
|
13435
|
-
var utils = __webpack_require__(/*! ./utils */
|
13436
|
-
var bind = __webpack_require__(/*! ./helpers/bind */
|
13437
|
-
var Axios = __webpack_require__(/*! ./core/Axios */
|
13585
|
+
var utils = __webpack_require__(/*! ./utils */ 2);
|
13586
|
+
var bind = __webpack_require__(/*! ./helpers/bind */ 10);
|
13587
|
+
var Axios = __webpack_require__(/*! ./core/Axios */ 22);
|
13438
13588
|
var defaults = __webpack_require__(/*! ./defaults */ 7);
|
13439
13589
|
|
13440
13590
|
/**
|
@@ -13468,15 +13618,15 @@ axios.create = function create(instanceConfig) {
|
|
13468
13618
|
};
|
13469
13619
|
|
13470
13620
|
// Expose Cancel & CancelToken
|
13471
|
-
axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */
|
13472
|
-
axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */
|
13473
|
-
axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */
|
13621
|
+
axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ 14);
|
13622
|
+
axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ 36);
|
13623
|
+
axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ 13);
|
13474
13624
|
|
13475
13625
|
// Expose all/spread
|
13476
13626
|
axios.all = function all(promises) {
|
13477
13627
|
return Promise.all(promises);
|
13478
13628
|
};
|
13479
|
-
axios.spread = __webpack_require__(/*! ./helpers/spread */
|
13629
|
+
axios.spread = __webpack_require__(/*! ./helpers/spread */ 37);
|
13480
13630
|
|
13481
13631
|
module.exports = axios;
|
13482
13632
|
|
@@ -13485,7 +13635,7 @@ module.exports.default = axios;
|
|
13485
13635
|
|
13486
13636
|
|
13487
13637
|
/***/ }),
|
13488
|
-
/*
|
13638
|
+
/* 21 */
|
13489
13639
|
/*!******************************************!*\
|
13490
13640
|
!*** ../node_modules/is-buffer/index.js ***!
|
13491
13641
|
\******************************************/
|
@@ -13517,7 +13667,7 @@ function isSlowBuffer (obj) {
|
|
13517
13667
|
|
13518
13668
|
|
13519
13669
|
/***/ }),
|
13520
|
-
/*
|
13670
|
+
/* 22 */
|
13521
13671
|
/*!***********************************************!*\
|
13522
13672
|
!*** ../node_modules/axios/lib/core/Axios.js ***!
|
13523
13673
|
\***********************************************/
|
@@ -13529,9 +13679,9 @@ function isSlowBuffer (obj) {
|
|
13529
13679
|
|
13530
13680
|
|
13531
13681
|
var defaults = __webpack_require__(/*! ./../defaults */ 7);
|
13532
|
-
var utils = __webpack_require__(/*! ./../utils */
|
13533
|
-
var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */
|
13534
|
-
var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */
|
13682
|
+
var utils = __webpack_require__(/*! ./../utils */ 2);
|
13683
|
+
var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ 31);
|
13684
|
+
var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ 32);
|
13535
13685
|
|
13536
13686
|
/**
|
13537
13687
|
* Create a new instance of Axios
|
@@ -13608,7 +13758,7 @@ module.exports = Axios;
|
|
13608
13758
|
|
13609
13759
|
|
13610
13760
|
/***/ }),
|
13611
|
-
/*
|
13761
|
+
/* 23 */
|
13612
13762
|
/*!****************************************************************!*\
|
13613
13763
|
!*** ../node_modules/axios/lib/helpers/normalizeHeaderName.js ***!
|
13614
13764
|
\****************************************************************/
|
@@ -13619,7 +13769,7 @@ module.exports = Axios;
|
|
13619
13769
|
"use strict";
|
13620
13770
|
|
13621
13771
|
|
13622
|
-
var utils = __webpack_require__(/*! ../utils */
|
13772
|
+
var utils = __webpack_require__(/*! ../utils */ 2);
|
13623
13773
|
|
13624
13774
|
module.exports = function normalizeHeaderName(headers, normalizedName) {
|
13625
13775
|
utils.forEach(headers, function processHeader(value, name) {
|
@@ -13632,7 +13782,7 @@ module.exports = function normalizeHeaderName(headers, normalizedName) {
|
|
13632
13782
|
|
13633
13783
|
|
13634
13784
|
/***/ }),
|
13635
|
-
/*
|
13785
|
+
/* 24 */
|
13636
13786
|
/*!************************************************!*\
|
13637
13787
|
!*** ../node_modules/axios/lib/core/settle.js ***!
|
13638
13788
|
\************************************************/
|
@@ -13643,7 +13793,7 @@ module.exports = function normalizeHeaderName(headers, normalizedName) {
|
|
13643
13793
|
"use strict";
|
13644
13794
|
|
13645
13795
|
|
13646
|
-
var createError = __webpack_require__(/*! ./createError */
|
13796
|
+
var createError = __webpack_require__(/*! ./createError */ 12);
|
13647
13797
|
|
13648
13798
|
/**
|
13649
13799
|
* Resolve or reject a Promise based on response status.
|
@@ -13670,7 +13820,7 @@ module.exports = function settle(resolve, reject, response) {
|
|
13670
13820
|
|
13671
13821
|
|
13672
13822
|
/***/ }),
|
13673
|
-
/*
|
13823
|
+
/* 25 */
|
13674
13824
|
/*!******************************************************!*\
|
13675
13825
|
!*** ../node_modules/axios/lib/core/enhanceError.js ***!
|
13676
13826
|
\******************************************************/
|
@@ -13703,7 +13853,7 @@ module.exports = function enhanceError(error, config, code, request, response) {
|
|
13703
13853
|
|
13704
13854
|
|
13705
13855
|
/***/ }),
|
13706
|
-
/*
|
13856
|
+
/* 26 */
|
13707
13857
|
/*!*****************************************************!*\
|
13708
13858
|
!*** ../node_modules/axios/lib/helpers/buildURL.js ***!
|
13709
13859
|
\*****************************************************/
|
@@ -13714,7 +13864,7 @@ module.exports = function enhanceError(error, config, code, request, response) {
|
|
13714
13864
|
"use strict";
|
13715
13865
|
|
13716
13866
|
|
13717
|
-
var utils = __webpack_require__(/*! ./../utils */
|
13867
|
+
var utils = __webpack_require__(/*! ./../utils */ 2);
|
13718
13868
|
|
13719
13869
|
function encode(val) {
|
13720
13870
|
return encodeURIComponent(val).
|
@@ -13781,7 +13931,7 @@ module.exports = function buildURL(url, params, paramsSerializer) {
|
|
13781
13931
|
|
13782
13932
|
|
13783
13933
|
/***/ }),
|
13784
|
-
/*
|
13934
|
+
/* 27 */
|
13785
13935
|
/*!*********************************************************!*\
|
13786
13936
|
!*** ../node_modules/axios/lib/helpers/parseHeaders.js ***!
|
13787
13937
|
\*********************************************************/
|
@@ -13792,7 +13942,7 @@ module.exports = function buildURL(url, params, paramsSerializer) {
|
|
13792
13942
|
"use strict";
|
13793
13943
|
|
13794
13944
|
|
13795
|
-
var utils = __webpack_require__(/*! ./../utils */
|
13945
|
+
var utils = __webpack_require__(/*! ./../utils */ 2);
|
13796
13946
|
|
13797
13947
|
// Headers whose duplicates are ignored by node
|
13798
13948
|
// c.f. https://nodejs.org/api/http.html#http_message_headers
|
@@ -13846,7 +13996,7 @@ module.exports = function parseHeaders(headers) {
|
|
13846
13996
|
|
13847
13997
|
|
13848
13998
|
/***/ }),
|
13849
|
-
/*
|
13999
|
+
/* 28 */
|
13850
14000
|
/*!************************************************************!*\
|
13851
14001
|
!*** ../node_modules/axios/lib/helpers/isURLSameOrigin.js ***!
|
13852
14002
|
\************************************************************/
|
@@ -13857,7 +14007,7 @@ module.exports = function parseHeaders(headers) {
|
|
13857
14007
|
"use strict";
|
13858
14008
|
|
13859
14009
|
|
13860
|
-
var utils = __webpack_require__(/*! ./../utils */
|
14010
|
+
var utils = __webpack_require__(/*! ./../utils */ 2);
|
13861
14011
|
|
13862
14012
|
module.exports = (
|
13863
14013
|
utils.isStandardBrowserEnv() ?
|
@@ -13926,7 +14076,7 @@ module.exports = (
|
|
13926
14076
|
|
13927
14077
|
|
13928
14078
|
/***/ }),
|
13929
|
-
/*
|
14079
|
+
/* 29 */
|
13930
14080
|
/*!*************************************************!*\
|
13931
14081
|
!*** ../node_modules/axios/lib/helpers/btoa.js ***!
|
13932
14082
|
\*************************************************/
|
@@ -13974,7 +14124,7 @@ module.exports = btoa;
|
|
13974
14124
|
|
13975
14125
|
|
13976
14126
|
/***/ }),
|
13977
|
-
/*
|
14127
|
+
/* 30 */
|
13978
14128
|
/*!****************************************************!*\
|
13979
14129
|
!*** ../node_modules/axios/lib/helpers/cookies.js ***!
|
13980
14130
|
\****************************************************/
|
@@ -13985,7 +14135,7 @@ module.exports = btoa;
|
|
13985
14135
|
"use strict";
|
13986
14136
|
|
13987
14137
|
|
13988
|
-
var utils = __webpack_require__(/*! ./../utils */
|
14138
|
+
var utils = __webpack_require__(/*! ./../utils */ 2);
|
13989
14139
|
|
13990
14140
|
module.exports = (
|
13991
14141
|
utils.isStandardBrowserEnv() ?
|
@@ -14039,7 +14189,7 @@ module.exports = (
|
|
14039
14189
|
|
14040
14190
|
|
14041
14191
|
/***/ }),
|
14042
|
-
/*
|
14192
|
+
/* 31 */
|
14043
14193
|
/*!************************************************************!*\
|
14044
14194
|
!*** ../node_modules/axios/lib/core/InterceptorManager.js ***!
|
14045
14195
|
\************************************************************/
|
@@ -14050,7 +14200,7 @@ module.exports = (
|
|
14050
14200
|
"use strict";
|
14051
14201
|
|
14052
14202
|
|
14053
|
-
var utils = __webpack_require__(/*! ./../utils */
|
14203
|
+
var utils = __webpack_require__(/*! ./../utils */ 2);
|
14054
14204
|
|
14055
14205
|
function InterceptorManager() {
|
14056
14206
|
this.handlers = [];
|
@@ -14103,7 +14253,7 @@ module.exports = InterceptorManager;
|
|
14103
14253
|
|
14104
14254
|
|
14105
14255
|
/***/ }),
|
14106
|
-
/*
|
14256
|
+
/* 32 */
|
14107
14257
|
/*!*********************************************************!*\
|
14108
14258
|
!*** ../node_modules/axios/lib/core/dispatchRequest.js ***!
|
14109
14259
|
\*********************************************************/
|
@@ -14114,12 +14264,12 @@ module.exports = InterceptorManager;
|
|
14114
14264
|
"use strict";
|
14115
14265
|
|
14116
14266
|
|
14117
|
-
var utils = __webpack_require__(/*! ./../utils */
|
14118
|
-
var transformData = __webpack_require__(/*! ./transformData */
|
14119
|
-
var isCancel = __webpack_require__(/*! ../cancel/isCancel */
|
14267
|
+
var utils = __webpack_require__(/*! ./../utils */ 2);
|
14268
|
+
var transformData = __webpack_require__(/*! ./transformData */ 33);
|
14269
|
+
var isCancel = __webpack_require__(/*! ../cancel/isCancel */ 13);
|
14120
14270
|
var defaults = __webpack_require__(/*! ../defaults */ 7);
|
14121
|
-
var isAbsoluteURL = __webpack_require__(/*! ./../helpers/isAbsoluteURL */
|
14122
|
-
var combineURLs = __webpack_require__(/*! ./../helpers/combineURLs */
|
14271
|
+
var isAbsoluteURL = __webpack_require__(/*! ./../helpers/isAbsoluteURL */ 34);
|
14272
|
+
var combineURLs = __webpack_require__(/*! ./../helpers/combineURLs */ 35);
|
14123
14273
|
|
14124
14274
|
/**
|
14125
14275
|
* Throws a `Cancel` if cancellation has been requested.
|
@@ -14201,7 +14351,7 @@ module.exports = function dispatchRequest(config) {
|
|
14201
14351
|
|
14202
14352
|
|
14203
14353
|
/***/ }),
|
14204
|
-
/*
|
14354
|
+
/* 33 */
|
14205
14355
|
/*!*******************************************************!*\
|
14206
14356
|
!*** ../node_modules/axios/lib/core/transformData.js ***!
|
14207
14357
|
\*******************************************************/
|
@@ -14212,7 +14362,7 @@ module.exports = function dispatchRequest(config) {
|
|
14212
14362
|
"use strict";
|
14213
14363
|
|
14214
14364
|
|
14215
|
-
var utils = __webpack_require__(/*! ./../utils */
|
14365
|
+
var utils = __webpack_require__(/*! ./../utils */ 2);
|
14216
14366
|
|
14217
14367
|
/**
|
14218
14368
|
* Transform the data for a request or a response
|
@@ -14233,7 +14383,7 @@ module.exports = function transformData(data, headers, fns) {
|
|
14233
14383
|
|
14234
14384
|
|
14235
14385
|
/***/ }),
|
14236
|
-
/*
|
14386
|
+
/* 34 */
|
14237
14387
|
/*!**********************************************************!*\
|
14238
14388
|
!*** ../node_modules/axios/lib/helpers/isAbsoluteURL.js ***!
|
14239
14389
|
\**********************************************************/
|
@@ -14259,7 +14409,7 @@ module.exports = function isAbsoluteURL(url) {
|
|
14259
14409
|
|
14260
14410
|
|
14261
14411
|
/***/ }),
|
14262
|
-
/*
|
14412
|
+
/* 35 */
|
14263
14413
|
/*!********************************************************!*\
|
14264
14414
|
!*** ../node_modules/axios/lib/helpers/combineURLs.js ***!
|
14265
14415
|
\********************************************************/
|
@@ -14285,7 +14435,7 @@ module.exports = function combineURLs(baseURL, relativeURL) {
|
|
14285
14435
|
|
14286
14436
|
|
14287
14437
|
/***/ }),
|
14288
|
-
/*
|
14438
|
+
/* 36 */
|
14289
14439
|
/*!*******************************************************!*\
|
14290
14440
|
!*** ../node_modules/axios/lib/cancel/CancelToken.js ***!
|
14291
14441
|
\*******************************************************/
|
@@ -14296,7 +14446,7 @@ module.exports = function combineURLs(baseURL, relativeURL) {
|
|
14296
14446
|
"use strict";
|
14297
14447
|
|
14298
14448
|
|
14299
|
-
var Cancel = __webpack_require__(/*! ./Cancel */
|
14449
|
+
var Cancel = __webpack_require__(/*! ./Cancel */ 14);
|
14300
14450
|
|
14301
14451
|
/**
|
14302
14452
|
* A `CancelToken` is an object that can be used to request cancellation of an operation.
|
@@ -14354,7 +14504,7 @@ module.exports = CancelToken;
|
|
14354
14504
|
|
14355
14505
|
|
14356
14506
|
/***/ }),
|
14357
|
-
/*
|
14507
|
+
/* 37 */
|
14358
14508
|
/*!***************************************************!*\
|
14359
14509
|
!*** ../node_modules/axios/lib/helpers/spread.js ***!
|
14360
14510
|
\***************************************************/
|
@@ -14393,7 +14543,7 @@ module.exports = function spread(callback) {
|
|
14393
14543
|
|
14394
14544
|
|
14395
14545
|
/***/ }),
|
14396
|
-
/*
|
14546
|
+
/* 38 */
|
14397
14547
|
/*!****************************************************!*\
|
14398
14548
|
!*** ../app/concepts/matestack/ui/core/js/core.js ***!
|
14399
14549
|
\****************************************************/
|
@@ -14402,18 +14552,24 @@ module.exports = function spread(callback) {
|
|
14402
14552
|
|
14403
14553
|
"use strict";
|
14404
14554
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__ = __webpack_require__(/*! vue/dist/vue.esm */ 0);
|
14405
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_app_app__ = __webpack_require__(/*! app/app */
|
14406
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_async_async__ = __webpack_require__(/*! async/async */
|
14407
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_page_content__ = __webpack_require__(/*! page/content */
|
14408
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_app_store__ = __webpack_require__(/*! app/store */
|
14409
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_component_component__ = __webpack_require__(/*! component/component */
|
14410
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_component_anonym_dynamic_component__ = __webpack_require__(/*! component/anonym-dynamic-component */
|
14411
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_html_html__ = __webpack_require__(/*! html/html */
|
14412
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_transition_transition__ = __webpack_require__(/*! transition/transition */
|
14413
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_action_action__ = __webpack_require__(/*! action/action */
|
14414
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_form_form__ = __webpack_require__(/*! form/form */
|
14415
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_view_view__ = __webpack_require__(/*! view/view */
|
14416
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_onclick_onclick__ = __webpack_require__(/*! onclick/onclick */
|
14555
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_app_app__ = __webpack_require__(/*! app/app */ 39);
|
14556
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_async_async__ = __webpack_require__(/*! async/async */ 16);
|
14557
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_page_content__ = __webpack_require__(/*! page/content */ 40);
|
14558
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_app_store__ = __webpack_require__(/*! app/store */ 41);
|
14559
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_component_component__ = __webpack_require__(/*! component/component */ 1);
|
14560
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_component_anonym_dynamic_component__ = __webpack_require__(/*! component/anonym-dynamic-component */ 42);
|
14561
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_html_html__ = __webpack_require__(/*! html/html */ 43);
|
14562
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_transition_transition__ = __webpack_require__(/*! transition/transition */ 44);
|
14563
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_action_action__ = __webpack_require__(/*! action/action */ 45);
|
14564
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_form_form__ = __webpack_require__(/*! form/form */ 46);
|
14565
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_view_view__ = __webpack_require__(/*! view/view */ 47);
|
14566
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_onclick_onclick__ = __webpack_require__(/*! onclick/onclick */ 48);
|
14567
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_collection_content_content__ = __webpack_require__(/*! collection/content/content */ 49);
|
14568
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_collection_filter_filter__ = __webpack_require__(/*! collection/filter/filter */ 50);
|
14569
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_collection_order_order__ = __webpack_require__(/*! collection/order/order */ 51);
|
14570
|
+
|
14571
|
+
|
14572
|
+
|
14417
14573
|
|
14418
14574
|
|
14419
14575
|
|
@@ -14442,7 +14598,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
14442
14598
|
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */]);
|
14443
14599
|
|
14444
14600
|
/***/ }),
|
14445
|
-
/*
|
14601
|
+
/* 39 */
|
14446
14602
|
/*!****************************************************!*\
|
14447
14603
|
!*** ../app/concepts/matestack/ui/core/app/app.js ***!
|
14448
14604
|
\****************************************************/
|
@@ -14453,7 +14609,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
14453
14609
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__ = __webpack_require__(/*! vue/dist/vue.esm */ 0);
|
14454
14610
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(/*! axios */ 5);
|
14455
14611
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
|
14456
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_v_runtime_template__ = __webpack_require__(/*! v-runtime-template */
|
14612
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_v_runtime_template__ = __webpack_require__(/*! v-runtime-template */ 15);
|
14457
14613
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_vuex__ = __webpack_require__(/*! vuex */ 4);
|
14458
14614
|
|
14459
14615
|
|
@@ -14484,77 +14640,7 @@ let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */
|
|
14484
14640
|
/* unused harmony default export */ var _unused_webpack_default_export = (componentDef);
|
14485
14641
|
|
14486
14642
|
/***/ }),
|
14487
|
-
/*
|
14488
|
-
/*!********************************************************!*\
|
14489
|
-
!*** ../app/concepts/matestack/ui/core/async/async.js ***!
|
14490
|
-
\********************************************************/
|
14491
|
-
/*! exports provided: default */
|
14492
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
14493
|
-
|
14494
|
-
"use strict";
|
14495
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__ = __webpack_require__(/*! vue/dist/vue.esm */ 0);
|
14496
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_js_event_hub__ = __webpack_require__(/*! js/event-hub */ 3);
|
14497
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_component_component__ = __webpack_require__(/*! component/component */ 2);
|
14498
|
-
|
14499
|
-
|
14500
|
-
|
14501
|
-
|
14502
|
-
|
14503
|
-
|
14504
|
-
const componentDef = {
|
14505
|
-
mixins: [__WEBPACK_IMPORTED_MODULE_2_component_component__["a" /* default */]],
|
14506
|
-
data: function () {
|
14507
|
-
return {
|
14508
|
-
showing: true,
|
14509
|
-
hide_after_timeout: null,
|
14510
|
-
event: {
|
14511
|
-
data: {}
|
14512
|
-
}
|
14513
|
-
};
|
14514
|
-
},
|
14515
|
-
methods: {
|
14516
|
-
show: function (event_data) {
|
14517
|
-
const self = this;
|
14518
|
-
this.showing = true;
|
14519
|
-
this.event.data = event_data;
|
14520
|
-
if (this.componentConfig["hide_after"] != undefined) {
|
14521
|
-
self.hide_after_timeout = setTimeout(function () {
|
14522
|
-
self.hide();
|
14523
|
-
}, parseInt(this.componentConfig["hide_after"]));
|
14524
|
-
}
|
14525
|
-
},
|
14526
|
-
hide: function () {
|
14527
|
-
this.showing = false;
|
14528
|
-
this.event.data = {};
|
14529
|
-
}
|
14530
|
-
},
|
14531
|
-
created: function () {
|
14532
|
-
const self = this;
|
14533
|
-
__WEBPACK_IMPORTED_MODULE_1_js_event_hub__["a" /* default */].$on(this.componentConfig["rerender_on"], self.rerender);
|
14534
|
-
__WEBPACK_IMPORTED_MODULE_1_js_event_hub__["a" /* default */].$on(this.componentConfig["show_on"], self.show);
|
14535
|
-
__WEBPACK_IMPORTED_MODULE_1_js_event_hub__["a" /* default */].$on(this.componentConfig["hide_on"], self.hide);
|
14536
|
-
if (this.componentConfig["show_on"] != undefined) {
|
14537
|
-
this.showing = false;
|
14538
|
-
}
|
14539
|
-
if (this.componentConfig["hide_on"] != undefined) {
|
14540
|
-
this.showing = true;
|
14541
|
-
}
|
14542
|
-
},
|
14543
|
-
beforeDestroy: function () {
|
14544
|
-
const self = this;
|
14545
|
-
clearTimeout(self.hide_after_timeout);
|
14546
|
-
__WEBPACK_IMPORTED_MODULE_1_js_event_hub__["a" /* default */].$off(this.componentConfig["rerender_on"], self.rerender);
|
14547
|
-
__WEBPACK_IMPORTED_MODULE_1_js_event_hub__["a" /* default */].$off(this.componentConfig["show_on"], self.show);
|
14548
|
-
__WEBPACK_IMPORTED_MODULE_1_js_event_hub__["a" /* default */].$off(this.componentConfig["hide_on"], self.hide);
|
14549
|
-
}
|
14550
|
-
};
|
14551
|
-
|
14552
|
-
let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */].component('matestack-ui-core-async', componentDef);
|
14553
|
-
|
14554
|
-
/* unused harmony default export */ var _unused_webpack_default_export = (componentDef);
|
14555
|
-
|
14556
|
-
/***/ }),
|
14557
|
-
/* 39 */
|
14643
|
+
/* 40 */
|
14558
14644
|
/*!*********************************************************!*\
|
14559
14645
|
!*** ../app/concepts/matestack/ui/core/page/content.js ***!
|
14560
14646
|
\*********************************************************/
|
@@ -14564,7 +14650,7 @@ let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */
|
|
14564
14650
|
"use strict";
|
14565
14651
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__ = __webpack_require__(/*! vue/dist/vue.esm */ 0);
|
14566
14652
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vuex__ = __webpack_require__(/*! vuex */ 4);
|
14567
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_component_component__ = __webpack_require__(/*! component/component */
|
14653
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_component_component__ = __webpack_require__(/*! component/component */ 1);
|
14568
14654
|
|
14569
14655
|
|
14570
14656
|
|
@@ -14584,7 +14670,7 @@ let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */
|
|
14584
14670
|
/* unused harmony default export */ var _unused_webpack_default_export = (componentDef);
|
14585
14671
|
|
14586
14672
|
/***/ }),
|
14587
|
-
/*
|
14673
|
+
/* 41 */
|
14588
14674
|
/*!******************************************************!*\
|
14589
14675
|
!*** ../app/concepts/matestack/ui/core/app/store.js ***!
|
14590
14676
|
\******************************************************/
|
@@ -14669,7 +14755,7 @@ const store = new __WEBPACK_IMPORTED_MODULE_1_vuex__["a" /* default */].Store({
|
|
14669
14755
|
/* harmony default export */ __webpack_exports__["a"] = (store);
|
14670
14756
|
|
14671
14757
|
/***/ }),
|
14672
|
-
/*
|
14758
|
+
/* 42 */
|
14673
14759
|
/*!*******************************************************************************!*\
|
14674
14760
|
!*** ../app/concepts/matestack/ui/core/component/anonym-dynamic-component.js ***!
|
14675
14761
|
\*******************************************************************************/
|
@@ -14678,7 +14764,7 @@ const store = new __WEBPACK_IMPORTED_MODULE_1_vuex__["a" /* default */].Store({
|
|
14678
14764
|
|
14679
14765
|
"use strict";
|
14680
14766
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__ = __webpack_require__(/*! vue/dist/vue.esm */ 0);
|
14681
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_component_component__ = __webpack_require__(/*! component/component */
|
14767
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_component_component__ = __webpack_require__(/*! component/component */ 1);
|
14682
14768
|
|
14683
14769
|
|
14684
14770
|
|
@@ -14691,7 +14777,7 @@ let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */
|
|
14691
14777
|
/* unused harmony default export */ var _unused_webpack_default_export = (componentDef);
|
14692
14778
|
|
14693
14779
|
/***/ }),
|
14694
|
-
/*
|
14780
|
+
/* 43 */
|
14695
14781
|
/*!******************************************************!*\
|
14696
14782
|
!*** ../app/concepts/matestack/ui/core/html/html.js ***!
|
14697
14783
|
\******************************************************/
|
@@ -14700,7 +14786,7 @@ let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */
|
|
14700
14786
|
|
14701
14787
|
"use strict";
|
14702
14788
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__ = __webpack_require__(/*! vue/dist/vue.esm */ 0);
|
14703
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_component_component__ = __webpack_require__(/*! component/component */
|
14789
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_component_component__ = __webpack_require__(/*! component/component */ 1);
|
14704
14790
|
|
14705
14791
|
|
14706
14792
|
|
@@ -14713,7 +14799,7 @@ let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */
|
|
14713
14799
|
/* unused harmony default export */ var _unused_webpack_default_export = (component);
|
14714
14800
|
|
14715
14801
|
/***/ }),
|
14716
|
-
/*
|
14802
|
+
/* 44 */
|
14717
14803
|
/*!******************************************************************!*\
|
14718
14804
|
!*** ../app/concepts/matestack/ui/core/transition/transition.js ***!
|
14719
14805
|
\******************************************************************/
|
@@ -14723,7 +14809,7 @@ let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */
|
|
14723
14809
|
"use strict";
|
14724
14810
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__ = __webpack_require__(/*! vue/dist/vue.esm */ 0);
|
14725
14811
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vuex__ = __webpack_require__(/*! vuex */ 4);
|
14726
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_component_component__ = __webpack_require__(/*! component/component */
|
14812
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_component_component__ = __webpack_require__(/*! component/component */ 1);
|
14727
14813
|
|
14728
14814
|
|
14729
14815
|
|
@@ -14752,7 +14838,7 @@ let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */
|
|
14752
14838
|
/* unused harmony default export */ var _unused_webpack_default_export = (componentDef);
|
14753
14839
|
|
14754
14840
|
/***/ }),
|
14755
|
-
/*
|
14841
|
+
/* 45 */
|
14756
14842
|
/*!**********************************************************!*\
|
14757
14843
|
!*** ../app/concepts/matestack/ui/core/action/action.js ***!
|
14758
14844
|
\**********************************************************/
|
@@ -14765,7 +14851,7 @@ let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */
|
|
14765
14851
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_axios__ = __webpack_require__(/*! axios */ 5);
|
14766
14852
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_axios__);
|
14767
14853
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_js_event_hub__ = __webpack_require__(/*! js/event-hub */ 3);
|
14768
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_component_component__ = __webpack_require__(/*! component/component */
|
14854
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_component_component__ = __webpack_require__(/*! component/component */ 1);
|
14769
14855
|
|
14770
14856
|
|
14771
14857
|
|
@@ -14815,7 +14901,7 @@ let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */
|
|
14815
14901
|
/* unused harmony default export */ var _unused_webpack_default_export = (componentDef);
|
14816
14902
|
|
14817
14903
|
/***/ }),
|
14818
|
-
/*
|
14904
|
+
/* 46 */
|
14819
14905
|
/*!******************************************************!*\
|
14820
14906
|
!*** ../app/concepts/matestack/ui/core/form/form.js ***!
|
14821
14907
|
\******************************************************/
|
@@ -14828,7 +14914,7 @@ let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */
|
|
14828
14914
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_axios__ = __webpack_require__(/*! axios */ 5);
|
14829
14915
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_axios__);
|
14830
14916
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_js_event_hub__ = __webpack_require__(/*! js/event-hub */ 3);
|
14831
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_component_component__ = __webpack_require__(/*! component/component */
|
14917
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_component_component__ = __webpack_require__(/*! component/component */ 1);
|
14832
14918
|
|
14833
14919
|
|
14834
14920
|
|
@@ -14962,7 +15048,7 @@ let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */
|
|
14962
15048
|
/* unused harmony default export */ var _unused_webpack_default_export = (componentDef);
|
14963
15049
|
|
14964
15050
|
/***/ }),
|
14965
|
-
/*
|
15051
|
+
/* 47 */
|
14966
15052
|
/*!******************************************************!*\
|
14967
15053
|
!*** ../app/concepts/matestack/ui/core/view/view.js ***!
|
14968
15054
|
\******************************************************/
|
@@ -14972,7 +15058,7 @@ let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */
|
|
14972
15058
|
"use strict";
|
14973
15059
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__ = __webpack_require__(/*! vue/dist/vue.esm */ 0);
|
14974
15060
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_js_event_hub__ = __webpack_require__(/*! js/event-hub */ 3);
|
14975
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_component_component__ = __webpack_require__(/*! component/component */
|
15061
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_component_component__ = __webpack_require__(/*! component/component */ 1);
|
14976
15062
|
|
14977
15063
|
|
14978
15064
|
|
@@ -15017,7 +15103,7 @@ let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */
|
|
15017
15103
|
/* unused harmony default export */ var _unused_webpack_default_export = (componentDef);
|
15018
15104
|
|
15019
15105
|
/***/ }),
|
15020
|
-
/*
|
15106
|
+
/* 48 */
|
15021
15107
|
/*!************************************************************!*\
|
15022
15108
|
!*** ../app/concepts/matestack/ui/core/onclick/onclick.js ***!
|
15023
15109
|
\************************************************************/
|
@@ -15027,7 +15113,7 @@ let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */
|
|
15027
15113
|
"use strict";
|
15028
15114
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__ = __webpack_require__(/*! vue/dist/vue.esm */ 0);
|
15029
15115
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_js_event_hub__ = __webpack_require__(/*! js/event-hub */ 3);
|
15030
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_component_component__ = __webpack_require__(/*! component/component */
|
15116
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_component_component__ = __webpack_require__(/*! component/component */ 1);
|
15031
15117
|
|
15032
15118
|
|
15033
15119
|
|
@@ -15050,6 +15136,257 @@ let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */
|
|
15050
15136
|
|
15051
15137
|
/* unused harmony default export */ var _unused_webpack_default_export = (componentDef);
|
15052
15138
|
|
15139
|
+
/***/ }),
|
15140
|
+
/* 49 */
|
15141
|
+
/*!***********************************************************************!*\
|
15142
|
+
!*** ../app/concepts/matestack/ui/core/collection/content/content.js ***!
|
15143
|
+
\***********************************************************************/
|
15144
|
+
/*! exports provided: default */
|
15145
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
15146
|
+
|
15147
|
+
"use strict";
|
15148
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__ = __webpack_require__(/*! vue/dist/vue.esm */ 0);
|
15149
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_js_event_hub__ = __webpack_require__(/*! js/event-hub */ 3);
|
15150
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_js_helpers_query_params_helper__ = __webpack_require__(/*! js/helpers/query-params-helper */ 8);
|
15151
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_component_component__ = __webpack_require__(/*! component/component */ 1);
|
15152
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_async_async__ = __webpack_require__(/*! async/async */ 16);
|
15153
|
+
|
15154
|
+
|
15155
|
+
|
15156
|
+
|
15157
|
+
|
15158
|
+
|
15159
|
+
|
15160
|
+
|
15161
|
+
const componentDef = {
|
15162
|
+
mixins: [__WEBPACK_IMPORTED_MODULE_3_component_component__["a" /* default */], __WEBPACK_IMPORTED_MODULE_4_async_async__["a" /* default */]],
|
15163
|
+
data: function () {
|
15164
|
+
return {
|
15165
|
+
currentLimit: null,
|
15166
|
+
currentOffset: null,
|
15167
|
+
currentFilteredCount: null,
|
15168
|
+
currentBaseCount: null
|
15169
|
+
};
|
15170
|
+
},
|
15171
|
+
methods: {
|
15172
|
+
next: function () {
|
15173
|
+
if (this.currentTo() < this.currentCount()) {
|
15174
|
+
this.currentOffset += this.currentLimit;
|
15175
|
+
var url = __WEBPACK_IMPORTED_MODULE_2_js_helpers_query_params_helper__["a" /* default */].updateQueryParams(this.componentConfig["id"] + "-offset", this.currentOffset);
|
15176
|
+
window.history.pushState({ matestackApp: true, url: url }, null, url);
|
15177
|
+
__WEBPACK_IMPORTED_MODULE_1_js_event_hub__["a" /* default */].$emit(this.componentConfig["id"] + "-update");
|
15178
|
+
}
|
15179
|
+
},
|
15180
|
+
previous: function () {
|
15181
|
+
if ((this.currentOffset - this.currentLimit) * -1 != this.currentLimit) {
|
15182
|
+
if (this.currentOffset - this.currentLimit < 0) {
|
15183
|
+
this.currentOffset = 0;
|
15184
|
+
} else {
|
15185
|
+
this.currentOffset -= this.currentLimit;
|
15186
|
+
}
|
15187
|
+
var url = __WEBPACK_IMPORTED_MODULE_2_js_helpers_query_params_helper__["a" /* default */].updateQueryParams(this.componentConfig["id"] + "-offset", this.currentOffset);
|
15188
|
+
window.history.pushState({ matestackApp: true, url: url }, null, url);
|
15189
|
+
__WEBPACK_IMPORTED_MODULE_1_js_event_hub__["a" /* default */].$emit(this.componentConfig["id"] + "-update");
|
15190
|
+
}
|
15191
|
+
},
|
15192
|
+
currentTo: function () {
|
15193
|
+
var to = parseInt(this.currentOffset) + parseInt(this.currentLimit);
|
15194
|
+
if (to > parseInt(this.currentCount())) {
|
15195
|
+
return this.currentCount();
|
15196
|
+
} else {
|
15197
|
+
return to;
|
15198
|
+
}
|
15199
|
+
},
|
15200
|
+
currentCount: function () {
|
15201
|
+
if (this.currentFilteredCount != null || this.currentFilteredCount != undefined) {
|
15202
|
+
return this.currentFilteredCount;
|
15203
|
+
} else {
|
15204
|
+
return this.currentBaseCount;
|
15205
|
+
}
|
15206
|
+
},
|
15207
|
+
goToPage: function (page) {
|
15208
|
+
this.currentOffset = parseInt(this.currentLimit) * (parseInt(page) - 1);
|
15209
|
+
var url = __WEBPACK_IMPORTED_MODULE_2_js_helpers_query_params_helper__["a" /* default */].updateQueryParams(this.componentConfig["id"] + "-offset", this.currentOffset);
|
15210
|
+
window.history.pushState({ matestackApp: true, url: url }, null, url);
|
15211
|
+
__WEBPACK_IMPORTED_MODULE_1_js_event_hub__["a" /* default */].$emit(this.componentConfig["id"] + "-update");
|
15212
|
+
}
|
15213
|
+
},
|
15214
|
+
mounted: function () {
|
15215
|
+
if (__WEBPACK_IMPORTED_MODULE_2_js_helpers_query_params_helper__["a" /* default */].getQueryParam(this.componentConfig["id"] + "-offset") != null) {
|
15216
|
+
this.currentOffset = parseInt(__WEBPACK_IMPORTED_MODULE_2_js_helpers_query_params_helper__["a" /* default */].getQueryParam(this.componentConfig["id"] + "-offset"));
|
15217
|
+
} else {
|
15218
|
+
if (this.componentConfig["init_offset"] != undefined) {
|
15219
|
+
this.currentOffset = this.componentConfig["init_offset"];
|
15220
|
+
} else {
|
15221
|
+
this.currentOffset = 0;
|
15222
|
+
}
|
15223
|
+
}
|
15224
|
+
|
15225
|
+
if (__WEBPACK_IMPORTED_MODULE_2_js_helpers_query_params_helper__["a" /* default */].getQueryParam(this.componentConfig["id"] + "-limit") != null) {
|
15226
|
+
this.currentOffset = parseInt(__WEBPACK_IMPORTED_MODULE_2_js_helpers_query_params_helper__["a" /* default */].getQueryParam(this.componentConfig["id"] + "-limit"));
|
15227
|
+
} else {
|
15228
|
+
if (this.componentConfig["init_limit"] != undefined) {
|
15229
|
+
this.currentLimit = this.componentConfig["init_limit"];
|
15230
|
+
} else {
|
15231
|
+
this.currentLimit = 10;
|
15232
|
+
}
|
15233
|
+
}
|
15234
|
+
|
15235
|
+
if (this.componentConfig["filtered_count"] != undefined) {
|
15236
|
+
this.currentFilteredCount = this.componentConfig["filtered_count"];
|
15237
|
+
if (this.currentOffset >= this.currentFilteredCount) {
|
15238
|
+
this.previous();
|
15239
|
+
}
|
15240
|
+
}
|
15241
|
+
if (this.componentConfig["base_count"] != undefined) {
|
15242
|
+
this.currentBaseCount = this.componentConfig["base_count"];
|
15243
|
+
if (this.currentOffset >= this.currentBaseCount) {
|
15244
|
+
this.previous();
|
15245
|
+
}
|
15246
|
+
}
|
15247
|
+
}
|
15248
|
+
};
|
15249
|
+
|
15250
|
+
let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */].component('matestack-ui-core-collection-content', componentDef);
|
15251
|
+
|
15252
|
+
/* unused harmony default export */ var _unused_webpack_default_export = (componentDef);
|
15253
|
+
|
15254
|
+
/***/ }),
|
15255
|
+
/* 50 */
|
15256
|
+
/*!*********************************************************************!*\
|
15257
|
+
!*** ../app/concepts/matestack/ui/core/collection/filter/filter.js ***!
|
15258
|
+
\*********************************************************************/
|
15259
|
+
/*! exports provided: default */
|
15260
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
15261
|
+
|
15262
|
+
"use strict";
|
15263
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__ = __webpack_require__(/*! vue/dist/vue.esm */ 0);
|
15264
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_js_event_hub__ = __webpack_require__(/*! js/event-hub */ 3);
|
15265
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_js_helpers_query_params_helper__ = __webpack_require__(/*! js/helpers/query-params-helper */ 8);
|
15266
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_component_component__ = __webpack_require__(/*! component/component */ 1);
|
15267
|
+
|
15268
|
+
|
15269
|
+
|
15270
|
+
|
15271
|
+
|
15272
|
+
|
15273
|
+
|
15274
|
+
const componentDef = {
|
15275
|
+
mixins: [__WEBPACK_IMPORTED_MODULE_3_component_component__["a" /* default */]],
|
15276
|
+
data: function () {
|
15277
|
+
return {
|
15278
|
+
filter: {}
|
15279
|
+
};
|
15280
|
+
},
|
15281
|
+
methods: {
|
15282
|
+
submitFilter: function () {
|
15283
|
+
var url;
|
15284
|
+
var filter = this.filter;
|
15285
|
+
for (var key in this.filter) {
|
15286
|
+
url = __WEBPACK_IMPORTED_MODULE_2_js_helpers_query_params_helper__["a" /* default */].updateQueryParams(this.componentConfig["id"] + "-filter-" + key, this.filter[key], url);
|
15287
|
+
}
|
15288
|
+
url = __WEBPACK_IMPORTED_MODULE_2_js_helpers_query_params_helper__["a" /* default */].updateQueryParams(this.componentConfig["id"] + "-offset", 0, url);
|
15289
|
+
window.history.pushState({ matestackApp: true, url: url }, null, url);
|
15290
|
+
__WEBPACK_IMPORTED_MODULE_1_js_event_hub__["a" /* default */].$emit(this.componentConfig["id"] + "-update");
|
15291
|
+
},
|
15292
|
+
resetFilter: function () {
|
15293
|
+
var url;
|
15294
|
+
for (var key in this.filter) {
|
15295
|
+
url = __WEBPACK_IMPORTED_MODULE_2_js_helpers_query_params_helper__["a" /* default */].updateQueryParams(this.componentConfig["id"] + "-filter-" + key, null, url);
|
15296
|
+
this.filter[key] = null;
|
15297
|
+
this.$forceUpdate();
|
15298
|
+
}
|
15299
|
+
window.history.pushState({ matestackApp: true, url: url }, null, url);
|
15300
|
+
__WEBPACK_IMPORTED_MODULE_1_js_event_hub__["a" /* default */].$emit(this.componentConfig["id"] + "-update");
|
15301
|
+
}
|
15302
|
+
},
|
15303
|
+
created: function () {
|
15304
|
+
var self = this;
|
15305
|
+
var queryParamsObject = __WEBPACK_IMPORTED_MODULE_2_js_helpers_query_params_helper__["a" /* default */].queryParamsToObject();
|
15306
|
+
Object.keys(queryParamsObject).forEach(function (key) {
|
15307
|
+
if (key.startsWith(self.componentConfig["id"] + "-filter-")) {
|
15308
|
+
self.filter[key.replace(self.componentConfig["id"] + "-filter-", "")] = queryParamsObject[key];
|
15309
|
+
}
|
15310
|
+
});
|
15311
|
+
}
|
15312
|
+
};
|
15313
|
+
|
15314
|
+
let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */].component('matestack-ui-core-collection-filter', componentDef);
|
15315
|
+
|
15316
|
+
/* unused harmony default export */ var _unused_webpack_default_export = (componentDef);
|
15317
|
+
|
15318
|
+
/***/ }),
|
15319
|
+
/* 51 */
|
15320
|
+
/*!*******************************************************************!*\
|
15321
|
+
!*** ../app/concepts/matestack/ui/core/collection/order/order.js ***!
|
15322
|
+
\*******************************************************************/
|
15323
|
+
/*! exports provided: default */
|
15324
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
15325
|
+
|
15326
|
+
"use strict";
|
15327
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__ = __webpack_require__(/*! vue/dist/vue.esm */ 0);
|
15328
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_js_event_hub__ = __webpack_require__(/*! js/event-hub */ 3);
|
15329
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_js_helpers_query_params_helper__ = __webpack_require__(/*! js/helpers/query-params-helper */ 8);
|
15330
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_component_component__ = __webpack_require__(/*! component/component */ 1);
|
15331
|
+
|
15332
|
+
|
15333
|
+
|
15334
|
+
|
15335
|
+
|
15336
|
+
|
15337
|
+
|
15338
|
+
const componentDef = {
|
15339
|
+
mixins: [__WEBPACK_IMPORTED_MODULE_3_component_component__["a" /* default */]],
|
15340
|
+
data: function () {
|
15341
|
+
return {
|
15342
|
+
ordering: {}
|
15343
|
+
};
|
15344
|
+
},
|
15345
|
+
methods: {
|
15346
|
+
toggleOrder: function (key) {
|
15347
|
+
if (this.ordering[key] == undefined) {
|
15348
|
+
this.ordering[key] = "asc";
|
15349
|
+
} else if (this.ordering[key] == "asc") {
|
15350
|
+
this.ordering[key] = "desc";
|
15351
|
+
} else if (this.ordering[key] = "desc") {
|
15352
|
+
this.ordering[key] = undefined;
|
15353
|
+
}
|
15354
|
+
var url;
|
15355
|
+
url = __WEBPACK_IMPORTED_MODULE_2_js_helpers_query_params_helper__["a" /* default */].updateQueryParams(this.componentConfig["id"] + "-order-" + key, this.ordering[key]);
|
15356
|
+
url = __WEBPACK_IMPORTED_MODULE_2_js_helpers_query_params_helper__["a" /* default */].updateQueryParams(this.componentConfig["id"] + "-offset", 0, url);
|
15357
|
+
window.history.pushState({ matestackApp: true, url: url }, null, url);
|
15358
|
+
__WEBPACK_IMPORTED_MODULE_1_js_event_hub__["a" /* default */].$emit(this.componentConfig["id"] + "-update");
|
15359
|
+
this.$forceUpdate();
|
15360
|
+
},
|
15361
|
+
orderIndicator(key, indicators) {
|
15362
|
+
return indicators[this.ordering[key]];
|
15363
|
+
},
|
15364
|
+
resetFilter: function () {
|
15365
|
+
var url;
|
15366
|
+
for (var key in this.filter) {
|
15367
|
+
url = __WEBPACK_IMPORTED_MODULE_2_js_helpers_query_params_helper__["a" /* default */].updateQueryParams(this.componentConfig["id"] + "-filter-" + key, null);
|
15368
|
+
this.filter[key] = null;
|
15369
|
+
this.$forceUpdate();
|
15370
|
+
}
|
15371
|
+
window.history.pushState({ matestackApp: true, url: url }, null, url);
|
15372
|
+
__WEBPACK_IMPORTED_MODULE_1_js_event_hub__["a" /* default */].$emit(this.componentConfig["id"] + "-update");
|
15373
|
+
}
|
15374
|
+
},
|
15375
|
+
created: function () {
|
15376
|
+
var self = this;
|
15377
|
+
var queryParamsObject = __WEBPACK_IMPORTED_MODULE_2_js_helpers_query_params_helper__["a" /* default */].queryParamsToObject();
|
15378
|
+
Object.keys(queryParamsObject).forEach(function (key) {
|
15379
|
+
if (key.startsWith(self.componentConfig["id"] + "-order-")) {
|
15380
|
+
self.ordering[key.replace(self.componentConfig["id"] + "-order-", "")] = queryParamsObject[key];
|
15381
|
+
}
|
15382
|
+
});
|
15383
|
+
}
|
15384
|
+
};
|
15385
|
+
|
15386
|
+
let component = __WEBPACK_IMPORTED_MODULE_0_vue_dist_vue_esm__["a" /* default */].component('matestack-ui-core-collection-order', componentDef);
|
15387
|
+
|
15388
|
+
/* unused harmony default export */ var _unused_webpack_default_export = (componentDef);
|
15389
|
+
|
15053
15390
|
/***/ })
|
15054
15391
|
/******/ ]);
|
15055
15392
|
//# sourceMappingURL=matestack-ui-core.js.map
|