@oracle/oraclejet 20.1.1 → 20.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (749) hide show
  1. package/README.md +1 -1
  2. package/THIRDPARTYLICENSE.txt +7 -7
  3. package/dist/css/alta/oj-alta-min.css +1 -1
  4. package/dist/css/alta/oj-alta-notag-min.css +1 -1
  5. package/dist/css/alta/oj-alta-notag.css +1 -1
  6. package/dist/css/alta/oj-alta.css +1 -1
  7. package/dist/css/alta-android/oj-alta-min.css +1 -1
  8. package/dist/css/alta-android/oj-alta.css +1 -1
  9. package/dist/css/alta-ios/oj-alta-min.css +1 -1
  10. package/dist/css/alta-ios/oj-alta.css +1 -1
  11. package/dist/css/alta-windows/oj-alta-min.css +1 -1
  12. package/dist/css/alta-windows/oj-alta.css +1 -1
  13. package/dist/css/redwood/oj-redwood-min.css +1 -1
  14. package/dist/css/redwood/oj-redwood-notag-min.css +1 -1
  15. package/dist/css/redwood/oj-redwood-notag.css +1 -1
  16. package/dist/css/redwood/oj-redwood.css +1 -1
  17. package/dist/css/stable/oj-stable-min.css +1 -1
  18. package/dist/css/stable/oj-stable.css +1 -1
  19. package/dist/js/libs/oj/debug/ojconfig.js +54 -0
  20. package/dist/js/libs/oj/debug/ojcore-base.js +2 -2
  21. package/dist/js/libs/oj/debug/ojexpressionutils.js +11 -9
  22. package/dist/js/libs/oj/debug/ojkoshared.js +23 -27
  23. package/dist/js/libs/oj/debug_esm/ojconfig.js +53 -1
  24. package/dist/js/libs/oj/debug_esm/ojcore-base.js +2 -2
  25. package/dist/js/libs/oj/debug_esm/ojexpressionutils.js +12 -9
  26. package/dist/js/libs/oj/debug_esm/ojkoshared.js +24 -27
  27. package/dist/js/libs/oj/main-template.js +3 -3
  28. package/dist/js/libs/oj/min/ojconfig.js +1 -1
  29. package/dist/js/libs/oj/min/ojconfig.js.map +1 -1
  30. package/dist/js/libs/oj/min/ojcore-base.js +1 -1
  31. package/dist/js/libs/oj/min/ojexpressionutils.js +1 -1
  32. package/dist/js/libs/oj/min/ojexpressionutils.js.map +1 -1
  33. package/dist/js/libs/oj/min/ojkoshared.js +1 -1
  34. package/dist/js/libs/oj/min/ojkoshared.js.map +1 -1
  35. package/dist/js/libs/persist/debug/impl/PersistenceSyncManager.js +23 -0
  36. package/dist/js/libs/persist/debug/impl/pouchDBPersistenceStore.js +66 -18
  37. package/dist/js/libs/persist/debug/{offline-persistence-toolkit-core-1.5.7.js → offline-persistence-toolkit-core-1.5.9.js} +1439 -1368
  38. package/dist/js/libs/persist/debug/{offline-persistence-toolkit-filesystemstore-1.5.7.js → offline-persistence-toolkit-filesystemstore-1.5.9.js} +1414 -1366
  39. package/dist/js/libs/persist/debug/{offline-persistence-toolkit-pouchdbstore-1.5.7.js → offline-persistence-toolkit-pouchdbstore-1.5.9.js} +1414 -1366
  40. package/dist/js/libs/persist/debug/{offline-persistence-toolkit-responseproxy-1.5.7.js → offline-persistence-toolkit-responseproxy-1.5.9.js} +1432 -1371
  41. package/dist/js/libs/persist/debug/pouchdb-browser-7.2.2.js +1344 -1344
  42. package/dist/js/libs/persist/debug/queryHandlers.js +14 -1
  43. package/dist/js/libs/persist/min/DataMapping.js +1 -0
  44. package/dist/js/libs/persist/min/PersistenceStore.js +2 -1
  45. package/dist/js/libs/persist/min/arrayPersistenceStoreFactory.js +2 -1
  46. package/dist/js/libs/persist/min/cacheStrategies.js +2 -1
  47. package/dist/js/libs/persist/min/configurablePouchDBStoreFactory.js +2 -1
  48. package/dist/js/libs/persist/min/defaultResponseProxy.js +2 -1
  49. package/dist/js/libs/persist/min/fetchStrategies.js +2 -1
  50. package/dist/js/libs/persist/min/fileSystemPersistenceStoreFactory.js +2 -1
  51. package/dist/js/libs/persist/min/impl/OfflineCache.js +2 -1
  52. package/dist/js/libs/persist/min/impl/PersistenceStoreMetadata.js +2 -1
  53. package/dist/js/libs/persist/min/impl/PersistenceSyncManager.js +2 -1
  54. package/dist/js/libs/persist/min/impl/PersistenceXMLHttpRequest.js +2 -1
  55. package/dist/js/libs/persist/min/impl/arrayPersistenceStore.js +2 -1
  56. package/dist/js/libs/persist/min/impl/defaultCacheHandler.js +2 -1
  57. package/dist/js/libs/persist/min/impl/fetch.js +1 -33
  58. package/dist/js/libs/persist/min/impl/fileSystemPersistenceStore.js +2 -1
  59. package/dist/js/libs/persist/min/impl/keyValuePersistenceStore.js +2 -1
  60. package/dist/js/libs/persist/min/impl/localPersistenceStore.js +2 -1
  61. package/dist/js/libs/persist/min/impl/logger.js +2 -1
  62. package/dist/js/libs/persist/min/impl/offlineCacheManager.js +2 -1
  63. package/dist/js/libs/persist/min/impl/pouchDBPersistenceStore.js +2 -1
  64. package/dist/js/libs/persist/min/impl/sql-where-parser.min.js +1 -1
  65. package/dist/js/libs/persist/min/impl/storageUtils.js +2 -1
  66. package/dist/js/libs/persist/min/localPersistenceStoreFactory.js +2 -1
  67. package/dist/js/libs/persist/min/offline-persistence-toolkit-arraystore-1.5.9.js +7 -0
  68. package/dist/js/libs/persist/min/offline-persistence-toolkit-core-1.5.9.js +7 -0
  69. package/dist/js/libs/persist/min/offline-persistence-toolkit-filesystemstore-1.5.9.js +7 -0
  70. package/dist/js/libs/persist/min/offline-persistence-toolkit-localstore-1.5.9.js +7 -0
  71. package/dist/js/libs/persist/min/offline-persistence-toolkit-pouchdbstore-1.5.9.js +7 -0
  72. package/dist/js/libs/persist/min/offline-persistence-toolkit-responseproxy-1.5.9.js +7 -0
  73. package/dist/js/libs/persist/min/oracleRestJsonShredding.js +2 -1
  74. package/dist/js/libs/persist/min/persistenceManager.js +2 -1
  75. package/dist/js/libs/persist/min/persistenceStoreFactory.js +2 -1
  76. package/dist/js/libs/persist/min/persistenceStoreManager.js +2 -1
  77. package/dist/js/libs/persist/min/persistenceUtils.js +2 -1
  78. package/dist/js/libs/persist/min/pouchDBPersistenceStoreFactory.js +2 -1
  79. package/dist/js/libs/persist/min/pouchdb-browser-7.2.2.js +1 -1787
  80. package/dist/js/libs/persist/min/pouchdb.find.js +1 -1
  81. package/dist/js/libs/persist/min/queryHandlers.js +2 -1
  82. package/dist/js/libs/persist/min/simpleBinaryDataShredding.js +2 -1
  83. package/dist/js/libs/persist/min/simpleJsonShredding.js +2 -1
  84. package/dist/metadata/components/allComponents.json +319 -319
  85. package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/helpers/themes/base/_oj-helpers.scss +1 -1
  86. package/dist/scss/common/helpers/_oj.common.helpers.scss +1 -1
  87. package/dist/types/ojconfig/index.d.ts +5 -0
  88. package/dist/webpack-tools/4.x/webpack.config.js +3 -3
  89. package/dist/webpack-tools/webpack.config.js +3 -3
  90. package/package.json +2 -2
  91. package/dist/js/libs/persist/min/offline-persistence-toolkit-arraystore-1.5.7.js +0 -6
  92. package/dist/js/libs/persist/min/offline-persistence-toolkit-core-1.5.7.js +0 -1802
  93. package/dist/js/libs/persist/min/offline-persistence-toolkit-filesystemstore-1.5.7.js +0 -1792
  94. package/dist/js/libs/persist/min/offline-persistence-toolkit-localstore-1.5.7.js +0 -6
  95. package/dist/js/libs/persist/min/offline-persistence-toolkit-pouchdbstore-1.5.7.js +0 -1792
  96. package/dist/js/libs/persist/min/offline-persistence-toolkit-responseproxy-1.5.7.js +0 -1792
  97. /package/dist/js/libs/persist/debug/{offline-persistence-toolkit-arraystore-1.5.7.js → offline-persistence-toolkit-arraystore-1.5.9.js} +0 -0
  98. /package/dist/js/libs/persist/debug/{offline-persistence-toolkit-localstore-1.5.7.js → offline-persistence-toolkit-localstore-1.5.9.js} +0 -0
  99. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/accordion/themes/base/_oj-accordion.scss +0 -0
  100. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/accordion/themes/redwood/_oj-accordion.cssvars.scss +0 -0
  101. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/accordion/themes/redwood/oj-accordion.scss +0 -0
  102. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/accordion/themes/stable/_oj-accordion.cssvars.scss +0 -0
  103. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/accordion/themes/stable/oj-accordion.scss +0 -0
  104. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/action-card/themes/base/_oj-action-card.scss +0 -0
  105. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/action-card/themes/redwood/_oj-action-card.cssvars.scss +0 -0
  106. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/action-card/themes/redwood/oj-action-card.scss +0 -0
  107. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/action-card/themes/stable/_oj-action-card.cssvars.scss +0 -0
  108. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/action-card/themes/stable/oj-action-card.scss +0 -0
  109. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/all-components/themes/base/_oj.common.servervars.scss +0 -0
  110. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/all-components/themes/base/oj.common.settings.cssvariables.css +0 -0
  111. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/all-components/themes/redwood/_oj-all-components-common.scss +0 -0
  112. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/all-components/themes/redwood/_oj-all-components-notag.scss +0 -0
  113. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/all-components/themes/redwood/_oj-all-components.scss +0 -0
  114. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/all-components/themes/redwood/_oj.redwood.settings.scss +0 -0
  115. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/all-components/themes/redwood/oj.redwood.cssvars.settings.css +0 -0
  116. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/all-components/themes/stable/_oj-all-components-common.scss +0 -0
  117. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/all-components/themes/stable/_oj-all-components-notag.scss +0 -0
  118. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/all-components/themes/stable/_oj-all-components.scss +0 -0
  119. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/all-components/themes/stable/_oj.stable.settings.scss +0 -0
  120. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/all-components/themes/stable/oj.stable.cssvars.settings.css +0 -0
  121. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/animation/themes/base/_oj-animation.scss +0 -0
  122. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/animation/themes/redwood/_oj-animation.cssvars.scss +0 -0
  123. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/animation/themes/redwood/_oj-animation.servervars.scss +0 -0
  124. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/animation/themes/redwood/oj-animation.scss +0 -0
  125. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/animation/themes/stable/_oj-animation.cssvars.scss +0 -0
  126. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/animation/themes/stable/_oj-animation.servervars.scss +0 -0
  127. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/animation/themes/stable/oj-animation.scss +0 -0
  128. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/app-layout/themes/base/_oj-app-layout.scss +0 -0
  129. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/app-layout/themes/redwood/_oj-app-layout.cssvars.scss +0 -0
  130. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/app-layout/themes/redwood/_oj-app-layout.scss +0 -0
  131. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/app-layout/themes/stable/_oj-app-layout.cssvars.scss +0 -0
  132. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/app-layout/themes/stable/_oj-app-layout.scss +0 -0
  133. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/app-layout-hybrid/themes/base/_oj-app-layout-hybrid-ignore.scoped.cssvars.scss +0 -0
  134. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/app-layout-hybrid/themes/base/_oj-app-layout-hybrid.scss +0 -0
  135. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/app-layout-hybrid/themes/redwood/_oj-app-layout-hybrid.cssvars.scss +0 -0
  136. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/app-layout-hybrid/themes/redwood/oj-app-layout-hybrid.scss +0 -0
  137. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/app-layout-hybrid/themes/stable/_oj-app-layout-hybrid.cssvars.scss +0 -0
  138. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/app-layout-hybrid/themes/stable/oj-app-layout-hybrid.scss +0 -0
  139. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/app-layout-web/themes/base/_oj-app-layout-web.scss +0 -0
  140. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/app-layout-web/themes/redwood/_oj-app-layout-web.cssvars.scss +0 -0
  141. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/app-layout-web/themes/redwood/oj-app-layout-web.scss +0 -0
  142. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/app-layout-web/themes/stable/_oj-app-layout-web.cssvars.scss +0 -0
  143. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/app-layout-web/themes/stable/oj-app-layout-web.scss +0 -0
  144. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/avatar/themes/base/_oj-avatar.scss +0 -0
  145. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/avatar/themes/redwood/_oj-avatar-ignore.scoped.cssvars.scss +0 -0
  146. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/avatar/themes/redwood/_oj-avatar-scoped.cssvars.scss +0 -0
  147. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/avatar/themes/redwood/_oj-avatar.cssvars.scss +0 -0
  148. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/avatar/themes/redwood/oj-avatar.scss +0 -0
  149. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/avatar/themes/stable/_oj-avatar-scoped.cssvars.scss +0 -0
  150. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/avatar/themes/stable/_oj-avatar.cssvars.scss +0 -0
  151. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/avatar/themes/stable/oj-avatar.scss +0 -0
  152. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/badge/themes/base/_oj-badge.scss +0 -0
  153. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/badge/themes/redwood/_oj-badge-ignore.scoped.cssvars.scss +0 -0
  154. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/badge/themes/redwood/_oj-badge-scoped.cssvars.scss +0 -0
  155. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/badge/themes/redwood/_oj-badge.cssvars.scss +0 -0
  156. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/badge/themes/redwood/oj-badge.scss +0 -0
  157. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/badge/themes/stable/_oj-badge-scoped.cssvars.scss +0 -0
  158. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/badge/themes/stable/_oj-badge.cssvars.scss +0 -0
  159. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/badge/themes/stable/oj-badge.scss +0 -0
  160. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/button/themes/base/_oj-button.scss +0 -0
  161. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/button/themes/redwood/_oj-button-ignore.scoped.cssvars.scss +0 -0
  162. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/button/themes/redwood/_oj-button-scoped.cssvars.scss +0 -0
  163. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/button/themes/redwood/_oj-button.cssvars.scss +0 -0
  164. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/button/themes/redwood/oj-button.scss +0 -0
  165. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/button/themes/stable/_oj-button-ignore.scoped.cssvars.scss +0 -0
  166. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/button/themes/stable/_oj-button-scoped.cssvars.scss +0 -0
  167. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/button/themes/stable/_oj-button.cssvars.scss +0 -0
  168. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/button/themes/stable/oj-button.scss +0 -0
  169. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/buttonset/themes/base/_oj-buttonset.scss +0 -0
  170. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/buttonset/themes/redwood/_oj-buttonset-scoped.cssvars.scss +0 -0
  171. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/buttonset/themes/redwood/_oj-buttonset.cssvars.scss +0 -0
  172. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/buttonset/themes/redwood/_oj-buttonset.scss +0 -0
  173. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/buttonset/themes/stable/_oj-buttonset-scoped.cssvars.scss +0 -0
  174. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/buttonset/themes/stable/_oj-buttonset.cssvars.scss +0 -0
  175. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/buttonset/themes/stable/_oj-buttonset.scss +0 -0
  176. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/buttonset-many/themes/redwood/oj-buttonset-many.scss +0 -0
  177. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/buttonset-many/themes/stable/oj-buttonset-many.scss +0 -0
  178. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/buttonset-one/themes/redwood/oj-buttonset-one.scss +0 -0
  179. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/buttonset-one/themes/stable/oj-buttonset-one.scss +0 -0
  180. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/chart/themes/base/_oj-chart.scss +0 -0
  181. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/chart/themes/redwood/_oj-chart.cssvars.scss +0 -0
  182. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/chart/themes/redwood/oj-chart.scss +0 -0
  183. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/chart/themes/stable/_oj-chart.cssvars.scss +0 -0
  184. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/chart/themes/stable/oj-chart.scss +0 -0
  185. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/checkboxset/themes/redwood/_oj-checkboxset.cssvars.scss +0 -0
  186. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/checkboxset/themes/redwood/oj-checkboxset.scss +0 -0
  187. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/checkboxset/themes/stable/_oj-checkboxset.cssvars.scss +0 -0
  188. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/checkboxset/themes/stable/oj-checkboxset.scss +0 -0
  189. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/collapsible/themes/base/_oj-collapsible.scss +0 -0
  190. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/collapsible/themes/redwood/_oj-collapsible.cssvars.scss +0 -0
  191. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/collapsible/themes/redwood/oj-collapsible.scss +0 -0
  192. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/collapsible/themes/stable/_oj-collapsible.cssvars.scss +0 -0
  193. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/collapsible/themes/stable/oj-collapsible.scss +0 -0
  194. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/collection/themes/redwood/_oj-collection-ignore.scoped.cssvars.scss +0 -0
  195. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/collection/themes/redwood/_oj-collection-scoped.cssvars.scss +0 -0
  196. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/collection/themes/redwood/_oj-collection.cssvars.scss +0 -0
  197. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/collection/themes/stable/_oj-collection-scoped.cssvars.scss +0 -0
  198. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/collection/themes/stable/_oj-collection.cssvars.scss +0 -0
  199. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/color-palette/themes/base/_oj-color-palette.scss +0 -0
  200. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/color-palette/themes/redwood/_oj-color-palette.cssvars.scss +0 -0
  201. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/color-palette/themes/redwood/oj-color-palette.scss +0 -0
  202. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/color-palette/themes/stable/_oj-color-palette.cssvars.scss +0 -0
  203. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/color-palette/themes/stable/oj-color-palette.scss +0 -0
  204. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/color-spectrum/themes/base/_oj-color-spectrum.scss +0 -0
  205. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/color-spectrum/themes/redwood/_oj-color-spectrum.cssvars.scss +0 -0
  206. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/color-spectrum/themes/redwood/oj-color-spectrum.scss +0 -0
  207. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/color-spectrum/themes/stable/_oj-color-spectrum.cssvars.scss +0 -0
  208. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/color-spectrum/themes/stable/oj-color-spectrum.scss +0 -0
  209. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/combobox/themes/base/_oj-combobox.scss +0 -0
  210. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/combobox/themes/redwood/_oj-combobox.cssvars.scss +0 -0
  211. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/combobox/themes/redwood/_oj-combobox.scss +0 -0
  212. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/combobox/themes/stable/_oj-combobox.cssvars.scss +0 -0
  213. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/combobox/themes/stable/_oj-combobox.scss +0 -0
  214. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/combobox-many/themes/redwood/oj-combobox-many.scss +0 -0
  215. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/combobox-many/themes/stable/oj-combobox-many.scss +0 -0
  216. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/combobox-one/themes/redwood/oj-combobox-one.scss +0 -0
  217. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/combobox-one/themes/stable/oj-combobox-one.scss +0 -0
  218. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/conveyor-belt/themes/base/_oj-conveyor-belt.scss +0 -0
  219. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/conveyor-belt/themes/redwood/_oj-conveyor-belt.cssvars.scss +0 -0
  220. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/conveyor-belt/themes/redwood/oj-conveyor-belt.scss +0 -0
  221. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/conveyor-belt/themes/stable/_oj-conveyor-belt.cssvars.scss +0 -0
  222. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/conveyor-belt/themes/stable/oj-conveyor-belt.scss +0 -0
  223. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/core/themes/redwood/_oj-core-ignore.scoped.cssvars.scss +0 -0
  224. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/core/themes/redwood/_oj-core-scoped.cssvars.scss +0 -0
  225. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/core/themes/redwood/_oj-core.cssvars.scss +0 -0
  226. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/core/themes/stable/_oj-core-ignore.scoped.cssvars.scss +0 -0
  227. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/core/themes/stable/_oj-core-scoped.cssvars.scss +0 -0
  228. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/core/themes/stable/_oj-core.cssvars.scss +0 -0
  229. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/data-grid/themes/base/_oj-data-grid.scss +0 -0
  230. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/data-grid/themes/redwood/_oj-data-grid-scoped.cssvars.scss +0 -0
  231. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/data-grid/themes/redwood/_oj-data-grid.cssvars.scss +0 -0
  232. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/data-grid/themes/redwood/oj-data-grid.scss +0 -0
  233. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/data-grid/themes/stable/_oj-data-grid-scoped.cssvars.scss +0 -0
  234. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/data-grid/themes/stable/_oj-data-grid.cssvars.scss +0 -0
  235. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/data-grid/themes/stable/oj-data-grid.scss +0 -0
  236. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/date-picker/themes/redwood/oj-date-picker.scss +0 -0
  237. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/date-picker/themes/stable/oj-date-picker.scss +0 -0
  238. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/date-time-picker/themes/base/_oj-date-time-picker.scss +0 -0
  239. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/date-time-picker/themes/redwood/_oj-date-time-picker.cssvars.scss +0 -0
  240. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/date-time-picker/themes/redwood/_oj-date-time-picker.servervars.scss +0 -0
  241. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/date-time-picker/themes/redwood/oj-date-time-picker.scss +0 -0
  242. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/date-time-picker/themes/stable/_oj-date-time-picker.cssvars.scss +0 -0
  243. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/date-time-picker/themes/stable/_oj-date-time-picker.servervars.scss +0 -0
  244. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/date-time-picker/themes/stable/oj-date-time-picker.scss +0 -0
  245. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/diagram/themes/base/_oj-diagram.scss +0 -0
  246. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/diagram/themes/redwood/_oj-diagram.cssvars.scss +0 -0
  247. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/diagram/themes/redwood/oj-diagram.scss +0 -0
  248. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/diagram/themes/stable/_oj-diagram.cssvars.scss +0 -0
  249. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/diagram/themes/stable/oj-diagram.scss +0 -0
  250. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/dialog/themes/base/_oj-dialog-ignore.scoped.cssvars.scss +0 -0
  251. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/dialog/themes/base/_oj-dialog.scss +0 -0
  252. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/dialog/themes/redwood/_oj-dialog-ignore.scoped.cssvars.scss +0 -0
  253. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/dialog/themes/redwood/_oj-dialog-scoped.cssvars.scss +0 -0
  254. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/dialog/themes/redwood/_oj-dialog.cssvars.scss +0 -0
  255. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/dialog/themes/redwood/_oj-dialog.servervars.scss +0 -0
  256. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/dialog/themes/redwood/oj-dialog.scss +0 -0
  257. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/dialog/themes/stable/_oj-dialog-scoped.cssvars.scss +0 -0
  258. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/dialog/themes/stable/_oj-dialog.cssvars.scss +0 -0
  259. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/dialog/themes/stable/_oj-dialog.servervars.scss +0 -0
  260. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/dialog/themes/stable/oj-dialog.scss +0 -0
  261. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/drawer-layout/themes/base/_oj-drawer-layout-ignore.scoped.cssvars.scss +0 -0
  262. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/drawer-layout/themes/base/_oj-drawer-layout.scss +0 -0
  263. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/drawer-layout/themes/redwood/_oj-drawer-layout.cssvars.scss +0 -0
  264. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/drawer-layout/themes/redwood/oj-drawer-layout.scss +0 -0
  265. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/drawer-layout/themes/stable/_oj-drawer-layout.cssvars.scss +0 -0
  266. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/drawer-layout/themes/stable/oj-drawer-layout.scss +0 -0
  267. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/drawer-popup/themes/base/_oj-drawer-popup-ignore.scoped.cssvars.scss +0 -0
  268. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/drawer-popup/themes/base/_oj-drawer-popup.scss +0 -0
  269. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/drawer-popup/themes/redwood/_oj-drawer-popup.cssvars.scss +0 -0
  270. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/drawer-popup/themes/redwood/oj-drawer-popup.scss +0 -0
  271. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/drawer-popup/themes/stable/_oj-drawer-popup.cssvars.scss +0 -0
  272. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/drawer-popup/themes/stable/oj-drawer-popup.scss +0 -0
  273. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/dvt/themes/base/_oj-dvt.scss +0 -0
  274. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/dvt/themes/redwood/_oj-dvt.cssvars.scss +0 -0
  275. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/dvt/themes/redwood/_oj-dvt.scss +0 -0
  276. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/dvt/themes/stable/_oj-dvt.cssvars.scss +0 -0
  277. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/dvt/themes/stable/_oj-dvt.scss +0 -0
  278. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/file-picker/themes/base/_oj-file-picker.scss +0 -0
  279. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/file-picker/themes/redwood/_oj-file-picker.cssvars.scss +0 -0
  280. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/file-picker/themes/redwood/oj-file-picker.scss +0 -0
  281. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/file-picker/themes/stable/_oj-file-picker.cssvars.scss +0 -0
  282. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/file-picker/themes/stable/oj-file-picker.scss +0 -0
  283. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/film-strip/themes/base/_oj-film-strip.scss +0 -0
  284. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/film-strip/themes/redwood/_oj-film-strip.cssvars.scss +0 -0
  285. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/film-strip/themes/redwood/oj-film-strip.scss +0 -0
  286. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/film-strip/themes/stable/_oj-film-strip.cssvars.scss +0 -0
  287. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/film-strip/themes/stable/oj-film-strip.scss +0 -0
  288. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/flex/themes/base/_oj-flex.scss +0 -0
  289. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/flex/themes/redwood/oj-flex.scss +0 -0
  290. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/flex/themes/stable/oj-flex.scss +0 -0
  291. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-control/themes/base/_oj-form-control.mixins.scss +0 -0
  292. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-control/themes/base/_oj-form-control.scss +0 -0
  293. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-control/themes/base/_oj-messaging.scss +0 -0
  294. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-control/themes/redwood/_oj-form-control-ignore.cssvars.scss +0 -0
  295. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-control/themes/redwood/_oj-form-control-ignore.scoped.cssvars.scss +0 -0
  296. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-control/themes/redwood/_oj-form-control.cssvars.scss +0 -0
  297. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-control/themes/redwood/_oj-form-control.scss +0 -0
  298. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-control/themes/redwood/_oj-messaging.scss +0 -0
  299. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-control/themes/redwood/_oj-messaging.servervars.scss +0 -0
  300. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-control/themes/stable/_oj-form-control-ignore.cssvars.scss +0 -0
  301. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-control/themes/stable/_oj-form-control-ignore.scoped.cssvars.scss +0 -0
  302. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-control/themes/stable/_oj-form-control.cssvars.scss +0 -0
  303. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-control/themes/stable/_oj-form-control.scss +0 -0
  304. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-control/themes/stable/_oj-messaging.scss +0 -0
  305. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-control/themes/stable/_oj-messaging.servervars.scss +0 -0
  306. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-layout/themes/base/_oj-form-layout.scss +0 -0
  307. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-layout/themes/redwood/_oj-form-layout-scoped.cssvars.scss +0 -0
  308. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-layout/themes/redwood/_oj-form-layout.cssvars.scss +0 -0
  309. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-layout/themes/redwood/_oj-form-layout.servervars.scss +0 -0
  310. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-layout/themes/redwood/oj-form-layout.scss +0 -0
  311. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-layout/themes/stable/_oj-form-layout-scoped.cssvars.scss +0 -0
  312. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-layout/themes/stable/_oj-form-layout.cssvars.scss +0 -0
  313. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-layout/themes/stable/_oj-form-layout.servervars.scss +0 -0
  314. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/form-layout/themes/stable/oj-form-layout.scss +0 -0
  315. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/gantt/themes/base/_oj-gantt.scss +0 -0
  316. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/gantt/themes/redwood/_oj-gantt.cssvars.scss +0 -0
  317. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/gantt/themes/redwood/oj-gantt.scss +0 -0
  318. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/gantt/themes/stable/_oj-gantt.cssvars.scss +0 -0
  319. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/gantt/themes/stable/oj-gantt.scss +0 -0
  320. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/gauge/themes/base/_oj-gauge.scss +0 -0
  321. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/gauge/themes/redwood/_oj-gauge.cssvars.scss +0 -0
  322. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/gauge/themes/redwood/oj-gauge.scss +0 -0
  323. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/gauge/themes/stable/_oj-gauge.cssvars.scss +0 -0
  324. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/gauge/themes/stable/oj-gauge.scss +0 -0
  325. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/grid/themes/base/_oj-grid.scss +0 -0
  326. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/grid/themes/redwood/oj-grid.scss +0 -0
  327. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/grid/themes/stable/oj-grid.scss +0 -0
  328. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/helpers/themes/base/_oj-helpers-ignore.scoped.cssvars.scss +0 -0
  329. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/helpers/themes/base/_oj-responsive-helpers.scss +0 -0
  330. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/helpers/themes/redwood/_oj-theme.servervars.scss +0 -0
  331. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/helpers/themes/redwood/oj-helpers.scss +0 -0
  332. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/helpers/themes/redwood/oj-responsive.helpers.scss +0 -0
  333. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/helpers/themes/stable/_oj-theme.servervars.scss +0 -0
  334. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/helpers/themes/stable/oj-helpers.scss +0 -0
  335. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/helpers/themes/stable/oj-responsive.helpers.scss +0 -0
  336. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/highlight-text/themes/base/_oj-highlight-text.scss +0 -0
  337. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/highlight-text/themes/redwood/oj-highlight-text.scss +0 -0
  338. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/highlight-text/themes/stable/oj-highlight-text.scss +0 -0
  339. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/icon-circle/themes/base/_oj-icon-circle.scss +0 -0
  340. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/icon-circle/themes/redwood/_oj-icon-circle-ignore.scoped.cssvars.scss +0 -0
  341. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/icon-circle/themes/redwood/_oj-icon-circle.cssvars.scss +0 -0
  342. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/icon-circle/themes/redwood/oj-icon-circle.scss +0 -0
  343. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/icons/themes/base/_oj-icons.scss +0 -0
  344. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/icons/themes/redwood/_oj-icon-font.scss +0 -0
  345. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/icons/themes/redwood/_oj-icons-ignore.scoped.cssvars.scss +0 -0
  346. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/icons/themes/redwood/_oj-icons.cssvars.scss +0 -0
  347. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/icons/themes/redwood/oj-icons.scss +0 -0
  348. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/icons/themes/stable/_oj-icon-font.scss +0 -0
  349. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/icons/themes/stable/_oj-icons-ignore.scoped.cssvars.scss +0 -0
  350. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/icons/themes/stable/_oj-icons.cssvars.scss +0 -0
  351. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/icons/themes/stable/oj-icons.scss +0 -0
  352. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/indexer/themes/base/_oj-indexer.scss +0 -0
  353. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/indexer/themes/redwood/_oj-indexer.cssvars.scss +0 -0
  354. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/indexer/themes/redwood/oj-indexer.scss +0 -0
  355. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/indexer/themes/stable/_oj-indexer.cssvars.scss +0 -0
  356. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/indexer/themes/stable/oj-indexer.scss +0 -0
  357. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-date/themes/redwood/oj-input-date.scss +0 -0
  358. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-date/themes/stable/oj-input-date.scss +0 -0
  359. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-date-time/themes/redwood/oj-input-date-time.scss +0 -0
  360. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-date-time/themes/stable/oj-input-date-time.scss +0 -0
  361. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-number/themes/base/_oj-input-number.scss +0 -0
  362. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-number/themes/redwood/_oj-input-number.cssvars.scss +0 -0
  363. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-number/themes/redwood/oj-input-number.scss +0 -0
  364. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-number/themes/stable/_oj-input-number.cssvars.scss +0 -0
  365. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-number/themes/stable/oj-input-number.scss +0 -0
  366. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-password/themes/redwood/oj-input-password.scss +0 -0
  367. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-password/themes/stable/oj-input-password.scss +0 -0
  368. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-search/themes/base/_oj-input-search.scss +0 -0
  369. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-search/themes/redwood/_oj-input-search-scoped.cssvars.scss +0 -0
  370. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-search/themes/redwood/_oj-input-search.cssvars.scss +0 -0
  371. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-search/themes/redwood/_oj-input-search.scss +0 -0
  372. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-search/themes/stable/_oj-input-search-scoped.cssvars.scss +0 -0
  373. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-search/themes/stable/_oj-input-search.cssvars.scss +0 -0
  374. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-search/themes/stable/_oj-input-search.scss +0 -0
  375. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-text/themes/base/_oj-input-text.scss +0 -0
  376. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-text/themes/redwood/_oj-input-text.cssvars.scss +0 -0
  377. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-text/themes/redwood/oj-input-text.scss +0 -0
  378. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-text/themes/stable/_oj-input-text.cssvars.scss +0 -0
  379. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-text/themes/stable/oj-input-text.scss +0 -0
  380. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-time/themes/redwood/oj-input-time.scss +0 -0
  381. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/input-time/themes/stable/oj-input-time.scss +0 -0
  382. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/label/themes/base/_oj-label.scss +0 -0
  383. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/label/themes/redwood/_oj-label-scoped.cssvars.scss +0 -0
  384. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/label/themes/redwood/_oj-label.cssvars.scss +0 -0
  385. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/label/themes/redwood/oj-label.scss +0 -0
  386. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/label/themes/stable/_oj-label-scoped.cssvars.scss +0 -0
  387. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/label/themes/stable/_oj-label.cssvars.scss +0 -0
  388. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/label/themes/stable/oj-label.scss +0 -0
  389. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/label-value/themes/base/_oj-label-value.scss +0 -0
  390. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/label-value/themes/redwood/_oj-label-value.scss +0 -0
  391. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/label-value/themes/stable/_oj-label-value.scss +0 -0
  392. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/led-gauge/themes/base/_oj-led-gauge.scss +0 -0
  393. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/led-gauge/themes/redwood/_oj-led-gauge.cssvars.scss +0 -0
  394. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/led-gauge/themes/redwood/oj-led-gauge.scss +0 -0
  395. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/led-gauge/themes/stable/_oj-led-gauge.cssvars.scss +0 -0
  396. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/led-gauge/themes/stable/oj-led-gauge.scss +0 -0
  397. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/legend/themes/base/_oj-legend.scss +0 -0
  398. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/legend/themes/redwood/_oj-legend.cssvars.scss +0 -0
  399. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/legend/themes/redwood/oj-legend.scss +0 -0
  400. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/legend/themes/stable/_oj-legend.cssvars.scss +0 -0
  401. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/legend/themes/stable/oj-legend.scss +0 -0
  402. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/list-box/themes/base/_oj-list-box.scss +0 -0
  403. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/list-box/themes/redwood/_oj-list-box.cssvars.scss +0 -0
  404. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/list-box/themes/redwood/_oj-list-box.scss +0 -0
  405. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/list-box/themes/stable/_oj-list-box.cssvars.scss +0 -0
  406. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/list-box/themes/stable/_oj-list-box.scss +0 -0
  407. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/list-item-layout/themes/base/_oj-list-item-layout.scoped.scss +0 -0
  408. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/list-item-layout/themes/base/_oj-list-item-layout.scss +0 -0
  409. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/list-item-layout/themes/redwood/_oj-list-item-layout.cssvars.scss +0 -0
  410. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/list-item-layout/themes/redwood/oj-list-item-layout.scss +0 -0
  411. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/list-item-layout/themes/stable/_oj-list-item-layout.cssvars.scss +0 -0
  412. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/list-item-layout/themes/stable/oj-list-item-layout.scss +0 -0
  413. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/list-view/themes/base/_oj-list-view.scoped.scss +0 -0
  414. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/list-view/themes/base/_oj-list-view.scss +0 -0
  415. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/list-view/themes/redwood/_oj-list-view-ignore.scoped.cssvars.scss +0 -0
  416. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/list-view/themes/redwood/_oj-list-view.cssvars.scss +0 -0
  417. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/list-view/themes/redwood/oj-list-view.scss +0 -0
  418. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/list-view/themes/stable/_oj-list-view.cssvars.scss +0 -0
  419. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/list-view/themes/stable/oj-list-view.scss +0 -0
  420. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/masonry-layout/themes/base/_oj-masonry-layout.scss +0 -0
  421. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/masonry-layout/themes/redwood/_oj-masonry-layout.cssvars.scss +0 -0
  422. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/masonry-layout/themes/redwood/_oj-masonry-layout.servervars.scss +0 -0
  423. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/masonry-layout/themes/redwood/oj-masonry-layout.scss +0 -0
  424. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/masonry-layout/themes/stable/_oj-masonry-layout.cssvars.scss +0 -0
  425. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/masonry-layout/themes/stable/_oj-masonry-layout.servervars.scss +0 -0
  426. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/masonry-layout/themes/stable/oj-masonry-layout.scss +0 -0
  427. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/menu/themes/base/_oj-menu.scss +0 -0
  428. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/menu/themes/redwood/_oj-menu.cssvars.scss +0 -0
  429. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/menu/themes/redwood/oj-menu.scss +0 -0
  430. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/menu/themes/stable/_oj-menu.cssvars.scss +0 -0
  431. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/menu/themes/stable/oj-menu.scss +0 -0
  432. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/menu-button/themes/base/_oj-menu-button.scss +0 -0
  433. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/menu-button/themes/redwood/_oj-menu-button.cssvars.scss +0 -0
  434. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/menu-button/themes/redwood/_oj-menu-button.servervars.scss +0 -0
  435. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/menu-button/themes/redwood/oj-menu-button.scss +0 -0
  436. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/menu-button/themes/stable/_oj-menu-button.cssvars.scss +0 -0
  437. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/menu-button/themes/stable/_oj-menu-button.servervars.scss +0 -0
  438. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/menu-button/themes/stable/oj-menu-button.scss +0 -0
  439. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/menu-select-many/themes/base/_oj-menu-select-many.scss +0 -0
  440. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/menu-select-many/themes/redwood/_oj-menu-select-many.cssvars.scss +0 -0
  441. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/menu-select-many/themes/redwood/oj-menu-select-many.scss +0 -0
  442. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/menu-select-many/themes/stable/_oj-menu-select-many.cssvars.scss +0 -0
  443. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/menu-select-many/themes/stable/oj-menu-select-many.scss +0 -0
  444. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/message/themes/base/_oj-message.scss +0 -0
  445. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/message/themes/redwood/_oj-message-ignore.scoped.cssvars.scss +0 -0
  446. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/message/themes/redwood/_oj-message.cssvars.scss +0 -0
  447. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/message/themes/redwood/_oj-message.servervars.scss +0 -0
  448. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/message/themes/redwood/oj-message.scss +0 -0
  449. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/message/themes/stable/_oj-message-ignore.scoped.cssvars.scss +0 -0
  450. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/message/themes/stable/_oj-message.cssvars.scss +0 -0
  451. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/message/themes/stable/_oj-message.servervars.scss +0 -0
  452. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/message/themes/stable/oj-message.scss +0 -0
  453. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/message-banner/themes/base/_oj-message-banner.scss +0 -0
  454. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/message-banner/themes/redwood/_oj-message-banner-scoped.cssvars.scss +0 -0
  455. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/message-banner/themes/redwood/_oj-message-banner.cssvars.scss +0 -0
  456. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/message-banner/themes/redwood/_oj-message-banner.scss +0 -0
  457. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/message-banner/themes/stable/_oj-message-banner-scoped.cssvars.scss +0 -0
  458. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/message-banner/themes/stable/_oj-message-banner.cssvars.scss +0 -0
  459. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/message-banner/themes/stable/_oj-message-banner.scss +0 -0
  460. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/messages/themes/base/_oj-messages.scss +0 -0
  461. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/messages/themes/redwood/_oj-messages.cssvars.scss +0 -0
  462. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/messages/themes/redwood/_oj-messages.servervars.scss +0 -0
  463. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/messages/themes/redwood/oj-messages.scss +0 -0
  464. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/messages/themes/stable/_oj-messages.cssvars.scss +0 -0
  465. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/messages/themes/stable/_oj-messages.servervars.scss +0 -0
  466. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/messages/themes/stable/oj-messages.scss +0 -0
  467. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/module/themes/base/_oj-module.scss +0 -0
  468. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/module/themes/redwood/oj-module.scss +0 -0
  469. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/module/themes/stable/oj-module.scss +0 -0
  470. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/n-box/themes/base/_oj-n-box.scss +0 -0
  471. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/n-box/themes/redwood/_oj-n-box.cssvars.scss +0 -0
  472. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/n-box/themes/redwood/oj-n-box.scss +0 -0
  473. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/n-box/themes/stable/_oj-n-box.cssvars.scss +0 -0
  474. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/n-box/themes/stable/oj-n-box.scss +0 -0
  475. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/navigation-list/themes/base/_oj-navigation-list.scss +0 -0
  476. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/navigation-list/themes/redwood/_oj-navigation-list-scoped.cssvars.scss +0 -0
  477. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/navigation-list/themes/redwood/_oj-navigation-list.cssvars.scss +0 -0
  478. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/navigation-list/themes/redwood/oj-navigation-list.scss +0 -0
  479. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/navigation-list/themes/stable/_oj-navigation-list-scoped.cssvars.scss +0 -0
  480. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/navigation-list/themes/stable/_oj-navigation-list.cssvars.scss +0 -0
  481. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/navigation-list/themes/stable/oj-navigation-list.scss +0 -0
  482. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/off-canvas/themes/base/_oj-off-canvas.scss +0 -0
  483. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/off-canvas/themes/redwood/_oj-off-canvas.cssvars.scss +0 -0
  484. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/off-canvas/themes/redwood/oj-off-canvas.scss +0 -0
  485. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/off-canvas/themes/stable/_oj-off-canvas.cssvars.scss +0 -0
  486. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/off-canvas/themes/stable/oj-off-canvas.scss +0 -0
  487. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/optgroup/themes/base/_oj-optgroup.scss +0 -0
  488. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/optgroup/themes/redwood/oj-optgroup.scss +0 -0
  489. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/optgroup/themes/stable/oj-optgroup.scss +0 -0
  490. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/option/themes/base/_oj-option.scss +0 -0
  491. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/option/themes/redwood/oj-option.scss +0 -0
  492. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/option/themes/stable/oj-option.scss +0 -0
  493. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/paging-control/themes/base/_oj-paging-control.scss +0 -0
  494. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/paging-control/themes/redwood/_oj-paging-control.cssvars.scss +0 -0
  495. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/paging-control/themes/redwood/oj-paging-control.scss +0 -0
  496. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/paging-control/themes/stable/_oj-paging-control.cssvars.scss +0 -0
  497. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/paging-control/themes/stable/oj-paging-control.scss +0 -0
  498. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/palette/themes/redwood/_oj-palette-scoped.cssvars.scss +0 -0
  499. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/palette/themes/redwood/_oj-palette.cssvars.scss +0 -0
  500. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/palette/themes/stable/_oj-palette.cssvars.scss +0 -0
  501. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/panel/themes/base/_oj-panel-ignore.scoped.cssvars.scss +0 -0
  502. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/panel/themes/base/_oj-panel.scss +0 -0
  503. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/panel/themes/redwood/_oj-panel-scoped.cssvars.scss +0 -0
  504. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/panel/themes/redwood/_oj-panel.cssvars.scss +0 -0
  505. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/panel/themes/redwood/oj-panel.scss +0 -0
  506. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/panel/themes/stable/_oj-panel-scoped.cssvars.scss +0 -0
  507. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/panel/themes/stable/_oj-panel.cssvars.scss +0 -0
  508. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/panel/themes/stable/oj-panel.scss +0 -0
  509. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/picto-chart/themes/base/_oj-picto-chart.scss +0 -0
  510. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/picto-chart/themes/redwood/_oj-picto-chart.cssvars.scss +0 -0
  511. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/picto-chart/themes/redwood/oj-picto-chart.scss +0 -0
  512. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/picto-chart/themes/stable/_oj-picto-chart.cssvars.scss +0 -0
  513. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/picto-chart/themes/stable/oj-picto-chart.scss +0 -0
  514. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/popup/themes/base/_oj-layer.scss +0 -0
  515. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/popup/themes/base/_oj-popup-ignore.scoped.cssvars.scss +0 -0
  516. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/popup/themes/base/_oj-popup.scss +0 -0
  517. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/popup/themes/redwood/_oj-layer.scss +0 -0
  518. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/popup/themes/redwood/_oj-popup-ignore.scoped.cssvars.scss +0 -0
  519. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/popup/themes/redwood/_oj-popup.cssvars.scss +0 -0
  520. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/popup/themes/redwood/oj-popup.scss +0 -0
  521. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/popup/themes/stable/_oj-layer.scss +0 -0
  522. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/popup/themes/stable/_oj-popup.cssvars.scss +0 -0
  523. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/popup/themes/stable/oj-popup.scss +0 -0
  524. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/progress-bar/themes/base/_oj-progress-bar.scss +0 -0
  525. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/progress-bar/themes/redwood/_oj-progress-bar-scoped.cssvars.scss +0 -0
  526. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/progress-bar/themes/redwood/_oj-progress-bar.cssvars.scss +0 -0
  527. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/progress-bar/themes/redwood/oj-progress-bar.scss +0 -0
  528. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/progress-bar/themes/stable/_oj-progress-bar-scoped.cssvars.scss +0 -0
  529. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/progress-bar/themes/stable/_oj-progress-bar.cssvars.scss +0 -0
  530. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/progress-bar/themes/stable/oj-progress-bar.scss +0 -0
  531. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/progress-circle/themes/base/_oj-progress-circle.scss +0 -0
  532. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/progress-circle/themes/redwood/_oj-progress-circle-scoped.cssvars.scss +0 -0
  533. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/progress-circle/themes/redwood/_oj-progress-circle.cssvars.scss +0 -0
  534. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/progress-circle/themes/redwood/oj-progress-circle.scss +0 -0
  535. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/progress-circle/themes/stable/_oj-progress-circle-scoped.cssvars.scss +0 -0
  536. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/progress-circle/themes/stable/_oj-progress-circle.cssvars.scss +0 -0
  537. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/progress-circle/themes/stable/oj-progress-circle.scss +0 -0
  538. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/radio-checkbox/themes/base/_oj-radiocheckbox.scss +0 -0
  539. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/radio-checkbox/themes/redwood/_oj-radiocheckbox-scoped.cssvars.scss +0 -0
  540. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/radio-checkbox/themes/redwood/_oj-radiocheckbox.cssvars.scss +0 -0
  541. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/radio-checkbox/themes/redwood/_oj-radiocheckbox.servervars.scss +0 -0
  542. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/radio-checkbox/themes/stable/_oj-radiocheckbox-scoped.cssvars.scss +0 -0
  543. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/radio-checkbox/themes/stable/_oj-radiocheckbox.cssvars.scss +0 -0
  544. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/radio-checkbox/themes/stable/_oj-radiocheckbox.servervars.scss +0 -0
  545. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/radioset/themes/redwood/_oj-radioset.cssvars.scss +0 -0
  546. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/radioset/themes/redwood/oj-radioset.scss +0 -0
  547. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/radioset/themes/stable/_oj-radioset.cssvars.scss +0 -0
  548. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/radioset/themes/stable/oj-radioset.scss +0 -0
  549. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/rangeslider/themes/redwood/_oj-rangeslider.cssvars.scss +0 -0
  550. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/rangeslider/themes/redwood/oj-rangeslider.scss +0 -0
  551. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/rangeslider/themes/stable/_oj-rangeslider.cssvars.scss +0 -0
  552. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/rangeslider/themes/stable/oj-rangeslider.scss +0 -0
  553. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/rating-gauge/themes/base/_oj-rating-gauge.scss +0 -0
  554. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/rating-gauge/themes/redwood/_oj-rating-gauge.cssvars.scss +0 -0
  555. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/rating-gauge/themes/redwood/oj-rating-gauge.scss +0 -0
  556. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/rating-gauge/themes/stable/_oj-rating-gauge.cssvars.scss +0 -0
  557. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/rating-gauge/themes/stable/oj-rating-gauge.scss +0 -0
  558. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/refresher/themes/base/_oj-refresher.scss +0 -0
  559. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/refresher/themes/redwood/_oj-refresher.cssvars.scss +0 -0
  560. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/refresher/themes/redwood/_oj-refresher.servervars.scss +0 -0
  561. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/refresher/themes/redwood/oj-refresher.scss +0 -0
  562. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/refresher/themes/stable/_oj-refresher.cssvars.scss +0 -0
  563. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/refresher/themes/stable/_oj-refresher.servervars.scss +0 -0
  564. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/refresher/themes/stable/oj-refresher.scss +0 -0
  565. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/resizable/themes/base/_oj-resizable.scss +0 -0
  566. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/resizable/themes/redwood/_oj-resizable.scss +0 -0
  567. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/resizable/themes/stable/_oj-resizable.scss +0 -0
  568. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/row-expander/themes/base/_oj-row-expander.scss +0 -0
  569. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/row-expander/themes/redwood/_oj-row-expander.cssvars.scss +0 -0
  570. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/row-expander/themes/redwood/oj-row-expander.scss +0 -0
  571. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/row-expander/themes/stable/_oj-row-expander.cssvars.scss +0 -0
  572. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/row-expander/themes/stable/oj-row-expander.scss +0 -0
  573. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/scrollbar/themes/base/_oj-scrollbar.scss +0 -0
  574. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/scrollbar/themes/redwood/_oj-scrollbar-scoped.cssvars.scss +0 -0
  575. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/scrollbar/themes/redwood/_oj-scrollbar.cssvars.scss +0 -0
  576. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/scrollbar/themes/redwood/_oj-scrollbar.scss +0 -0
  577. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/scrollbar/themes/stable/_oj-scrollbar-scoped.cssvars.scss +0 -0
  578. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/scrollbar/themes/stable/_oj-scrollbar.cssvars.scss +0 -0
  579. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/scrollbar/themes/stable/_oj-scrollbar.scss +0 -0
  580. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/select/themes/base/_oj-select.scss +0 -0
  581. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/select/themes/redwood/_oj-select.cssvars.scss +0 -0
  582. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/select/themes/redwood/_oj-select.scss +0 -0
  583. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/select/themes/stable/_oj-select.cssvars.scss +0 -0
  584. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/select/themes/stable/_oj-select.scss +0 -0
  585. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/select-many/themes/redwood/oj-select-many.scss +0 -0
  586. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/select-many/themes/stable/oj-select-many.scss +0 -0
  587. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/select-one/themes/redwood/oj-select-one.scss +0 -0
  588. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/select-original/themes/base/_oj-select-original.scss +0 -0
  589. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/select-original/themes/redwood/_oj-select-original.cssvars.scss +0 -0
  590. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/select-original/themes/redwood/_oj-select-original.scss +0 -0
  591. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/select-original/themes/stable/_oj-select-original.cssvars.scss +0 -0
  592. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/select-original/themes/stable/_oj-select-original.scss +0 -0
  593. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/select-single/themes/base/_oj-select-single.scss +0 -0
  594. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/select-single/themes/redwood/oj-select-single.scss +0 -0
  595. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/select-single/themes/stable/oj-select-single.scss +0 -0
  596. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/select-single-placeholder/themes/base/_oj-select-single-placeholder.scss +0 -0
  597. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/select-single-placeholder/themes/redwood/oj-select-single-placeholder.scss +0 -0
  598. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/select-single-placeholder/themes/stable/oj-select-single-placeholder.scss +0 -0
  599. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/selector/themes/base/_oj-selector.scss +0 -0
  600. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/selector/themes/redwood/_oj-selector.cssvars.scss +0 -0
  601. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/selector/themes/redwood/oj-selector.scss +0 -0
  602. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/selector/themes/stable/_oj-selector.cssvars.scss +0 -0
  603. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/selector/themes/stable/oj-selector.scss +0 -0
  604. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/slider/themes/base/_oj-slider.scss +0 -0
  605. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/slider/themes/redwood/_oj-slider.cssvars.scss +0 -0
  606. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/slider/themes/redwood/oj-slider.scss +0 -0
  607. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/slider/themes/stable/_oj-slider.cssvars.scss +0 -0
  608. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/slider/themes/stable/oj-slider.scss +0 -0
  609. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/spark-chart/themes/base/_oj-spark-chart.scss +0 -0
  610. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/spark-chart/themes/redwood/_oj-spark-chart.cssvars.scss +0 -0
  611. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/spark-chart/themes/redwood/oj-spark-chart.scss +0 -0
  612. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/spark-chart/themes/stable/_oj-spark-chart.cssvars.scss +0 -0
  613. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/spark-chart/themes/stable/oj-spark-chart.scss +0 -0
  614. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/status-meter-gauge/themes/base/_oj-status-meter-gauge.scss +0 -0
  615. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/status-meter-gauge/themes/redwood/_oj-status-meter-gauge.cssvars.scss +0 -0
  616. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/status-meter-gauge/themes/redwood/oj-status-meter-gauge.scss +0 -0
  617. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/status-meter-gauge/themes/stable/_oj-status-meter-gauge.cssvars.scss +0 -0
  618. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/status-meter-gauge/themes/stable/oj-status-meter-gauge.scss +0 -0
  619. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/stream-list/themes/base/_oj-stream-list.scss +0 -0
  620. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/stream-list/themes/redwood/_oj-stream-list.cssvars.scss +0 -0
  621. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/stream-list/themes/redwood/_oj-stream-list.servervars.scss +0 -0
  622. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/stream-list/themes/redwood/oj-stream-list.scss +0 -0
  623. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/stream-list/themes/stable/_oj-stream-list.cssvars.scss +0 -0
  624. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/stream-list/themes/stable/_oj-stream-list.servervars.scss +0 -0
  625. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/stream-list/themes/stable/oj-stream-list.scss +0 -0
  626. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/sunburst/themes/base/_oj-sunburst.scss +0 -0
  627. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/sunburst/themes/redwood/_oj-sunburst.cssvars.scss +0 -0
  628. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/sunburst/themes/redwood/oj-sunburst.scss +0 -0
  629. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/sunburst/themes/stable/_oj-sunburst.cssvars.scss +0 -0
  630. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/sunburst/themes/stable/oj-sunburst.scss +0 -0
  631. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/swipe-actions/themes/base/_oj-swipe-actions.scss +0 -0
  632. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/swipe-actions/themes/redwood/_oj-swipe-actions.cssvars.scss +0 -0
  633. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/swipe-actions/themes/redwood/oj-swipe-actions.scss +0 -0
  634. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/swipe-actions/themes/stable/_oj-swipe-actions.cssvars.scss +0 -0
  635. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/swipe-actions/themes/stable/oj-swipe-actions.scss +0 -0
  636. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/switch/themes/base/_oj-switch.scss +0 -0
  637. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/switch/themes/redwood/_oj-switch.cssvars.scss +0 -0
  638. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/switch/themes/redwood/oj-switch.scss +0 -0
  639. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/switch/themes/stable/_oj-switch.cssvars.scss +0 -0
  640. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/switch/themes/stable/oj-switch.scss +0 -0
  641. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/switcher/themes/base/_oj-switcher.scss +0 -0
  642. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/switcher/themes/redwood/oj-switcher.scss +0 -0
  643. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/switcher/themes/stable/oj-switcher.scss +0 -0
  644. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tab-bar/themes/base/_oj-tab-bar.scss +0 -0
  645. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tab-bar/themes/redwood/_oj-tab-bar-scoped.cssvars.scss +0 -0
  646. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tab-bar/themes/redwood/_oj-tab-bar.cssvars.scss +0 -0
  647. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tab-bar/themes/redwood/oj-tab-bar.scss +0 -0
  648. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tab-bar/themes/stable/_oj-tab-bar-scoped.cssvars.scss +0 -0
  649. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tab-bar/themes/stable/_oj-tab-bar.cssvars.scss +0 -0
  650. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tab-bar/themes/stable/oj-tab-bar.scss +0 -0
  651. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/table/themes/base/_oj-table.scss +0 -0
  652. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/table/themes/redwood/_oj-table-scoped.cssvars.scss +0 -0
  653. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/table/themes/redwood/_oj-table.cssvars.scss +0 -0
  654. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/table/themes/redwood/oj-table.scss +0 -0
  655. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/table/themes/stable/_oj-table-scoped.cssvars.scss +0 -0
  656. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/table/themes/stable/_oj-table.cssvars.scss +0 -0
  657. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/table/themes/stable/oj-table.scss +0 -0
  658. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tag-cloud/themes/base/_oj-tag-cloud.scss +0 -0
  659. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tag-cloud/themes/redwood/_oj-tag-cloud.cssvars.scss +0 -0
  660. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tag-cloud/themes/redwood/oj-tag-cloud.scss +0 -0
  661. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tag-cloud/themes/stable/_oj-tag-cloud.cssvars.scss +0 -0
  662. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tag-cloud/themes/stable/oj-tag-cloud.scss +0 -0
  663. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tags/themes/base/_oj-notags-ignore.scoped.cssvars.scss +0 -0
  664. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tags/themes/base/_oj-notags.scss +0 -0
  665. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tags/themes/base/_oj-tags-ignore.scoped.cssvars.scss +0 -0
  666. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tags/themes/base/_oj-tags.scss +0 -0
  667. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tags/themes/redwood/_oj-tags-scoped.cssvars.scss +0 -0
  668. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tags/themes/redwood/_oj-tags.cssvars.scss +0 -0
  669. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tags/themes/redwood/oj-notags.scss +0 -0
  670. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tags/themes/redwood/oj-tags.scss +0 -0
  671. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tags/themes/stable/_oj-tags-scoped.cssvars.scss +0 -0
  672. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tags/themes/stable/_oj-tags.cssvars.scss +0 -0
  673. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tags/themes/stable/oj-notags.scss +0 -0
  674. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tags/themes/stable/oj-tags.scss +0 -0
  675. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/text-area/themes/base/_oj-text-area.scss +0 -0
  676. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/text-area/themes/redwood/_oj-text-area.cssvars.scss +0 -0
  677. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/text-area/themes/redwood/oj-text-area.scss +0 -0
  678. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/text-area/themes/stable/_oj-text-area.cssvars.scss +0 -0
  679. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/text-area/themes/stable/oj-text-area.scss +0 -0
  680. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/text-field/themes/base/_oj-text-field.cssvars.scss +0 -0
  681. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/text-field/themes/redwood/_oj-text-field-ignore.scoped.cssvars.scss +0 -0
  682. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/text-field/themes/redwood/_oj-text-field-scoped.cssvars.scss +0 -0
  683. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/text-field/themes/redwood/_oj-text-field.cssvars.scss +0 -0
  684. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/text-field/themes/stable/_oj-text-field-scoped.cssvars.scss +0 -0
  685. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/text-field/themes/stable/_oj-text-field.cssvars.scss +0 -0
  686. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/thematic-map/themes/base/_oj-thematic-map.scss +0 -0
  687. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/thematic-map/themes/redwood/_oj-thematic-map.cssvars.scss +0 -0
  688. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/thematic-map/themes/redwood/oj-thematic-map.scss +0 -0
  689. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/thematic-map/themes/stable/_oj-thematic-map.cssvars.scss +0 -0
  690. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/thematic-map/themes/stable/oj-thematic-map.scss +0 -0
  691. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/time-axis/themes/base/_oj-time-axis.scss +0 -0
  692. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/time-axis/themes/redwood/_oj-time-axis.cssvars.scss +0 -0
  693. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/time-axis/themes/redwood/oj-time-axis.scss +0 -0
  694. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/time-axis/themes/stable/_oj-time-axis.cssvars.scss +0 -0
  695. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/time-axis/themes/stable/oj-time-axis.scss +0 -0
  696. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/timeline/themes/base/_oj-timeline.scss +0 -0
  697. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/timeline/themes/redwood/_oj-timeline-ignore.scoped.cssvars.scss +0 -0
  698. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/timeline/themes/redwood/_oj-timeline.cssvars.scss +0 -0
  699. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/timeline/themes/redwood/oj-timeline.scss +0 -0
  700. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/timeline/themes/stable/_oj-timeline-ignore.scoped.cssvars.scss +0 -0
  701. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/timeline/themes/stable/_oj-timeline.cssvars.scss +0 -0
  702. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/timeline/themes/stable/oj-timeline.scss +0 -0
  703. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/toolbar/themes/base/_oj-toolbar.scss +0 -0
  704. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/toolbar/themes/redwood/_oj-toolbar.cssvars.scss +0 -0
  705. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/toolbar/themes/redwood/oj-toolbar.scss +0 -0
  706. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/toolbar/themes/stable/_oj-toolbar.cssvars.scss +0 -0
  707. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/toolbar/themes/stable/oj-toolbar.scss +0 -0
  708. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tooltip/themes/base/_oj-tooltip.scss +0 -0
  709. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tooltip/themes/redwood/_oj-tooltip.cssvars.scss +0 -0
  710. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tooltip/themes/redwood/oj-tooltip.scss +0 -0
  711. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tooltip/themes/stable/_oj-tooltip.cssvars.scss +0 -0
  712. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tooltip/themes/stable/oj-tooltip.scss +0 -0
  713. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/train/themes/base/_oj-train.scss +0 -0
  714. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/train/themes/redwood/_oj-train-scoped.cssvars.scss +0 -0
  715. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/train/themes/redwood/_oj-train.cssvars.scss +0 -0
  716. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/train/themes/redwood/oj-train.scss +0 -0
  717. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/train/themes/stable/_oj-train.cssvars.scss +0 -0
  718. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/train/themes/stable/oj-train.scss +0 -0
  719. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tree-view/themes/base/_oj-tree-view.scss +0 -0
  720. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tree-view/themes/redwood/_oj-tree-view.cssvars.scss +0 -0
  721. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tree-view/themes/redwood/oj-tree-view.scss +0 -0
  722. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tree-view/themes/stable/_oj-tree-view.cssvars.scss +0 -0
  723. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/tree-view/themes/stable/oj-tree-view.scss +0 -0
  724. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/treemap/themes/base/_oj-treemap.scss +0 -0
  725. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/treemap/themes/redwood/_oj-treemap.cssvars.scss +0 -0
  726. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/treemap/themes/redwood/oj-treemap.scss +0 -0
  727. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/treemap/themes/stable/_oj-treemap.cssvars.scss +0 -0
  728. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/treemap/themes/stable/oj-treemap.scss +0 -0
  729. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/typography/themes/base/_oj-typography.scss +0 -0
  730. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/typography/themes/redwood/_oj-typography-ignore.scoped.cssvars.scss +0 -0
  731. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/typography/themes/redwood/_oj-typography-scoped.cssvars.scss +0 -0
  732. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/typography/themes/redwood/_oj-typography.cssvars.scss +0 -0
  733. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/typography/themes/redwood/oj-typography.scss +0 -0
  734. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/typography/themes/stable/_oj-typography-scoped.cssvars.scss +0 -0
  735. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/typography/themes/stable/_oj-typography.cssvars.scss +0 -0
  736. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/typography/themes/stable/oj-typography.scss +0 -0
  737. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/utilities/_oj.utilities.bidi.scss +0 -0
  738. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/utilities/_oj.utilities.icons.scss +0 -0
  739. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/utilities/_oj.utilities.json.scss +0 -0
  740. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/utilities/_oj.utilities.masonrylayout.scss +0 -0
  741. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/utilities/_oj.utilities.modules.scss +0 -0
  742. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/validation-group/themes/base/_oj-validation-group.scss +0 -0
  743. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/validation-group/themes/redwood/oj-validation-group.scss +0 -0
  744. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/validation-group/themes/stable/oj-validation-group.scss +0 -0
  745. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/waterfall-layout/themes/base/_oj-waterfall-layout.scss +0 -0
  746. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/waterfall-layout/themes/redwood/_oj-waterfall-layout.cssvars.scss +0 -0
  747. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/waterfall-layout/themes/redwood/oj-waterfall-layout.scss +0 -0
  748. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/waterfall-layout/themes/stable/_oj-waterfall-layout.cssvars.scss +0 -0
  749. /package/dist/pcss/oj/{20.1.1 → 20.1.2}/oj/waterfall-layout/themes/stable/oj-waterfall-layout.scss +0 -0
