openstack-uicore-foundation 4.1.43 → 4.1.44

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 (187) hide show
  1. package/lib/components/ajaxloader.js +2 -184
  2. package/lib/components/ajaxloader.js.map +1 -0
  3. package/lib/components/attendance-tracker.js +2 -2066
  4. package/lib/components/attendance-tracker.js.map +1 -0
  5. package/lib/components/bulk-actions-selector.js +2 -197
  6. package/lib/components/bulk-actions-selector.js.map +1 -0
  7. package/lib/components/circle-button.js +2 -223
  8. package/lib/components/circle-button.js.map +1 -0
  9. package/lib/components/clock.js +2 -767
  10. package/lib/components/clock.js.map +1 -0
  11. package/lib/components/exclusive-wrapper.js +2 -151
  12. package/lib/components/exclusive-wrapper.js.map +1 -0
  13. package/lib/components/extra-questions.js +2 -2011
  14. package/lib/components/extra-questions.js.map +1 -0
  15. package/lib/components/form-validation.js +2 -190
  16. package/lib/components/form-validation.js.map +1 -0
  17. package/lib/components/forms/rsvp-form.js +2 -940
  18. package/lib/components/forms/rsvp-form.js.map +1 -0
  19. package/lib/components/forms/simple-form.js +2 -774
  20. package/lib/components/forms/simple-form.js.map +1 -0
  21. package/lib/components/free-text-search.js +2 -2154
  22. package/lib/components/free-text-search.js.map +1 -0
  23. package/lib/components/google-map.js +2 -642
  24. package/lib/components/google-map.js.map +1 -0
  25. package/lib/components/index.js +2 -13417
  26. package/lib/components/index.js.map +1 -0
  27. package/lib/components/inputs/access-levels-input.js +2 -2381
  28. package/lib/components/inputs/access-levels-input.js.map +1 -0
  29. package/lib/components/inputs/action-dropdown.js +2 -219
  30. package/lib/components/inputs/action-dropdown.js.map +1 -0
  31. package/lib/components/inputs/checkbox-list.js +2 -339
  32. package/lib/components/inputs/checkbox-list.js.map +1 -0
  33. package/lib/components/inputs/company-input.js +2 -2416
  34. package/lib/components/inputs/company-input.js.map +1 -0
  35. package/lib/components/inputs/country-dropdown.js +2 -2474
  36. package/lib/components/inputs/country-dropdown.js.map +1 -0
  37. package/lib/components/inputs/country-input.js +2 -2377
  38. package/lib/components/inputs/country-input.js.map +1 -0
  39. package/lib/components/inputs/datetimepicker.js +2 -314
  40. package/lib/components/inputs/datetimepicker.js.map +1 -0
  41. package/lib/components/inputs/dropdown.js +2 -259
  42. package/lib/components/inputs/dropdown.js.map +1 -0
  43. package/lib/components/inputs/editor-input.js +2 -270
  44. package/lib/components/inputs/editor-input.js.map +1 -0
  45. package/lib/components/inputs/event-input.js +2 -2355
  46. package/lib/components/inputs/event-input.js.map +1 -0
  47. package/lib/components/inputs/free-multi-text-input.js +2 -252
  48. package/lib/components/inputs/free-multi-text-input.js.map +1 -0
  49. package/lib/components/inputs/group-input.js +2 -2350
  50. package/lib/components/inputs/group-input.js.map +1 -0
  51. package/lib/components/inputs/grouped-dropdown.js +2 -244
  52. package/lib/components/inputs/grouped-dropdown.js.map +1 -0
  53. package/lib/components/inputs/language-input.js +2 -2382
  54. package/lib/components/inputs/language-input.js.map +1 -0
  55. package/lib/components/inputs/member-input.js +2 -2377
  56. package/lib/components/inputs/member-input.js.map +1 -0
  57. package/lib/components/inputs/operator-input.js +2 -328
  58. package/lib/components/inputs/operator-input.js.map +1 -0
  59. package/lib/components/inputs/organization-input.js +2 -2400
  60. package/lib/components/inputs/organization-input.js.map +1 -0
  61. package/lib/components/inputs/promocode-input.js +2 -2385
  62. package/lib/components/inputs/promocode-input.js.map +1 -0
  63. package/lib/components/inputs/radio-list.js +2 -297
  64. package/lib/components/inputs/radio-list.js.map +1 -0
  65. package/lib/components/inputs/registration-company-input.js +2 -2438
  66. package/lib/components/inputs/registration-company-input.js.map +1 -0
  67. package/lib/components/inputs/speaker-input.js +2 -2411
  68. package/lib/components/inputs/speaker-input.js.map +1 -0
  69. package/lib/components/inputs/sponsor-input.js +2 -2359
  70. package/lib/components/inputs/sponsor-input.js.map +1 -0
  71. package/lib/components/inputs/stepped-select.js +2 -197
  72. package/lib/components/inputs/stepped-select.js.map +1 -0
  73. package/lib/components/inputs/summit-days-select.js +2 -162
  74. package/lib/components/inputs/summit-days-select.js.map +1 -0
  75. package/lib/components/inputs/summit-input.js +2 -2357
  76. package/lib/components/inputs/summit-input.js.map +1 -0
  77. package/lib/components/inputs/summit-venues-select.js +2 -203
  78. package/lib/components/inputs/summit-venues-select.js.map +1 -0
  79. package/lib/components/inputs/tag-input.js +2 -2427
  80. package/lib/components/inputs/tag-input.js.map +1 -0
  81. package/lib/components/inputs/text-input.js +2 -202
  82. package/lib/components/inputs/text-input.js.map +1 -0
  83. package/lib/components/inputs/textarea-input.js +2 -174
  84. package/lib/components/inputs/textarea-input.js.map +1 -0
  85. package/lib/components/inputs/ticket-types-input.js +2 -2415
  86. package/lib/components/inputs/ticket-types-input.js.map +1 -0
  87. package/lib/components/inputs/upload-input-v2.js +2 -860
  88. package/lib/components/inputs/upload-input-v2.js.map +1 -0
  89. package/lib/components/inputs/upload-input.js +2 -391
  90. package/lib/components/inputs/upload-input.js.map +1 -0
  91. package/lib/components/progressive-img.js +2 -296
  92. package/lib/components/progressive-img.js.map +1 -0
  93. package/lib/components/raw-html.js +2 -125
  94. package/lib/components/raw-html.js.map +1 -0
  95. package/lib/components/schedule-builder-constants.js +2 -87
  96. package/lib/components/schedule-builder-constants.js.map +1 -0
  97. package/lib/components/schedule-builder-view.js +2 -2188
  98. package/lib/components/schedule-builder-view.js.map +1 -0
  99. package/lib/components/sections/panel.js +2 -156
  100. package/lib/components/sections/panel.js.map +1 -0
  101. package/lib/components/simple-link-list.js +2 -790
  102. package/lib/components/simple-link-list.js.map +1 -0
  103. package/lib/components/sponsored-project-input.js +2 -2356
  104. package/lib/components/sponsored-project-input.js.map +1 -0
  105. package/lib/components/summit-dropdown.js +2 -214
  106. package/lib/components/summit-dropdown.js.map +1 -0
  107. package/lib/components/table-editable.js +2 -961
  108. package/lib/components/table-editable.js.map +1 -0
  109. package/lib/components/table-selectable.js +2 -552
  110. package/lib/components/table-selectable.js.map +1 -0
  111. package/lib/components/table-sortable.js +2 -743
  112. package/lib/components/table-sortable.js.map +1 -0
  113. package/lib/components/table.js +2 -510
  114. package/lib/components/table.js.map +1 -0
  115. package/lib/components/video-stream.js +2 -226
  116. package/lib/components/video-stream.js.map +1 -0
  117. package/lib/css/components/bulk-actions-selector.css +2 -19
  118. package/lib/css/components/bulk-actions-selector.css.map +1 -0
  119. package/lib/css/components/circle-button.css +1 -28
  120. package/lib/css/components/extra-questions.css +2 -35
  121. package/lib/css/components/extra-questions.css.map +1 -0
  122. package/lib/css/components/form-validation.css +2 -29
  123. package/lib/css/components/form-validation.css.map +1 -0
  124. package/lib/css/components/free-text-search.css +2 -35
  125. package/lib/css/components/free-text-search.css.map +1 -0
  126. package/lib/css/components/index.css +3 -1398
  127. package/lib/css/components/index.css.map +1 -0
  128. package/lib/css/components/inputs/action-dropdown.css +2 -46
  129. package/lib/css/components/inputs/action-dropdown.css.map +1 -0
  130. package/lib/css/components/inputs/datetimepicker.css +2 -208
  131. package/lib/css/components/inputs/datetimepicker.css.map +1 -0
  132. package/lib/css/components/inputs/grouped-dropdown.css +2 -25
  133. package/lib/css/components/inputs/grouped-dropdown.css.map +1 -0
  134. package/lib/css/components/inputs/stepped-select.css +2 -12
  135. package/lib/css/components/inputs/stepped-select.css.map +1 -0
  136. package/lib/css/components/inputs/upload-input-v2.css +2 -108
  137. package/lib/css/components/inputs/upload-input-v2.css.map +1 -0
  138. package/lib/css/components/inputs/upload-input.css +2 -43
  139. package/lib/css/components/inputs/upload-input.css.map +1 -0
  140. package/lib/css/components/progressive-img.css +1 -18
  141. package/lib/css/components/schedule-builder-view.css +2 -249
  142. package/lib/css/components/schedule-builder-view.css.map +1 -0
  143. package/lib/css/components/simple-link-list.css +2 -195
  144. package/lib/css/components/simple-link-list.css.map +1 -0
  145. package/lib/css/components/summit-dropdown.css +2 -35
  146. package/lib/css/components/summit-dropdown.css.map +1 -0
  147. package/lib/css/components/table-editable.css +2 -145
  148. package/lib/css/components/table-editable.css.map +1 -0
  149. package/lib/css/components/table-selectable.css +2 -147
  150. package/lib/css/components/table-selectable.css.map +1 -0
  151. package/lib/css/components/table-sortable.css +2 -156
  152. package/lib/css/components/table-sortable.css.map +1 -0
  153. package/lib/css/components/table.css +2 -147
  154. package/lib/css/components/table.css.map +1 -0
  155. package/lib/i18n.js +2 -515
  156. package/lib/i18n.js.map +1 -0
  157. package/lib/models/index.js +2 -238
  158. package/lib/models/index.js.map +1 -0
  159. package/lib/models/summit-event.js +2 -210
  160. package/lib/models/summit-event.js.map +1 -0
  161. package/lib/security/abstract-auth-callback-route.js +2 -2192
  162. package/lib/security/abstract-auth-callback-route.js.map +1 -0
  163. package/lib/security/actions.js +2 -1892
  164. package/lib/security/actions.js.map +1 -0
  165. package/lib/security/constants.js +2 -75
  166. package/lib/security/constants.js.map +1 -0
  167. package/lib/security/methods.js +2 -1892
  168. package/lib/security/methods.js.map +1 -0
  169. package/lib/security/reducers.js +2 -2035
  170. package/lib/security/reducers.js.map +1 -0
  171. package/lib/security/session-checker.js +2 -2253
  172. package/lib/security/session-checker.js.map +1 -0
  173. package/lib/utils/actions.js +2 -1892
  174. package/lib/utils/actions.js.map +1 -0
  175. package/lib/utils/fragment-parser.js +2 -207
  176. package/lib/utils/fragment-parser.js.map +1 -0
  177. package/lib/utils/methods.js +2 -435
  178. package/lib/utils/methods.js.map +1 -0
  179. package/lib/utils/query-actions.js +2 -2229
  180. package/lib/utils/query-actions.js.map +1 -0
  181. package/lib/utils/questions-set.js +2 -681
  182. package/lib/utils/questions-set.js.map +1 -0
  183. package/lib/utils/reducers.js +2 -1948
  184. package/lib/utils/reducers.js.map +1 -0
  185. package/lib/utils/use-fit-text.js +2 -178
  186. package/lib/utils/use-fit-text.js.map +1 -0
  187. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components/clock.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,I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,kCACzB,CACJ,CAEDM,uBACIxG,KAAKoE,YAAa,EAClBqC,cAAczG,KAAKqF,UACnBgB,SAASK,oBAAoB,mBAAoB1G,KAAKuF,oBACtDvF,KAAKqF,SAAW,IACnB,CA+BDsB,SACI,MAAM,QAACC,EAAD,SAAUlB,EAAW,OAAS1F,KAAK4D,OACnC,UAACO,GAAanE,KAAKmF,MAEzB,OAAKyB,GAAYzC,EAGb,yBAAK0C,MAAO,CAACC,UAAW,OAAQC,UAAW,SAAUC,SAAU,SAC1D/C,IAAAA,GAAsB,IAAZE,EAAkBuB,GAAUuB,OAAO,wBAJnB,IAOtC,EAIL,S","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/components/fragment-parser.js","webpack://openstack-uicore-foundation/./src/utils/methods.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"moment-timezone\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/external commonjs \"urijs\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/clock.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","\nexport default class FragmentParser {\n\n constructor(){\n this.originalHash = '';\n this.hash = {};\n }\n\n convertToHash(strHash)\n {\n strHash = strHash.substr(1).toLowerCase();\n let params = strHash.split('&');\n let res = {};\n for(let param of params)\n {\n param = param.split('=');\n if(param.length !== 2) continue;\n let val = param[1].trim();\n if(val === '') continue;\n\n if (val === 'true' || val === 'false')\n param[1] = val == 'true';\n\n res[param[0]] = param[1];\n }\n return res;\n }\n\n clearParams(){\n this.originalHash = '';\n this.hash = {};\n }\n\n getParam(key){\n if(typeof window !== 'undefined' && this.originalHash !== window.location.hash){\n this.originalHash = window.location.hash;\n this.hash = this.convertToHash(this.originalHash);\n }\n\n if(!this.hash.hasOwnProperty(key) ) return null;\n return this.hash[key];\n }\n\n getParams(){\n if(typeof window !== 'undefined' && this.originalHash !== window.location.hash){\n this.originalHash = window.location.hash;\n this.hash = this.convertToHash(this.originalHash);\n }\n\n return { ... this.hash };\n }\n\n deleteParam(param){\n var hash = this.getParams();\n this.clearParams();\n for(let key in hash) {\n if(key == param) continue;\n this.hash[key] = hash[key];\n }\n }\n\n deleteParams(params){\n var hash = this.getParams();\n this.clearParams();\n for(let key in hash) {\n if(params.includes(key)) continue;\n this.hash[key] = hash[key];\n }\n }\n\n setParam(key, value){\n if(typeof window !== 'undefined' && this.originalHash !== window.location.hash){\n this.originalHash = window.location.hash;\n this.hash = this.convertToHash(this.originalHash);\n }\n if(value !== null && value !== '')\n this.hash[key] = value;\n else\n delete this.hash[key];\n return this;\n }\n\n serialize(){\n let res = '';\n for(let key in this.hash)\n {\n let val = this.hash[key];\n if(res !== '') res += '&';\n res += key+'='+val;\n }\n return res;\n }\n}\n","/**\n * Copyright 2018 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\n\nimport moment from 'moment-timezone';\nimport URI from \"urijs\";\n\nexport const findElementPos = (obj) => {\n var curtop = -70;\n if (obj.offsetParent) {\n do {\n curtop += obj.offsetTop;\n } while (obj = obj.offsetParent);\n return [curtop];\n }\n};\n\nexport const epochToMoment = (atime) => {\n if(!atime) return atime;\n atime = atime * 1000;\n return moment(atime);\n};\n\nexport const epochToMomentTimeZone = (atime, time_zone) => {\n if(!atime) return atime;\n atime = atime * 1000;\n return moment(atime).tz(time_zone);\n};\n\nexport const formatEpoch = (atime, format = 'M/D/YYYY h:mm a') => {\n if(!atime) return atime;\n return epochToMoment(atime).format(format);\n};\n\nexport const parseLocationHour = (hour) => {\n let parsedHour = hour.toString();\n if(parsedHour.length < 4) parsedHour = `0${parsedHour}`;\n parsedHour = parsedHour.match(/.{2}/g);\n parsedHour = parsedHour.join(':');\n return parsedHour;\n}\n\nexport const objectToQueryString = (obj) => {\n var str = \"\";\n for (var key in obj) {\n if (str != \"\") {\n str += \"&\";\n }\n str += key + \"=\" + encodeURIComponent(obj[key]);\n }\n\n return str;\n};\n\nexport const getBackURL = () => {\n let url = URI(window.location.href);\n let query = url.search(true);\n let fragment = url.fragment();\n let backUrl = query.hasOwnProperty('BackUrl') ? query['BackUrl'] : null;\n if(fragment != null && fragment != ''){\n backUrl += `#${fragment}`;\n }\n return backUrl;\n};\n\nexport const toSlug = (text) =>{\n text = text.toLowerCase();\n return text.replace(/[^a-zA-Z0-9]+/g,'_');\n}\n\nexport const getAuthCallback = () => {\n if(typeof window !== 'undefined') {\n return `${window.location.origin}/auth/callback`;\n }\n return null;\n};\n\nexport const getCurrentLocation = () => {\n let location = '';\n if(typeof window !== 'undefined') {\n location = window.location;\n // check if we are on iframe\n if (window.top)\n location = window.top.location;\n }\n return location;\n};\n\nexport const getOrigin = () => {\n if(typeof window !== 'undefined') {\n return window.location.origin;\n }\n return null;\n};\n\nexport const getCurrentPathName = () => {\n if(typeof window !== 'undefined') {\n return window.location.pathname;\n }\n return null;\n};\n\nexport const getCurrentHref = () => {\n if(typeof window !== 'undefined') {\n return window.location.href;\n }\n return null;\n};\n\nexport const getAllowedUserGroups = () => {\n if(typeof window !== 'undefined') {\n return window.ALLOWED_USER_GROUPS || '';\n }\n return null;\n};\n\nexport const buildAPIBaseUrl = (relativeUrl) => {\n if(typeof window !== 'undefined'){\n return `${window.API_BASE_URL}${relativeUrl}`;\n }\n return null``;\n};\n\nexport const putOnLocalStorage = (key, value) => {\n if(typeof window !== 'undefined') {\n window.localStorage.setItem(key, value);\n }\n};\n\nexport const getFromLocalStorage = (key, removeIt) => {\n if(typeof window !== 'undefined') {\n let val = window.localStorage.getItem(key);\n if(removeIt){\n console.log(`getFromLocalStorage removing key ${key}`);\n removeFromLocalStorage(key);\n }\n return val;\n }\n return null;\n};\n\nexport const removeFromLocalStorage = (key) => {\n if(typeof window !== 'undefined') {\n window.localStorage.removeItem(key);\n }\n}\n\nexport const isClearingSessionState = () => {\n if(typeof window !== 'undefined') {\n return window.clearing_session_state;\n }\n return false;\n};\n\nexport const setSessionClearingState = (val) => {\n if(typeof window !== 'undefined') {\n window.clearing_session_state = val;\n }\n};\n\nexport const getCurrentUserLanguage = () => {\n let language = 'en';\n if(typeof navigator !== 'undefined') {\n language = (navigator.languages && navigator.languages[0]) || navigator.language || navigator.userLanguage;\n }\n return language;\n};\n\nexport const scrollToError = (errors) => {\n if(Object.keys(errors).length > 0) {\n const firstError = Object.keys(errors)[0];\n const firstNode = document.getElementById(firstError);\n if (firstNode) window.scrollTo(0, findElementPos(firstNode));\n }\n};\n\nexport const hasErrors = (field, errors) => {\n if(field in errors) {\n return errors[field];\n }\n return '';\n};\n\nexport const shallowEqual = (object1, object2) => {\n const keys1 = Object.keys(object1);\n const keys2 = Object.keys(object2);\n\n if (keys1.length !== keys2.length) {\n return false;\n }\n\n for (let key of keys1) {\n if (object1[key] !== object2[key]) {\n return false;\n }\n }\n\n return true;\n};\n\nexport const arraysEqual = (a1, a2) =>\n a1.length === a2.length && a1.every((o, idx) => shallowEqual(o, a2[idx]));\n\nexport const isEmpty = (obj) => {\n return Object.keys(obj).length === 0;\n};\n\n\nexport const base64URLEncode = (str) => {\n return str\n .toString('base64')\n .replace(/\\+/g, '-')\n .replace(/\\//g, '_')\n .replace(/=/g, '')\n}\n\nexport const retryPromise = async (\n cb,\n maxNumberOfRetries = 3\n) => {\n for (let i = 0; i < maxNumberOfRetries; i++) {\n if (await cb()) {\n return true;\n }\n }\n\n return false;\n}\n\nexport const getTimeServiceUrl = () => {\n if(typeof window !== 'undefined') {\n return window.TIMEINTERVALSINCE1970_API_URL || process.env.TIMEINTERVALSINCE1970_API_URL;\n }\n return null;\n};\n\nexport const getEventLocation = (event, summitVenueCount, summitShowLocDate = null, nowUtc = null) => {\n const shouldShowVenues = (summitShowLocDate && nowUtc) ? summitShowLocDate * 1000 < nowUtc : true;\n const locationName = [];\n const { location } = event;\n \n if (!shouldShowVenues) return 'TBA';\n \n if (!location) return 'TBA';\n \n if (summitVenueCount > 1 && location.venue?.name) locationName.push(location.venue.name);\n if (location.floor?.name) locationName.push(location.floor.name);\n if (location.name) locationName.push(location.name);\n \n return locationName.length > 0 ? locationName.join(' - ') : 'TBA';\n};\n\nexport const getEventHosts = (event) => {\n let hosts = [];\n if (event.speakers?.length > 0) {\n hosts = [...event.speakers];\n }\n if (event.moderator) hosts.push(event.moderator);\n \n return hosts;\n};\n\nconst loadImage = async url => {\n const img = document.createElement('img')\n img.src = url\n img.crossOrigin = 'anonymous'\n \n return new Promise((resolve, reject) => {\n img.onload = () => resolve(img)\n img.onerror = reject\n })\n}\n\nexport const convertSVGtoImg = async (svgUrl) => {\n const img = await loadImage(svgUrl)\n const newWidth = 100\n const newHeight = Math.floor(img.naturalHeight * 100 / img.naturalWidth)\n \n const canvas = document.createElement('canvas')\n canvas.width = newWidth\n canvas.height = newHeight\n canvas.getContext('2d').drawImage(img, 0, 0, newWidth, newHeight)\n \n const url = await canvas.toDataURL(`image/png`, 1.0)\n console.log(url, newWidth, newHeight);\n return {url, width: newWidth, height: newHeight}\n}\n","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"moment-timezone\");","module.exports = require(\"react\");","module.exports = require(\"urijs\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Copyright 2020 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\nimport React from 'react';\nimport moment from \"moment-timezone\";\nimport FragmentParser from \"./fragment-parser\";\nimport {getTimeServiceUrl} from '../utils/methods';\n\n/**\n * class Clock\n */\nclass Clock extends React.Component {\n\n constructor(props) {\n super(props);\n this.fragmentParser = new FragmentParser();\n this.interval = null;\n this.state = {\n timestamp: null,\n manualSet : false,\n }\n this._isMounted = false;\n this.onVisibilityChange = this.onVisibilityChange.bind(this);\n }\n\n /**\n * @param response\n * @param localBefore\n */\n processServerTimeResponse = (response, localBefore) => {\n const localAfter = moment().unix();\n let timestamp = localAfter;\n if (response) {\n timestamp = response.timestamp + (localAfter - localBefore);\n }\n if(this._isMounted) {\n console.log(`Clock::processServerTimeResponse setting timestamp ${timestamp}`)\n this.setState({timestamp});\n }\n if(this.props.onTick)\n this.props.onTick(timestamp);\n }\n\n processServerTimeResponseError = () => {\n const localAfter = moment().unix();\n let timestamp = localAfter;\n if(this._isMounted) {\n console.log(`Clock::processServerTimeResponseError setting timestamp ${timestamp}`)\n this.setState({timestamp});\n }\n if(this.props.onTick)\n this.props.onTick(timestamp);\n }\n\n componentDidMount() {\n this._isMounted = true;\n const {timezone = 'UTC', now} = this.props;\n const nowQS = this.fragmentParser.getParam('now');\n const momentQS = moment.tz(nowQS, 'YYYY-MM-DD,hh:mm:ss', timezone);\n let timestamp = null;\n let manualSet = false;\n if (momentQS.isValid()) {\n timestamp = momentQS.valueOf() / 1000;\n console.log(`Clock::componentDidMount nowQS ${nowQS} is valid setting timestamp ${timestamp}`);\n manualSet = true;\n } else if (now) {\n timestamp = now\n } else {\n const localBefore = moment().unix();\n this.getServerTime()\n .then((response) => this.processServerTimeResponse(response, localBefore))\n .catch(() => this.processServerTimeResponseError())\n }\n\n if(timestamp) {\n this.setState({timestamp, manualSet});\n if(this.props.onTick)\n this.props.onTick(timestamp);\n }\n\n this.interval = setInterval(this.tick, 1000);\n document.addEventListener(\"visibilitychange\", this.onVisibilityChange, false)\n }\n\n onVisibilityChange() {\n const visibilityState = document.visibilityState;\n const {manualSet} = this.state;\n if (visibilityState === \"visible\") {\n console.log(`Clock::onVisibilityChange manualSet ${manualSet}`)\n if(manualSet) return;\n const localBefore = moment().unix();\n this.getServerTime()\n .then((response) => this.processServerTimeResponse(response, localBefore))\n .catch(() => this.processServerTimeResponseError());\n }\n }\n\n componentWillUnmount() {\n this._isMounted = false;\n clearInterval(this.interval);\n document.removeEventListener(\"visibilitychange\", this.onVisibilityChange)\n this.interval = null;\n }\n\n getServerTime = () => {\n const timeServiceUrl = getTimeServiceUrl();\n return fetch(`${timeServiceUrl}`).then(async (response) => {\n if (response.status === 200) {\n return response.json();\n }\n return Promise.reject(null);\n })\n .catch(err => {\n console.log(err);\n return Promise.reject(err);\n });\n };\n\n tick = () => {\n const {timestamp} = this.state;\n if (timestamp !== null) {\n if(this.props.onTick)\n this.props.onTick(timestamp + 1);\n if(this._isMounted)\n this.setState({timestamp: timestamp + 1})\n }\n };\n\n // epoch utc time in seconds\n now = () => {\n return this.state.timestamp;\n };\n\n render() {\n const {display, timezone = 'UTC'} = this.props;\n const {timestamp} = this.state;\n\n if (!display || !timestamp) return null;\n\n return (\n <div style={{marginTop: '50px', textAlign: 'center', fontSize: '20px'}}>\n {moment.tz(timestamp * 1000, timezone).format('YYYY-MM-DD hh:mm:ss')}\n </div>\n );\n }\n\n}\n\nexport default Clock;\n"],"names":["root","factory","exports","module","define","amd","this","FragmentParser","constructor","originalHash","hash","convertToHash","strHash","params","substr","toLowerCase","split","res","param","length","val","trim","clearParams","getParam","key","window","location","hasOwnProperty","getParams","deleteParam","deleteParams","includes","setParam","value","serialize","getTimeServiceUrl","TIMEINTERVALSINCE1970_API_URL","process","env","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","o","Object","defineProperty","enumerable","get","obj","prop","prototype","call","r","Symbol","toStringTag","Clock","React","props","super","response","localBefore","localAfter","moment","unix","timestamp","_isMounted","console","log","setState","onTick","timeServiceUrl","fetch","then","async","status","json","Promise","reject","catch","err","state","fragmentParser","interval","manualSet","onVisibilityChange","bind","componentDidMount","timezone","now","nowQS","momentQS","isValid","valueOf","getServerTime","processServerTimeResponse","processServerTimeResponseError","setInterval","tick","document","addEventListener","visibilityState","componentWillUnmount","clearInterval","removeEventListener","render","display","style","marginTop","textAlign","fontSize","format"],"sourceRoot":""}
