@macallumharvey/first-test-wet 2.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/WetButton.d.ts +1 -1
- package/dist/first-test-wet.cjs.development.js +5 -0
- package/dist/first-test-wet.cjs.development.js.map +1 -1
- package/dist/first-test-wet.cjs.production.min.js +1 -1
- package/dist/first-test-wet.cjs.production.min.js.map +1 -1
- package/dist/first-test-wet.esm.js +5 -1
- package/dist/first-test-wet.esm.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/WetButton.tsx +1 -1
- package/src/WetModal.tsx +1 -0
- package/src/index.tsx +1 -0
- package/src/theme-wet-boew/assets/favicon-mobile.png +0 -0
- package/src/theme-wet-boew/assets/favicon.ico +0 -0
- package/src/theme-wet-boew/assets/logo.png +0 -0
- package/src/theme-wet-boew/assets/logo.svg +14 -0
- package/src/theme-wet-boew/css/ie8-theme.css +17370 -0
- package/src/theme-wet-boew/css/ie8-theme.min.css +193 -0
- package/src/{wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.js → theme-wet-boew/css/ie8-wet-boew.css} +12 -10
- package/src/{wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.min.js → theme-wet-boew/css/ie8-wet-boew.min.css} +7 -7
- package/src/theme-wet-boew/css/theme.css +11357 -0
- package/src/theme-wet-boew/css/theme.min.css +6 -0
- package/src/{wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.js → theme-wet-boew/css/wet-boew.css} +12 -10
- package/src/{wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.min.js → theme-wet-boew/css/wet-boew.min.css} +6 -7
- package/src/theme-wet-boew/payload.json +66 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/mediacontrols.html +32 -33
- package/src/wet-boew/assets/sprites_share.png +0 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/noscript.css +112 -112
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/noscript.min.css +5 -5
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/datalist.css +32 -32
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/datepicker.css +47 -47
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/details.css +28 -28
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/mathml.css +16 -16
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/meter.css +24 -24
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/progress.css +8 -8
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/slider.css +229 -229
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.svg +287 -287
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/additional-methods.js +1511 -1511
- package/src/wet-boew/js/deps/additional-methods.min.js +9 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/geomap-lib.js +3758 -3770
- package/src/wet-boew/js/deps/geomap-lib.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.dataTables.js +15345 -15733
- package/src/wet-boew/js/deps/jquery.dataTables.min.js +4 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.flot.canvas.js +345 -345
- package/src/wet-boew/js/deps/jquery.flot.canvas.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.flot.js +3168 -3168
- package/src/wet-boew/js/deps/jquery.flot.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.flot.orderBars.js +282 -282
- package/src/wet-boew/js/deps/jquery.flot.orderBars.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.flot.pie.js +820 -820
- package/src/wet-boew/js/deps/jquery.flot.pie.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.magnific-popup.js +2060 -2060
- package/src/wet-boew/js/deps/jquery.magnific-popup.min.js +4 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.validate.js +1660 -1660
- package/src/wet-boew/js/deps/jquery.validate.min.js +9 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/json-patch.js +314 -314
- package/src/wet-boew/js/deps/json-patch.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jsonpointer.js +349 -349
- package/src/wet-boew/js/deps/jsonpointer.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-apollo.js +53 -53
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-basic.js +49 -49
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-clj.js +64 -64
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-css.js +160 -160
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-dart.js +92 -92
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-erlang.js +94 -94
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-go.js +59 -59
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-hs.js +102 -102
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lasso.js +67 -67
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lisp.js +95 -95
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-llvm.js +63 -63
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-logtalk.js +50 -50
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lua.js +60 -60
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-matlab.js +183 -183
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-matlab.min.js +1 -1
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-ml.js +57 -57
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-mumps.js +140 -140
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-n.js +67 -67
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-pascal.js +49 -49
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-proto.js +37 -37
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-r.js +59 -59
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-rd.js +50 -50
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-rust.js +81 -81
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-scala.js +56 -56
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-sql.js +59 -59
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-swift.js +60 -60
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-tcl.js +63 -63
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-tex.js +49 -49
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-vb.js +67 -67
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-vhdl.js +51 -51
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-wiki.js +55 -55
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-xq.js +71 -71
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-yaml.js +45 -45
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/ol.js +1008 -1008
- package/src/wet-boew/js/deps/ol.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/prettify.js +1742 -1742
- package/src/wet-boew/js/deps/prettify.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/proj4.js +2 -2
- package/src/wet-boew/js/deps/proj4.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/run_prettify.js +1998 -1998
- package/src/wet-boew/js/deps/run_prettify.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/tableparser.js +2216 -2216
- package/src/wet-boew/js/deps/tableparser.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/unorm.js +452 -452
- package/src/wet-boew/js/deps/unorm.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/af.js +246 -254
- package/src/wet-boew/js/i18n/af.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/ar.js +284 -292
- package/src/wet-boew/js/i18n/ar.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/bg.js +284 -292
- package/src/wet-boew/js/i18n/bg.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/cs.js +285 -293
- package/src/wet-boew/js/i18n/cs.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/de.js +354 -362
- package/src/wet-boew/js/i18n/de.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/el.js +284 -292
- package/src/wet-boew/js/i18n/el.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/en.js +246 -254
- package/src/wet-boew/js/i18n/en.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/es.js +287 -295
- package/src/wet-boew/js/i18n/es.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/et.js +282 -290
- package/src/wet-boew/js/i18n/et.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/fr.js +313 -321
- package/src/wet-boew/js/i18n/fr.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/hi.js +246 -254
- package/src/wet-boew/js/i18n/hi.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/hu.js +284 -292
- package/src/wet-boew/js/i18n/hu.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/hy.js +246 -254
- package/src/wet-boew/js/i18n/hy.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/id.js +283 -291
- package/src/wet-boew/js/i18n/id.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/is.js +282 -290
- package/src/wet-boew/js/i18n/is.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/it.js +311 -319
- package/src/wet-boew/js/i18n/it.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/iu.js +246 -254
- package/src/wet-boew/js/i18n/iu.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/ja.js +285 -293
- package/src/wet-boew/js/i18n/ja.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/ko.js +284 -292
- package/src/wet-boew/js/i18n/ko.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/lt.js +284 -292
- package/src/wet-boew/js/i18n/lt.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/lv.js +284 -292
- package/src/wet-boew/js/i18n/lv.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/nl.js +318 -326
- package/src/wet-boew/js/i18n/nl.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/pl.js +287 -295
- package/src/wet-boew/js/i18n/pl.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/pt-BR.js +246 -254
- package/src/wet-boew/js/i18n/pt-BR.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/pt.js +270 -278
- package/src/wet-boew/js/i18n/pt.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/ru.js +284 -292
- package/src/wet-boew/js/i18n/ru.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/sk.js +282 -290
- package/src/wet-boew/js/i18n/sk.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/sq.js +246 -254
- package/src/wet-boew/js/i18n/sq.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/th.js +284 -292
- package/src/wet-boew/js/i18n/th.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/tr.js +286 -294
- package/src/wet-boew/js/i18n/tr.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/uk.js +284 -292
- package/src/wet-boew/js/i18n/uk.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/vi.js +284 -292
- package/src/wet-boew/js/i18n/vi.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/zh-Hans.js +246 -254
- package/src/wet-boew/js/i18n/zh-Hans.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/zh.js +285 -293
- package/src/wet-boew/js/i18n/zh.min.js +7 -0
- package/src/wet-boew/js/ie8-wet-boew.js +3992 -0
- package/src/wet-boew/js/ie8-wet-boew.min.js +7 -0
- package/src/wet-boew/js/ie8-wet-boew2.js +15294 -0
- package/src/wet-boew/js/ie8-wet-boew2.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/jquery/2.2.4/jquery.js +9814 -9814
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/jquery/2.2.4/jquery.min.js +4 -4
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/datalist.js +423 -419
- package/src/wet-boew/js/polyfills/datalist.min.js +8 -0
- package/src/wet-boew/js/polyfills/datalist.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/datalist_dynamic.js +50 -50
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/datalist_dynamic.min.js +7 -7
- package/src/wet-boew/js/polyfills/datalist_dynamic.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/datepicker.js +338 -338
- package/src/wet-boew/js/polyfills/datepicker.min.js +8 -0
- package/src/wet-boew/js/polyfills/datepicker.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/details.js +126 -126
- package/src/wet-boew/js/polyfills/details.min.js +8 -0
- package/src/wet-boew/js/polyfills/details.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/jawsariafixes.js +47 -47
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/jawsariafixes.min.js +15 -15
- package/src/wet-boew/js/polyfills/jawsariafixes.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/meter.js +140 -140
- package/src/wet-boew/js/polyfills/meter.min.js +8 -0
- package/src/wet-boew/js/polyfills/meter.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/mobile.js +783 -784
- package/src/wet-boew/js/polyfills/mobile.min.js +8 -0
- package/src/wet-boew/js/polyfills/mobile.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/progress.js +107 -107
- package/src/wet-boew/js/polyfills/progress.min.js +8 -0
- package/src/wet-boew/js/polyfills/progress.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/slider.js +1343 -1343
- package/src/wet-boew/js/polyfills/slider.min.js +9 -0
- package/src/wet-boew/js/polyfills/slider.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/slider_wrapper.js +73 -73
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/slider_wrapper.min.js +7 -7
- package/src/wet-boew/js/polyfills/slider_wrapper.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/svg.js +29 -29
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/svg.min.js +7 -7
- package/src/wet-boew/js/polyfills/svg.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/test.js +603 -603
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/test.min.js +7 -7
- package/src/wet-boew/js/polyfills/test.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/wet-boew.js +17714 -20264
- package/src/wet-boew/js/wet-boew.min.js +9 -0
- package/src/wet-boew/js/wet-boew.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/payload.json +1721 -1721
- package/src/wet-boew-cdn-4.0.81.1/Licence-fr.txt +0 -1
- package/src/wet-boew-cdn-4.0.81.1/License-en.txt +0 -1
- package/src/wet-boew-cdn-4.0.81.1/assets/sprites_share.png +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/additional-methods.min.js +0 -9
- package/src/wet-boew-cdn-4.0.81.1/js/deps/geomap-lib.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.dataTables.min.js +0 -4
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.canvas.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.orderBars.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.pie.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.magnific-popup.min.js +0 -4
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.validate.min.js +0 -9
- package/src/wet-boew-cdn-4.0.81.1/js/deps/json-patch.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jsonpointer.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/ol.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/prettify.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/proj4.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/run_prettify.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/tableparser.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/unorm.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/af.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ar.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/bg.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/cs.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/de.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/el.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/en.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/es.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/et.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/fr.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hi.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hu.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hy.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/id.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/is.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/it.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/iu.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ja.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ko.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/lt.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/lv.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/nl.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pl.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pt-BR.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pt.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ru.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/sk.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/sq.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/th.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/tr.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/uk.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/vi.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/zh-Hans.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/zh.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist_dynamic.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datepicker.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datepicker.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/details.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/details.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/jawsariafixes.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/meter.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/meter.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/mobile.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/mobile.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/progress.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/progress.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider.min.js +0 -9
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider_wrapper.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/svg.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/test.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/wet-boew.min.js +0 -9
- package/src/wet-boew-cdn-4.0.81.1/js/wet-boew.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/package.json +0 -15
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/cloud-popup-relative.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/fd-slider-sprite.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/loading.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/zoom-minus-mini.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/zoom-plus-mini.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/zoom-world-mini.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/datalist.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/datepicker.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/details.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/mathml.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/meter.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/progress.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/slider.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.eot +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.ttf +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.woff2 +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/mml-chtml.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Italic.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-BoldItalic.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Bold.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Italic.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Script-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size1-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size2-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size3-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size4-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Typewriter-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Vector-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Zero.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-apollo.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-basic.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-clj.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-css.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-dart.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-erlang.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-go.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-hs.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lasso.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lisp.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-llvm.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-logtalk.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lua.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-ml.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-mumps.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-n.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-pascal.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-proto.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-r.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-rd.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-rust.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-scala.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-sql.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-swift.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-tcl.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-tex.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-vb.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-vhdl.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-wiki.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-xq.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-yaml.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/jquery/2.2.4/jquery.min.map +0 -0
@@ -1,315 +1,315 @@
|
|
1
|
-
/**
|
2
|
-
* @title WET-BOEW variant of Starcounter-Jack/JSON-Patch
|
3
|
-
* @overview Same as json-patch.js but added extensibility support, changed the behaviour of patch test to be atomic and code was fully eslinted.
|
4
|
-
* @license MIT
|
5
|
-
* @author @duboisp @Starcounter-Jack
|
6
|
-
*
|
7
|
-
* ----
|
8
|
-
*
|
9
|
-
* https://github.com/Starcounter-Jack/JSON-Patch
|
10
|
-
* json-patch-duplex.js version: 1.1.4
|
11
|
-
* (c) 2013 Joachim Wester
|
12
|
-
* MIT license
|
13
|
-
*/
|
14
|
-
var jsonpatch;
|
15
|
-
( function ( jsonpatch ) {
|
16
|
-
var _objectKeys = function ( obj ) {
|
17
|
-
if ( _isArray( obj ) ) {
|
18
|
-
var keys = new Array( obj.length );
|
19
|
-
for ( var k = 0; k < keys.length; k++ ) {
|
20
|
-
keys[ k ] = "" + k;
|
21
|
-
}
|
22
|
-
return keys;
|
23
|
-
}
|
24
|
-
if ( Object.keys ) {
|
25
|
-
return Object.keys( obj );
|
26
|
-
}
|
27
|
-
var keys = [];
|
28
|
-
for ( var i in obj ) {
|
29
|
-
if ( obj.hasOwnProperty( i ) ) {
|
30
|
-
keys.push( i );
|
31
|
-
}
|
32
|
-
}
|
33
|
-
return keys;
|
34
|
-
},
|
35
|
-
_equals = function( a, b ) {
|
36
|
-
switch (typeof a) {
|
37
|
-
case "undefined": //backward compatibility, but really I think we should return false
|
38
|
-
case "boolean":
|
39
|
-
case "string":
|
40
|
-
case "number":
|
41
|
-
return a === b;
|
42
|
-
case "object":
|
43
|
-
if ( a === null ) {
|
44
|
-
return b === null;
|
45
|
-
}
|
46
|
-
if ( _isArray( a ) ) {
|
47
|
-
if ( !_isArray( b ) || a.length !== b.length ) {
|
48
|
-
return false;
|
49
|
-
}
|
50
|
-
for ( var i = 0, l = a.length; i < l; i++ ) {
|
51
|
-
if ( !_equals( a[ i ], b[ i ] ) ) {
|
52
|
-
return false;
|
53
|
-
}
|
54
|
-
}
|
55
|
-
return true;
|
56
|
-
}
|
57
|
-
var bKeys = _objectKeys( b ),
|
58
|
-
bLength = bKeys.length;
|
59
|
-
if ( _objectKeys( a ).length !== bLength ) {
|
60
|
-
return false;
|
61
|
-
}
|
62
|
-
for ( var i = 0; i < bLength; i++ ) {
|
63
|
-
if ( !_equals( a[ i ], b[ i ] ) ) {
|
64
|
-
return false;
|
65
|
-
}
|
66
|
-
}
|
67
|
-
return true;
|
68
|
-
default:
|
69
|
-
return false;
|
70
|
-
}
|
71
|
-
},
|
72
|
-
|
73
|
-
/* We use a Javascript hash to store each-
|
74
|
-
function. Each hash entry (property) uses
|
75
|
-
the operation identifiers specified in rfc6902.
|
76
|
-
In this way, we can map each patch operation
|
77
|
-
to its dedicated function in efficient way.
|
78
|
-
*/
|
79
|
-
// The operations applicable to an object */
|
80
|
-
objOps = {
|
81
|
-
add: function( obj, key ) {
|
82
|
-
obj[ key ] = this.value;
|
83
|
-
},
|
84
|
-
remove: function (obj, key) {
|
85
|
-
var removed = obj[key];
|
86
|
-
delete obj[key];
|
87
|
-
return removed;
|
88
|
-
},
|
89
|
-
replace: function( obj, key ) {
|
90
|
-
var removed = obj[ key ];
|
91
|
-
obj[ key ] = this.value;
|
92
|
-
return removed;
|
93
|
-
},
|
94
|
-
move: function( obj, key, tree ) {
|
95
|
-
var getOriginalDestination = { op: "_get", path: this.path };
|
96
|
-
apply( tree, [ getOriginalDestination ] );
|
97
|
-
|
98
|
-
// In case value is moved up and overwrites its ancestor
|
99
|
-
var original = getOriginalDestination.value === undefined ? undefined : JSON.parse( JSON.stringify( getOriginalDestination.value ) ),
|
100
|
-
temp = { op: "_get", path: this.from };
|
101
|
-
apply( tree, [ temp ] );
|
102
|
-
apply( tree, [
|
103
|
-
{ op: "remove", path: this.from }
|
104
|
-
] );
|
105
|
-
apply( tree, [
|
106
|
-
{ op: "add", path: this.path, value: temp.value }
|
107
|
-
] );
|
108
|
-
return original;
|
109
|
-
},
|
110
|
-
copy: function ( obj, key, tree ) {
|
111
|
-
var temp = { op: "_get", path: this.from };
|
112
|
-
apply( tree, [ temp ] );
|
113
|
-
apply( tree, [
|
114
|
-
{ op: "add", path: this.path, value: temp.value }
|
115
|
-
] );
|
116
|
-
},
|
117
|
-
test: function ( obj, key ) {
|
118
|
-
return _equals( obj[ key ], this.value );
|
119
|
-
},
|
120
|
-
_get: function ( obj, key ) {
|
121
|
-
this.value = obj[ key ];
|
122
|
-
}
|
123
|
-
},
|
124
|
-
|
125
|
-
// The operations applicable to an array. Many are the same as for the object
|
126
|
-
arrOps = {
|
127
|
-
add: function ( arr, i ) {
|
128
|
-
arr.splice( i, 0, this.value );
|
129
|
-
|
130
|
-
// this may be needed when using "-" in an array
|
131
|
-
return i;
|
132
|
-
},
|
133
|
-
remove: function ( arr, i ) {
|
134
|
-
var removedList = arr.splice( i, 1 );
|
135
|
-
return removedList[ 0 ];
|
136
|
-
},
|
137
|
-
replace: function ( arr, i ) {
|
138
|
-
var removed = arr[ i ];
|
139
|
-
arr[ i ] = this.value;
|
140
|
-
return removed;
|
141
|
-
},
|
142
|
-
move: objOps.move,
|
143
|
-
copy: objOps.copy,
|
144
|
-
test: objOps.test,
|
145
|
-
_get: objOps._get
|
146
|
-
},
|
147
|
-
|
148
|
-
// The operations applicable to object root. Many are the same as for the object
|
149
|
-
rootOps = {
|
150
|
-
add: function ( obj ) {
|
151
|
-
rootOps.remove.call( this, obj );
|
152
|
-
for ( var key in this.value ) {
|
153
|
-
if ( this.value.hasOwnProperty( key ) ) {
|
154
|
-
obj[ key ] = this.value[ key ];
|
155
|
-
}
|
156
|
-
}
|
157
|
-
},
|
158
|
-
remove: function ( obj ) {
|
159
|
-
var removed = {}, key;
|
160
|
-
for ( key in obj ) {
|
161
|
-
if ( obj.hasOwnProperty( key ) ) {
|
162
|
-
removed[ key ] = obj[ key ];
|
163
|
-
objOps.remove.call( this, obj, key );
|
164
|
-
}
|
165
|
-
}
|
166
|
-
return removed;
|
167
|
-
},
|
168
|
-
replace: function ( obj ) {
|
169
|
-
var removed = apply( obj, [
|
170
|
-
{ op: "remove", path: this.path }
|
171
|
-
] );
|
172
|
-
apply( obj, [
|
173
|
-
{ op: "add", path: this.path, value: this.value }
|
174
|
-
] );
|
175
|
-
return removed[ 0 ];
|
176
|
-
},
|
177
|
-
move: objOps.move,
|
178
|
-
copy: objOps.copy,
|
179
|
-
test: function ( obj ) {
|
180
|
-
return ( JSON.stringify( obj ) === JSON.stringify( this.value ) );
|
181
|
-
},
|
182
|
-
_get: function ( obj ) {
|
183
|
-
this.value = obj;
|
184
|
-
}
|
185
|
-
},
|
186
|
-
|
187
|
-
/**
|
188
|
-
* Apply a json-patch operation on an object tree
|
189
|
-
* Returns an array of results of operations.
|
190
|
-
* Each element can either be a boolean (if op === "test") or
|
191
|
-
* the removed object (operations that remove things)
|
192
|
-
* or just be undefined
|
193
|
-
*
|
194
|
-
@param {object} Tree
|
195
|
-
@param {array} Array of patches
|
196
|
-
@param {boolean} Apply the patch even if test fail, instead test result will be returned
|
197
|
-
*/
|
198
|
-
apply = function( tree, patches, force ) {
|
199
|
-
if ( !force ) {
|
200
|
-
|
201
|
-
// Re-order all "test" operation to ensure they are executed first
|
202
|
-
patches.sort( function( a, b ) {
|
203
|
-
if ( a.op === "test" && b.op !== "test" ) {
|
204
|
-
return -1;
|
205
|
-
} else if ( b.op === "test" ) {
|
206
|
-
return 1;
|
207
|
-
} else {
|
208
|
-
return 0;
|
209
|
-
}
|
210
|
-
} );
|
211
|
-
}
|
212
|
-
var results = new Array( patches.length ), p = 0, plen = patches.length, patch, key;
|
213
|
-
while ( p < plen ) {
|
214
|
-
patch = patches[ p ];
|
215
|
-
p += 1;
|
216
|
-
|
217
|
-
// Find the object
|
218
|
-
var path = patch.path || "",
|
219
|
-
op = patch.op,
|
220
|
-
isTest = force ? false : op === "test", // if true, it enforce test to apply subsequent patches
|
221
|
-
keys = path.split( "/" ),
|
222
|
-
obj = tree,
|
223
|
-
t = 1, //skip empty element - http://jsperf.com/to-shift-or-not-to-shift
|
224
|
-
len = keys.length;
|
225
|
-
while ( true && obj ) {
|
226
|
-
key = keys[ t ];
|
227
|
-
t += 1;
|
228
|
-
if ( key === undefined ) {
|
229
|
-
if ( t >= len ) {
|
230
|
-
results[ p - 1 ] = rootOps[ op ].call( patch, obj, key, tree ); // Apply patch
|
231
|
-
if ( isTest && !results[ p - 1 ] ) {
|
232
|
-
return tree;
|
233
|
-
}
|
234
|
-
break;
|
235
|
-
}
|
236
|
-
}
|
237
|
-
if ( _isArray( obj ) ) {
|
238
|
-
if ( key === "-" ) {
|
239
|
-
key = obj.length;
|
240
|
-
}
|
241
|
-
else {
|
242
|
-
key = parseInt( key, 10 );
|
243
|
-
}
|
244
|
-
if ( t >= len ) {
|
245
|
-
results[ p - 1 ] = arrOps[ op ].call( patch, obj, key, tree ); // Apply patch
|
246
|
-
if ( isTest && !results[ p - 1] ) {
|
247
|
-
return tree;
|
248
|
-
}
|
249
|
-
break;
|
250
|
-
}
|
251
|
-
}
|
252
|
-
else {
|
253
|
-
if ( key && key.indexOf( "~" ) !== -1 ) {
|
254
|
-
key = key.replace( /~1/g, "/" ).replace( /~0/g, "~" ); // escape chars
|
255
|
-
}
|
256
|
-
if ( t >= len ) {
|
257
|
-
results[ p - 1 ] = objOps[ op ].call( patch, obj, key, tree ); // Apply patch
|
258
|
-
if ( isTest && !results[ p - 1] ) {
|
259
|
-
return tree;
|
260
|
-
}
|
261
|
-
break;
|
262
|
-
}
|
263
|
-
}
|
264
|
-
obj = obj[ key ];
|
265
|
-
}
|
266
|
-
}
|
267
|
-
return results;
|
268
|
-
},
|
269
|
-
|
270
|
-
/**
|
271
|
-
* Register a custom operation, node in tree
|
272
|
-
*/
|
273
|
-
registerOperation = function( name, fn ) {
|
274
|
-
if ( objOps[ name ] ) {
|
275
|
-
throw "The operation " + name + " already registered.";
|
276
|
-
}
|
277
|
-
objOps[ name ] = fn;
|
278
|
-
},
|
279
|
-
|
280
|
-
/**
|
281
|
-
* Register a custom operation, tree is an array
|
282
|
-
*/
|
283
|
-
registerOperationArray = function( name, fn ) {
|
284
|
-
if ( arrOps[ name ] ) {
|
285
|
-
throw "The operation " + name + " already registered.";
|
286
|
-
}
|
287
|
-
arrOps[ name ] = fn;
|
288
|
-
},
|
289
|
-
|
290
|
-
/**
|
291
|
-
* Register a custom operation, root operation
|
292
|
-
*/
|
293
|
-
registerOperationRoot = function( name, fn ) {
|
294
|
-
if ( rootOps[ name ] ) {
|
295
|
-
throw "The operation " + name + " already registered.";
|
296
|
-
}
|
297
|
-
rootOps[ name ] = fn;
|
298
|
-
},
|
299
|
-
_isArray;
|
300
|
-
|
301
|
-
if ( Array.isArray ) {
|
302
|
-
_isArray = Array.isArray;
|
303
|
-
}
|
304
|
-
else {
|
305
|
-
_isArray = function ( obj ) {
|
306
|
-
return obj.push && typeof obj.length === "number";
|
307
|
-
};
|
308
|
-
}
|
309
|
-
|
310
|
-
jsonpatch.apply = apply;
|
311
|
-
jsonpatch.registerOps = registerOperation;
|
312
|
-
jsonpatch.registerOpsArray = registerOperationArray;
|
313
|
-
jsonpatch.registerOpsRoot = registerOperationRoot;
|
314
|
-
|
1
|
+
/**
|
2
|
+
* @title WET-BOEW variant of Starcounter-Jack/JSON-Patch
|
3
|
+
* @overview Same as json-patch.js but added extensibility support, changed the behaviour of patch test to be atomic and code was fully eslinted.
|
4
|
+
* @license MIT
|
5
|
+
* @author @duboisp @Starcounter-Jack
|
6
|
+
*
|
7
|
+
* ----
|
8
|
+
*
|
9
|
+
* https://github.com/Starcounter-Jack/JSON-Patch
|
10
|
+
* json-patch-duplex.js version: 1.1.4
|
11
|
+
* (c) 2013 Joachim Wester
|
12
|
+
* MIT license
|
13
|
+
*/
|
14
|
+
var jsonpatch;
|
15
|
+
( function ( jsonpatch ) {
|
16
|
+
var _objectKeys = function ( obj ) {
|
17
|
+
if ( _isArray( obj ) ) {
|
18
|
+
var keys = new Array( obj.length );
|
19
|
+
for ( var k = 0; k < keys.length; k++ ) {
|
20
|
+
keys[ k ] = "" + k;
|
21
|
+
}
|
22
|
+
return keys;
|
23
|
+
}
|
24
|
+
if ( Object.keys ) {
|
25
|
+
return Object.keys( obj );
|
26
|
+
}
|
27
|
+
var keys = [];
|
28
|
+
for ( var i in obj ) {
|
29
|
+
if ( obj.hasOwnProperty( i ) ) {
|
30
|
+
keys.push( i );
|
31
|
+
}
|
32
|
+
}
|
33
|
+
return keys;
|
34
|
+
},
|
35
|
+
_equals = function( a, b ) {
|
36
|
+
switch (typeof a) {
|
37
|
+
case "undefined": //backward compatibility, but really I think we should return false
|
38
|
+
case "boolean":
|
39
|
+
case "string":
|
40
|
+
case "number":
|
41
|
+
return a === b;
|
42
|
+
case "object":
|
43
|
+
if ( a === null ) {
|
44
|
+
return b === null;
|
45
|
+
}
|
46
|
+
if ( _isArray( a ) ) {
|
47
|
+
if ( !_isArray( b ) || a.length !== b.length ) {
|
48
|
+
return false;
|
49
|
+
}
|
50
|
+
for ( var i = 0, l = a.length; i < l; i++ ) {
|
51
|
+
if ( !_equals( a[ i ], b[ i ] ) ) {
|
52
|
+
return false;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
return true;
|
56
|
+
}
|
57
|
+
var bKeys = _objectKeys( b ),
|
58
|
+
bLength = bKeys.length;
|
59
|
+
if ( _objectKeys( a ).length !== bLength ) {
|
60
|
+
return false;
|
61
|
+
}
|
62
|
+
for ( var i = 0; i < bLength; i++ ) {
|
63
|
+
if ( !_equals( a[ i ], b[ i ] ) ) {
|
64
|
+
return false;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
return true;
|
68
|
+
default:
|
69
|
+
return false;
|
70
|
+
}
|
71
|
+
},
|
72
|
+
|
73
|
+
/* We use a Javascript hash to store each-
|
74
|
+
function. Each hash entry (property) uses
|
75
|
+
the operation identifiers specified in rfc6902.
|
76
|
+
In this way, we can map each patch operation
|
77
|
+
to its dedicated function in efficient way.
|
78
|
+
*/
|
79
|
+
// The operations applicable to an object */
|
80
|
+
objOps = {
|
81
|
+
add: function( obj, key ) {
|
82
|
+
obj[ key ] = this.value;
|
83
|
+
},
|
84
|
+
remove: function (obj, key) {
|
85
|
+
var removed = obj[key];
|
86
|
+
delete obj[key];
|
87
|
+
return removed;
|
88
|
+
},
|
89
|
+
replace: function( obj, key ) {
|
90
|
+
var removed = obj[ key ];
|
91
|
+
obj[ key ] = this.value;
|
92
|
+
return removed;
|
93
|
+
},
|
94
|
+
move: function( obj, key, tree ) {
|
95
|
+
var getOriginalDestination = { op: "_get", path: this.path };
|
96
|
+
apply( tree, [ getOriginalDestination ] );
|
97
|
+
|
98
|
+
// In case value is moved up and overwrites its ancestor
|
99
|
+
var original = getOriginalDestination.value === undefined ? undefined : JSON.parse( JSON.stringify( getOriginalDestination.value ) ),
|
100
|
+
temp = { op: "_get", path: this.from };
|
101
|
+
apply( tree, [ temp ] );
|
102
|
+
apply( tree, [
|
103
|
+
{ op: "remove", path: this.from }
|
104
|
+
] );
|
105
|
+
apply( tree, [
|
106
|
+
{ op: "add", path: this.path, value: temp.value }
|
107
|
+
] );
|
108
|
+
return original;
|
109
|
+
},
|
110
|
+
copy: function ( obj, key, tree ) {
|
111
|
+
var temp = { op: "_get", path: this.from };
|
112
|
+
apply( tree, [ temp ] );
|
113
|
+
apply( tree, [
|
114
|
+
{ op: "add", path: this.path, value: temp.value }
|
115
|
+
] );
|
116
|
+
},
|
117
|
+
test: function ( obj, key ) {
|
118
|
+
return _equals( obj[ key ], this.value );
|
119
|
+
},
|
120
|
+
_get: function ( obj, key ) {
|
121
|
+
this.value = obj[ key ];
|
122
|
+
}
|
123
|
+
},
|
124
|
+
|
125
|
+
// The operations applicable to an array. Many are the same as for the object
|
126
|
+
arrOps = {
|
127
|
+
add: function ( arr, i ) {
|
128
|
+
arr.splice( i, 0, this.value );
|
129
|
+
|
130
|
+
// this may be needed when using "-" in an array
|
131
|
+
return i;
|
132
|
+
},
|
133
|
+
remove: function ( arr, i ) {
|
134
|
+
var removedList = arr.splice( i, 1 );
|
135
|
+
return removedList[ 0 ];
|
136
|
+
},
|
137
|
+
replace: function ( arr, i ) {
|
138
|
+
var removed = arr[ i ];
|
139
|
+
arr[ i ] = this.value;
|
140
|
+
return removed;
|
141
|
+
},
|
142
|
+
move: objOps.move,
|
143
|
+
copy: objOps.copy,
|
144
|
+
test: objOps.test,
|
145
|
+
_get: objOps._get
|
146
|
+
},
|
147
|
+
|
148
|
+
// The operations applicable to object root. Many are the same as for the object
|
149
|
+
rootOps = {
|
150
|
+
add: function ( obj ) {
|
151
|
+
rootOps.remove.call( this, obj );
|
152
|
+
for ( var key in this.value ) {
|
153
|
+
if ( this.value.hasOwnProperty( key ) ) {
|
154
|
+
obj[ key ] = this.value[ key ];
|
155
|
+
}
|
156
|
+
}
|
157
|
+
},
|
158
|
+
remove: function ( obj ) {
|
159
|
+
var removed = {}, key;
|
160
|
+
for ( key in obj ) {
|
161
|
+
if ( obj.hasOwnProperty( key ) ) {
|
162
|
+
removed[ key ] = obj[ key ];
|
163
|
+
objOps.remove.call( this, obj, key );
|
164
|
+
}
|
165
|
+
}
|
166
|
+
return removed;
|
167
|
+
},
|
168
|
+
replace: function ( obj ) {
|
169
|
+
var removed = apply( obj, [
|
170
|
+
{ op: "remove", path: this.path }
|
171
|
+
] );
|
172
|
+
apply( obj, [
|
173
|
+
{ op: "add", path: this.path, value: this.value }
|
174
|
+
] );
|
175
|
+
return removed[ 0 ];
|
176
|
+
},
|
177
|
+
move: objOps.move,
|
178
|
+
copy: objOps.copy,
|
179
|
+
test: function ( obj ) {
|
180
|
+
return ( JSON.stringify( obj ) === JSON.stringify( this.value ) );
|
181
|
+
},
|
182
|
+
_get: function ( obj ) {
|
183
|
+
this.value = obj;
|
184
|
+
}
|
185
|
+
},
|
186
|
+
|
187
|
+
/**
|
188
|
+
* Apply a json-patch operation on an object tree
|
189
|
+
* Returns an array of results of operations.
|
190
|
+
* Each element can either be a boolean (if op === "test") or
|
191
|
+
* the removed object (operations that remove things)
|
192
|
+
* or just be undefined
|
193
|
+
*
|
194
|
+
@param {object} Tree
|
195
|
+
@param {array} Array of patches
|
196
|
+
@param {boolean} Apply the patch even if test fail, instead test result will be returned
|
197
|
+
*/
|
198
|
+
apply = function( tree, patches, force ) {
|
199
|
+
if ( !force ) {
|
200
|
+
|
201
|
+
// Re-order all "test" operation to ensure they are executed first
|
202
|
+
patches.sort( function( a, b ) {
|
203
|
+
if ( a.op === "test" && b.op !== "test" ) {
|
204
|
+
return -1;
|
205
|
+
} else if ( b.op === "test" ) {
|
206
|
+
return 1;
|
207
|
+
} else {
|
208
|
+
return 0;
|
209
|
+
}
|
210
|
+
} );
|
211
|
+
}
|
212
|
+
var results = new Array( patches.length ), p = 0, plen = patches.length, patch, key;
|
213
|
+
while ( p < plen ) {
|
214
|
+
patch = patches[ p ];
|
215
|
+
p += 1;
|
216
|
+
|
217
|
+
// Find the object
|
218
|
+
var path = patch.path || "",
|
219
|
+
op = patch.op,
|
220
|
+
isTest = force ? false : op === "test", // if true, it enforce test to apply subsequent patches
|
221
|
+
keys = path.split( "/" ),
|
222
|
+
obj = tree,
|
223
|
+
t = 1, //skip empty element - http://jsperf.com/to-shift-or-not-to-shift
|
224
|
+
len = keys.length;
|
225
|
+
while ( true && obj ) {
|
226
|
+
key = keys[ t ];
|
227
|
+
t += 1;
|
228
|
+
if ( key === undefined ) {
|
229
|
+
if ( t >= len ) {
|
230
|
+
results[ p - 1 ] = rootOps[ op ].call( patch, obj, key, tree ); // Apply patch
|
231
|
+
if ( isTest && !results[ p - 1 ] ) {
|
232
|
+
return tree;
|
233
|
+
}
|
234
|
+
break;
|
235
|
+
}
|
236
|
+
}
|
237
|
+
if ( _isArray( obj ) ) {
|
238
|
+
if ( key === "-" ) {
|
239
|
+
key = obj.length;
|
240
|
+
}
|
241
|
+
else {
|
242
|
+
key = parseInt( key, 10 );
|
243
|
+
}
|
244
|
+
if ( t >= len ) {
|
245
|
+
results[ p - 1 ] = arrOps[ op ].call( patch, obj, key, tree ); // Apply patch
|
246
|
+
if ( isTest && !results[ p - 1] ) {
|
247
|
+
return tree;
|
248
|
+
}
|
249
|
+
break;
|
250
|
+
}
|
251
|
+
}
|
252
|
+
else {
|
253
|
+
if ( key && key.indexOf( "~" ) !== -1 ) {
|
254
|
+
key = key.replace( /~1/g, "/" ).replace( /~0/g, "~" ); // escape chars
|
255
|
+
}
|
256
|
+
if ( t >= len ) {
|
257
|
+
results[ p - 1 ] = objOps[ op ].call( patch, obj, key, tree ); // Apply patch
|
258
|
+
if ( isTest && !results[ p - 1] ) {
|
259
|
+
return tree;
|
260
|
+
}
|
261
|
+
break;
|
262
|
+
}
|
263
|
+
}
|
264
|
+
obj = obj[ key ];
|
265
|
+
}
|
266
|
+
}
|
267
|
+
return results;
|
268
|
+
},
|
269
|
+
|
270
|
+
/**
|
271
|
+
* Register a custom operation, node in tree
|
272
|
+
*/
|
273
|
+
registerOperation = function( name, fn ) {
|
274
|
+
if ( objOps[ name ] ) {
|
275
|
+
throw "The operation " + name + " already registered.";
|
276
|
+
}
|
277
|
+
objOps[ name ] = fn;
|
278
|
+
},
|
279
|
+
|
280
|
+
/**
|
281
|
+
* Register a custom operation, tree is an array
|
282
|
+
*/
|
283
|
+
registerOperationArray = function( name, fn ) {
|
284
|
+
if ( arrOps[ name ] ) {
|
285
|
+
throw "The operation " + name + " already registered.";
|
286
|
+
}
|
287
|
+
arrOps[ name ] = fn;
|
288
|
+
},
|
289
|
+
|
290
|
+
/**
|
291
|
+
* Register a custom operation, root operation
|
292
|
+
*/
|
293
|
+
registerOperationRoot = function( name, fn ) {
|
294
|
+
if ( rootOps[ name ] ) {
|
295
|
+
throw "The operation " + name + " already registered.";
|
296
|
+
}
|
297
|
+
rootOps[ name ] = fn;
|
298
|
+
},
|
299
|
+
_isArray;
|
300
|
+
|
301
|
+
if ( Array.isArray ) {
|
302
|
+
_isArray = Array.isArray;
|
303
|
+
}
|
304
|
+
else {
|
305
|
+
_isArray = function ( obj ) {
|
306
|
+
return obj.push && typeof obj.length === "number";
|
307
|
+
};
|
308
|
+
}
|
309
|
+
|
310
|
+
jsonpatch.apply = apply;
|
311
|
+
jsonpatch.registerOps = registerOperation;
|
312
|
+
jsonpatch.registerOpsArray = registerOperationArray;
|
313
|
+
jsonpatch.registerOpsRoot = registerOperationRoot;
|
314
|
+
|
315
315
|
} )( jsonpatch || ( jsonpatch = {} ) );
|
@@ -0,0 +1 @@
|
|
1
|
+
var jsonpatch;!function(e){function i(e){if(m(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var n,t=[];for(n in e)e.hasOwnProperty(n)&&t.push(n);return t}var o=function(e,t){switch(typeof e){case"undefined":case"boolean":case"string":case"number":return e===t;case"object":if(null===e)return null===t;if(m(e)){if(!m(t)||e.length!==t.length)return!1;for(var r=0,n=e.length;r<n;r++)if(!o(e[r],t[r]))return!1;return!0}var a=i(t).length;if(i(e).length!==a)return!1;for(r=0;r<a;r++)if(!o(e[r],t[r]))return!1;return!0;default:return!1}},g={add:function(e,t){e[t]=this.value},remove:function(e,t){var r=e[t];return delete e[t],r},replace:function(e,t){var r=e[t];return e[t]=this.value,r},move:function(e,t,r){var n={op:"_get",path:this.path};u(r,[n]);var a=void 0===n.value?void 0:JSON.parse(JSON.stringify(n.value)),n={op:"_get",path:this.from};return u(r,[n]),u(r,[{op:"remove",path:this.from}]),u(r,[{op:"add",path:this.path,value:n.value}]),a},copy:function(e,t,r){var n={op:"_get",path:this.from};u(r,[n]),u(r,[{op:"add",path:this.path,value:n.value}])},test:function(e,t){return o(e[t],this.value)},_get:function(e,t){this.value=e[t]}},d={add:function(e,t){return e.splice(t,0,this.value),t},remove:function(e,t){return e.splice(t,1)[0]},replace:function(e,t){var r=e[t];return e[t]=this.value,r},move:g.move,copy:g.copy,test:g.test,_get:g._get},y={add:function(e){for(var t in y.remove.call(this,e),this.value)this.value.hasOwnProperty(t)&&(e[t]=this.value[t])},remove:function(e){var t,r={};for(t in e)e.hasOwnProperty(t)&&(r[t]=e[t],g.remove.call(this,e,t));return r},replace:function(e){var t=u(e,[{op:"remove",path:this.path}]);return u(e,[{op:"add",path:this.path,value:this.value}]),t[0]},move:g.move,copy:g.copy,test:function(e){return JSON.stringify(e)===JSON.stringify(this.value)},_get:function(e){this.value=e}},u=function(e,t,r){r||t.sort(function(e,t){return"test"===e.op&&"test"!==t.op?-1:"test"===t.op?1:0});for(var n,a,i=new Array(t.length),o=0,u=t.length;o<u;){n=t[o],o+=1;for(var s=n.path||"",h=n.op,f=!r&&"test"===h,l=s.split("/"),p=e,c=1,v=l.length;p;){if(a=l[c],c+=1,void 0===a&&v<=c){if(i[o-1]=y[h].call(n,p,a,e),f&&!i[o-1])return e;break}if(m(p)){if(a="-"===a?p.length:parseInt(a,10),v<=c){if(i[o-1]=d[h].call(n,p,a,e),f&&!i[o-1])return e;break}}else if(a&&-1!==a.indexOf("~")&&(a=a.replace(/~1/g,"/").replace(/~0/g,"~")),v<=c){if(i[o-1]=g[h].call(n,p,a,e),f&&!i[o-1])return e;break}p=p[a]}}return i},m=Array.isArray||function(e){return e.push&&"number"==typeof e.length};e.apply=u,e.registerOps=function(e,t){if(g[e])throw"The operation "+e+" already registered.";g[e]=t},e.registerOpsArray=function(e,t){if(d[e])throw"The operation "+e+" already registered.";d[e]=t},e.registerOpsRoot=function(e,t){if(y[e])throw"The operation "+e+" already registered.";y[e]=t}}(jsonpatch=jsonpatch||{});
|