@@ -393,7 +393,7 @@ define(['./persistenceManager', './persistenceStoreManager', './persistenceUtils
393
393
  };
394
394
  break;
395
395
  case 'LIKE':
396
- rhsOp = rhsOp.replace(/%/g, '.*');
396
+ rhsOp = _escapeRegExp(rhsOp).replace(/%/g, '.*');
397
397
  returnExp[lhsOp] = {
398
398
  $regex: RegExp(rhsOp,'i')
399
399
  };
@@ -460,6 +460,19 @@ define(['./persistenceManager', './persistenceStoreManager', './persistenceUtils
460
460
  return findQuery;
461
461
  };
462
462
 
463
+ /**
464
+ * Escapes JavaScript regular expression metacharacters in a LIKE operand
465
+ * before supported SQL wildcard characters are translated to regex syntax.
466
+ * This handler supports '%' as a multi-character wildcard and preserves '_'
467
+ * as a literal to maintain existing query behavior.
468
+ *
469
+ * @param {string} value The LIKE operand to escape.
470
+ * @return {string} The operand with regex metacharacters escaped.
471
+ */
472
+ function _escapeRegExp(value) {
473
+ return String(value).replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
474
+ }
475
+
463
476
  /**
464
477
  * Returns the Simple Query Handler which matches the URL query parameter/value pairs
465
478
  * against the store's field/value pairs.
@@ -1,4 +1,5 @@
1
1
  /**
2
+ * Offline Persistence Toolkit v1.5.9
2
3
  * Copyright (c) 2017, Oracle and/or its affiliates.
3
4
  * All rights reserved.
4
5
  */
@@ -1,6 +1,7 @@
1
1
  /**
2
+ * Offline Persistence Toolkit v1.5.9
2
3
  * Copyright (c) 2017, Oracle and/or its affiliates.
3
4
  * All rights reserved.
4
5
  */
5
6
 
6
- define([],(function(){"use strict";var t=function(t){this._name=t};return(t.prototype={}).getName=function(){return this._name},t.prototype.getVersion=function(){return this._version},t.prototype.Init=function(t){return t&&t.version?this._version=t.version:this._version="0",Promise.resolve()},t.prototype.upsert=function(t,r,o,n){throw TypeError("failed in abstract function")},t.prototype.upsertAll=function(t){throw TypeError("failed in abstract function")},t.prototype.find=function(t){throw TypeError("failed in abstract function")},t.prototype.findByKey=function(t){throw TypeError("failed in abstract function")},t.prototype.removeByKey=function(t){throw TypeError("failed in abstract function")},t.prototype.delete=function(t){throw TypeError("failed in abstract function")},t.prototype.keys=function(){throw TypeError("failed in abstract function")},t.prototype.updateKey=function(t,r){throw TypeError("failed in abstract function")},t}));
7
+ define([],function(){"use strict";var t=function(t){this._name=t};return(t.prototype={}).getName=function(){return this._name},t.prototype.getVersion=function(){return this._version},t.prototype.Init=function(t){return t&&t.version?this._version=t.version:this._version="0",Promise.resolve()},t.prototype.upsert=function(t,r,o,n){throw TypeError("failed in abstract function")},t.prototype.upsertAll=function(t){throw TypeError("failed in abstract function")},t.prototype.find=function(t){throw TypeError("failed in abstract function")},t.prototype.findByKey=function(t){throw TypeError("failed in abstract function")},t.prototype.removeByKey=function(t){throw TypeError("failed in abstract function")},t.prototype.delete=function(t){throw TypeError("failed in abstract function")},t.prototype.keys=function(){throw TypeError("failed in abstract function")},t.prototype.updateKey=function(t,r){throw TypeError("failed in abstract function")},t});
@@ -1,6 +1,7 @@
1
1
  /**
2
+ * Offline Persistence Toolkit v1.5.9
2
3
  * Copyright (c) 2017, Oracle and/or its affiliates.
3
4
  * All rights reserved.
4
5
  */
5
6
 
6
- define(["./impl/arrayPersistenceStore"],(function(e){"use strict";return{createPersistenceStore:function(n,r){return function(n,r){var t=new e(n);return t.Init(r).then((function(){return t}))}(n,r)}}}));
7
+ define(["./impl/arrayPersistenceStore"],function(e){"use strict";return{createPersistenceStore:function(n,r){return function(n,r){var t=new e(n);return t.Init(r).then(function(){return t})}(n,r)}}});
@@ -1,6 +1,7 @@
1
1
  /**
2
+ * Offline Persistence Toolkit v1.5.9
2
3
  * Copyright (c) 2017, Oracle and/or its affiliates.
3
4
  * All rights reserved.
4
5
  */
5
6
 
6
- define(["./persistenceManager","./persistenceUtils","./impl/logger"],(function(e,t,n){"use strict";function r(e,t){var n=e.get("Cache-Control");if(n){var r,a,i,s=n.split(",");for(r=0;r<s.length;r++)if(0===(a=s[r].trim()).indexOf(t))return!((i=a.split("=")).length>1)||i[1].trim()}return null}function a(r,a,i){return t.isCachedResponse(a)?e.isOnline()?e.browserFetch(r).then((function(t){return 304==t.status?a:e.getCache().delete(r).then((function(){return n.log("Offline Persistence Toolkit cacheStrategies: Removing old entry based on HTTP revalidation"),t}))})):i?t.responseToJSON(a).then((function(e){return e.status=504,e.statusText="cache-control: must-revalidate failed due to application being offline",n.log("Offline Persistence Toolkit cacheStrategies: Returning Response status 504 based HTTP revalidation"),t.responseFromJSON(e)})):Promise.resolve(a):Promise.resolve(a)}return{getHttpCacheHeaderStrategy:function(){return function(i,s){return function(e,r){var a=r.headers.get("Expires"),i=r.headers.get("x-oracle-jscpt-cache-expiration-date");!a||!t.isCachedResponse(r)||i&&0!=i.length||(r.headers.set("x-oracle-jscpt-cache-expiration-date",a),n.log("Offline Persistence Toolkit cacheStrategies: Set x-oracle-jscpt-cache-expiration-date header based on HTTP Expires header"))}(0,s),function(e,a){var i=r(a.headers,"max-age");if(null!=i&&t.isCachedResponse(a)){var s=e.headers.get("Date");s||(s=(new Date).toUTCString());var o=new Date(s).getTime(),c=new Date(o+1e3*i);a.headers.set("x-oracle-jscpt-cache-expiration-date",c.toUTCString()),n.log("Offline Persistence Toolkit cacheStrategies: Set x-oracle-jscpt-cache-expiration-date header based on HTTP max-age header")}}(i,s),function(r,i){var s=r.headers.get("If-Match"),o=r.headers.get("If-None-Match");if(s||o){if(e.isOnline())return a(r,i,!1);var c=i.headers.get("ETag");if(s&&c.indexOf(s)<0)return t.responseToJSON(i).then((function(e){return e.status=412,e.statusText="If-Match failed due to no matching ETag while offline",n.log("Offline Persistence Toolkit cacheStrategies: Returning Response status 412 based on ETag and HTTP If-Match header"),t.responseFromJSON(e)}));if(o&&c.indexOf(o)>=0)return t.responseToJSON(i).then((function(e){return e.status=412,e.statusText="If-None-Match failed due to matching ETag while offline",n.log("Offline Persistence Toolkit cacheStrategies: Returning Response status 412 based on ETag and HTTP If-None-Match header"),t.responseFromJSON(e)}))}return Promise.resolve(i)}(i,s).then((function(e){return function(e,t){if(r(t.headers,"must-revalidate")){var i=t.headers.get("x-oracle-jscpt-cache-expiration-date");if(i){var s=new Date(i).getTime();if((new Date).getTime()>s)return n.log("Offline Persistence Toolkit cacheStrategies: Handling revalidation HTTP must-revalidate header"),a(e,t,!0)}}return Promise.resolve(t)}(i,e)})).then((function(e){return function(e,t){return function(e,t){if(r(t.headers,"no-cache"))return n.log("Offline Persistence Toolkit cacheStrategies: Has HTTP no-cache header"),!0;var a=e.headers.get("Pragma"),i=a&&"no-cache"===a.trim();return i&&n.log("Offline Persistence Toolkit cacheStrategies: Has HTTP Pragma no-cache header"),i}(e,t)?a(e,t):Promise.resolve(t)}(i,e)})).then((function(a){return function(a,i){return null!=r(i.headers,"no-store")?(t.isCachedResponse(i)&&i.headers.delete("x-oracle-jscpt-cache-expiration-date"),n.log("Offline Persistence Toolkit cacheStrategies: Has HTTP no-store header"),Promise.resolve(i)):function(r,a){if(null==a||t.isCachedResponse(a)||"GET"!=r.method&&"HEAD"!=r.method)return Promise.resolve(a);var i=a.clone();return e.getCache().put(r,a).then((function(){return n.log("Offline Persistence Toolkit cacheStrategies: Cached Request/Response"),i}))}(a,i)}(i,a)}))}}}}));
7
+ define(["./persistenceManager","./persistenceUtils","./impl/logger"],function(e,t,n){"use strict";function r(e,t){var n=e.get("Cache-Control");if(n){var r,a,i,s=n.split(",");for(r=0;r<s.length;r++)if(0===(a=s[r].trim()).indexOf(t))return!((i=a.split("=")).length>1)||i[1].trim()}return null}function a(r,a,i){return t.isCachedResponse(a)?e.isOnline()?e.browserFetch(r).then(function(t){return 304==t.status?a:e.getCache().delete(r).then(function(){return n.log("Offline Persistence Toolkit cacheStrategies: Removing old entry based on HTTP revalidation"),t})}):i?t.responseToJSON(a).then(function(e){return e.status=504,e.statusText="cache-control: must-revalidate failed due to application being offline",n.log("Offline Persistence Toolkit cacheStrategies: Returning Response status 504 based HTTP revalidation"),t.responseFromJSON(e)}):Promise.resolve(a):Promise.resolve(a)}return{getHttpCacheHeaderStrategy:function(){return function(i,s){return function(e,r){var a=r.headers.get("Expires"),i=r.headers.get("x-oracle-jscpt-cache-expiration-date");!a||!t.isCachedResponse(r)||i&&0!=i.length||(r.headers.set("x-oracle-jscpt-cache-expiration-date",a),n.log("Offline Persistence Toolkit cacheStrategies: Set x-oracle-jscpt-cache-expiration-date header based on HTTP Expires header"))}(0,s),function(e,a){var i=r(a.headers,"max-age");if(null!=i&&t.isCachedResponse(a)){var s=e.headers.get("Date");s||(s=(new Date).toUTCString());var o=new Date(s).getTime(),c=new Date(o+1e3*i);a.headers.set("x-oracle-jscpt-cache-expiration-date",c.toUTCString()),n.log("Offline Persistence Toolkit cacheStrategies: Set x-oracle-jscpt-cache-expiration-date header based on HTTP max-age header")}}(i,s),function(r,i){var s=r.headers.get("If-Match"),o=r.headers.get("If-None-Match");if(s||o){if(e.isOnline())return a(r,i,!1);var c=i.headers.get("ETag");if(s&&c.indexOf(s)<0)return t.responseToJSON(i).then(function(e){return e.status=412,e.statusText="If-Match failed due to no matching ETag while offline",n.log("Offline Persistence Toolkit cacheStrategies: Returning Response status 412 based on ETag and HTTP If-Match header"),t.responseFromJSON(e)});if(o&&c.indexOf(o)>=0)return t.responseToJSON(i).then(function(e){return e.status=412,e.statusText="If-None-Match failed due to matching ETag while offline",n.log("Offline Persistence Toolkit cacheStrategies: Returning Response status 412 based on ETag and HTTP If-None-Match header"),t.responseFromJSON(e)})}return Promise.resolve(i)}(i,s).then(function(e){return function(e,t){if(r(t.headers,"must-revalidate")){var i=t.headers.get("x-oracle-jscpt-cache-expiration-date");if(i){var s=new Date(i).getTime();if((new Date).getTime()>s)return n.log("Offline Persistence Toolkit cacheStrategies: Handling revalidation HTTP must-revalidate header"),a(e,t,!0)}}return Promise.resolve(t)}(i,e)}).then(function(e){return function(e,t){return function(e,t){if(r(t.headers,"no-cache"))return n.log("Offline Persistence Toolkit cacheStrategies: Has HTTP no-cache header"),!0;var a=e.headers.get("Pragma"),i=a&&"no-cache"===a.trim();return i&&n.log("Offline Persistence Toolkit cacheStrategies: Has HTTP Pragma no-cache header"),i}(e,t)?a(e,t):Promise.resolve(t)}(i,e)}).then(function(a){return function(a,i){return null!=r(i.headers,"no-store")?(t.isCachedResponse(i)&&i.headers.delete("x-oracle-jscpt-cache-expiration-date"),n.log("Offline Persistence Toolkit cacheStrategies: Has HTTP no-store header"),Promise.resolve(i)):function(r,a){if(null==a||t.isCachedResponse(a)||"GET"!=r.method&&"HEAD"!=r.method)return Promise.resolve(a);var i=a.clone();return e.getCache().put(r,a).then(function(){return n.log("Offline Persistence Toolkit cacheStrategies: Cached Request/Response"),i})}(a,i)}(i,a)})}}}});
@@ -1,6 +1,7 @@
1
1
  /**
2
+ * Offline Persistence Toolkit v1.5.9
2
3
  * Copyright (c) 2017, Oracle and/or its affiliates.
3
4
  * All rights reserved.
4
5
  */
5
6
 
6
- define(["./impl/pouchDBPersistenceStore"],(function(t){"use strict";var e=function(t){this._options=t};return e.prototype.createPersistenceStore=function(e,r){var n=new t(e),o=this._options;if(r)if(o){var i={};for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(i[c]=o[c]);for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(i[c]=r[c]);o=i}else o=r;return n.Init(o).then((function(){return n}))},e}));
7
+ define(["./impl/pouchDBPersistenceStore"],function(t){"use strict";var e=function(t){this._options=t};return e.prototype.createPersistenceStore=function(e,r){var n=new t(e),o=this._options;if(r)if(o){var i={};for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(i[c]=o[c]);for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(i[c]=r[c]);o=i}else o=r;return n.Init(o).then(function(){return n})},e});
@@ -1,6 +1,7 @@
1
1
  /**
2
+ * Offline Persistence Toolkit v1.5.9
2
3
  * Copyright (c) 2017, Oracle and/or its affiliates.
3
4
  * All rights reserved.
4
5
  */
5
6
 
6
- define(["./persistenceManager","./persistenceUtils","./fetchStrategies","./cacheStrategies","./persistenceStoreManager","./impl/defaultCacheHandler","./impl/logger"],(function(e,t,n,r,o,s,i){"use strict";function l(e){null==(e=e||{}).fetchStrategy&&(e.fetchStrategy=n.getCacheIfOfflineStrategy()),null==e.cacheStrategy&&(e.cacheStrategy=r.getHttpCacheHeaderStrategy()),e.requestHandlerOverride=e.requestHandlerOverride||{},null==e.requestHandlerOverride.handleGet&&(e.requestHandlerOverride.handleGet=this.handleGet),null==e.requestHandlerOverride.handlePost&&(e.requestHandlerOverride.handlePost=this.handlePost),null==e.requestHandlerOverride.handlePut&&(e.requestHandlerOverride.handlePut=this.handlePut),null==e.requestHandlerOverride.handlePatch&&(e.requestHandlerOverride.handlePatch=this.handlePatch),null==e.requestHandlerOverride.handleDelete&&(e.requestHandlerOverride.handleDelete=this.handleDelete),null==e.requestHandlerOverride.handleHead&&(e.requestHandlerOverride.handleHead=this.handleHead),null==e.requestHandlerOverride.handleOptions&&(e.requestHandlerOverride.handleOptions=this.handleOptions),Object.defineProperty(this,"_options",{value:e})}function u(t){return e.isOnline()?e.browserFetch(t):Promise.resolve(new Response(null,{status:503,statusText:"Must provide handlePost override for offline"}))}function a(e,t){var n=e;return(0,n._options.fetchStrategy)(t,n._options)}function d(e,n){return i.log("Offline Persistence Toolkit DefaultResponseProxy: Processing offline logic for default PUT Handler"),t.requestToJSON(n).then((function(e){e.status=200,e.statusText="OK",e.headers["content-type"]="application/json",e.headers["x-oracle-jscpt-cache-expiration-date"]="";var n=e.headers["if-match"],r=e.headers["if-none-match"];if(n||r){i.log("Offline Persistence Toolkit DefaultResponseProxy: Generating ETag for offline Response for default PUT Handler");var o=Math.floor(1e6*Math.random());e.headers.etag=(Date.now()+o).toString(),e.headers["x-oracle-jscpt-etag-generated"]=e.headers.etag,delete e.headers["if-match"],delete e.headers["if-none-match"]}return t.responseFromJSON(e)}))}function f(e,n){var r=e;return i.log("Offline Persistence Toolkit DefaultResponseProxy: Processing offline logic for default DELETE Handler"),t.requestToJSON(n).then((function(e){return e.status=200,e.statusText="OK",e.headers["content-type"]="application/json",e.headers["x-oracle-jscpt-cache-expiration-date"]="",t.responseFromJSON(e).then((function(s){var i=h(n),l=null;return r._options&&r._options.jsonProcessor&&r._options.jsonProcessor.shredder&&(l=r._options.jsonProcessor.shredder),l?l(s).then((function(n){if(n){var r=n[0].name;return o.openStore(r).then((function(n){return n.findByKey(i).then((function(n){return n?t.responseFromJSON(e).then((function(e){return t.setResponsePayload(e,n).then((function(e){return e}))})):s}))}))}return s})):s}))}))}function c(e,t,n,r){var o=e;return n.status<500?Promise.resolve(n):r(o,t)}function h(e){var t=e.url.split("/");return t[t.length-1]}function p(t,n,r){return!e.isOnline()||r?e.getSyncManager().insertRequest(t,{undoRedoDataArray:n}):Promise.resolve()}function h(e){var t=e.url.split("/");return t.length>1?t[t.length-1].split("?")[0]:null}return l.prototype.getFetchEventListener=function(){var e=this;return function(t){t.respondWith(e.processRequest(t.request))}},l.prototype.processRequest=function(n){var r=this,l=t.buildEndpointKey(n);return new Promise((function(u,a){s.registerEndpointOptions(l,r._options);var d=function(e,n){var r=e,o=r._options,s=null;return t.isReplayRequest(n)?s=r.handleSyncReplay:"POST"===n.method?s=o.requestHandlerOverride.handlePost:"GET"===n.method?s=o.requestHandlerOverride.handleGet:"PUT"===n.method?s=o.requestHandlerOverride.handlePut:"PATCH"===n.method?s=o.requestHandlerOverride.handlePatch:"DELETE"===n.method?s=o.requestHandlerOverride.handleDelete:"HEAD"===n.method?s=o.requestHandlerOverride.handleHead:"OPTIONS"===n.method&&(s=o.requestHandlerOverride.handleOptions),s}(r,n),f={};f.isReplayRequest=t.isReplayRequest(n);var c=n.clone();i.log("Offline Persistence Toolkit DefaultResponseProxy: Calling requestHandler for request with enpointKey: "+l),d.call(r,n).then((function(e){return t.isCachedResponse(e)&&(i.log("Offline Persistence Toolkit DefaultResponseProxy: Response is cached for request with enpointKey: "+l),f.isCachedResponse=!0),e.ok?(i.log("Offline Persistence Toolkit DefaultResponseProxy: Response is ok for request with enpointKey: "+l),function(e,t,n){var r=e;return"GET"===t.method||"HEAD"===t.method?(0,r._options.cacheStrategy)(t,n,r._options):Promise.resolve(n)}(r,n,e)):(i.log("Offline Persistence Toolkit DefaultResponseProxy: Response is not ok for request with enpointKey: "+l),e)})).then((function(e){return f.response=e,e.ok?(i.log("Offline Persistence Toolkit DefaultResponseProxy: Response is ok after cacheStrategy for request with enpointKey: "+l),function(e,t){return"GET"==e.method||"HEAD"==e.method?Promise.resolve():function(e,t){return s.constructShreddedData(e,t).then((function(t){return t?function(e,t){var n=[];return t.forEach((function(t){var r=Object.keys(t)[0];n.push(function(e,t,n){return function(e,t,n){var r,s,i=[],l=function(n,u){return n<u.length&&"GET"!==e.method&&"HEAD"!==e.method?u[n].key?(r=u[n].key.toString(),s="DELETE"!==e.method?u[n].value:null,o.openStore(t).then((function(e){return e.findByKey(r).then((function(e){return i.push({key:r,undo:e,redo:s}),l(++n,u)}),(function(e){return i.push({key:r,undo:null,redo:s}),l(++n,u)}))}))):l(++n,u):Promise.resolve(i)};return l(0,n)}(e,t,n).then((function(r){if("DELETE"===e.method){if(!n||0===n.length){var s=h(e);n=[{key:s}]}return function(e,t,n){return o.openStore(e).then((function(e){return e.removeByKey(t[0].key)})).then((function(){return n.length>0?{storeName:e,operation:"remove",undoRedoData:n}:null}))}(t,n,r)}return function(e,t,n){return o.openStore(e).then((function(e){return e.upsertAll(t)})).then((function(){return n.length>0?{storeName:e,operation:"upsert",undoRedoData:n}:null}))}(t,n,r)}))}(e,r,t[r]))})),Promise.all(n)}(e,t):Promise.resolve()}))}(e,t)}(n,e)):(i.log("Offline Persistence Toolkit DefaultResponseProxy: Response is not ok after cacheStrategy for request with enpointKey: "+l),null)})).then((function(t){if(!f.isReplayRequest)return p(n,t,f.isCachedResponse&&!e.isOnline())})).then((function(){s.unregisterEndpointOptions(l),u(f.response)})).catch((function(e){i.log("Offline Persistence Toolkit DefaultResponseProxy: Insert Response in syncManager after error for request with enpointKey: "+l),f.isReplayRequest?(s.unregisterEndpointOptions(l),a(e)):p(c,null,!0).then((function(){s.unregisterEndpointOptions(l),a(e)}),(function(){s.unregisterEndpointOptions(l),a(e)}))}))}))},l.prototype.handlePost=function(e){return i.log("Offline Persistence Toolkit DefaultResponseProxy: Processing Request with default POST Handler"),u(e)},l.prototype.handleSyncReplay=function(n){return i.log("Offline Persistence Toolkit DefaultResponseProxy: Processing Request from Sync Replay"),t.markReplayRequest(n,!1),e.browserFetch(n)},l.prototype.handleGet=function(e){return i.log("Offline Persistence Toolkit DefaultResponseProxy: Processing Request with default GET Handler"),a(this,e)},l.prototype.handleHead=function(e){return i.log("Offline Persistence Toolkit DefaultResponseProxy: Processing Request with default HEAD Handler"),a(this,e)},l.prototype.handleOptions=function(e){return i.log("Offline Persistence Toolkit DefaultResponseProxy: Processing Request with default OPTIONS Handler"),u(e)},l.prototype.handlePut=function(t){return i.log("Offline Persistence Toolkit DefaultResponseProxy: Processing Request with default PUT Handler"),function(t,n){var r=t;return e.isOnline()?e.browserFetch(n.clone()).then((function(e){return e.ok?(i.log("Offline Persistence Toolkit DefaultResponseProxy: Response is ok for default PUT Handler"),e):c(r,n,e,d)}),(function(e){return d(0,n)})):d(0,n)}(this,t)},l.prototype.handlePatch=function(e){return i.log("Offline Persistence Toolkit DefaultResponseProxy: Processing Request with default PATCH Handler"),u(e)},l.prototype.handleDelete=function(t){return i.log("Offline Persistence Toolkit DefaultResponseProxy: Processing Request with default DELETE Handler"),function(t,n){var r=t;return e.isOnline()?e.browserFetch(n.clone()).then((function(e){return e.ok?(i.log("Offline Persistence Toolkit DefaultResponseProxy: Response is ok for default DELETE Handler"),e):c(r,n,e,f)}),(function(e){return f(r,n)})):f(r,n)}(this,t)},{getResponseProxy:function(e){return new l(e)}}}));
7
+ define(["./persistenceManager","./persistenceUtils","./fetchStrategies","./cacheStrategies","./persistenceStoreManager","./impl/defaultCacheHandler","./impl/logger"],function(e,t,n,r,o,s,i){"use strict";function l(e){null==(e=e||{}).fetchStrategy&&(e.fetchStrategy=n.getCacheIfOfflineStrategy()),null==e.cacheStrategy&&(e.cacheStrategy=r.getHttpCacheHeaderStrategy()),e.requestHandlerOverride=e.requestHandlerOverride||{},null==e.requestHandlerOverride.handleGet&&(e.requestHandlerOverride.handleGet=this.handleGet),null==e.requestHandlerOverride.handlePost&&(e.requestHandlerOverride.handlePost=this.handlePost),null==e.requestHandlerOverride.handlePut&&(e.requestHandlerOverride.handlePut=this.handlePut),null==e.requestHandlerOverride.handlePatch&&(e.requestHandlerOverride.handlePatch=this.handlePatch),null==e.requestHandlerOverride.handleDelete&&(e.requestHandlerOverride.handleDelete=this.handleDelete),null==e.requestHandlerOverride.handleHead&&(e.requestHandlerOverride.handleHead=this.handleHead),null==e.requestHandlerOverride.handleOptions&&(e.requestHandlerOverride.handleOptions=this.handleOptions),Object.defineProperty(this,"_options",{value:e})}function u(t){return e.isOnline()?e.browserFetch(t):Promise.resolve(new Response(null,{status:503,statusText:"Must provide handlePost override for offline"}))}function a(e,t){var n=e;return(0,n._options.fetchStrategy)(t,n._options)}function d(e,n){return i.log("Offline Persistence Toolkit DefaultResponseProxy: Processing offline logic for default PUT Handler"),t.requestToJSON(n).then(function(e){e.status=200,e.statusText="OK",e.headers["content-type"]="application/json",e.headers["x-oracle-jscpt-cache-expiration-date"]="";var n=e.headers["if-match"],r=e.headers["if-none-match"];if(n||r){i.log("Offline Persistence Toolkit DefaultResponseProxy: Generating ETag for offline Response for default PUT Handler");var o=Math.floor(1e6*Math.random());e.headers.etag=(Date.now()+o).toString(),e.headers["x-oracle-jscpt-etag-generated"]=e.headers.etag,delete e.headers["if-match"],delete e.headers["if-none-match"]}return t.responseFromJSON(e)})}function f(e,n){var r=e;return i.log("Offline Persistence Toolkit DefaultResponseProxy: Processing offline logic for default DELETE Handler"),t.requestToJSON(n).then(function(e){return e.status=200,e.statusText="OK",e.headers["content-type"]="application/json",e.headers["x-oracle-jscpt-cache-expiration-date"]="",t.responseFromJSON(e).then(function(s){var i=h(n),l=null;return r._options&&r._options.jsonProcessor&&r._options.jsonProcessor.shredder&&(l=r._options.jsonProcessor.shredder),l?l(s).then(function(n){if(n){var r=n[0].name;return o.openStore(r).then(function(n){return n.findByKey(i).then(function(n){return n?t.responseFromJSON(e).then(function(e){return t.setResponsePayload(e,n).then(function(e){return e})}):s})})}return s}):s})})}function c(e,t,n,r){var o=e;return n.status<500?Promise.resolve(n):r(o,t)}function h(e){var t=e.url.split("/");return t[t.length-1]}function p(t,n,r){return!e.isOnline()||r?e.getSyncManager().insertRequest(t,{undoRedoDataArray:n}):Promise.resolve()}function h(e){var t=e.url.split("/");return t.length>1?t[t.length-1].split("?")[0]:null}return l.prototype.getFetchEventListener=function(){var e=this;return function(t){t.respondWith(e.processRequest(t.request))}},l.prototype.processRequest=function(n){var r=this,l=t.buildEndpointKey(n);return new Promise(function(u,a){s.registerEndpointOptions(l,r._options);var d=function(e,n){var r=e,o=r._options,s=null;return t.isReplayRequest(n)?s=r.handleSyncReplay:"POST"===n.method?s=o.requestHandlerOverride.handlePost:"GET"===n.method?s=o.requestHandlerOverride.handleGet:"PUT"===n.method?s=o.requestHandlerOverride.handlePut:"PATCH"===n.method?s=o.requestHandlerOverride.handlePatch:"DELETE"===n.method?s=o.requestHandlerOverride.handleDelete:"HEAD"===n.method?s=o.requestHandlerOverride.handleHead:"OPTIONS"===n.method&&(s=o.requestHandlerOverride.handleOptions),s}(r,n),f={};f.isReplayRequest=t.isReplayRequest(n);var c=n.clone();i.log("Offline Persistence Toolkit DefaultResponseProxy: Calling requestHandler for request with enpointKey: "+l),d.call(r,n).then(function(e){return t.isCachedResponse(e)&&(i.log("Offline Persistence Toolkit DefaultResponseProxy: Response is cached for request with enpointKey: "+l),f.isCachedResponse=!0),e.ok?(i.log("Offline Persistence Toolkit DefaultResponseProxy: Response is ok for request with enpointKey: "+l),function(e,t,n){var r=e;return"GET"===t.method||"HEAD"===t.method?(0,r._options.cacheStrategy)(t,n,r._options):Promise.resolve(n)}(r,n,e)):(i.log("Offline Persistence Toolkit DefaultResponseProxy: Response is not ok for request with enpointKey: "+l),e)}).then(function(e){return f.response=e,e.ok?(i.log("Offline Persistence Toolkit DefaultResponseProxy: Response is ok after cacheStrategy for request with enpointKey: "+l),function(e,t){return"GET"==e.method||"HEAD"==e.method?Promise.resolve():function(e,t){return s.constructShreddedData(e,t).then(function(t){return t?function(e,t){var n=[];return t.forEach(function(t){var r=Object.keys(t)[0];n.push(function(e,t,n){return function(e,t,n){var r,s,i=[],l=function(n,u){return n<u.length&&"GET"!==e.method&&"HEAD"!==e.method?u[n].key?(r=u[n].key.toString(),s="DELETE"!==e.method?u[n].value:null,o.openStore(t).then(function(e){return e.findByKey(r).then(function(e){return i.push({key:r,undo:e,redo:s}),l(++n,u)},function(e){return i.push({key:r,undo:null,redo:s}),l(++n,u)})})):l(++n,u):Promise.resolve(i)};return l(0,n)}(e,t,n).then(function(r){if("DELETE"===e.method){if(!n||0===n.length){var s=h(e);n=[{key:s}]}return function(e,t,n){return o.openStore(e).then(function(e){return e.removeByKey(t[0].key)}).then(function(){return n.length>0?{storeName:e,operation:"remove",undoRedoData:n}:null})}(t,n,r)}return function(e,t,n){return o.openStore(e).then(function(e){return e.upsertAll(t)}).then(function(){return n.length>0?{storeName:e,operation:"upsert",undoRedoData:n}:null})}(t,n,r)})}(e,r,t[r]))}),Promise.all(n)}(e,t):Promise.resolve()})}(e,t)}(n,e)):(i.log("Offline Persistence Toolkit DefaultResponseProxy: Response is not ok after cacheStrategy for request with enpointKey: "+l),null)}).then(function(t){if(!f.isReplayRequest)return p(n,t,f.isCachedResponse&&!e.isOnline())}).then(function(){s.unregisterEndpointOptions(l),u(f.response)}).catch(function(e){i.log("Offline Persistence Toolkit DefaultResponseProxy: Insert Response in syncManager after error for request with enpointKey: "+l),f.isReplayRequest?(s.unregisterEndpointOptions(l),a(e)):p(c,null,!0).then(function(){s.unregisterEndpointOptions(l),a(e)},function(){s.unregisterEndpointOptions(l),a(e)})})})},l.prototype.handlePost=function(e){return i.log("Offline Persistence Toolkit DefaultResponseProxy: Processing Request with default POST Handler"),u(e)},l.prototype.handleSyncReplay=function(n){return i.log("Offline Persistence Toolkit DefaultResponseProxy: Processing Request from Sync Replay"),t.markReplayRequest(n,!1),e.browserFetch(n)},l.prototype.handleGet=function(e){return i.log("Offline Persistence Toolkit DefaultResponseProxy: Processing Request with default GET Handler"),a(this,e)},l.prototype.handleHead=function(e){return i.log("Offline Persistence Toolkit DefaultResponseProxy: Processing Request with default HEAD Handler"),a(this,e)},l.prototype.handleOptions=function(e){return i.log("Offline Persistence Toolkit DefaultResponseProxy: Processing Request with default OPTIONS Handler"),u(e)},l.prototype.handlePut=function(t){return i.log("Offline Persistence Toolkit DefaultResponseProxy: Processing Request with default PUT Handler"),function(t,n){var r=t;return e.isOnline()?e.browserFetch(n.clone()).then(function(e){return e.ok?(i.log("Offline Persistence Toolkit DefaultResponseProxy: Response is ok for default PUT Handler"),e):c(r,n,e,d)},function(e){return d(0,n)}):d(0,n)}(this,t)},l.prototype.handlePatch=function(e){return i.log("Offline Persistence Toolkit DefaultResponseProxy: Processing Request with default PATCH Handler"),u(e)},l.prototype.handleDelete=function(t){return i.log("Offline Persistence Toolkit DefaultResponseProxy: Processing Request with default DELETE Handler"),function(t,n){var r=t;return e.isOnline()?e.browserFetch(n.clone()).then(function(e){return e.ok?(i.log("Offline Persistence Toolkit DefaultResponseProxy: Response is ok for default DELETE Handler"),e):c(r,n,e,f)},function(e){return f(r,n)}):f(r,n)}(this,t)},{getResponseProxy:function(e){return new l(e)}}});
@@ -1,6 +1,7 @@
1
1
  /**
2
+ * Offline Persistence Toolkit v1.5.9
2
3
  * Copyright (c) 2017, Oracle and/or its affiliates.
3
4
  * All rights reserved.
4
5
  */
5
6
 
6
- define(["./persistenceManager","./persistenceUtils","./impl/defaultCacheHandler","./impl/logger"],(function(e,n,t,r){"use strict";function s(n,t,s){return new Promise((function(i,l){r.log("Offline Persistence Toolkit fetchStrategies: Process queryParams for Request"),function(e,n){var t=function(e){var n=null;return null!=e.queryHandler&&(n=e.queryHandler),n}(n);return null==t?Promise.resolve():t(e,n)}(n,t).then((function(t){t?(i(t.clone()),o(n,s)):(r.log("Offline Persistence Toolkit fetchStrategies: Response for queryParams is not null"),function(n){return e.getCache().match(n)}(n).then((function(t){t?(r.log("Offline Persistence Toolkit fetchStrategies: Cached Response is not null"),i(t),o(n,s)):(r.log("Offline Persistence Toolkit fetchStrategies: Cached Response is null"),e.browserFetch(n).then((function(e){var t=e.clone();i(t),s&&s(n,e)}),(function(e){i(new Response(null,{status:503,statusText:"No cached response exists"}))})))})))}))}))}function o(t,s){s&&(r.log("Offline Persistence Toolkit fetchStrategies: Fetch for ServerResponseCallback"),e.browserFetch(t).then((function(e){n._cloneResponse(e,{url:t.url}).then((function(e){s(t,e)}))})))}return{getCacheFirstStrategy:function(o){var i=(o=o||{}).serverResponseCallback,l="disabled"==o.backgroundFetch;return l&&(i=null),i||l||(i=function(e,n){return Promise.resolve(n)}),function(o,l){if(r.log("Offline Persistence Toolkit fetchStrategies: Processing CacheFirstStrategy"),i)var c=function(r,s){var o=n.buildEndpointKey(r);t.registerEndpointOptions(o,l);var c={};return n._cloneResponse(s,{url:r.url}).then((function(e){return i(r,e)})).then((function(n){return c.resolvedResponse=n,e.getCache().hasMatch(r)})).then((function(t){var s=c.resolvedResponse.clone();return t?null==c.resolvedResponse||n.isCachedResponse(c.resolvedResponse)||"GET"!=r.method&&"HEAD"!=r.method?s:e.getCache().put(r,c.resolvedResponse).then((function(){return s})):s})).finally((function(){t.unregisterEndpointOptions(o)}))};return s(o,l,c)}},getCacheIfOfflineStrategy:function(){return function(t,o){return r.log("Offline Persistence Toolkit fetchStrategies: Processing CacheIfOfflineStrategy"),e.isOnline()?e.browserFetch(t).then((function(e){return e.ok?n._cloneResponse(e,{url:t.url}):function(e,n,t){return n.status<500?(r.log("Offline Persistence Toolkit fetchStrategies: Response is not ok"),Promise.resolve(n)):s(e,t)}(t,e,o)}),(function(e){return r.log(e),s(t,o)})):s(t,o)}}}}));
7
+ define(["./persistenceManager","./persistenceUtils","./impl/defaultCacheHandler","./impl/logger"],function(e,n,t,r){"use strict";function s(n,t,s){return new Promise(function(i,l){r.log("Offline Persistence Toolkit fetchStrategies: Process queryParams for Request"),function(e,n){var t=function(e){var n=null;return null!=e.queryHandler&&(n=e.queryHandler),n}(n);return null==t?Promise.resolve():t(e,n)}(n,t).then(function(t){t?(i(t.clone()),o(n,s)):(r.log("Offline Persistence Toolkit fetchStrategies: Response for queryParams is not null"),function(n){return e.getCache().match(n)}(n).then(function(t){t?(r.log("Offline Persistence Toolkit fetchStrategies: Cached Response is not null"),i(t),o(n,s)):(r.log("Offline Persistence Toolkit fetchStrategies: Cached Response is null"),e.browserFetch(n).then(function(e){var t=e.clone();i(t),s&&s(n,e)},function(e){i(new Response(null,{status:503,statusText:"No cached response exists"}))}))}))})})}function o(t,s){s&&(r.log("Offline Persistence Toolkit fetchStrategies: Fetch for ServerResponseCallback"),e.browserFetch(t).then(function(e){n._cloneResponse(e,{url:t.url}).then(function(e){s(t,e)})}))}return{getCacheFirstStrategy:function(o){var i=(o=o||{}).serverResponseCallback,l="disabled"==o.backgroundFetch;return l&&(i=null),i||l||(i=function(e,n){return Promise.resolve(n)}),function(o,l){if(r.log("Offline Persistence Toolkit fetchStrategies: Processing CacheFirstStrategy"),i)var c=function(r,s){var o=n.buildEndpointKey(r);t.registerEndpointOptions(o,l);var c={};return n._cloneResponse(s,{url:r.url}).then(function(e){return i(r,e)}).then(function(n){return c.resolvedResponse=n,e.getCache().hasMatch(r)}).then(function(t){var s=c.resolvedResponse.clone();return t?null==c.resolvedResponse||n.isCachedResponse(c.resolvedResponse)||"GET"!=r.method&&"HEAD"!=r.method?s:e.getCache().put(r,c.resolvedResponse).then(function(){return s}):s}).finally(function(){t.unregisterEndpointOptions(o)})};return s(o,l,c)}},getCacheIfOfflineStrategy:function(){return function(t,o){return r.log("Offline Persistence Toolkit fetchStrategies: Processing CacheIfOfflineStrategy"),e.isOnline()?e.browserFetch(t).then(function(e){return e.ok?n._cloneResponse(e,{url:t.url}):function(e,n,t){return n.status<500?(r.log("Offline Persistence Toolkit fetchStrategies: Response is not ok"),Promise.resolve(n)):s(e,t)}(t,e,o)},function(e){return r.log(e),s(t,o)}):s(t,o)}}}});
@@ -1,6 +1,7 @@
1
1
  /**
2
+ * Offline Persistence Toolkit v1.5.9
2
3
  * Copyright (c) 2017, Oracle and/or its affiliates.
3
4
  * All rights reserved.
4
5
  */
5
6
 
6
- define(["./impl/fileSystemPersistenceStore"],(function(e){"use strict";return{createPersistenceStore:function(n,t){return function(n,t){var r=new e(n);return r.Init(t).then((function(){return r}))}(n,t)}}}));
7
+ define(["./impl/fileSystemPersistenceStore"],function(e){"use strict";return{createPersistenceStore:function(n,t){return function(n,t){var r=new e(n);return r.Init(t).then(function(){return r})}(n,t)}}});
@@ -1,6 +1,7 @@
1
1
  /**
2
+ * Offline Persistence Toolkit v1.5.9
2
3
  * Copyright (c) 2017, Oracle and/or its affiliates.
3
4
  * All rights reserved.
4
5
  */
5
6
 
6
- define(["./defaultCacheHandler","../persistenceStoreManager","../persistenceUtils","./logger"],(function(e,r,t,n){"use strict";function o(e,r){if(!e)throw TypeError("A name must be provided to create an OfflineCache!");if(!r)throw TypeError("A persistence store must be provided to create an OfflineCache!");this._name=e,this._storeName=r,this._shreddedNamesStoreName=this._storeName+"_OPT_INT_SHRED_STORE_NAMES_",this._store=null,this._cacheKeys=[],this._createStorePromise}function a(e,r,t){if(t&&t.length)for(var n=0;n<t.length;n++){var o=t[n];if(u(e,r,o.value))return o}return null}function i(e,r,t){return function(n){var o;return o=t?n[t]:n,u(e,r,o)}}function u(e,r,t){if(e)return!0;if(!t||!r)return!1;var o=t.requestData.headers,a=t.responseData.headers,i=r.headers,u=a.vary;if(n.log("Offline Persistence Toolkit OfflineCache: Processing HTTP Vary header"),!u)return!0;if("*"===u.trim())return!1;for(var s=u.split(","),c=0;c<s.length;c++){var l=s[c].toLowerCase();l=l.trim();var f=i.get(l),h=o[l];if(n.log("Offline Persistence Toolkit OfflineCache: HTTP Vary header name: "+l),n.log("Offline Persistence Toolkit OfflineCache: Request HTTP Vary header value: "+f),n.log("Offline Persistence Toolkit OfflineCache: Cached HTTP Vary header value: "+h),!(!h&&!f||h&&f&&h===f))return!1}return!0}function s(r,t,o){if(t){n.log("Offline Persistence Toolkit OfflineCache: Converting cached entry to Response object");var a=!1;o&&o.ignoreBody&&(a=!0);var i=t.bodyAbstract;return e.constructResponse(t).then((function(t){if(null!=r.url&&r.url.length>0&&null==t.headers.get("x-oracle-jscpt-response-url")&&t.headers.set("x-oracle-jscpt-response-url",r.url),!a&&i){var o;try{o=JSON.parse(i)}catch(e){n.error("error parsing json "+i)}return e.fillResponseBodyWithShreddedData(r,o,t)}return t}))}return Promise.resolve()}function c(r,t,n){if(t){var o=e.constructSearchCriteria(t,n);o.fields=["key","value"];var a=n&&n.ignoreVary;return r.find(o).then((function(e){return e&&e.length?e.filter(i(a,t,"value")).map((function(e){return e.key})):[]}))}return r.keys()}return o.prototype.getName=function(){return this._name},o.prototype.add=function(e){n.log("Offline Persistence Toolkit OfflineCache: add()");var r=this;return fetch(e).then((function(t){return r.put(e,t)}))},o.prototype.addAll=function(e){n.log("Offline Persistence Toolkit OfflineCache: addAll()");var r=e.map(this.add,this);return Promise.all(r)},o.prototype.match=function(e,r){return n.log("Offline Persistence Toolkit OfflineCache: match() for Request with url: "+e.url),this._getCacheEntries(e,r).then((function(t){var n=a(r&&r.ignoreVary,e,t);if(n)return s(e,n.value.responseData,r)})).catch((function(r){n.log("error finding match for request with url: "+e.url)}))},o.prototype._getCacheEntries=function(r,t){var n=this;return this._getStore().then((function(o){var a=e.getMatchedCacheKeys(r,t,n._cacheKeys);if(a&&a.length){var i=a.map((function(e){return o.findByKey(e).then((function(r){return{key:e,value:r}}))}));return Promise.all(i)}var u=e.constructSearchCriteria(r,t);return u.fields=["key","value"],o.find(u)}))},o.prototype._matchByKey=function(e,r,t){return this._getStore().then((function(e){return e.findByKey(r)})).then((function(r){return r?s(e,r.responseData,t):void 0}))},o.prototype._internalMatch=function(r,t){var o=this;return o._getStore().then((function(n){var a=e.getMatchedCacheKeys(r,t,o._cacheKeys);if(a&&a.length){var i=a.map((function(e){return n.findByKey(e)}));return Promise.all(i).then((function(e){return e.map((function(e,r){return{key:a[r],value:e}}))}))}var u=e.constructSearchCriteria(r,t);return u.fields=["key","value"],n.find(u)})).then((function(e){if(e){var o=a(t&&t.ignoreVary,r,e);if(o){var i={key:o.key},u=o.value.responseData.bodyAbstract;if(u)try{var s=JSON.parse(u);s?1===s.length&&"single"===s[0].resourceType?i.resourceType="single":i.resourceType="collection":i.resourceType="unknown"}catch(e){return void n.log("internal error: invalid body abstract")}else i.resourceType="unknown";return i}}})).catch((function(e){n.log("error finding match internal")}))},o.prototype.matchAll=function(e,r){return n.log("Offline Persistence Toolkit OfflineCache: matchAll() for Request with url: "+e.url),this._getCacheEntries(e,r).then((function(t){var n=function(e,r,t){var n=[];return t&&t.length&&(n=t.filter(i(e,r,"value")).map((function(e){return e.value.responseData}))),n}(r&&r.ignoreVary,e,t);return function(e,r,t){if(r&&r.length){var n=r.map((function(r){return s(e,r,t)}));return Promise.all(n)}return Promise.resolve()}(e,n,r)})).catch((function(r){n.log("error finding all matches for request with url: "+e.url)}))},o.prototype._getStore=function(){var e,t=this;return t._store?Promise.resolve(t._store):(t._createStorePromise||(t._createStorePromise=r.openStore(t._storeName,{index:["metadata.baseUrl","metadata.url","metadata.created"],skipMetadata:!0}).then((function(r){return e=r,r.keys()})).then((function(r){return t._cacheKeys=r,t._store=e,t._store}))),t._createStorePromise)},o.prototype._getShreddedNamesStore=function(){var e=this;return e._shreddedNamesStore?Promise.resolve(e._shreddedNamesStore):(e._createShreddedNamesStorePromise||(e._createShreddedNamesStorePromise=r.openStore(e._shreddedNamesStoreName,{index:["metadata.baseUrl","metadata.url","metadata.created"],skipMetadata:!0}).then((function(r){return e._shreddedNamesStore=r,e._shreddedNamesStore}))),e._createShreddedNamesStorePromise)},o.prototype.put=function(r,t){n.log("Offline Persistence Toolkit OfflineCache: put() for Request with url: "+r.url);var o,a=this;return a._getStore().then((function(){return e.constructRequestResponseCacheData(r,t)})).then((function(i){var u=a._store;return o=i.key,e.hasShredder(r)?e.shredResponse(r,t).then((function(r){if(r){var t=[];return i.value.responseData.bodyAbstract=function(e){var r=e.map((function(e){return{name:e.name,keys:e.keys?e.keys.reduce((function(e,r){return r?e.push(r):n.warn("should not have undefined key in the shredded data"),e}),[]):e.keys,resourceType:e.resourceType}}));return JSON.stringify(r)}(r),t.push(u.upsert(i.key,i.metadata,i.value)),t.push(e.cacheShreddedData(r,i.metadata)),a._updateShreddedStoreNames(r.map((function(e){return e.name}))).then((function(){return Promise.all(t)}))}o=null})):u.upsert(i.key,i.metadata,i.value)})).then((function(){o&&a._cacheKeys.indexOf(o)<0&&a._cacheKeys.push(o)})).catch((function(e){n.error("error in cache.put() for Request with url: "+r.url)}))},o.prototype._updateShreddedStoreNames=function(e){return this._getShreddedNamesStore().then((function(r){return e?r.keys().then((function(t){var n=[];if(e.forEach((function(e){t.indexOf(e)<0&&n.push(e)})),n.length>0){var o=[];return n.forEach((function(e){o.push({key:e,metadata:{},value:{}})})),r.upsertAll(o)}})):r.delete()}))},o.prototype._getShreddedStoreNames=function(){return this._getShreddedNamesStore().then((function(e){return e.keys()}))},o.prototype.delete=function(r,t){if(!r)return n.warn("Offline Persistence Toolkit OfflineCache: delete() request is a required parameter. To clear the cache, please call clear()"),Promise.resolve(!1);n.log("Offline Persistence Toolkit OfflineCache: delete() for Request with url: "+r.url);var o=this;return o._getStore().then((function(a){if(e.hasShredder(r)){var u=e.constructSearchCriteria(r,t);u.fields=["key","value"];var s=t&&t.ignoreVary;return a.find(u).then((function(t){if(t&&t.length){var u=t.filter(i(s,r,"value")),c=[];return u.forEach((function(r){c.push(a.removeByKey(r.key));var t=o._cacheKeys.indexOf(r.key);t>=0&&o._cacheKeys.splice(t,1),r.value.responseData.bodyAbstract&&r.value.responseData.bodyAbstract.length&&c.push(e.deleteShreddedData(JSON.parse(r.value.responseData.bodyAbstract)))})),Promise.all(c).then((function(){return n.log("Offline Persistence Toolkit OfflineCache: all matching entries are deleted from both the cache store and the shredded store."),!0}))}return!1}))}return c(a,r,t).then((function(e){if(e&&e.length){var r=e.map((function(e){var r=o._cacheKeys.indexOf(e);return r>=0&&o._cacheKeys.splice(r,1),a.removeByKey(e)}));return Promise.all(r)}return[]})).then((function(e){return!(!e||!e.length)}))})).catch((function(e){return n.log("Offline Persistence Toolkit OfflineCache: error occurred delete() for Request with url: "+r.url),!1}))},o.prototype.keys=function(e,r){e?n.log("Offline Persistence Toolkit OfflineCache: keys() for Request with url: "+e.url):n.log("Offline Persistence Toolkit OfflineCache: keys()");var o=this;return o._getStore().then((function(){return c(o._store,e,r)})).then((function(e){var r=[];return e.forEach((function(e){r.push(o._store.findByKey(e).then((function(e){return t.requestFromJSON(e.requestData)})))})),Promise.all(r)})).catch((function(r){return n.log("Offline Persistence Toolkit OfflineCache: keys() error for Request with url: "+e.url),[]}))},o.prototype.hasMatch=function(e,r){return n.log("Offline Persistence Toolkit OfflineCache: hasMatch() for Request with url: "+e.url),this._getCacheEntries(e,r).then((function(t){return null!==a(r&&r.ignoreVary,e,t)}))},o.prototype.clear=function(){n.log("Offline Persistence Toolkit OfflineCache: clear()");var e=this;return e._getStore().then((function(t){var n=[];return n.push(t.delete()),e._getShreddedStoreNames().then((function(t){return t.forEach((function(e){n.push(r.deleteStore(e))})),Promise.all(n).then((function(r){return e._updateShreddedStoreNames(null)})).then((function(){return e._cacheKeys=[],!0}))}))})).catch((function(e){n.log("Offline Persistence Toolkit OfflineCache: clear() error")}))},o}));
7
+ define(["./defaultCacheHandler","../persistenceStoreManager","../persistenceUtils","./logger"],function(e,r,t,n){"use strict";function o(e,r){if(!e)throw TypeError("A name must be provided to create an OfflineCache!");if(!r)throw TypeError("A persistence store must be provided to create an OfflineCache!");this._name=e,this._storeName=r,this._shreddedNamesStoreName=this._storeName+"_OPT_INT_SHRED_STORE_NAMES_",this._store=null,this._cacheKeys=[],this._createStorePromise}function a(e,r,t){if(t&&t.length)for(var n=0;n<t.length;n++){var o=t[n];if(u(e,r,o.value))return o}return null}function i(e,r,t){return function(n){var o;return o=t?n[t]:n,u(e,r,o)}}function u(e,r,t){if(e)return!0;if(!t||!r)return!1;var o=t.requestData.headers,a=t.responseData.headers,i=r.headers,u=a.vary;if(n.log("Offline Persistence Toolkit OfflineCache: Processing HTTP Vary header"),!u)return!0;if("*"===u.trim())return!1;for(var s=u.split(","),c=0;c<s.length;c++){var l=s[c].toLowerCase();l=l.trim();var f=i.get(l),h=o[l];if(n.log("Offline Persistence Toolkit OfflineCache: HTTP Vary header name: "+l),n.log("Offline Persistence Toolkit OfflineCache: Request HTTP Vary header value: "+f),n.log("Offline Persistence Toolkit OfflineCache: Cached HTTP Vary header value: "+h),!(!h&&!f||h&&f&&h===f))return!1}return!0}function s(r,t,o){if(t){n.log("Offline Persistence Toolkit OfflineCache: Converting cached entry to Response object");var a=!1;o&&o.ignoreBody&&(a=!0);var i=t.bodyAbstract;return e.constructResponse(t).then(function(t){if(null!=r.url&&r.url.length>0&&null==t.headers.get("x-oracle-jscpt-response-url")&&t.headers.set("x-oracle-jscpt-response-url",r.url),!a&&i){var o;try{o=JSON.parse(i)}catch(e){n.error("error parsing json "+i)}return e.fillResponseBodyWithShreddedData(r,o,t)}return t})}return Promise.resolve()}function c(r,t,n){if(t){var o=e.constructSearchCriteria(t,n);o.fields=["key","value"];var a=n&&n.ignoreVary;return r.find(o).then(function(e){return e&&e.length?e.filter(i(a,t,"value")).map(function(e){return e.key}):[]})}return r.keys()}return o.prototype.getName=function(){return this._name},o.prototype.add=function(e){n.log("Offline Persistence Toolkit OfflineCache: add()");var r=this;return fetch(e).then(function(t){return r.put(e,t)})},o.prototype.addAll=function(e){n.log("Offline Persistence Toolkit OfflineCache: addAll()");var r=e.map(this.add,this);return Promise.all(r)},o.prototype.match=function(e,r){return n.log("Offline Persistence Toolkit OfflineCache: match() for Request with url: "+e.url),this._getCacheEntries(e,r).then(function(t){var n=a(r&&r.ignoreVary,e,t);if(n)return s(e,n.value.responseData,r)}).catch(function(r){n.log("error finding match for request with url: "+e.url)})},o.prototype._getCacheEntries=function(r,t){var n=this;return this._getStore().then(function(o){var a=e.getMatchedCacheKeys(r,t,n._cacheKeys);if(a&&a.length){var i=a.map(function(e){return o.findByKey(e).then(function(r){return{key:e,value:r}})});return Promise.all(i)}var u=e.constructSearchCriteria(r,t);return u.fields=["key","value"],o.find(u)})},o.prototype._matchByKey=function(e,r,t){return this._getStore().then(function(e){return e.findByKey(r)}).then(function(r){return r?s(e,r.responseData,t):void 0})},o.prototype._internalMatch=function(r,t){var o=this;return o._getStore().then(function(n){var a=e.getMatchedCacheKeys(r,t,o._cacheKeys);if(a&&a.length){var i=a.map(function(e){return n.findByKey(e)});return Promise.all(i).then(function(e){return e.map(function(e,r){return{key:a[r],value:e}})})}var u=e.constructSearchCriteria(r,t);return u.fields=["key","value"],n.find(u)}).then(function(e){if(e){var o=a(t&&t.ignoreVary,r,e);if(o){var i={key:o.key},u=o.value.responseData.bodyAbstract;if(u)try{var s=JSON.parse(u);s?1===s.length&&"single"===s[0].resourceType?i.resourceType="single":i.resourceType="collection":i.resourceType="unknown"}catch(e){return void n.log("internal error: invalid body abstract")}else i.resourceType="unknown";return i}}}).catch(function(e){n.log("error finding match internal")})},o.prototype.matchAll=function(e,r){return n.log("Offline Persistence Toolkit OfflineCache: matchAll() for Request with url: "+e.url),this._getCacheEntries(e,r).then(function(t){var n=function(e,r,t){var n=[];return t&&t.length&&(n=t.filter(i(e,r,"value")).map(function(e){return e.value.responseData})),n}(r&&r.ignoreVary,e,t);return function(e,r,t){if(r&&r.length){var n=r.map(function(r){return s(e,r,t)});return Promise.all(n)}return Promise.resolve()}(e,n,r)}).catch(function(r){n.log("error finding all matches for request with url: "+e.url)})},o.prototype._getStore=function(){var e,t=this;return t._store?Promise.resolve(t._store):(t._createStorePromise||(t._createStorePromise=r.openStore(t._storeName,{index:["metadata.baseUrl","metadata.url","metadata.created"],skipMetadata:!0}).then(function(r){return e=r,r.keys()}).then(function(r){return t._cacheKeys=r,t._store=e,t._store})),t._createStorePromise)},o.prototype._getShreddedNamesStore=function(){var e=this;return e._shreddedNamesStore?Promise.resolve(e._shreddedNamesStore):(e._createShreddedNamesStorePromise||(e._createShreddedNamesStorePromise=r.openStore(e._shreddedNamesStoreName,{index:["metadata.baseUrl","metadata.url","metadata.created"],skipMetadata:!0}).then(function(r){return e._shreddedNamesStore=r,e._shreddedNamesStore})),e._createShreddedNamesStorePromise)},o.prototype.put=function(r,t){n.log("Offline Persistence Toolkit OfflineCache: put() for Request with url: "+r.url);var o,a=this;return a._getStore().then(function(){return e.constructRequestResponseCacheData(r,t)}).then(function(i){var u=a._store;return o=i.key,e.hasShredder(r)?e.shredResponse(r,t).then(function(r){if(r){var t=[];return i.value.responseData.bodyAbstract=function(e){var r=e.map(function(e){return{name:e.name,keys:e.keys?e.keys.reduce(function(e,r){return r?e.push(r):n.warn("should not have undefined key in the shredded data"),e},[]):e.keys,resourceType:e.resourceType}});return JSON.stringify(r)}(r),t.push(u.upsert(i.key,i.metadata,i.value)),t.push(e.cacheShreddedData(r,i.metadata)),a._updateShreddedStoreNames(r.map(function(e){return e.name})).then(function(){return Promise.all(t)})}o=null}):u.upsert(i.key,i.metadata,i.value)}).then(function(){o&&a._cacheKeys.indexOf(o)<0&&a._cacheKeys.push(o)}).catch(function(e){n.error("error in cache.put() for Request with url: "+r.url)})},o.prototype._updateShreddedStoreNames=function(e){return this._getShreddedNamesStore().then(function(r){return e?r.keys().then(function(t){var n=[];if(e.forEach(function(e){t.indexOf(e)<0&&n.push(e)}),n.length>0){var o=[];return n.forEach(function(e){o.push({key:e,metadata:{},value:{}})}),r.upsertAll(o)}}):r.delete()})},o.prototype._getShreddedStoreNames=function(){return this._getShreddedNamesStore().then(function(e){return e.keys()})},o.prototype.delete=function(r,t){if(!r)return n.warn("Offline Persistence Toolkit OfflineCache: delete() request is a required parameter. To clear the cache, please call clear()"),Promise.resolve(!1);n.log("Offline Persistence Toolkit OfflineCache: delete() for Request with url: "+r.url);var o=this;return o._getStore().then(function(a){if(e.hasShredder(r)){var u=e.constructSearchCriteria(r,t);u.fields=["key","value"];var s=t&&t.ignoreVary;return a.find(u).then(function(t){if(t&&t.length){var u=t.filter(i(s,r,"value")),c=[];return u.forEach(function(r){c.push(a.removeByKey(r.key));var t=o._cacheKeys.indexOf(r.key);t>=0&&o._cacheKeys.splice(t,1),r.value.responseData.bodyAbstract&&r.value.responseData.bodyAbstract.length&&c.push(e.deleteShreddedData(JSON.parse(r.value.responseData.bodyAbstract)))}),Promise.all(c).then(function(){return n.log("Offline Persistence Toolkit OfflineCache: all matching entries are deleted from both the cache store and the shredded store."),!0})}return!1})}return c(a,r,t).then(function(e){if(e&&e.length){var r=e.map(function(e){var r=o._cacheKeys.indexOf(e);return r>=0&&o._cacheKeys.splice(r,1),a.removeByKey(e)});return Promise.all(r)}return[]}).then(function(e){return!(!e||!e.length)})}).catch(function(e){return n.log("Offline Persistence Toolkit OfflineCache: error occurred delete() for Request with url: "+r.url),!1})},o.prototype.keys=function(e,r){e?n.log("Offline Persistence Toolkit OfflineCache: keys() for Request with url: "+e.url):n.log("Offline Persistence Toolkit OfflineCache: keys()");var o=this;return o._getStore().then(function(){return c(o._store,e,r)}).then(function(e){var r=[];return e.forEach(function(e){r.push(o._store.findByKey(e).then(function(e){return t.requestFromJSON(e.requestData)}))}),Promise.all(r)}).catch(function(r){return n.log("Offline Persistence Toolkit OfflineCache: keys() error for Request with url: "+e.url),[]})},o.prototype.hasMatch=function(e,r){return n.log("Offline Persistence Toolkit OfflineCache: hasMatch() for Request with url: "+e.url),this._getCacheEntries(e,r).then(function(t){return null!==a(r&&r.ignoreVary,e,t)})},o.prototype.clear=function(){n.log("Offline Persistence Toolkit OfflineCache: clear()");var e=this;return e._getStore().then(function(t){var n=[];return n.push(t.delete()),e._getShreddedStoreNames().then(function(t){return t.forEach(function(e){n.push(r.deleteStore(e))}),Promise.all(n).then(function(r){return e._updateShreddedStoreNames(null)}).then(function(){return e._cacheKeys=[],!0})})}).catch(function(e){n.log("Offline Persistence Toolkit OfflineCache: clear() error")})},o});
@@ -1,6 +1,7 @@
1
1
  /**
2
+ * Offline Persistence Toolkit v1.5.9
2
3
  * Copyright (c) 2017, Oracle and/or its affiliates.
3
4
  * All rights reserved.
4
5
  */
5
6
 
6
- define([],(function(){"use strict";var t=function(t,e,r){this.name=t,this.persistenceStoreFactory=e,this.versions=r};return(t.prototype={}).persistenceStoreFactory,t.prototype.versions,t}));
7
+ define([],function(){"use strict";var t=function(t,e,r){this.name=t,this.persistenceStoreFactory=e,this.versions=r};return(t.prototype={}).persistenceStoreFactory,t.prototype.versions,t});
@@ -1,6 +1,7 @@
1
1
  /**
2
+ * Offline Persistence Toolkit v1.5.9
2
3
  * Copyright (c) 2017, Oracle and/or its affiliates.
3
4
  * All rights reserved.
4
5
  */
5
6
 
6
- define(["require","../persistenceUtils","../persistenceStoreManager","./defaultCacheHandler","./logger"],(function(e,n,t,r,o){"use strict";function s(e,n,t){Object.defineProperty(this,"_eventListeners",{value:[],writable:!0}),Object.defineProperty(this,"_isOnline",{value:e}),Object.defineProperty(this,"_browserFetch",{value:n}),Object.defineProperty(this,"_cache",{value:t})}function i(e){return"stop"===(e=e||{}).action}function u(e,n){var r,o,s,i,u,c=[];e instanceof Array||(e=[e]);var l=e.length,f=function(a){if(!(a<l))return Promise.resolve();if(s=e[a].storeName,o=e[a].operation,i=e[a].undoRedoData,"upsert"==o||"remove"==o&&n){for(c=[],u=i.length,r=0;r<u;r++)n?c.push({key:i[r].key,value:i[r].undo}):c.push({key:i[r].key,value:i[r].redo});return t.openStore(s).then((function(e){return 1==c.length&&null==c[0].value&&null!=c[0].key?e.removeByKey(c[0].key).then((function(){return f(++a)})):e.upsertAll(c).then((function(){return f(++a)}))}))}return"remove"==o?t.openStore(s).then((function(e){return e.removeByKey(i[0].key).then((function(){return f(++a)}))})):void 0};return f(0)}function c(e,n,t,r){var o=e._eventListeners.filter(function(e,n){return function(t){return e.toLowerCase()==t.type&&(null!=n&&n.match(t.scope)||null==n||null==t.scope)}}(n,r));return l(t,o)}function l(e,n){return n.length>0?n[0].listener(e).then((function(e){return null!=e?Promise.resolve(e):n.length>1?l(n.slice(1)):void 0})):Promise.resolve(null)}function f(e){return t.openStore(e,{index:["key"],skipMetadata:!0})}function a(){return f("syncLog")}function h(){return f("redoUndoLog")}return s.prototype.addEventListener=function(e,n,t){o.log("Offline Persistence Toolkit PersistenceSyncManager: addEventListener() for type: "+e+" and scope: "+t),this._eventListeners.push({type:e.toLowerCase(),listener:n,scope:t})},s.prototype.removeEventListener=function(e,n,t){o.log("Offline Persistence Toolkit PersistenceSyncManager: removeEventListener() for type: "+e+" and scope: "+t),this._eventListeners=this._eventListeners.filter((function(r){return e.toLowerCase()!=r.type||n!=r.listener||t!=r.scope}))},s.prototype.getSyncLog=function(){var e;return o.log("Offline Persistence Toolkit PersistenceSyncManager: getSyncLog()"),this._readingSyncLog||(this._readingSyncLog=(e=this,a().then((function(e){return e.find((n={},t=[],(r=[]).push("key"),n.sort=r,t.push("key"),t.push("value"),n.fields=t,n));var n,t,r})).then((function(e){return function(e){var t,r,o=[],s=function(e){return e&&0!=e.length?(t=e[0].key,r=e[0].value,n.requestFromJSON(r).then((function(n){return o.push(function(e,n){return{requestId:e,request:n,undo:function(){return function(e){return h().then((function(n){return n.findByKey(e)})).then((function(e){return null!=e&&u(e,!0).then((function(){return!0}))}))}(e)},redo:function(){return function(e){return h().then((function(n){return n.findByKey(e)})).then((function(e){return null!=e&&u(e,!1).then((function(){return!0}))}))}(e)}}}(t,n)),e.shift(),s(e)}))):Promise.resolve(o)};return s(e)}(e)})).then((function(n){return e._readingSyncLog=null,n})))),this._readingSyncLog},s.prototype.insertRequest=function(e,t){o.log("Offline Persistence Toolkit PersistenceSyncManager: insertRequest() for Request with url: "+e.url);var s={};return a().then((function(t){return s.store=t,n.requestToJSON(e,{_noClone:!0})})).then((function(n){return s.requestData=n,s.metadata=r.constructMetadata(e),s.requestId=s.metadata.created.toString(),s.store.upsert(s.requestId,s.metadata,s.requestData)})).then((function(){if(null!=t){var e=t.undoRedoDataArray;return null!=e?h().then((function(n){var t=function(r){return r<e.length&&null!=e[r]?n.upsert(s.requestId,s.metadata,e[r]).then((function(){return t(++r)})):Promise.resolve()};return t(0)})):Promise.resolve()}return Promise.resolve()}))},s.prototype.removeRequest=function(e){o.log("Offline Persistence Toolkit PersistenceSyncManager: removeRequest() for Request with requestId: "+e);var t=this,r={};return a().then((function(t){return r.store=t,function(e,t){return t.findByKey(e).then((function(e){if(e)return n.requestFromJSON(e)}))}(e,t)})).then((function(n){return n?t._internalRemoveRequest(e,n,r.store):void 0}))},s.prototype._internalRemoveRequest=function(e,n,t){var r=[];return t?r.push(t.removeByKey(e)):r.push(a().then((function(n){return n.removeByKey(e)}))),"GET"!==n.method&&"HEAD"!==n.method&&r.push(h().then((function(n){return n.removeByKey(e)}))),Promise.all(r).then((function(){return n})).catch((function(n){o.log("Offline Persistence Toolkit PersistenceSyncManager: removeRequest() error for Request with requestId: "+e)}))},s.prototype.updateRequest=function(e,t){return o.log("Offline Persistence Toolkit PersistenceSyncManager: updateRequest() for Request with requestId: "+e),Promise.all([a(),n.requestToJSON(t)]).then((function(n){var o=n[0],s=n[1],i=r.constructMetadata(t);return o.upsert(e,i,s)}))},s.prototype.sync=function(e){o.log("Offline Persistence Toolkit PersistenceSyncManager: sync()"),this._options=e||{};var t=this;return this._syncing?Promise.reject("Cannot start sync while sync is in progress"):(this._syncing=!0,new Promise((function(e,r){t.getSyncLog().then((function(s){var u,l,f;o.log("Offline Persistence Toolkit PersistenceSyncManager: Processing sync");var a=function(s){0==s.length&&(o.log("Offline Persistence Toolkit PersistenceSyncManager: Sync finished, no requests in sync log"),e()),s.length>0&&(o.log("Offline Persistence Toolkit PersistenceSyncManager: Processing sync, # of requests in sync log: "+s.length),u=s[0].requestId,l=s[0].request,f=l.clone(),o.log("Offline Persistence Toolkit PersistenceSyncManager: Dispatching beforeSyncRequest event"),c(t,"beforeSyncRequest",{requestId:u,request:f.clone()},l.url).then((function(h){if(i(h))return o.log("Offline Persistence Toolkit PersistenceSyncManager: Sync stopped by beforeSyncRequest event listener"),void e();"skip"!==(h=h||{}).action?("replay"===h.action&&(o.log("Offline Persistence Toolkit PersistenceSyncManager: Replay request from beforeSyncRequest event listener"),l=h.request),f=l.clone(),function(e,n){var t,r=e,s=r._options.preflightOptionsRequest,i=r._options.preflightOptionsRequestTimeout;if(null!=n.url&&"disabled"!=s&&null!=n.url.match(s)){if(o.log("Offline Persistence Toolkit PersistenceSyncManager: Checking URL based on preflightOptionsRequest"),r._pingedURLs){if(r._pingedURLs.indexOf(n.url)>=0)return Promise.resolve(!0)}else r._pingedURLs=[];return r._preflightOptionsRequestId=(new Date).getTime(),new Promise((t=r._preflightOptionsRequestId,function(e,o){r._repliedOptionsRequest=!1;var s=new Request(n.url,{method:"OPTIONS"}),u=6e4;null!=i&&(u=i),setTimeout((function(){r._repliedOptionsRequest||r._preflightOptionsRequestId!=t||o(!1)}),u),r._browserFetch(s).then((function(t){r._repliedOptionsRequest=!0,r._pingedURLs||(r._pingedURLs=[]),r._pingedURLs.push(n.url),e(!0)}),(function(n){r._repliedOptionsRequest=!0,e(!0)}))}))}return Promise.resolve(!0)}(t,l).then((function(){n.markReplayRequest(l,!0),o.log("Offline Persistence Toolkit PersistenceSyncManager: Replaying request with url: "+l.url),("undefined"!=typeof window&&null!=window?fetch:t._browserFetch)(l).then((function(h){h.status>=400?r({error:h.statusText,requestId:u,request:f.clone(),response:h.clone()}):n._cloneResponse(h,{url:l.url}).then((function(n){o.log("Offline Persistence Toolkit PersistenceSyncManager: Dispatching syncRequest event"),c(t,"syncRequest",{requestId:u,request:f.clone(),response:n.clone()},l.url).then((function(n){i(n)?e():(o.log("Offline Persistence Toolkit PersistenceSyncManager: Removing replayed request"),t._internalRemoveRequest(u,l).then((function(){s.shift(),a(s)}),(function(e){r({error:e,requestId:u,request:f.clone()})})))}))}))}),(function(e){r({error:e,requestId:u,request:f.clone()})}))}),(function(e){r(!1===e?{error:"Preflight OPTIONS request timed out",requestId:u,request:f.clone(),response:new Response(null,{status:504,statusText:"Preflight OPTIONS request timed out"})}:{error:e,requestId:u,request:f.clone()})}))):(o.log("Offline Persistence Toolkit PersistenceSyncManager: Removing skipped request"),t._internalRemoveRequest(u,l).then((function(){s.shift(),a(s)}),(function(e){r({error:e,requestId:u,request:f.clone()})})))})))};s=function(e){if(e&&e.length>0){var n,t,r=[];for(n=0;n<e.length;n++)"GET"!=(t=e[n].request).method&&"HEAD"!=t.method&&r.push(e[n]);for(n=0;n<e.length;n++)"GET"!=(t=e[n].request).method&&"HEAD"!=t.method||r.push(e[n]);return r}return e}(s),a(s)}))})).finally((function(e){t._syncing=!1,t._pingedURLs=null})))},s}));
7
+ define(["require","../persistenceUtils","../persistenceStoreManager","./defaultCacheHandler","./logger"],function(e,n,t,r,o){"use strict";function s(e,n,t){Object.defineProperty(this,"_eventListeners",{value:[],writable:!0}),Object.defineProperty(this,"_isOnline",{value:e}),Object.defineProperty(this,"_browserFetch",{value:n}),Object.defineProperty(this,"_cache",{value:t})}function i(e){return"stop"===(e=e||{}).action}function u(e,n){var r,o,s,i,u,c=[];e instanceof Array||(e=[e]);var l=e.length,f=function(a){if(!(a<l))return Promise.resolve();if(s=e[a].storeName,o=e[a].operation,i=e[a].undoRedoData,"upsert"==o||"remove"==o&&n){for(c=[],u=i.length,r=0;r<u;r++)n?c.push({key:i[r].key,value:i[r].undo}):c.push({key:i[r].key,value:i[r].redo});return t.openStore(s).then(function(e){return 1==c.length&&null==c[0].value&&null!=c[0].key?e.removeByKey(c[0].key).then(function(){return f(++a)}):e.upsertAll(c).then(function(){return f(++a)})})}return"remove"==o?t.openStore(s).then(function(e){return e.removeByKey(i[0].key).then(function(){return f(++a)})}):void 0};return f(0)}function c(e,n,t,r){var o=e._eventListeners.filter(function(e,n){return function(t){return e.toLowerCase()==t.type&&(null!=n&&n.match(t.scope)||null==n||null==t.scope)}}(n,r));return l(t,o)}function l(e,n){return n.length>0?n[0].listener(e).then(function(e){return null!=e?Promise.resolve(e):n.length>1?l(n.slice(1)):void 0}):Promise.resolve(null)}function f(e){return t.openStore(e,{index:["key"],skipMetadata:!0})}function a(){return f("syncLog")}function h(){return f("redoUndoLog")}return s.prototype.addEventListener=function(e,n,t){o.log("Offline Persistence Toolkit PersistenceSyncManager: addEventListener() for type: "+e+" and scope: "+t),this._eventListeners.push({type:e.toLowerCase(),listener:n,scope:t})},s.prototype.removeEventListener=function(e,n,t){o.log("Offline Persistence Toolkit PersistenceSyncManager: removeEventListener() for type: "+e+" and scope: "+t),this._eventListeners=this._eventListeners.filter(function(r){return e.toLowerCase()!=r.type||n!=r.listener||t!=r.scope})},s.prototype.getSyncLog=function(){var e;return o.log("Offline Persistence Toolkit PersistenceSyncManager: getSyncLog()"),this._readingSyncLog||(this._readingSyncLog=(e=this,a().then(function(e){return e.find((n={},t=[],(r=[]).push("key"),n.sort=r,t.push("key"),t.push("value"),n.fields=t,n));var n,t,r}).then(function(e){return function(e){var t,r,o=[],s=function(e){return e&&0!=e.length?(t=e[0].key,r=e[0].value,n.requestFromJSON(r).then(function(n){return o.push(function(e,n){return{requestId:e,request:n,undo:function(){return function(e){return h().then(function(n){return n.findByKey(e)}).then(function(e){return null!=e&&u(e,!0).then(function(){return!0})})}(e)},redo:function(){return function(e){return h().then(function(n){return n.findByKey(e)}).then(function(e){return null!=e&&u(e,!1).then(function(){return!0})})}(e)}}}(t,n)),e.shift(),s(e)})):Promise.resolve(o)};return s(e)}(e)}).then(function(n){return e._readingSyncLog=null,n}))),this._readingSyncLog},s.prototype.insertRequest=function(e,t){o.log("Offline Persistence Toolkit PersistenceSyncManager: insertRequest() for Request with url: "+e.url);var s={};return a().then(function(t){return s.store=t,n.requestToJSON(e,{_noClone:!0})}).then(function(n){return s.requestData=n,s.metadata=r.constructMetadata(e),s.requestId=s.metadata.created.toString(),s.store.upsert(s.requestId,s.metadata,s.requestData)}).then(function(){if(null!=t){var e=t.undoRedoDataArray;return null!=e?h().then(function(n){var t=function(r){return r<e.length&&null!=e[r]?n.upsert(s.requestId,s.metadata,e[r]).then(function(){return t(++r)}):Promise.resolve()};return t(0)}):Promise.resolve()}return Promise.resolve()})},s.prototype.removeRequest=function(e){o.log("Offline Persistence Toolkit PersistenceSyncManager: removeRequest() for Request with requestId: "+e);var t=this,r={};return a().then(function(t){return r.store=t,function(e,t){return t.findByKey(e).then(function(e){if(e)return n.requestFromJSON(e)})}(e,t)}).then(function(n){return n?t._internalRemoveRequest(e,n,r.store):void 0})},s.prototype._internalRemoveRequest=function(e,n,t){var r=[];return t?r.push(t.removeByKey(e)):r.push(a().then(function(n){return n.removeByKey(e)})),"GET"!==n.method&&"HEAD"!==n.method&&r.push(h().then(function(n){return n.removeByKey(e)})),Promise.all(r).then(function(){return n}).catch(function(n){o.log("Offline Persistence Toolkit PersistenceSyncManager: removeRequest() error for Request with requestId: "+e)})},s.prototype.updateRequest=function(e,t){return o.log("Offline Persistence Toolkit PersistenceSyncManager: updateRequest() for Request with requestId: "+e),Promise.all([a(),n.requestToJSON(t)]).then(function(n){var o=n[0],s=n[1],i=r.constructMetadata(t);return o.upsert(e,i,s)})},s.prototype.sync=function(e){o.log("Offline Persistence Toolkit PersistenceSyncManager: sync()"),this._options=e||{};var t=this._options.dedupGET,r=this;if(this._syncing)return Promise.reject("Cannot start sync while sync is in progress");this._syncing=!0;var s={};return new Promise(function(e,u){r.getSyncLog().then(function(l){var f,a,h;o.log("Offline Persistence Toolkit PersistenceSyncManager: Processing sync");var p=function(l){if(0==l.length&&(o.log("Offline Persistence Toolkit PersistenceSyncManager: Sync finished, no requests in sync log"),e()),l.length>0){o.log("Offline Persistence Toolkit PersistenceSyncManager: Processing sync, # of requests in sync log: "+l.length),f=l[0].requestId,a=l[0].request;var d=s[a.url];t&&"GET"===a.method&&d!==f?(o.log("Offline Persistence Toolkit PersistenceSyncManager: Removing duplicate GET request"),r._internalRemoveRequest(f,a).then(function(){l.shift(),p(l)},function(e){u({error:e,requestId:f,request:h.clone()})})):(h=a.clone(),o.log("Offline Persistence Toolkit PersistenceSyncManager: Dispatching beforeSyncRequest event"),c(r,"beforeSyncRequest",{requestId:f,request:h.clone()},a.url).then(function(t){if(i(t))return o.log("Offline Persistence Toolkit PersistenceSyncManager: Sync stopped by beforeSyncRequest event listener"),void e();"skip"!==(t=t||{}).action?("replay"===t.action&&(o.log("Offline Persistence Toolkit PersistenceSyncManager: Replay request from beforeSyncRequest event listener"),a=t.request),h=a.clone(),function(e,n){var t,r=e,s=r._options.preflightOptionsRequest,i=r._options.preflightOptionsRequestTimeout;if(null!=n.url&&"disabled"!=s&&null!=n.url.match(s)){if(o.log("Offline Persistence Toolkit PersistenceSyncManager: Checking URL based on preflightOptionsRequest"),r._pingedURLs){if(r._pingedURLs.indexOf(n.url)>=0)return Promise.resolve(!0)}else r._pingedURLs=[];return r._preflightOptionsRequestId=(new Date).getTime(),new Promise((t=r._preflightOptionsRequestId,function(e,o){r._repliedOptionsRequest=!1;var s=new Request(n.url,{method:"OPTIONS"}),u=6e4;null!=i&&(u=i),setTimeout(function(){r._repliedOptionsRequest||r._preflightOptionsRequestId!=t||o(!1)},u),r._browserFetch(s).then(function(t){r._repliedOptionsRequest=!0,r._pingedURLs||(r._pingedURLs=[]),r._pingedURLs.push(n.url),e(!0)},function(n){r._repliedOptionsRequest=!0,e(!0)})}))}return Promise.resolve(!0)}(r,a).then(function(){n.markReplayRequest(a,!0),o.log("Offline Persistence Toolkit PersistenceSyncManager: Replaying request with url: "+a.url),("undefined"!=typeof window&&null!=window?fetch:r._browserFetch)(a).then(function(t){t.status>=400?u({error:t.statusText,requestId:f,request:h.clone(),response:t.clone()}):n._cloneResponse(t,{url:a.url}).then(function(n){o.log("Offline Persistence Toolkit PersistenceSyncManager: Dispatching syncRequest event"),c(r,"syncRequest",{requestId:f,request:h.clone(),response:n.clone()},a.url).then(function(n){i(n)?e():(o.log("Offline Persistence Toolkit PersistenceSyncManager: Removing replayed request"),r._internalRemoveRequest(f,a).then(function(){l.shift(),p(l)},function(e){u({error:e,requestId:f,request:h.clone()})}))})})},function(e){u({error:e,requestId:f,request:h.clone()})})},function(e){u(!1===e?{error:"Preflight OPTIONS request timed out",requestId:f,request:h.clone(),response:new Response(null,{status:504,statusText:"Preflight OPTIONS request timed out"})}:{error:e,requestId:f,request:h.clone()})})):(o.log("Offline Persistence Toolkit PersistenceSyncManager: Removing skipped request"),r._internalRemoveRequest(f,a).then(function(){l.shift(),p(l)},function(e){u({error:e,requestId:f,request:h.clone()})}))}))}};l=function(e){if(e&&e.length>0){var n,t,r=[];for(n=0;n<e.length;n++)"GET"!=(t=e[n].request).method&&"HEAD"!=t.method&&r.push(e[n]);for(n=0;n<e.length;n++)"GET"!=(t=e[n].request).method&&"HEAD"!=t.method||r.push(e[n]);return r}return e}(l),t&&l.forEach(function(e){"GET"===e.request.method&&(s[e.request.url]=e.requestId)}),p(l)})}).finally(function(e){r._syncing=!1,r._pingedURLs=null})},s});
@@ -1,6 +1,7 @@
1
1
  /**
2
+ * Offline Persistence Toolkit v1.5.9
2
3
  * Copyright (c) 2017, Oracle and/or its affiliates.
3
4
  * All rights reserved.
4
5
  */
5
6
 
6
- define(["../persistenceUtils","./logger"],(function(e,t){"use strict";function r(e){var t=this;Object.defineProperty(this,"_eventListeners",{value:[],writable:!0}),Object.defineProperty(this,"_browserXMLHttpRequest",{value:e}),Object.defineProperty(this,"_method",{value:null,writable:!0}),Object.defineProperty(this,"onabort",{value:null,enumerable:!0,writable:!0}),Object.defineProperty(this,"onerror",{value:null,enumerable:!0,writable:!0}),Object.defineProperty(this,"onload",{value:null,enumerable:!0,writable:!0}),Object.defineProperty(this,"onloadend",{value:null,enumerable:!0,writable:!0}),Object.defineProperty(this,"onloadstart",{value:null,enumerable:!0,writable:!0}),Object.defineProperty(this,"onprogress",{value:null,enumerable:!0,writable:!0}),Object.defineProperty(this,"onreadystatechange",{value:null,enumerable:!0,writable:!0}),Object.defineProperty(this,"ontimeout",{value:null,enumerable:!0,writable:!0}),Object.defineProperty(this,"_password",{value:null,writable:!0}),Object.defineProperty(this,"_readyState",{value:0,writable:!0}),Object.defineProperty(this,"readyState",{enumerable:!0,get:function(){return t._readyState}}),Object.defineProperty(this,"_requestHeaders",{value:{},writable:!0}),Object.defineProperty(this,"_response",{value:"",writable:!0}),Object.defineProperty(this,"response",{enumerable:!0,get:function(){return t._response}}),Object.defineProperty(this,"_responseHeaders",{value:{},writable:!0}),Object.defineProperty(this,"_responseText",{value:"",writable:!0}),Object.defineProperty(this,"responseText",{enumerable:!0,get:function(){return t._responseText}}),Object.defineProperty(this,"responseType",{value:"",enumerable:!0,writable:!0}),Object.defineProperty(this,"_responseURL",{value:"",writable:!0}),Object.defineProperty(this,"responseURL",{enumerable:!0,get:function(){return t._responseURL}}),Object.defineProperty(this,"_responseXML",{value:null,writable:!0}),Object.defineProperty(this,"responseXML",{enumerable:!0,get:function(){return t._responseXML}}),Object.defineProperty(this,"_status",{value:0,writable:!0}),Object.defineProperty(this,"status",{enumerable:!0,get:function(){return t._status}}),Object.defineProperty(this,"_statusText",{value:"",writable:!0}),Object.defineProperty(this,"statusText",{enumerable:!0,get:function(){return t._statusText}}),Object.defineProperty(this,"timeout",{value:0,enumerable:!0,writable:!0}),Object.defineProperty(this,"_isTimedOut",{value:!1,enumerable:!0,writable:!0}),Object.defineProperty(this,"upload",{value:new i,enumerable:!0}),Object.defineProperty(this,"_url",{value:null,writable:!0}),Object.defineProperty(this,"_username",{value:null,writable:!0}),Object.defineProperty(this,"withCredentials",{value:!1,enumerable:!0,writable:!0}),Object.defineProperty(this,"_abortController",{value:null,writable:!0}),Object.defineProperty(this,"_isUpload",{value:!1,writable:!0}),Object.defineProperty(this,"UNSENT",{value:0,enumerable:!0}),Object.defineProperty(this,"OPENED",{value:1,enumerable:!0}),Object.defineProperty(this,"HEADERS_RECEIVED",{value:2,enumerable:!0}),Object.defineProperty(this,"LOADING",{value:3,enumerable:!0}),Object.defineProperty(this,"DONE",{value:4,enumerable:!0})}function s(e,t){e._readyState=t,e.dispatchEvent(new l("readystatechange")),1==e._isTimedOut&&e._readyState==r.DONE?(e.dispatchEvent(new l("timeout",!1,!1,e)),e.dispatchEvent(new l("loadend",!1,!1,e)),e._isTimedOut=!1):e._readyState==r.DONE&&(e.dispatchEvent(new l("load",!1,!1,e)),e.dispatchEvent(new l("loadend",!1,!1,e)))}function n(n,o,i){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: Processing Response"),function(e,t){if(e._responseHeaders={},t.entries){var n,o,i,a=t.entries();do{(n=a.next()).value&&(o=n.value[0],i=n.value[1],e._forceMimeType&&"content-type"==o.toLowerCase()?e._responseHeaders[o]=e._forceMimeType:e._responseHeaders[o]=i)}while(!n.done)}else t.forEach&&t.forEach((function(t,r){e._forceMimeType&&"content-type"==r.toLowerCase()?e._responseHeaders[r]=e._forceMimeType:e._responseHeaders[r]=t}));s(e,r.HEADERS_RECEIVED)}(n,i.headers);var a=i.headers.get("Content-Type");n._status=i.status,n._statusText=i.statusText,n._responseURL=o.url;var l=e._derivePayloadType(n,i);if("blob"===l)t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: Calling response.blob()"),i.blob().then((function(e){n._responseType="blob",n._response=e,s(n,r.DONE),"function"==typeof n.onload&&n.onload()}),(function(e){t.error(e)}));else if("arraybuffer"===l)t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: Calling response.arrayBuffer()"),i.arrayBuffer().then((function(e){n._responseType="arrayBuffer",n._response=e,s(n,r.DONE),"function"==typeof n.onload&&n.onload()}),(function(e){t.error("error reading response as arrayBuffer!")}));else if("multipart"===l){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: Calling response.formData()"),n._responseType="formData";var u=function(t){var o="";e.parseMultipartFormData(t,a).forEach((function(e){o+=e.data})),n._response=o,n._responseText=o,s(n,r.DONE),"function"==typeof n.onload&&n.onload()};if(i.formData)try{i.formData().then((function(e){var t,o,i="",a=e.values();do{(t=(o=a.next()).value)&&(i+=t)}while(!o.done);n._response=i,n._responseText=i,s(n,r.DONE),"function"==typeof n.onload&&n.onload()}))}catch(e){i.text().then((function(e){u(e)}))}else i.text().then((function(e){u(e)}))}else i.text().then((function(e){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: Calling response.text()"),n._responseType="",n._response=e,n._responseText=e,s(n,r.DONE),"function"==typeof n.onload&&n.onload()}),(function(e){t.error(e)}))}function o(e){if(e._readyState!==r.OPENED)throw new Error("INVALID_STATE_ERR")}function i(){this.onabort=null,this.onerror=null,this.onload=null,this.onloadend=null,this.onloadstart=null,this.onprogress=null,this.ontimeout=null,this._eventListeners=[]}function a(e,t,r,s){Object.defineProperty(this,"type",{value:e,enumerable:!0}),Object.defineProperty(this,"bubbles",{value:t,enumerable:!0}),Object.defineProperty(this,"cancelable",{value:r,enumerable:!0}),Object.defineProperty(this,"target",{value:s,enumerable:!0}),Object.defineProperty(this,"lengthComputable",{value:!1,enumerable:!0}),Object.defineProperty(this,"loaded",{value:0,enumerable:!0}),Object.defineProperty(this,"total",{value:0,enumerable:!0})}function l(e,t,r,s){Object.defineProperty(this,"type",{value:e,enumerable:!0}),Object.defineProperty(this,"bubbles",{value:t,enumerable:!0}),Object.defineProperty(this,"cancelable",{value:r,enumerable:!0}),Object.defineProperty(this,"target",{value:s,enumerable:!0})}return Object.defineProperty(r,"UNSENT",{value:0,enumerable:!0}),Object.defineProperty(r,"OPENED",{value:1,enumerable:!0}),Object.defineProperty(r,"HEADERS_RECEIVED",{value:2,enumerable:!0}),Object.defineProperty(r,"LOADING",{value:3,enumerable:!0}),Object.defineProperty(r,"DONE",{value:4,enumerable:!0}),r.prototype.open=function(e,n,o,i,a){if(t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: open() for method: "+e+", url: "+n),"boolean"==typeof o&&!o)throw new Error("InvalidAccessError: Failed to execute 'open' on 'XMLHttpRequest': Synchronous requests are disabled on the XHR Adapter");this._method=e,this._url=n,this._isTimedOut=!1;var l=function(e){var t=e.toLowerCase();if(0===t.indexOf("http:")||0===t.indexOf("https:"))return!1;if(0===t.indexOf("file:")||0===t.indexOf("cdvfile:"))return!0;if(URL&&URL.prototype&&null!=(t=new URL(e,window.location.href).origin)&&"null"!=t&&t.length>0)return 0===t.toLowerCase().indexOf("file:");var r=document.createElement("a");return r.href=e,!(!(t=r.protocol)||0!==t.toLowerCase().indexOf("file:"))}(n);if(l){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: open called for a File url");var u=this;this._passthroughXHR=new u._browserXMLHttpRequest,this._passthroughXHR.onreadystatechange=function(){u._passthroughXHR.readyState==r.DONE&&(u._status=u._passthroughXHR.status,u._statusText=u._passthroughXHR.statusText,u._response=u._passthroughXHR.response,u._responseHeaders=u._passthroughXHR.responseHeaders,u._responseType=u._passthroughXHR.responseType,null!=u._responseType&&""!=u._responseType&&"text"!=u._responseType||(u._responseText=u._passthroughXHR.responseText),u._responseURL=u._passthroughXHR.responseURL,null!=u._responseType&&""!=u._responseType&&"document"!=u._responseType||(u._responseXML=u._passthroughXHR.responseXML)),s(u,u._passthroughXHR.readyState)},this._passthroughXHR.open(e,n,o,i,a)}else this._passthroughXHR=null;"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._username=i,this._password=a,this._responseText=null,this._responseXML=null,this._requestHeaders={},s(this,r.OPENED)},r.prototype.setRequestHeader=function(e,r){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: setRequestHeader() with header: "+e+" ,value: "+r),o(this);var s=this._requestHeaders[e];this._requestHeaders[e]=s?s+=","+r:r},r.prototype.send=function(e){var i=this;if(t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: send()"),this._passthroughXHR)null!=this.responseType&&(this._passthroughXHR.responseType=this.responseType),this._passthroughXHR.send(e);else{o(this),s(this,r.OPENED);var a=function(e,t){var r=function(e){var t=new Headers;return Object.keys(e._requestHeaders).forEach((function(r){t.append(r,e._requestHeaders[r])})),t}(e),s=e.withCredentials?"include":"same-origin",n={method:e._method,headers:r,mode:"cors",cache:"default",credentials:s};return"GET"!==e._method&&"HEAD"!==e._method&&"DELETE"!==e._method&&(n.body=t),n}(this,e),u=new Request(this._url,a);this._isUpload=!!a.body;var p={};(i=this)._abortController&&(p.signal=i._abortController.signal);try{i.timeout&&"number"==typeof i.timeout?function(e,r,s){return new Promise((function(n,o){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: Calling fetchWithTimeout");var i=new Error("Fetch Timeout");i.name="TimeoutError";var a=setTimeout((function(){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: Request Timedout: "+e.url),o(i),s._abortController&&s._abortController.abort()}),s.timeout);fetch(e,r).then((function(e){n(e)}),(function(e){o(e)})).finally((function(){clearTimeout(a)}))}))}(u,p,i).then((function(e){n(i,u,e)})).catch((function(e){e&&e.name&&"TimeoutError"===e.name?(i._isTimedOut=!0,s(i,r.DONE)):i.dispatchEvent(new l("error",!1,!1,i))})):fetch(u,p).then((function(e){n(i,u,e)}),(function(e){e&&e.name&&"AbortError"===e.name?(t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: Request Timedout: "+u.url),i.dispatchEvent(new l("abort",!1,!1,i))):i.dispatchEvent(new l("error",!1,!1,i))}))}catch(e){throw e}this.dispatchEvent(new l("loadstart",!1,!1,this))}},r.prototype.abort=function(){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: abort()"),this._abortController?this._abortController.abort():this.dispatchEvent(new l("abort",!1,!1,self)),this._readyState=r.UNSENT,this._status=0,this._statusText=""},r.prototype.getResponseHeader=function(e){if(t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: getResponseHeader() for header: "+e),this._readyState<r.HEADERS_RECEIVED)return null;for(var s in e=e.toLowerCase(),this._responseHeaders)if(s.toLowerCase()==e.toLowerCase())return this._responseHeaders[s];return null},r.prototype.getAllResponseHeaders=function(){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: getAllResponseHeaders()");var e=this;if(this._readyState<r.HEADERS_RECEIVED)return"";var s="";return this._responseHeaders&&Object.keys(this._responseHeaders).forEach((function(t){s+=t+": "+e._responseHeaders[t]+"\r\n"})),s},r.prototype.overrideMimeType=function(e){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: overrideMimeType() for mimeType: "+e),"string"==typeof e&&(this._forceMimeType=e.toLowerCase())},r.prototype.addEventListener=function(e,r){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: addEventListener() for event type: "+e),this._eventListeners[e]=this._eventListeners[e]||[],this._eventListeners[e].push(r)},r.prototype.removeEventListener=function(e,r){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: removeEventListener() for event type: "+e);var s,n=this._eventListeners[e]||[],o=n.length;for(s=0;s<o;s++)if(n[s]==r)return n.splice(s,1)},r.prototype.dispatchEvent=function(e){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: dispatchEvent() for event type: "+e.type);var r=this,s=e.type;switch((this._eventListeners[s]||[]).forEach((function(t){"function"==typeof t?t.call(r,e):t.handleEvent(e)})),s){case"abort":this._isUpload&&this.upload._dispatchEvent(new a("abort",!1,!1,r.upload)),this.onabort&&this.onabort(e),r.dispatchEvent(new l("loadend",!1,!1,r));break;case"error":this._isUpload&&this.upload._dispatchEvent(new a("error",!1,!1,r.upload)),this.onerror&&this.onerror(e);break;case"load":this._isUpload&&this.upload._dispatchEvent(new a("load",!1,!1,r.upload)),this.onload&&this.onload(e);break;case"loadend":this._isUpload&&this.upload._dispatchEvent(new a("loadend",!1,!1,r.upload)),this.onloadend&&this.onloadend(e);break;case"loadstart":this._isUpload&&this.upload._dispatchEvent(new a("loadstart",!1,!1,r.upload)),this.onloadstart&&this.onloadstart(e);break;case"progress":this.onprogress&&this.onprogress(e);break;case"readystatechange":this.onreadystatechange&&this.onreadystatechange(e);break;case"timeout":this._isUpload&&this.upload._dispatchEvent(new a("timeout",!1,!1,r.upload)),this.ontimeout&&this.ontimeout(e)}return!!e.defaultPrevented},i.prototype.addEventListener=function(e,r){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequestUpload: addEventListener() for event type: "+e),this._eventListeners[e]=this._eventListeners[e]||[],this._eventListeners[e].push(r)},i.prototype.removeEventListener=function(e,r){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequestUpload: removeEventListener() for event type: "+e);var s,n=this._eventListeners[e]||[],o=n.length;for(s=0;s<o;s++)if(n[s]==r)return n.splice(s,1)},i.prototype._dispatchEvent=function(e){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequestUpload: dispatchEvent() for event type: "+e.type);var r=this,s=e.type;switch((this._eventListeners[s]||[]).forEach((function(t){"function"==typeof t?t.call(r,e):t.handleEvent(e)})),s){case"abort":this.onabort&&this.onabort(e);break;case"error":this.onerror&&this.onerror(e);break;case"load":this.onload&&this.onload(e);break;case"loadend":this.onloadend&&this.onloadend(e);break;case"loadstart":this.onloadstart&&this.onloadstart(e),this._dispatchEvent(new a("progress",!1,!1,r));break;case"progress":this.onprogress&&this.onprogress(e);break;case"timeout":this.ontimeout&&this.ontimeout(e)}return!!e.defaultPrevented},a.prototype.stopPropagation=function(){},a.prototype.preventDefault=function(){this.defaultPrevented=!0},l.prototype.stopPropagation=function(){},l.prototype.preventDefault=function(){this.defaultPrevented=!0},r}));
7
+ define(["../persistenceUtils","./logger"],function(e,t){"use strict";function r(e){var t=this;Object.defineProperty(this,"_eventListeners",{value:[],writable:!0}),Object.defineProperty(this,"_browserXMLHttpRequest",{value:e}),Object.defineProperty(this,"_method",{value:null,writable:!0}),Object.defineProperty(this,"onabort",{value:null,enumerable:!0,writable:!0}),Object.defineProperty(this,"onerror",{value:null,enumerable:!0,writable:!0}),Object.defineProperty(this,"onload",{value:null,enumerable:!0,writable:!0}),Object.defineProperty(this,"onloadend",{value:null,enumerable:!0,writable:!0}),Object.defineProperty(this,"onloadstart",{value:null,enumerable:!0,writable:!0}),Object.defineProperty(this,"onprogress",{value:null,enumerable:!0,writable:!0}),Object.defineProperty(this,"onreadystatechange",{value:null,enumerable:!0,writable:!0}),Object.defineProperty(this,"ontimeout",{value:null,enumerable:!0,writable:!0}),Object.defineProperty(this,"_password",{value:null,writable:!0}),Object.defineProperty(this,"_readyState",{value:0,writable:!0}),Object.defineProperty(this,"readyState",{enumerable:!0,get:function(){return t._readyState}}),Object.defineProperty(this,"_requestHeaders",{value:{},writable:!0}),Object.defineProperty(this,"_response",{value:"",writable:!0}),Object.defineProperty(this,"response",{enumerable:!0,get:function(){return t._response}}),Object.defineProperty(this,"_responseHeaders",{value:{},writable:!0}),Object.defineProperty(this,"_responseText",{value:"",writable:!0}),Object.defineProperty(this,"responseText",{enumerable:!0,get:function(){return t._responseText}}),Object.defineProperty(this,"responseType",{value:"",enumerable:!0,writable:!0}),Object.defineProperty(this,"_responseURL",{value:"",writable:!0}),Object.defineProperty(this,"responseURL",{enumerable:!0,get:function(){return t._responseURL}}),Object.defineProperty(this,"_responseXML",{value:null,writable:!0}),Object.defineProperty(this,"responseXML",{enumerable:!0,get:function(){return t._responseXML}}),Object.defineProperty(this,"_status",{value:0,writable:!0}),Object.defineProperty(this,"status",{enumerable:!0,get:function(){return t._status}}),Object.defineProperty(this,"_statusText",{value:"",writable:!0}),Object.defineProperty(this,"statusText",{enumerable:!0,get:function(){return t._statusText}}),Object.defineProperty(this,"timeout",{value:0,enumerable:!0,writable:!0}),Object.defineProperty(this,"_isTimedOut",{value:!1,enumerable:!0,writable:!0}),Object.defineProperty(this,"upload",{value:new i,enumerable:!0}),Object.defineProperty(this,"_url",{value:null,writable:!0}),Object.defineProperty(this,"_username",{value:null,writable:!0}),Object.defineProperty(this,"withCredentials",{value:!1,enumerable:!0,writable:!0}),Object.defineProperty(this,"_abortController",{value:null,writable:!0}),Object.defineProperty(this,"_isUpload",{value:!1,writable:!0}),Object.defineProperty(this,"UNSENT",{value:0,enumerable:!0}),Object.defineProperty(this,"OPENED",{value:1,enumerable:!0}),Object.defineProperty(this,"HEADERS_RECEIVED",{value:2,enumerable:!0}),Object.defineProperty(this,"LOADING",{value:3,enumerable:!0}),Object.defineProperty(this,"DONE",{value:4,enumerable:!0})}function s(e,t){e._readyState=t,e.dispatchEvent(new l("readystatechange")),1==e._isTimedOut&&e._readyState==r.DONE?(e.dispatchEvent(new l("timeout",!1,!1,e)),e.dispatchEvent(new l("loadend",!1,!1,e)),e._isTimedOut=!1):e._readyState==r.DONE&&(e.dispatchEvent(new l("load",!1,!1,e)),e.dispatchEvent(new l("loadend",!1,!1,e)))}function n(n,o,i){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: Processing Response"),function(e,t){if(e._responseHeaders={},t.entries){var n,o,i,a=t.entries();do{(n=a.next()).value&&(o=n.value[0],i=n.value[1],e._forceMimeType&&"content-type"==o.toLowerCase()?e._responseHeaders[o]=e._forceMimeType:e._responseHeaders[o]=i)}while(!n.done)}else t.forEach&&t.forEach(function(t,r){e._forceMimeType&&"content-type"==r.toLowerCase()?e._responseHeaders[r]=e._forceMimeType:e._responseHeaders[r]=t});s(e,r.HEADERS_RECEIVED)}(n,i.headers);var a=i.headers.get("Content-Type");n._status=i.status,n._statusText=i.statusText,n._responseURL=o.url;var l=e._derivePayloadType(n,i);if("blob"===l)t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: Calling response.blob()"),i.blob().then(function(e){n._responseType="blob",n._response=e,s(n,r.DONE),"function"==typeof n.onload&&n.onload()},function(e){t.error(e)});else if("arraybuffer"===l)t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: Calling response.arrayBuffer()"),i.arrayBuffer().then(function(e){n._responseType="arrayBuffer",n._response=e,s(n,r.DONE),"function"==typeof n.onload&&n.onload()},function(e){t.error("error reading response as arrayBuffer!")});else if("multipart"===l){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: Calling response.formData()"),n._responseType="formData";var u=function(t){var o="";e.parseMultipartFormData(t,a).forEach(function(e){o+=e.data}),n._response=o,n._responseText=o,s(n,r.DONE),"function"==typeof n.onload&&n.onload()};if(i.formData)try{i.formData().then(function(e){var t,o,i="",a=e.values();do{(t=(o=a.next()).value)&&(i+=t)}while(!o.done);n._response=i,n._responseText=i,s(n,r.DONE),"function"==typeof n.onload&&n.onload()})}catch(e){i.text().then(function(e){u(e)})}else i.text().then(function(e){u(e)})}else i.text().then(function(e){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: Calling response.text()"),n._responseType="",n._response=e,n._responseText=e,s(n,r.DONE),"function"==typeof n.onload&&n.onload()},function(e){t.error(e)})}function o(e){if(e._readyState!==r.OPENED)throw new Error("INVALID_STATE_ERR")}function i(){this.onabort=null,this.onerror=null,this.onload=null,this.onloadend=null,this.onloadstart=null,this.onprogress=null,this.ontimeout=null,this._eventListeners=[]}function a(e,t,r,s){Object.defineProperty(this,"type",{value:e,enumerable:!0}),Object.defineProperty(this,"bubbles",{value:t,enumerable:!0}),Object.defineProperty(this,"cancelable",{value:r,enumerable:!0}),Object.defineProperty(this,"target",{value:s,enumerable:!0}),Object.defineProperty(this,"lengthComputable",{value:!1,enumerable:!0}),Object.defineProperty(this,"loaded",{value:0,enumerable:!0}),Object.defineProperty(this,"total",{value:0,enumerable:!0})}function l(e,t,r,s){Object.defineProperty(this,"type",{value:e,enumerable:!0}),Object.defineProperty(this,"bubbles",{value:t,enumerable:!0}),Object.defineProperty(this,"cancelable",{value:r,enumerable:!0}),Object.defineProperty(this,"target",{value:s,enumerable:!0})}return Object.defineProperty(r,"UNSENT",{value:0,enumerable:!0}),Object.defineProperty(r,"OPENED",{value:1,enumerable:!0}),Object.defineProperty(r,"HEADERS_RECEIVED",{value:2,enumerable:!0}),Object.defineProperty(r,"LOADING",{value:3,enumerable:!0}),Object.defineProperty(r,"DONE",{value:4,enumerable:!0}),r.prototype.open=function(e,n,o,i,a){if(t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: open() for method: "+e+", url: "+n),"boolean"==typeof o&&!o)throw new Error("InvalidAccessError: Failed to execute 'open' on 'XMLHttpRequest': Synchronous requests are disabled on the XHR Adapter");this._method=e,this._url=n,this._isTimedOut=!1;var l=function(e){var t=e.toLowerCase();if(0===t.indexOf("http:")||0===t.indexOf("https:"))return!1;if(0===t.indexOf("file:")||0===t.indexOf("cdvfile:"))return!0;if(URL&&URL.prototype&&null!=(t=new URL(e,window.location.href).origin)&&"null"!=t&&t.length>0)return 0===t.toLowerCase().indexOf("file:");var r=document.createElement("a");return r.href=e,!(!(t=r.protocol)||0!==t.toLowerCase().indexOf("file:"))}(n);if(l){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: open called for a File url");var u=this;this._passthroughXHR=new u._browserXMLHttpRequest,this._passthroughXHR.onreadystatechange=function(){u._passthroughXHR.readyState==r.DONE&&(u._status=u._passthroughXHR.status,u._statusText=u._passthroughXHR.statusText,u._response=u._passthroughXHR.response,u._responseHeaders=u._passthroughXHR.responseHeaders,u._responseType=u._passthroughXHR.responseType,null!=u._responseType&&""!=u._responseType&&"text"!=u._responseType||(u._responseText=u._passthroughXHR.responseText),u._responseURL=u._passthroughXHR.responseURL,null!=u._responseType&&""!=u._responseType&&"document"!=u._responseType||(u._responseXML=u._passthroughXHR.responseXML)),s(u,u._passthroughXHR.readyState)},this._passthroughXHR.open(e,n,o,i,a)}else this._passthroughXHR=null;"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._username=i,this._password=a,this._responseText=null,this._responseXML=null,this._requestHeaders={},s(this,r.OPENED)},r.prototype.setRequestHeader=function(e,r){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: setRequestHeader() with header: "+e+" ,value: "+r),o(this);var s=this._requestHeaders[e];this._requestHeaders[e]=s?s+=","+r:r},r.prototype.send=function(e){var i=this;if(t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: send()"),this._passthroughXHR)null!=this.responseType&&(this._passthroughXHR.responseType=this.responseType),this._passthroughXHR.send(e);else{o(this),s(this,r.OPENED);var a=function(e,t){var r=function(e){var t=new Headers;return Object.keys(e._requestHeaders).forEach(function(r){t.append(r,e._requestHeaders[r])}),t}(e),s=e.withCredentials?"include":"same-origin",n={method:e._method,headers:r,mode:"cors",cache:"default",credentials:s};return"GET"!==e._method&&"HEAD"!==e._method&&"DELETE"!==e._method&&(n.body=t),n}(this,e),u=new Request(this._url,a);this._isUpload=!!a.body;var p={};(i=this)._abortController&&(p.signal=i._abortController.signal);try{i.timeout&&"number"==typeof i.timeout?function(e,r,s){return new Promise(function(n,o){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: Calling fetchWithTimeout");var i=new Error("Fetch Timeout");i.name="TimeoutError";var a=setTimeout(function(){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: Request Timedout: "+e.url),o(i),s._abortController&&s._abortController.abort()},s.timeout);fetch(e,r).then(function(e){n(e)},function(e){o(e)}).finally(function(){clearTimeout(a)})})}(u,p,i).then(function(e){n(i,u,e)}).catch(function(e){e&&e.name&&"TimeoutError"===e.name?(i._isTimedOut=!0,s(i,r.DONE)):i.dispatchEvent(new l("error",!1,!1,i))}):fetch(u,p).then(function(e){n(i,u,e)},function(e){e&&e.name&&"AbortError"===e.name?(t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: Request Timedout: "+u.url),i.dispatchEvent(new l("abort",!1,!1,i))):i.dispatchEvent(new l("error",!1,!1,i))})}catch(e){throw e}this.dispatchEvent(new l("loadstart",!1,!1,this))}},r.prototype.abort=function(){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: abort()"),this._abortController?this._abortController.abort():this.dispatchEvent(new l("abort",!1,!1,self)),this._readyState=r.UNSENT,this._status=0,this._statusText=""},r.prototype.getResponseHeader=function(e){if(t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: getResponseHeader() for header: "+e),this._readyState<r.HEADERS_RECEIVED)return null;for(var s in e=e.toLowerCase(),this._responseHeaders)if(s.toLowerCase()==e.toLowerCase())return this._responseHeaders[s];return null},r.prototype.getAllResponseHeaders=function(){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: getAllResponseHeaders()");var e=this;if(this._readyState<r.HEADERS_RECEIVED)return"";var s="";return this._responseHeaders&&Object.keys(this._responseHeaders).forEach(function(t){s+=t+": "+e._responseHeaders[t]+"\r\n"}),s},r.prototype.overrideMimeType=function(e){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: overrideMimeType() for mimeType: "+e),"string"==typeof e&&(this._forceMimeType=e.toLowerCase())},r.prototype.addEventListener=function(e,r){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: addEventListener() for event type: "+e),this._eventListeners[e]=this._eventListeners[e]||[],this._eventListeners[e].push(r)},r.prototype.removeEventListener=function(e,r){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: removeEventListener() for event type: "+e);var s,n=this._eventListeners[e]||[],o=n.length;for(s=0;s<o;s++)if(n[s]==r)return n.splice(s,1)},r.prototype.dispatchEvent=function(e){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequest: dispatchEvent() for event type: "+e.type);var r=this,s=e.type;switch((this._eventListeners[s]||[]).forEach(function(t){"function"==typeof t?t.call(r,e):t.handleEvent(e)}),s){case"abort":this._isUpload&&this.upload._dispatchEvent(new a("abort",!1,!1,r.upload)),this.onabort&&this.onabort(e),r.dispatchEvent(new l("loadend",!1,!1,r));break;case"error":this._isUpload&&this.upload._dispatchEvent(new a("error",!1,!1,r.upload)),this.onerror&&this.onerror(e);break;case"load":this._isUpload&&this.upload._dispatchEvent(new a("load",!1,!1,r.upload)),this.onload&&this.onload(e);break;case"loadend":this._isUpload&&this.upload._dispatchEvent(new a("loadend",!1,!1,r.upload)),this.onloadend&&this.onloadend(e);break;case"loadstart":this._isUpload&&this.upload._dispatchEvent(new a("loadstart",!1,!1,r.upload)),this.onloadstart&&this.onloadstart(e);break;case"progress":this.onprogress&&this.onprogress(e);break;case"readystatechange":this.onreadystatechange&&this.onreadystatechange(e);break;case"timeout":this._isUpload&&this.upload._dispatchEvent(new a("timeout",!1,!1,r.upload)),this.ontimeout&&this.ontimeout(e)}return!!e.defaultPrevented},i.prototype.addEventListener=function(e,r){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequestUpload: addEventListener() for event type: "+e),this._eventListeners[e]=this._eventListeners[e]||[],this._eventListeners[e].push(r)},i.prototype.removeEventListener=function(e,r){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequestUpload: removeEventListener() for event type: "+e);var s,n=this._eventListeners[e]||[],o=n.length;for(s=0;s<o;s++)if(n[s]==r)return n.splice(s,1)},i.prototype._dispatchEvent=function(e){t.log("Offline Persistence Toolkit PersistenceXMLHttpRequestUpload: dispatchEvent() for event type: "+e.type);var r=this,s=e.type;switch((this._eventListeners[s]||[]).forEach(function(t){"function"==typeof t?t.call(r,e):t.handleEvent(e)}),s){case"abort":this.onabort&&this.onabort(e);break;case"error":this.onerror&&this.onerror(e);break;case"load":this.onload&&this.onload(e);break;case"loadend":this.onloadend&&this.onloadend(e);break;case"loadstart":this.onloadstart&&this.onloadstart(e),this._dispatchEvent(new a("progress",!1,!1,r));break;case"progress":this.onprogress&&this.onprogress(e);break;case"timeout":this.ontimeout&&this.ontimeout(e)}return!!e.defaultPrevented},a.prototype.stopPropagation=function(){},a.prototype.preventDefault=function(){this.defaultPrevented=!0},l.prototype.stopPropagation=function(){},l.prototype.preventDefault=function(){this.defaultPrevented=!0},r});
@@ -1,6 +1,7 @@
1
1
  /**
2
+ * Offline Persistence Toolkit v1.5.9
2
3
  * Copyright (c) 2017, Oracle and/or its affiliates.
3
4
  * All rights reserved.
4
5
  */
