pome-ui 2.0.0-preview5 → 2.0.0-preview7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pome-ui",
3
- "version": "2.0.0-preview5",
3
+ "version": "2.0.0-preview7",
4
4
  "description": "Front-end MVC library",
5
5
  "main": "pome-ui.js",
6
6
  "bin": {
package/pome-ui.dev.js CHANGED
@@ -16090,12 +16090,28 @@ function build(options, exports) {
16090
16090
  }
16091
16091
  };
16092
16092
 
16093
+ function _getQueryString() {
16094
+ var ret = window.location.search;
16095
+
16096
+ if (window.location.hash.indexOf('?') > 0) {
16097
+ var hashSearch = window.location.hash.substr(window.location.hash.indexOf('?'));
16098
+ if (ret) {
16099
+ ret += '&' + hashSearch.substr(1);
16100
+ } else {
16101
+ ret = hashSearch;
16102
+ }
16103
+ }
16104
+
16105
+ return ret;
16106
+ }
16107
+
16093
16108
  function _parseQueryString(dest) {
16094
- if (!window.location.search) {
16109
+ var qs = _getQueryString();
16110
+ if (!qs) {
16095
16111
  return;
16096
16112
  }
16097
16113
 
16098
- var str = window.location.search;
16114
+ var str = qs;
16099
16115
  if (str[0] == '?') {
16100
16116
  str = str.substr(1);
16101
16117
  }
@@ -17422,6 +17438,15 @@ function build(options, exports) {
17422
17438
  eval(js);
17423
17439
  }
17424
17440
 
17441
+
17442
+ function UseInlineAddin(script) {
17443
+ var Addin = function (view, opt) {
17444
+ exports._addins.push({ view, opt });
17445
+ };
17446
+
17447
+ eval(script);
17448
+ }
17449
+
17425
17450
  exports.root = root;
17426
17451
  exports.useConfig = UseConfig;
17427
17452
  exports.mapRoute = MapRoute;
@@ -17433,6 +17458,7 @@ function build(options, exports) {
17433
17458
  exports.mount = mount;
17434
17459
  exports.useRoutes = useRoutes;
17435
17460
  exports.useAddin = UseAddin;
17461
+ exports.useInlineAddin = UseInlineAddin;
17436
17462
 
17437
17463
  return exports;
17438
17464
  };