@@ -1,151 +1,2 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
4
- else if(typeof define === 'function' && define.amd)
5
- define("openstack-uicore-foundation", [], factory);
6
- else if(typeof exports === 'object')
7
- exports["openstack-uicore-foundation"] = factory();
8
- else
9
- root["openstack-uicore-foundation"] = factory();
10
- })(this, () => {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ "use strict";
13
- /******/ var __webpack_modules__ = ({
14
-
15
- /***/ "react":
16
- /*!************************!*\
17
- !*** external "react" ***!
18
- \************************/
19
- /***/ ((module) => {
20
-
21
- module.exports = require("react");
22
-
23
- /***/ })
24
-
25
- /******/ });
26
- /************************************************************************/
27
- /******/ // The module cache
28
- /******/ var __webpack_module_cache__ = {};
29
- /******/
30
- /******/ // The require function
31
- /******/ function __webpack_require__(moduleId) {
32
- /******/ // Check if module is in cache
33
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
34
- /******/ if (cachedModule !== undefined) {
35
- /******/ return cachedModule.exports;
36
- /******/ }
37
- /******/ // Create a new module (and put it into the cache)
38
- /******/ var module = __webpack_module_cache__[moduleId] = {
39
- /******/ // no module.id needed
40
- /******/ // no module.loaded needed
41
- /******/ exports: {}
42
- /******/ };
43
- /******/
44
- /******/ // Execute the module function
45
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
46
- /******/
47
- /******/ // Return the exports of the module
48
- /******/ return module.exports;
49
- /******/ }
50
- /******/
51
- /************************************************************************/
52
- /******/ /* webpack/runtime/compat get default export */
53
- /******/ (() => {
54
- /******/ // getDefaultExport function for compatibility with non-harmony modules
55
- /******/ __webpack_require__.n = (module) => {
56
- /******/ var getter = module && module.__esModule ?
57
- /******/ () => (module['default']) :
58
- /******/ () => (module);
59
- /******/ __webpack_require__.d(getter, { a: getter });
60
- /******/ return getter;
61
- /******/ };
62
- /******/ })();
63
- /******/
64
- /******/ /* webpack/runtime/define property getters */
65
- /******/ (() => {
66
- /******/ // define getter functions for harmony exports
67
- /******/ __webpack_require__.d = (exports, definition) => {
68
- /******/ for(var key in definition) {
69
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
70
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
71
- /******/ }
72
- /******/ }
73
- /******/ };
74
- /******/ })();
75
- /******/
76
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
77
- /******/ (() => {
78
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
79
- /******/ })();
80
- /******/
81
- /******/ /* webpack/runtime/make namespace object */
82
- /******/ (() => {
83
- /******/ // define __esModule on exports
84
- /******/ __webpack_require__.r = (exports) => {
85
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
86
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
87
- /******/ }
88
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
89
- /******/ };
90
- /******/ })();
91
- /******/
92
- /************************************************************************/
93
- var __webpack_exports__ = {};
94
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
95
- (() => {
96
- /*!*********************************************!*\
97
- !*** ./src/components/exclusive-wrapper.js ***!
98
- \*********************************************/
99
- __webpack_require__.r(__webpack_exports__);
100
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
101
- /* harmony export */ "default": () => (/* binding */ Exclusive)
102
- /* harmony export */ });
103
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
104
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
105
- /**
106
- * Copyright 2019 OpenStack Foundation
107
- * Licensed under the Apache License, Version 2.0 (the "License");
108
- * you may not use this file except in compliance with the License.
109
- * You may obtain a copy of the License at
110
- * http://www.apache.org/licenses/LICENSE-2.0
111
- * Unless required by applicable law or agreed to in writing, software
112
- * distributed under the License is distributed on an "AS IS" BASIS,
113
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
114
- * See the License for the specific language governing permissions and
115
- * limitations under the License.
116
- **/
117
-
118
- class Exclusive extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {
119
- constructor(props) {
120
- super(props);
121
- this.showField = this.showField.bind(this);
122
- }
123
-
124
- showField() {
125
- let {
126
- name
127
- } = this.props;
128
- let exclusiveSections = window.EXCLUSIVE_SECTIONS;
129
- return exclusiveSections ? exclusiveSections.includes(name) : false;
130
- }
131
-
132
- render() {
133
- let {
134
- children
135
- } = this.props;
136
-
137
- if (this.showField()) {
138
- return children;
139
- }
140
-
141
- return null;
142
- }
143
-
144
- }
145
- })();
146
-
147
- /******/ return __webpack_exports__;
148
- /******/ })()
149
- ;
150
- });
151
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50cy9leGNsdXNpdmUtd3JhcHBlci5qcyIsIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxDQUFDO0FBQ0QsTzs7Ozs7Ozs7OztBQ1ZBOzs7Ozs7VUNBQTtVQUNBOztVQUVBO1VBQ0E7VUFDQTtVQUNBO1VBQ0E7VUFDQTtVQUNBO1VBQ0E7VUFDQTtVQUNBO1VBQ0E7VUFDQTtVQUNBOztVQUVBO1VBQ0E7O1VBRUE7V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CJiaW5kIiwibmFtZSIsImV4Y2x1c2l2ZVNlY3Rpb25zIiwid2luZG93IiwiRVhDTFVTSVZFX1NFQ1RJT05TIiwiaW5jbHVkZXMiLCJyZW5kZXIiLCJjaGlsZHJlbiJdLCJzb3VyY2VSb290IjoiIn0=
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],t):"object"==typeof exports?exports["openstack-uicore-foundation"]=t():e["openstack-uicore-foundation"]=t()}(this,(()=>(()=>{"use strict";var e={6689:e=>{e.exports=require("react")}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}(()=>{o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t}})(),(()=>{o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var r={};return(()=>{o.r(r),o.d(r,{default:()=>n});var e=o(6689),t=o.n(e);class n extends t().Component{constructor(e){super(e),this.showField=this.showField.bind(this)}showField(){let{name:e}=this.props,t=window.EXCLUSIVE_SECTIONS;return!!t&&t.includes(e)}render(){let{children:e}=this.props;return this.showField()?e:null}}})(),r})()));
2
+ //# sourceMappingURL=exclusive-wrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components/exclusive-wrapper.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,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,YACEQ,EAGJ,IAEV,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/exclusive-wrapper.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Copyright 2019 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\n\nimport React from 'react'\n\n\nexport default class Exclusive extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.showField = this.showField.bind(this);\n }\n\n showField() {\n let {name} = this.props;\n let exclusiveSections = window.EXCLUSIVE_SECTIONS;\n\n return exclusiveSections ? exclusiveSections.includes(name) : false;\n }\n\n render() {\n let {children} = this.props;\n\n if (this.showField()) {\n return children;\n }\n\n return null;\n\n }\n}\n"],"names":["root","factory","exports","module","define","amd","this","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","Exclusive","React","constructor","props","super","showField","bind","name","exclusiveSections","window","EXCLUSIVE_SECTIONS","includes","render","children"],"sourceRoot":""}