5
6
 
6
- define(["./keyValuePersistenceStore","./logger"],(function(e,r){"use strict";var t=function(r){e.call(this,r)};return(t.prototype=new e).Init=function(e){return this._version=e&&e.version||"0",this._arrayStore={},Promise.resolve()},t.prototype._insert=function(e,r,t){var o={metadata:r,value:t};return this._arrayStore[e]=o,Promise.resolve()},t.prototype.removeByKey=function(e){r.log("Offline Persistence Toolkit arrayPersistenceStore: removeByKey() with key: "+e);var t=this;return this.findByKey(e).then((function(r){return r?(delete t._arrayStore[e],Promise.resolve(!0)):Promise.resolve(!1)}))},t.prototype.keys=function(){r.log("Offline Persistence Toolkit arrayPersistenceStore: keys()");var e=Object.keys(this._arrayStore);return Promise.resolve(e)},t.prototype.getItem=function(e){r.log("Offline Persistence Toolkit arrayPersistenceStore: getItem() with key: "+e);var t=this._arrayStore[e];return t?Promise.resolve(t):Promise.resolve()},t}));
7
+ define(["./keyValuePersistenceStore","./logger"],function(e,r){"use strict";var t=function(r){e.call(this,r)};return(t.prototype=new e).Init=function(e){return this._version=e&&e.version||"0",this._arrayStore={},Promise.resolve()},t.prototype._insert=function(e,r,t){var o={metadata:r,value:t};return this._arrayStore[e]=o,Promise.resolve()},t.prototype.removeByKey=function(e){r.log("Offline Persistence Toolkit arrayPersistenceStore: removeByKey() with key: "+e);var t=this;return this.findByKey(e).then(function(r){return r?(delete t._arrayStore[e],Promise.resolve(!0)):Promise.resolve(!1)})},t.prototype.keys=function(){r.log("Offline Persistence Toolkit arrayPersistenceStore: keys()");var e=Object.keys(this._arrayStore);return Promise.resolve(e)},t.prototype.getItem=function(e){r.log("Offline Persistence Toolkit arrayPersistenceStore: getItem() with key: "+e);var t=this._arrayStore[e];return t?Promise.resolve(t):Promise.resolve()},t});
@@ -1,6 +1,7 @@
1
1
  /**
2
+ * Offline Persistence Toolkit v1.5.9
2
3
  * Copyright (c) 2017, Oracle and/or its affiliates.
3
4
  * All rights reserved.
4
5
  */
5
6
 
6
- define(["../persistenceUtils","../persistenceStoreManager","./logger"],(function(e,r,t){"use strict";function n(){Object.defineProperty(this,"_endpointToOptionsMap",{value:{},writable:!0})}function o(e){for(var r=e.name,t=e.resourceIdentifier,n=e.keys,o=[],i=(new Date).toUTCString(),a=0;a<n.length;a++){var s={key:n[a],metadata:{lastUpdated:i,resourceIdentifier:t},value:e.data[a]};o.push(s)}var u={};return u[r]=o,u}n.prototype.constructRequestResponseCacheData=function(r,n){var o=this,i={};return t.log("Offline Persistence Toolkit DefaultCacheHandler: constructRequestResponseCacheData()"),e.requestToJSON(r).then((function(t){i.requestData=t;var a=o.hasShredder(r);return e.responseToJSON(n,{excludeBody:a})})).then((function(e){return i.responseData=e,{key:o._constructCacheKey(r,n),metadata:o.constructMetadata(r),value:i}}))},n.prototype.constructShreddedData=function(e,r){t.log("Offline Persistence Toolkit DefaultCacheHandler: constructShreddedData()");var n=this._getShredder(e);return n?n(r).then((function(e){return e&&Array.isArray(e)?e.map(o):null})):Promise.resolve()},n.prototype.shredResponse=function(e,r){t.log("Offline Persistence Toolkit DefaultCacheHandler: shredResponse()");var n=this._getShredder(e);return n?n(r):Promise.resolve()},n.prototype.cacheShreddedData=function(e,n){t.log("Offline Persistence Toolkit DefaultCacheHandler: cacheShreddedData()");var i=e.map(o),a=this;return function(e){var n=e.map((function(e){var n=Object.keys(e)[0],o=e[n];return o&&o.length?function(e,n){return t.log("Offline Persistence Toolkit DefaultCacheHandler: Updating store with shredded data"),r.openStore(e).then((function(e){return e.upsertAll(n)}))}(n,o):Promise.resolve()}));return Promise.all(n)}(i).then((function(){if(a._isCompleteCollection(n,e))return function(e){var t=e.map((function(e){var t=e.name,n={selector:{key:{$nin:e.keys}}};return r.openStore(t).then((function(e){return e.delete(n)}))}));return Promise.all(t)}(e)}))},n.prototype._isCompleteCollection=function(e,r){if(!e||"GET"!==e.method&&"HEAD"!==e.method)return!1;if(!function(e){if(!e)return!1;for(var r=0;r<e.length;r++)if("collection"!==e[r].resourceType)return!1;return!0}(r))return!1;if(e.url===e.baseUrl)return!0;var t=this._getQueryHandler(e.url);if(!t||"function"!=typeof t.normalizeQueryParameter)return!1;var n=t.normalizeQueryParameter(e.url);if(n.searchCriteria||0!==n.offset)return!1;var o=n.limit;return o<0||r[0].keys.length<o},n.prototype._constructCacheKey=function(e,r){var t=e.url+"$"+e.method+"$";if(r){var n=r.headers;if(n&&(s=n.get("vary")))if("*"===s)t=1e3*(new Date).getTime()+Math.floor(1e3*Math.random());else for(var o=e.headers,i=s.split(","),a=0;a<i.length;a++){var s,u=i[a];t+=(u=u.trim())+"="+(s=o&&o.get(u)?o.get(u):"undefined")+";"}}return t},n.prototype.getMatchedCacheKeys=function(e,r,t){var n,o;return n=r&&r.ignoreSearch?i(e.url):e.url,r&&r.ignoreMethod||(o=e.method),t.filter((function(t){var s=t.split("$");if(1===s.length){if(t.slice(0,n.length)!==n)return!1;if(r&&r.ignoreSearch&&"/"===t[n.length])return!1;if(o&&-1===(r&&r.ignoreSearch?t.slice(n.length):t.slice(n.length,n.length+e.method.length)).indexOf(o))return!1;if(!r||!r.ignoreVary){var u=t;if(!(u=o?(u=u.split(o))[u.length-1]:a(u)))return!0;var l=u.split("="),c=e.headers;if(2===l){if((f=c&&c.get(l[0])?c.get(l[0]):"undefined")!==l[1])return!1}else for(var d=0;d<l.length-1;d++){var h=l[d],f=c&&c.get(h)?c.get(h):"undefined",p=l[d+1].split(f);if(2!==p.length&&""!==p[0])return!1;if(p[1]&&p[1].startsWith(","))return!1;l[d+1]=p[1]}}return!0}if((r&&r.ignoreSearch?i(s[0]):s[0])!==n)return!1;if(o&&s[1]!==o)return!1;if(!r||!r.ignoreVary){if(!(u=s[2]))return!0;var g=u.split(";");if(1===g.length)return!1;for(c=e.headers,d=0;d<g.length-1;d++)if(h=g[d].split("="),(f=c&&c.get(h[0])?c.get(h[0]):"undefined")!=h[1])return!1}return!0}))},n.prototype.constructMetadata=function(e){var r=(new Date).getTime(),t=i(e.url);return{url:e.url,method:e.method,baseUrl:t,created:r,lastupdated:r}},n.prototype.constructResponse=function(r){return t.log("Offline Persistence Toolkit DefaultCacheHandler: constructResponse()"),e.responseFromJSON(r).then((function(r){return e.isCachedResponse(r)||r.headers.set("x-oracle-jscpt-cache-expiration-date",""),r}))},n.prototype.constructSearchCriteria=function(e,r){t.log("Offline Persistence Toolkit DefaultCacheHandler: constructSearchCriteria()");var n=!1;r&&void 0!==r.ignoreSearch&&(n=r.ignoreSearch);var o,a=!1;return r&&void 0!==r.ignoreMethod&&(a=r.ignoreMethod),o=n?{"metadata.baseUrl":i(e.url)}:{"metadata.url":e.url},a||(o["metadata.method"]=e.method),{selector:o,sort:["metadata.created"]}},n.prototype.registerEndpointOptions=function(e,r){if(!e)throw new Error({message:"a valid endpointKey must be provided."});if(this._endpointToOptionsMap[e])throw new Error({message:"endpointKey can only be registered once."});this._endpointToOptionsMap[e]=r},n.prototype.unregisterEndpointOptions=function(e){if(!e)throw new Error({message:"a valid endpointKey must be provided."});delete this._endpointToOptionsMap[e]},n.prototype.hasShredder=function(e){return null!==this._getShredder(e)},n.prototype._getShredder=function(e){var r=this._getJsonProcessor(e.url);return r?r.shredder:null},n.prototype._getUnshredder=function(e){var r=this._getJsonProcessor(e.url);return r?r.unshredder:null},n.prototype._getJsonProcessor=function(e){for(var r=Object.keys(this._endpointToOptionsMap),t=0;t<r.length;t++){var n=r[t];if(e===JSON.parse(n).url){var o=this._endpointToOptionsMap[n];return o&&o.jsonProcessor&&o.jsonProcessor.shredder&&o.jsonProcessor.unshredder?o.jsonProcessor:null}}return null},n.prototype._getQueryHandler=function(e){for(var r=Object.keys(this._endpointToOptionsMap),t=0;t<r.length;t++){var n=r[t];if(e===JSON.parse(n).url){var o=this._endpointToOptionsMap[n];return o&&o.queryHandler?o.queryHandler:null}}return null},n.prototype.fillResponseBodyWithShreddedData=function(e,n,o){t.log("Offline Persistence Toolkit DefaultCacheHandler: fillResponseBodyWithShreddedData()"),null!=e.url&&e.url.length>0&&null==o.headers.get("x-oracle-jscpt-response-url")&&o.headers.set("x-oracle-jscpt-response-url",e.url),n&&1===n.length&&"single"===n[0].resourceType&&o.headers.set("x-oracle-jscpt-resource-type","single");var i=this._getUnshredder(e),a=this._getShredder(e);if(!(i&&a&&o&&n&&n.length))return Promise.resolve(o);var s=n.map((function(e){return n=(t=e).name,r.openStore(n).then((function(e){if(t.keys&&t.keys.length){if(1===t.keys.length)return e.findByKey(t.keys[0]);var r={selector:{$or:t.keys.map((function(e){return{key:{$eq:e}}}))}};return e.find(r)}return[]})).then((function(e){return Array.isArray(e)||(e=[e]),t.data=e,t}));var t,n}));return Promise.all(s).then((function(e){return i(e,o)}))},n.prototype.deleteShreddedData=function(e){var t=[];return e.forEach((function(e){var n=e.name,o=e.keys;if(n&&o&&o.length){var i=r.openStore(n).then((function(e){var r={selector:{$or:o.map((function(e){return{key:{$eq:e}}}))}};return e.delete(r)}));t.push(i)}})),Promise.all(t)};var i=function(e){if(!e||"string"!=typeof e)return"";var r=/([^?]*)\?/.exec(e);return r&&2===r.length?r[1]:e},a=function(e){if(!e||"string"!=typeof e)return"";var r=e.split("").reverse().join(""),t=/(.*?)(TEG|TUP|ETELED|TSOP|HCTAP|TCENNOC|SNOITPO|ECART)/.exec(r);return t&&3===t.length?t[1].split("").reverse().join(""):e};return new n}));
7
+ define(["../persistenceUtils","../persistenceStoreManager","./logger"],function(e,r,t){"use strict";function n(){Object.defineProperty(this,"_endpointToOptionsMap",{value:{},writable:!0})}function o(e){for(var r=e.name,t=e.resourceIdentifier,n=e.keys,o=[],i=(new Date).toUTCString(),a=0;a<n.length;a++){var s={key:n[a],metadata:{lastUpdated:i,resourceIdentifier:t},value:e.data[a]};o.push(s)}var u={};return u[r]=o,u}n.prototype.constructRequestResponseCacheData=function(r,n){var o=this,i={};return t.log("Offline Persistence Toolkit DefaultCacheHandler: constructRequestResponseCacheData()"),e.requestToJSON(r).then(function(t){i.requestData=t;var a=o.hasShredder(r);return e.responseToJSON(n,{excludeBody:a})}).then(function(e){return i.responseData=e,{key:o._constructCacheKey(r,n),metadata:o.constructMetadata(r),value:i}})},n.prototype.constructShreddedData=function(e,r){t.log("Offline Persistence Toolkit DefaultCacheHandler: constructShreddedData()");var n=this._getShredder(e);return n?n(r).then(function(e){return e&&Array.isArray(e)?e.map(o):null}):Promise.resolve()},n.prototype.shredResponse=function(e,r){t.log("Offline Persistence Toolkit DefaultCacheHandler: shredResponse()");var n=this._getShredder(e);return n?n(r):Promise.resolve()},n.prototype.cacheShreddedData=function(e,n){t.log("Offline Persistence Toolkit DefaultCacheHandler: cacheShreddedData()");var i=e.map(o),a=this;return function(e){var n=e.map(function(e){var n=Object.keys(e)[0],o=e[n];return o&&o.length?function(e,n){return t.log("Offline Persistence Toolkit DefaultCacheHandler: Updating store with shredded data"),r.openStore(e).then(function(e){return e.upsertAll(n)})}(n,o):Promise.resolve()});return Promise.all(n)}(i).then(function(){if(a._isCompleteCollection(n,e))return function(e){var t=e.map(function(e){var t=e.name,n={selector:{key:{$nin:e.keys}}};return r.openStore(t).then(function(e){return e.delete(n)})});return Promise.all(t)}(e)})},n.prototype._isCompleteCollection=function(e,r){if(!e||"GET"!==e.method&&"HEAD"!==e.method)return!1;if(!function(e){if(!e)return!1;for(var r=0;r<e.length;r++)if("collection"!==e[r].resourceType)return!1;return!0}(r))return!1;if(e.url===e.baseUrl)return!0;var t=this._getQueryHandler(e.url);if(!t||"function"!=typeof t.normalizeQueryParameter)return!1;var n=t.normalizeQueryParameter(e.url);if(n.searchCriteria||0!==n.offset)return!1;var o=n.limit;return o<0||r[0].keys.length<o},n.prototype._constructCacheKey=function(e,r){var t=e.url+"$"+e.method+"$";if(r){var n=r.headers;if(n&&(s=n.get("vary")))if("*"===s)t=1e3*(new Date).getTime()+Math.floor(1e3*Math.random());else for(var o=e.headers,i=s.split(","),a=0;a<i.length;a++){var s,u=i[a];t+=(u=u.trim())+"="+(s=o&&o.get(u)?o.get(u):"undefined")+";"}}return t},n.prototype.getMatchedCacheKeys=function(e,r,t){var n,o;return n=r&&r.ignoreSearch?i(e.url):e.url,r&&r.ignoreMethod||(o=e.method),t.filter(function(t){var s=t.split("$");if(1===s.length){if(t.slice(0,n.length)!==n)return!1;if(r&&r.ignoreSearch&&"/"===t[n.length])return!1;if(o&&-1===(r&&r.ignoreSearch?t.slice(n.length):t.slice(n.length,n.length+e.method.length)).indexOf(o))return!1;if(!r||!r.ignoreVary){var u=t;if(!(u=o?(u=u.split(o))[u.length-1]:a(u)))return!0;var l=u.split("="),c=e.headers;if(2===l){if((f=c&&c.get(l[0])?c.get(l[0]):"undefined")!==l[1])return!1}else for(var d=0;d<l.length-1;d++){var h=l[d],f=c&&c.get(h)?c.get(h):"undefined",p=l[d+1].split(f);if(2!==p.length&&""!==p[0])return!1;if(p[1]&&p[1].startsWith(","))return!1;l[d+1]=p[1]}}return!0}if((r&&r.ignoreSearch?i(s[0]):s[0])!==n)return!1;if(o&&s[1]!==o)return!1;if(!r||!r.ignoreVary){if(!(u=s[2]))return!0;var g=u.split(";");if(1===g.length)return!1;for(c=e.headers,d=0;d<g.length-1;d++)if(h=g[d].split("="),(f=c&&c.get(h[0])?c.get(h[0]):"undefined")!=h[1])return!1}return!0})},n.prototype.constructMetadata=function(e){var r=(new Date).getTime(),t=i(e.url);return{url:e.url,method:e.method,baseUrl:t,created:r,lastupdated:r}},n.prototype.constructResponse=function(r){return t.log("Offline Persistence Toolkit DefaultCacheHandler: constructResponse()"),e.responseFromJSON(r).then(function(r){return e.isCachedResponse(r)||r.headers.set("x-oracle-jscpt-cache-expiration-date",""),r})},n.prototype.constructSearchCriteria=function(e,r){t.log("Offline Persistence Toolkit DefaultCacheHandler: constructSearchCriteria()");var n=!1;r&&void 0!==r.ignoreSearch&&(n=r.ignoreSearch);var o,a=!1;return r&&void 0!==r.ignoreMethod&&(a=r.ignoreMethod),o=n?{"metadata.baseUrl":i(e.url)}:{"metadata.url":e.url},a||(o["metadata.method"]=e.method),{selector:o,sort:["metadata.created"]}},n.prototype.registerEndpointOptions=function(e,r){if(!e)throw new Error({message:"a valid endpointKey must be provided."});if(this._endpointToOptionsMap[e])throw new Error({message:"endpointKey can only be registered once."});this._endpointToOptionsMap[e]=r},n.prototype.unregisterEndpointOptions=function(e){if(!e)throw new Error({message:"a valid endpointKey must be provided."});delete this._endpointToOptionsMap[e]},n.prototype.hasShredder=function(e){return null!==this._getShredder(e)},n.prototype._getShredder=function(e){var r=this._getJsonProcessor(e.url);return r?r.shredder:null},n.prototype._getUnshredder=function(e){var r=this._getJsonProcessor(e.url);return r?r.unshredder:null},n.prototype._getJsonProcessor=function(e){for(var r=Object.keys(this._endpointToOptionsMap),t=0;t<r.length;t++){var n=r[t];if(e===JSON.parse(n).url){var o=this._endpointToOptionsMap[n];return o&&o.jsonProcessor&&o.jsonProcessor.shredder&&o.jsonProcessor.unshredder?o.jsonProcessor:null}}return null},n.prototype._getQueryHandler=function(e){for(var r=Object.keys(this._endpointToOptionsMap),t=0;t<r.length;t++){var n=r[t];if(e===JSON.parse(n).url){var o=this._endpointToOptionsMap[n];return o&&o.queryHandler?o.queryHandler:null}}return null},n.prototype.fillResponseBodyWithShreddedData=function(e,n,o){t.log("Offline Persistence Toolkit DefaultCacheHandler: fillResponseBodyWithShreddedData()"),null!=e.url&&e.url.length>0&&null==o.headers.get("x-oracle-jscpt-response-url")&&o.headers.set("x-oracle-jscpt-response-url",e.url),n&&1===n.length&&"single"===n[0].resourceType&&o.headers.set("x-oracle-jscpt-resource-type","single");var i=this._getUnshredder(e),a=this._getShredder(e);if(!(i&&a&&o&&n&&n.length))return Promise.resolve(o);var s=n.map(function(e){return n=(t=e).name,r.openStore(n).then(function(e){if(t.keys&&t.keys.length){if(1===t.keys.length)return e.findByKey(t.keys[0]);var r={selector:{$or:t.keys.map(function(e){return{key:{$eq:e}}})}};return e.find(r)}return[]}).then(function(e){return Array.isArray(e)||(e=[e]),t.data=e,t});var t,n});return Promise.all(s).then(function(e){return i(e,o)})},n.prototype.deleteShreddedData=function(e){var t=[];return e.forEach(function(e){var n=e.name,o=e.keys;if(n&&o&&o.length){var i=r.openStore(n).then(function(e){var r={selector:{$or:o.map(function(e){return{key:{$eq:e}}})}};return e.delete(r)});t.push(i)}}),Promise.all(t)};var i=function(e){if(!e||"string"!=typeof e)return"";var r=/([^?]*)\?/.exec(e);return r&&2===r.length?r[1]:e},a=function(e){if(!e||"string"!=typeof e)return"";var r=e.split("").reverse().join(""),t=/(.*?)(TEG|TUP|ETELED|TSOP|HCTAP|TCENNOC|SNOITPO|ECART)/.exec(r);return t&&3===t.length?t[1].split("").reverse().join(""):e};return new n});
@@ -1,33 +1 @@
1
- /**
2
- * Copyright (c) 2014-2016 GitHub, Inc.
3
- *
4
- * Permission is hereby granted, free of charge, to any person obtaining
5
- * a copy of this software and associated documentation files (the
6
- * "Software"), to deal in the Software without restriction, including
7
- * without limitation the rights to use, copy, modify, merge, publish,
8
- * distribute, sublicense, and/or sell copies of the Software, and to
9
- * permit persons to whom the Software is furnished to do so, subject to
10
- * the following conditions:
11
- *
12
- * The above copyright notice and this permission notice shall be
13
- * included in all copies or substantial portions of the Software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
- * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
- * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.prototype
22
- */
23
- !function(t){"use strict";if(!t.fetch){var e="URLSearchParams"in t,r="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),n="FormData"in t,i="ArrayBuffer"in t;if(i)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=function(t){return t&&DataView.prototype.isPrototypeOf(t)},h=ArrayBuffer.isView||function(t){return t&&s.indexOf(Object.prototype.toString.call(t))>-1};l.prototype.append=function(t,e){t=d(t),e=y(e);var r=this.map[t];this.map[t]=r?r+","+e:e},l.prototype.delete=function(t){delete this.map[d(t)]},l.prototype.get=function(t){return t=d(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(d(t))},l.prototype.set=function(t,e){this.map[d(t)]=y(e)},l.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),p(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),p(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),p(t)},r&&(l.prototype[Symbol.iterator]=l.prototype.entries);
24
- // HTTP methods whose capitalization should be normalized
25
- var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},_.call(v.prototype),_.call(B.prototype),B.prototype.clone=function(){return new B(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},B.error=function(){var t=new B(null,{status:0,statusText:""});return t.type="error",t};var f=[301,302,303,307,308];B.redirect=function(t,e){if(-1===f.indexOf(e))throw new RangeError("Invalid status code");return new B(null,{status:e,headers:{location:t}})},t.Headers=l,t.Request=v,t.Response=B,t.fetch=function(t,e){return new Promise((function(r,n){var i=new v(t,e),s=new XMLHttpRequest;// @HTMLUpdateOK
26
- s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),o=r.shift().trim();if(o){var n=r.join(":").trim();e.append(o,n)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var n="response"in s?s.response:s.responseText;r(new B(n,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.open(i.method,i.url,!0),"include"===i.credentials&&(s.withCredentials=!0),"responseType"in s&&o&&(s.responseType="blob"),i.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),s.send(void 0===i._bodyInit?null:i._bodyInit)}))},t.fetch.polyfill=!0}function d(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function y(t){return"string"!=typeof t&&(t=String(t)),t}
27
- // Build a destructive iterator for the value list
28
- function p(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t);// @XSSFalsePositive
29
- }),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1]);// @XSSFalsePositive
30
- }),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e]);// @XSSFalsePositive
31
- }),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function b(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function m(t){var e=new FileReader,r=b(e);return e.readAsArrayBuffer(t),r}function w(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t)if("string"==typeof t)this._bodyText=t;else if(o&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(n&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(e&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(i&&o&&a(t))this._bodyArrayBuffer=w(t.buffer),
32
- // IE 10-11 can't handle a DataView body.
33
- this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!i||!ArrayBuffer.prototype.isPrototypeOf(t)&&!h(t))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=w(t)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var t,e,r,o=c(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,r=b(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),o=0;o<e.length;o++)r[o]=String.fromCharCode(e[o]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n&&(this.formData=function(){return this._bodyFormData?Promise.resolve(this._bodyFormData):this.text().then(A)}),this.json=function(){return this.text().then(JSON.parse)},this}function v(t,e){var r,o,n=(e=e||{}).body;if(t instanceof v){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=(r=e.method||this.method||"GET").toUpperCase(),u.indexOf(o)>-1?o:r),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function A(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),o=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(n))}})),e}function B(t,e){e||(e={}),this.type="default",this.status="status"in e?e.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}}("undefined"!=typeof self?self:this);
1
+ !function(t){"use strict";if(!t.fetch){var e="URLSearchParams"in t,r="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),n="FormData"in t,i="ArrayBuffer"in t;if(i)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=function(t){return t&&DataView.prototype.isPrototypeOf(t)},h=ArrayBuffer.isView||function(t){return t&&s.indexOf(Object.prototype.toString.call(t))>-1};l.prototype.append=function(t,e){t=d(t),e=y(e);var r=this.map[t];this.map[t]=r?r+","+e:e},l.prototype.delete=function(t){delete this.map[d(t)]},l.prototype.get=function(t){return t=d(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(d(t))},l.prototype.set=function(t,e){this.map[d(t)]=y(e)},l.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},l.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),p(t)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),p(t)},l.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),p(t)},r&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},_.call(v.prototype),_.call(B.prototype),B.prototype.clone=function(){return new B(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},B.error=function(){var t=new B(null,{status:0,statusText:""});return t.type="error",t};var f=[301,302,303,307,308];B.redirect=function(t,e){if(-1===f.indexOf(e))throw new RangeError("Invalid status code");return new B(null,{status:e,headers:{location:t}})},t.Headers=l,t.Request=v,t.Response=B,t.fetch=function(t,e){return new Promise(function(r,n){var i=new v(t,e),s=new XMLHttpRequest;s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var r=t.split(":"),o=r.shift().trim();if(o){var n=r.join(":").trim();e.append(o,n)}}),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var n="response"in s?s.response:s.responseText;r(new B(n,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.open(i.method,i.url,!0),"include"===i.credentials&&(s.withCredentials=!0),"responseType"in s&&o&&(s.responseType="blob"),i.headers.forEach(function(t,e){s.setRequestHeader(e,t)}),s.send(void 0===i._bodyInit?null:i._bodyInit)})},t.fetch.polyfill=!0}function d(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function y(t){return"string"!=typeof t&&(t=String(t)),t}function p(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function b(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function m(t){var e=new FileReader,r=b(e);return e.readAsArrayBuffer(t),r}function w(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t)if("string"==typeof t)this._bodyText=t;else if(o&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(n&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(e&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(i&&o&&a(t))this._bodyArrayBuffer=w(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!i||!ArrayBuffer.prototype.isPrototypeOf(t)&&!h(t))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=w(t)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var t,e,r,o=c(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,r=b(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),o=0;o<e.length;o++)r[o]=String.fromCharCode(e[o]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n&&(this.formData=function(){return this._bodyFormData?Promise.resolve(this._bodyFormData):this.text().then(A)}),this.json=function(){return this.text().then(JSON.parse)},this}function v(t,e){var r,o,n=(e=e||{}).body;if(t instanceof v){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=(r=e.method||this.method||"GET").toUpperCase(),u.indexOf(o)>-1?o:r),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function A(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),o=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(n))}}),e}function B(t,e){e||(e={}),this.type="default",this.status="status"in e?e.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}}("undefined"!=typeof self?self:this);
@@ -1,6 +1,7 @@
1
1
  /**
2
+ * Offline Persistence Toolkit v1.5.9
2
3
  * Copyright (c) 2017, Oracle and/or its affiliates.
3
4
  * All rights reserved.
4
5
  */
5
6
 
6
- define(["./keyValuePersistenceStore","../persistenceStoreManager","./logger"],(function(e,t,n){"use strict";var r=function(t){e.call(this,t),this._directoryName=s(t),this._directory=null};function i(e,t,n){return o().then((function(r){return r.upsert(e,n,{filename:t,metadata:n})}))}function o(){return t.openStore("fileIndex",{index:["key"],skipMetadata:!0})}function u(e,t){return new Promise((function(n,r){e._directory.getFile(t,{create:!1,exclusive:!1},(function(e){n(e)}),(function(e){e.code===FileError.NOT_FOUND_ERR||e.code===FileError.SYNTAX_ERR?n(null):r(e)}))}))}function c(e){return o().then((function(t){return t.findByKey(e)}))}function f(e){return o().then((function(t){return t.removeByKey(e)}))}function a(e,t){return u(e,t).then((function(e){return!!e&&new Promise((function(t,n){e.remove((function(){t(!0)}),(function(e){t(!1)}))}))}))}function s(e){var t=e.replace(/[<>\:"\/\\\|\?\*\~]/g,"").replace(/^\.+$/,"").replace(/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,"").replace(/[\x00-\x1f\x80-\x9f]/g,"");return t.length>255?t.slice(0,255):t}return(r.prototype=new e).Init=function(t){var n=this;return e.prototype.Init.call(n,t).then((function(){return n._directoryName=s(n._name+n._version),new Promise((function(e,t){window.requestFileSystem(LocalFileSystem.PERSISTENT,0,(function(t){t.root.getDirectory(n._directoryName,{create:!0},(function(t){n._directory=t,e()}))}),(function(e){t(e)}))}))}))},r.prototype._insert=function(e,t,n){var r=this;return this.removeByKey(e).then((function(){n instanceof Blob?t.data_type="Blob":t.data_type="JSON";var o=r._directory.createReader();return new Promise((function(u,c){o.readEntries((function(o){for(var c=function(e){return o.filter((function(t){return t.name==e})).length>0},f=Math.floor(1e8*Math.random())+".pds";c(f);)f=Math.floor(1e8*Math.random())+".pds";(function(e,t,n,r,o){return new Promise((function(u,c){e._directory.getFile(t,{create:!0,exclusive:!1},(function(e){e.createWriter((function(e){e.onwriteend=function(){i(n,t,r).then((function(){u()}))},e.onerror=function(e){c(e)},"JSON"==r.data_type&&(o=JSON.stringify(o)),e.write(o)}))}))}))})(r,f,e,t,n).then((function(){u()}))}))}))}))},r.prototype.getItem=function(e){n.log("Offline Persistence Toolkit fileSystemPersistenceStore: getItem() with key: "+e);var t=this;return c(e).then((function(e){if(e){var n=e.filename,r=e.metadata;return u(t,n).then((function(e){if(e)return new Promise((function(t,n){e.file((function(e){var n=new FileReader;n.onloadend=function(e){var n,i,o=(n=this.result,0,i=new DataView(n.slice(0)),new Blob([i]));if("JSON"==r.data_type){var u=new FileReader;u.onloadend=function(){t({metadata:r,value:JSON.parse(this.result)})},u.readAsText(o)}else t({metadata:r,value:o})},n.readAsArrayBuffer(e)}),(function(e){n(e)}))}))}))}}))},r.prototype.removeByKey=function(e){n.log("Offline Persistence Toolkit fileSystemPersistenceStore: removeByKey() with key: "+e);var t=this;return c(e).then((function(n){return n?f(e).then((function(){return a(t,n.filename)})):Promise.resolve(!1)}))},r.prototype.keys=function(){return n.log("Offline Persistence Toolkit fileSystemPersistenceStore: keys()"),o().then((function(e){return e.keys()}))},r.prototype.deleteAll=function(){n.log("Offline Persistence Toolkit fileSystemPersistenceStore: deleteAll()");var e=this;return o().then((function(e){return e.delete()})).then((function(){var t=[],n=e._directory.createReader();return t.push(new Promise((function(r,i){n.readEntries((function(n){n.map((function(n){t.push(a(e,n.name))})),r()}))}))),Promise.all(t)}))},r.prototype.updateKey=function(e,t){return n.log("Offline Persistence Toolkit FileSystemPersistenceStore: updateKey() with currentKey: "+e+" and new key: "+t),c(e).then((function(e){if(e){var n=e.filename,r=e.metadata;return i(t,n,r)}return Promise.reject("No existing key found to update")})).then((function(){return f(e)}))},r}));
7
+ define(["./keyValuePersistenceStore","../persistenceStoreManager","./logger"],function(e,t,n){"use strict";var r=function(t){e.call(this,t),this._directoryName=s(t),this._directory=null};function i(e,t,n){return o().then(function(r){return r.upsert(e,n,{filename:t,metadata:n})})}function o(){return t.openStore("fileIndex",{index:["key"],skipMetadata:!0})}function u(e,t){return new Promise(function(n,r){e._directory.getFile(t,{create:!1,exclusive:!1},function(e){n(e)},function(e){e.code===FileError.NOT_FOUND_ERR||e.code===FileError.SYNTAX_ERR?n(null):r(e)})})}function c(e){return o().then(function(t){return t.findByKey(e)})}function f(e){return o().then(function(t){return t.removeByKey(e)})}function a(e,t){return u(e,t).then(function(e){return!!e&&new Promise(function(t,n){e.remove(function(){t(!0)},function(e){t(!1)})})})}function s(e){var t=e.replace(/[<>\:"\/\\\|\?\*\~]/g,"").replace(/^\.+$/,"").replace(/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,"").replace(/[\x00-\x1f\x80-\x9f]/g,"");return t.length>255?t.slice(0,255):t}return(r.prototype=new e).Init=function(t){var n=this;return e.prototype.Init.call(n,t).then(function(){return n._directoryName=s(n._name+n._version),new Promise(function(e,t){window.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getDirectory(n._directoryName,{create:!0},function(t){n._directory=t,e()})},function(e){t(e)})})})},r.prototype._insert=function(e,t,n){var r=this;return this.removeByKey(e).then(function(){n instanceof Blob?t.data_type="Blob":t.data_type="JSON";var o=r._directory.createReader();return new Promise(function(u,c){o.readEntries(function(o){for(var c=function(e){return o.filter(function(t){return t.name==e}).length>0},f=Math.floor(1e8*Math.random())+".pds";c(f);)f=Math.floor(1e8*Math.random())+".pds";(function(e,t,n,r,o){return new Promise(function(u,c){e._directory.getFile(t,{create:!0,exclusive:!1},function(e){e.createWriter(function(e){e.onwriteend=function(){i(n,t,r).then(function(){u()})},e.onerror=function(e){c(e)},"JSON"==r.data_type&&(o=JSON.stringify(o)),e.write(o)})})})})(r,f,e,t,n).then(function(){u()})})})})},r.prototype.getItem=function(e){n.log("Offline Persistence Toolkit fileSystemPersistenceStore: getItem() with key: "+e);var t=this;return c(e).then(function(e){if(e){var n=e.filename,r=e.metadata;return u(t,n).then(function(e){if(e)return new Promise(function(t,n){e.file(function(e){var n=new FileReader;n.onloadend=function(e){var n,i,o=(n=this.result,i=new DataView(n.slice(0)),new Blob([i]));if("JSON"==r.data_type){var u=new FileReader;u.onloadend=function(){t({metadata:r,value:JSON.parse(this.result)})},u.readAsText(o)}else t({metadata:r,value:o})},n.readAsArrayBuffer(e)},function(e){n(e)})})})}})},r.prototype.removeByKey=function(e){n.log("Offline Persistence Toolkit fileSystemPersistenceStore: removeByKey() with key: "+e);var t=this;return c(e).then(function(n){return n?f(e).then(function(){return a(t,n.filename)}):Promise.resolve(!1)})},r.prototype.keys=function(){return n.log("Offline Persistence Toolkit fileSystemPersistenceStore: keys()"),o().then(function(e){return e.keys()})},r.prototype.deleteAll=function(){n.log("Offline Persistence Toolkit fileSystemPersistenceStore: deleteAll()");var e=this;return o().then(function(e){return e.delete()}).then(function(){var t=[],n=e._directory.createReader();return t.push(new Promise(function(r,i){n.readEntries(function(n){n.map(function(n){t.push(a(e,n.name))}),r()})})),Promise.all(t)})},r.prototype.updateKey=function(e,t){return n.log("Offline Persistence Toolkit FileSystemPersistenceStore: updateKey() with currentKey: "+e+" and new key: "+t),c(e).then(function(e){if(e){var n=e.filename,r=e.metadata;return i(t,n,r)}return Promise.reject("No existing key found to update")}).then(function(){return f(e)})},r});
@@ -1,6 +1,7 @@
1
1
  /**
2
+ * Offline Persistence Toolkit v1.5.9
2
3
  * Copyright (c) 2017, Oracle and/or its affiliates.
3
4
  * All rights reserved.
4
5
  */
5
6
 
6
- define(["../PersistenceStore","./storageUtils","./logger"],(function(e,t,r){"use strict";var n=function(t){e.call(this,t)};return(n.prototype=new e).Init=function(e){return this._version=e&&e.version||"0",Promise.resolve()},n.prototype.getItem=function(e){throw TypeError("failed in abstract function")},n.prototype.removeByKey=function(e){throw TypeError("failed in abstract function")},n.prototype.keys=function(){throw TypeError("failed in abstract function")},n.prototype.findByKey=function(e){return r.log("Offline Persistence Toolkit keyValuePersistenceStore called by subclass: findByKey() with key: "+e),this.getItem(e).then((function(e){return e?Promise.resolve(e.value):Promise.resolve()}))},n.prototype.find=function(e){r.log("Offline Persistence Toolkit keyValuePersistenceStore called by subclass: find() with expression: "+JSON.stringify(e));var n=this,o=[],s=[];return e=e||{},this.keys().then((function(r){for(var i=[],l=0;l<r.length;l++){var u=r[l];u&&i.push(function(r){return n.getItem(r).then((function(n){n&&t.satisfy(e.selector,n)&&(n.key=r,s.push(n))}))}(u))}return Promise.all(i).then((function(){for(var r=t.sortRows(s,e.sort),i=0;i<r.length;i++)o.push(n._constructReturnObject(e.fields,r[i]));return Promise.resolve(o)}))}))},n.prototype.updateKey=function(e,t){r.log("Offline Persistence Toolkit keyValuePersistenceStore called by subclass: updateKey() with currentKey: "+e+" and new key: "+t);var n=this;return this.getItem(e).then((function(e){return e?n._insert(t,e.metadata,e.value):Promise.reject("No existing key found to update")})).then((function(){return n.removeByKey(e)}))},n.prototype._constructReturnObject=function(e,r){return e?t.assembleObject(r,e):r.value},n.prototype._removeByKeyMapCallback=function(e){var t=this;return function(r){var n;return n=e?r[e]:r,t.removeByKey(n)}},n.prototype.delete=function(e){r.log("Offline Persistence Toolkit keyValuePersistenceStore called by subclass: delete() with expression: "+JSON.stringify(e));var t=this;if(!e)return this.deleteAll();var n=e;return n.fields=["key"],t.find(n).then((function(e){if(e&&e.length){var r=e.map(t._removeByKeyMapCallback("key"),t);return Promise.all(r)}return Promise.resolve()}))},n.prototype.deleteAll=function(){r.log("Offline Persistence Toolkit keyValuePersistenceStore called by subclass: deleteAll()");var e,t=this,n=[];return this.keys().then((function(r){for(e=0;e<r.length;e++)n.push(t.removeByKey(r[e]));return Promise.all(n)}))},n.prototype.upsert=function(e,t,n,o){r.log("Offline Persistence Toolkit keyValuePersistenceStore called by subclass: upsert() for key: "+e);var s=this;return this.getItem(e).then((function(r){if(r&&o){var i=r.metadata.versionIdentifier;return i!==o?Promise.reject({status:409}):t.versionIdentifier!==i?s._insert(e,t,n):Promise.resolve()}return s._insert(e,t,n)}))},n.prototype.upsertAll=function(e){r.log("Offline Persistence Toolkit keyValuePersistenceStore called by subclass: upsertAll()");for(var t=[],n=0;n<e.length;n++){var o=e[n];t.push(this.upsert(o.key,o.metadata,o.value,o.expectedVersionIndentifier))}return Promise.all(t)},n}));
7
+ define(["../PersistenceStore","./storageUtils","./logger"],function(e,t,r){"use strict";var n=function(t){e.call(this,t)};return(n.prototype=new e).Init=function(e){return this._version=e&&e.version||"0",Promise.resolve()},n.prototype.getItem=function(e){throw TypeError("failed in abstract function")},n.prototype.removeByKey=function(e){throw TypeError("failed in abstract function")},n.prototype.keys=function(){throw TypeError("failed in abstract function")},n.prototype.findByKey=function(e){return r.log("Offline Persistence Toolkit keyValuePersistenceStore called by subclass: findByKey() with key: "+e),this.getItem(e).then(function(e){return e?Promise.resolve(e.value):Promise.resolve()})},n.prototype.find=function(e){r.log("Offline Persistence Toolkit keyValuePersistenceStore called by subclass: find() with expression: "+JSON.stringify(e));var n=this,o=[],s=[];return e=e||{},this.keys().then(function(r){for(var i=[],l=0;l<r.length;l++){var u=r[l];u&&i.push(function(r){return n.getItem(r).then(function(n){n&&t.satisfy(e.selector,n)&&(n.key=r,s.push(n))})}(u))}return Promise.all(i).then(function(){for(var r=t.sortRows(s,e.sort),i=0;i<r.length;i++)o.push(n._constructReturnObject(e.fields,r[i]));return Promise.resolve(o)})})},n.prototype.updateKey=function(e,t){r.log("Offline Persistence Toolkit keyValuePersistenceStore called by subclass: updateKey() with currentKey: "+e+" and new key: "+t);var n=this;return this.getItem(e).then(function(e){return e?n._insert(t,e.metadata,e.value):Promise.reject("No existing key found to update")}).then(function(){return n.removeByKey(e)})},n.prototype._constructReturnObject=function(e,r){return e?t.assembleObject(r,e):r.value},n.prototype._removeByKeyMapCallback=function(e){var t=this;return function(r){var n;return n=e?r[e]:r,t.removeByKey(n)}},n.prototype.delete=function(e){r.log("Offline Persistence Toolkit keyValuePersistenceStore called by subclass: delete() with expression: "+JSON.stringify(e));var t=this;if(!e)return this.deleteAll();var n=e;return n.fields=["key"],t.find(n).then(function(e){if(e&&e.length){var r=e.map(t._removeByKeyMapCallback("key"),t);return Promise.all(r)}return Promise.resolve()})},n.prototype.deleteAll=function(){r.log("Offline Persistence Toolkit keyValuePersistenceStore called by subclass: deleteAll()");var e,t=this,n=[];return this.keys().then(function(r){for(e=0;e<r.length;e++)n.push(t.removeByKey(r[e]));return Promise.all(n)})},n.prototype.upsert=function(e,t,n,o){r.log("Offline Persistence Toolkit keyValuePersistenceStore called by subclass: upsert() for key: "+e);var s=this;return this.getItem(e).then(function(r){if(r&&o){var i=r.metadata.versionIdentifier;return i!==o?Promise.reject({status:409}):t.versionIdentifier!==i?s._insert(e,t,n):Promise.resolve()}return s._insert(e,t,n)})},n.prototype.upsertAll=function(e){r.log("Offline Persistence Toolkit keyValuePersistenceStore called by subclass: upsertAll()");for(var t=[],n=0;n<e.length;n++){var o=e[n];t.push(this.upsert(o.key,o.metadata,o.value,o.expectedVersionIndentifier))}return Promise.all(t)},n});