cob-cli 2.25.0 → 2.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cob-cli.js +3 -1
- package/bin/handleAutoComplete.js +1 -4
- package/lib/commands/customize.js +213 -66
- package/package.json +3 -2
- package/.vscode/launch.json +0 -106
- package/customizations/backend.email.js +0 -10
- package/customizations/backend.js +0 -14
- package/customizations/backend.updateField.js +0 -11
- package/customizations/backend.vuepress.js +0 -35
- package/customizations/dashboard.dash.js +0 -14
- package/customizations/dashboard.js +0 -14
- package/customizations/dashboard.simple.js +0 -12
- package/customizations/dashboard.vue.empty.js +0 -12
- package/customizations/dashboard.vue.grid.js +0 -10
- package/customizations/dashboard.vue.js +0 -14
- package/customizations/dashboard.vue.menuAndGrid.js +0 -10
- package/customizations/frontend.common.js +0 -16
- package/customizations/frontend.easy.js +0 -16
- package/customizations/frontend.formatList.currency.js +0 -17
- package/customizations/frontend.formatList.js +0 -13
- package/customizations/frontend.js +0 -14
- package/customizations/importer.js +0 -10
- package/customizations/keywords.audit.js +0 -18
- package/customizations/keywords.calc.js +0 -18
- package/customizations/keywords.image.js +0 -16
- package/customizations/keywords.js +0 -17
- package/customizations/keywords.kibana.js +0 -16
- package/customizations/keywords.log.js +0 -18
- package/customizations/keywords.styleResults.js +0 -18
- package/templates/backend/vuepress/integrationm/actions/getVuePressDoc.groovy +0 -74
- package/templates/backend/vuepress/integrationm/actions/getVuePressSidebarConfig.groovy +0 -42
- package/templates/backend/vuepress/integrationm/actions/getVuePressSidebarRootElements.groovy +0 -17
- package/templates/backend/vuepress/others/vuepress/definition_contents_v234.json +0 -619
- package/templates/backend/vuepress/others/vuepress/nginx/README.md +0 -28
- package/templates/backend/vuepress/others/vuepress/package-lock.json +0 -29656
- package/templates/backend/vuepress/others/vuepress/package.json +0 -24
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/DescriptVideo.vue +0 -22
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/Graph.vue +0 -124
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/ReadingTime.vue +0 -26
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/References.vue +0 -228
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/RestrictedContent.vue +0 -77
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/config.js +0 -101
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/config.json +0 -31
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/enhanceApp.js +0 -14
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/nav/getNavTranslated.js +0 -52
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/plugins/References.js +0 -96
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/public/Logo-Cult-of-Bits-400x400-1.png +0 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/public/favicon-cob.png +0 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/public/logo.png +0 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/styles/index.styl +0 -39
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/styles/palette.styl +0 -17
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/LICENSE +0 -21
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/README.md +0 -11
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/AlgoliaSearchBox.vue +0 -172
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/DropdownLink.vue +0 -252
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/DropdownTransition.vue +0 -33
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/Home.vue +0 -134
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/NavLink.vue +0 -98
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/NavLinks.vue +0 -165
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/Navbar.vue +0 -140
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/Page.vue +0 -31
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/PageEdit.vue +0 -119
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/PageNav.vue +0 -163
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/Sidebar.vue +0 -64
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/SidebarButton.vue +0 -40
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/SidebarGroup.vue +0 -144
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/SidebarLink.vue +0 -140
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/SidebarLinks.vue +0 -114
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/global-components/Badge.vue +0 -44
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/global-components/CodeBlock.vue +0 -41
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/global-components/CodeGroup.vue +0 -120
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/index.js +0 -59
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/layouts/404.vue +0 -30
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/layouts/Layout.vue +0 -151
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/noopModule.js +0 -1
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/package.json +0 -44
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/arrow.styl +0 -22
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/code.styl +0 -137
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/config.styl +0 -1
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/custom-blocks.styl +0 -44
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/index.styl +0 -202
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/mobile.styl +0 -37
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/toc.styl +0 -3
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/wrapper.styl +0 -10
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/util/index.js +0 -244
- package/templates/dashboards/cob-dashboard-html/demoDashboard.html +0 -18
- package/templates/dashboards/cob-dashboard-vue/package-lock.json +0 -25020
- package/templates/dashboards/cob-dashboard-vue/package.json +0 -21
- package/templates/dashboards/cob-dashboard-vue/src/App.vue +0 -26
- package/templates/dashboards/cob-dashboard-vue/src/dashboard.html +0 -31
- package/templates/dashboards/cob-dashboard-vue/src/main.js +0 -12
- package/templates/dashboards/cob-dashboard-vue/src/plugins/cobUiVueComponents.js +0 -6
- package/templates/dashboards/cob-dashboard-vue/src/plugins/vuetify.js +0 -9
- package/templates/dashboards/cob-dashboard-vue/vue.config.js +0 -104
- package/templates/dashboards/dash/dist/css/app.7b16c01a.css +0 -11
- package/templates/dashboards/dash/dist/dashboard.html +0 -25
- package/templates/dashboards/dash/dist/fonts/fa-brands-400.a78ffbbe.ttf +0 -0
- package/templates/dashboards/dash/dist/fonts/fa-brands-400.cd2b4095.woff2 +0 -0
- package/templates/dashboards/dash/dist/fonts/fa-regular-400.b1a1bebb.ttf +0 -0
- package/templates/dashboards/dash/dist/fonts/fa-regular-400.e8a1ba41.woff2 +0 -0
- package/templates/dashboards/dash/dist/fonts/fa-solid-900.55b416a8.woff2 +0 -0
- package/templates/dashboards/dash/dist/fonts/fa-solid-900.73820155.ttf +0 -0
- package/templates/dashboards/dash/dist/fonts/fa-v4compatibility.0d6f5f18.ttf +0 -0
- package/templates/dashboards/dash/dist/fonts/fa-v4compatibility.786e6b33.woff2 +0 -0
- package/templates/dashboards/dash/dist/js/app.13b950c8.js +0 -199
- package/templates/dashboards/dash/dist/js/app.13b950c8.js.map +0 -1
- package/templates/dashboards/dash/package-lock.json +0 -22646
- package/templates/dashboards/dash/package.json +0 -27
- package/templates/dashboards/dash/src/App.vue +0 -124
- package/templates/dashboards/dash/src/assets/css/all.min.css +0 -6
- package/templates/dashboards/dash/src/assets/webfonts/fa-brands-400.ttf +0 -0
- package/templates/dashboards/dash/src/assets/webfonts/fa-brands-400.woff2 +0 -0
- package/templates/dashboards/dash/src/assets/webfonts/fa-regular-400.ttf +0 -0
- package/templates/dashboards/dash/src/assets/webfonts/fa-regular-400.woff2 +0 -0
- package/templates/dashboards/dash/src/assets/webfonts/fa-solid-900.ttf +0 -0
- package/templates/dashboards/dash/src/assets/webfonts/fa-solid-900.woff2 +0 -0
- package/templates/dashboards/dash/src/assets/webfonts/fa-v4compatibility.ttf +0 -0
- package/templates/dashboards/dash/src/assets/webfonts/fa-v4compatibility.woff2 +0 -0
- package/templates/dashboards/dash/src/collector.js +0 -222
- package/templates/dashboards/dash/src/components/Attention.vue +0 -30
- package/templates/dashboards/dash/src/components/Board.vue +0 -35
- package/templates/dashboards/dash/src/components/Calendar.vue +0 -422
- package/templates/dashboards/dash/src/components/Dashboard.vue +0 -27
- package/templates/dashboards/dash/src/components/Filter.vue +0 -68
- package/templates/dashboards/dash/src/components/Kibana.vue +0 -138
- package/templates/dashboards/dash/src/components/Label.vue +0 -15
- package/templates/dashboards/dash/src/components/Menu.vue +0 -44
- package/templates/dashboards/dash/src/components/Totals.vue +0 -49
- package/templates/dashboards/dash/src/components/TotalsValue.vue +0 -59
- package/templates/dashboards/dash/src/components/shared/Instance.vue +0 -64
- package/templates/dashboards/dash/src/components/shared/Waiting.vue +0 -25
- package/templates/dashboards/dash/src/dashboard.html +0 -39
- package/templates/dashboards/dash/src/definition_dashboard_v0.json +0 -924
- package/templates/dashboards/dash/src/definition_dashboard_v1.json +0 -1
- package/templates/dashboards/dash/src/input.css +0 -9
- package/templates/dashboards/dash/src/main.js +0 -11
- package/templates/dashboards/dash/src/model/ComponentStatePersistence.js +0 -66
- package/templates/dashboards/dash/src/output.css +0 -314245
- package/templates/dashboards/dash/src/test_collector.js +0 -3719
- package/templates/dashboards/dash/src/utils/EsInstanceUtils.js +0 -8
- package/templates/dashboards/dash/tailwind.config.js +0 -12
- package/templates/dashboards/dash/vue.config.js +0 -104
- package/templates/frontend/common/templates/frontend/common/css/_dualColumn.css +0 -46
- package/templates/frontend/common/templates/frontend/common/css/_global.css +0 -19
- package/templates/frontend/common/templates/frontend/common/css/_hidden.css +0 -13
- package/templates/frontend/common/templates/frontend/common/css/_history.css +0 -13
- package/templates/frontend/common/templates/frontend/common/css/_mobile.css +0 -125
- package/templates/frontend/common/templates/frontend/common/css/customizations.__MERGE__.css +0 -5
- package/templates/frontend/common/templates/frontend/common/js/cob/_disable_save_onSubdetail.js +0 -11
- package/templates/frontend/common/templates/frontend/common/js/cob/_group_references.js +0 -22
- package/templates/frontend/common/templates/frontend/common/js/cob/_show_hidden.js +0 -35
- package/templates/frontend/common/templates/frontend/common/js/customizations2.__MERGE__.js +0 -3
- package/templates/frontend/common/templates/frontend/common/package.json +0 -3
- package/templates/frontend/easy/css/_easy/googlefonts.css +0 -360
- package/templates/frontend/easy/css/_easy/vuetify.cob-scoped.css +0 -10488
- package/templates/frontend/easy/js/_easy/lib/axios.min.js +0 -9
- package/templates/frontend/easy/js/_easy/lib/marked.min.js +0 -6
- package/templates/frontend/easy/js/_easy/lib/vue.js +0 -11912
- package/templates/frontend/easy/js/_easy/lib/vue.min.js +0 -6
- package/templates/frontend/easy/js/_easy/lib/vuetify.min.js +0 -6
- package/templates/frontend/easy/js/customizations2.__MERGE__.js +0 -22
- package/templates/frontend/easy/webapp/.browserslistrc +0 -2
- package/templates/frontend/easy/webapp/.eslintrc.js +0 -17
- package/templates/frontend/easy/webapp/README.md +0 -60
- package/templates/frontend/easy/webapp/babel.config.js +0 -5
- package/templates/frontend/easy/webapp/dist/css/app.a4fb91f8.css +0 -1
- package/templates/frontend/easy/webapp/dist/dashboard.html +0 -13
- package/templates/frontend/easy/webapp/dist/js/app.63a57dcd.js +0 -2
- package/templates/frontend/easy/webapp/dist/js/app.63a57dcd.js.map +0 -1
- package/templates/frontend/easy/webapp/package-lock.json +0 -32986
- package/templates/frontend/easy/webapp/package.json +0 -32
- package/templates/frontend/easy/webapp/postcss.config.js +0 -5
- package/templates/frontend/easy/webapp/public/dashboard.html +0 -13
- package/templates/frontend/easy/webapp/src/App.vue +0 -181
- package/templates/frontend/easy/webapp/src/assets/logo.png +0 -0
- package/templates/frontend/easy/webapp/src/components/HelloWorld.vue +0 -59
- package/templates/frontend/easy/webapp/src/components/PermBuilder.vue +0 -163
- package/templates/frontend/easy/webapp/src/components/PlanExecutor.vue +0 -225
- package/templates/frontend/easy/webapp/src/components/ProductPermBuilder.vue +0 -95
- package/templates/frontend/easy/webapp/src/components/RmDefinitionChooser.vue +0 -59
- package/templates/frontend/easy/webapp/src/components/RmDomainChooser.vue +0 -60
- package/templates/frontend/easy/webapp/src/components/RoleBuilder.vue +0 -73
- package/templates/frontend/easy/webapp/src/main.js +0 -19
- package/templates/frontend/easy/webapp/src/perm-templates.js +0 -189
- package/templates/frontend/easy/webapp/src/perms.js +0 -197
- package/templates/frontend/easy/webapp/vue.config.js +0 -66
- package/templates/frontend/formatList/currency/css/_format_currency.css +0 -11
- package/templates/frontend/formatList/currency/css/customizations.__MERGE__.css +0 -1
- package/templates/frontend/formatList/currency/js/cob/_format_currency.js +0 -11
- package/templates/frontend/formatList/currency/js/customizations2.__MERGE__.js +0 -1
- package/templates/frontend/formatList/currency/package.json +0 -3
- package/templates/gitignore +0 -14
- package/templates/keywords/audit/backend/scripts/_audit.groovy +0 -78
- package/templates/keywords/audit/frontend/js/cob/_audit.js +0 -24
- package/templates/keywords/audit/frontend/js/customizations2.__MERGE__.js +0 -1
- package/templates/keywords/audit/package.json +0 -3
- package/templates/keywords/calc/backend/scripts/_calc.groovy +0 -151
- package/templates/keywords/calc/frontend/js/cob/_calc.js +0 -193
- package/templates/keywords/calc/frontend/js/customizations2.__MERGE__.js +0 -1
- package/templates/keywords/calc/package.json +0 -3
- package/templates/keywords/image/frontend/js/cob/_image.js +0 -30
- package/templates/keywords/image/frontend/js/customizations2.__MERGE__.js +0 -1
- package/templates/keywords/image/package.json +0 -3
- package/templates/keywords/kibana/frontend/js/cob/_kibana.js +0 -58
- package/templates/keywords/kibana/frontend/js/customizations2.__MERGE__.js +0 -1
- package/templates/keywords/kibana/package.json +0 -3
- package/templates/keywords/log/backend/scripts/_log.groovy +0 -95
- package/templates/keywords/log/frontend/css/_log.css +0 -5
- package/templates/keywords/log/frontend/css/customizations.__MERGE__.css +0 -1
- package/templates/keywords/log/package.json +0 -3
- package/templates/keywords/styleResults/frontend/css/_styleResults.css +0 -86
- package/templates/keywords/styleResults/frontend/css/customizations.__MERGE__.css +0 -1
- package/templates/keywords/styleResults/frontend/js/cob/_styleResults.js +0 -38
- package/templates/keywords/styleResults/frontend/js/customizations2.__MERGE__.js +0 -1
- package/templates/keywords/styleResults/package.json +0 -3
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":null,"name":"Dashboard_v1","description":null,"duplicable":null,"state":"enabled","fieldDefinitions":[{"id":null,"name":"Dashboard Info","required":null,"description":"$group","condition":null,"duplicable":false,"fields":[],"order":0,"restricted":false,"rootField":true,"defaultValue":null},{"id":null,"name":"Name","required":null,"description":"$expanded $instanceLabel","condition":null,"duplicable":false,"fields":[],"order":1,"restricted":false,"rootField":true,"defaultValue":null},{"id":null,"name":"DashboardCustomize","required":null,"description":"$[Classes,Image,Width,Grid,Access] $multiple $help[Select the defaults to change] $style[hide] ","condition":null,"duplicable":false,"fields":[{"id":null,"name":"DashboardClasses","required":null,"description":"$default(h-full bg-cover bg-center overflow-auto p-3) Default: h-full bg-cover bg-center overflow-auto p-3","condition":"=Classes","duplicable":false,"fields":[],"order":3,"restricted":false,"rootField":false,"defaultValue":"h-full bg-cover bg-center overflow-auto p-3"},{"id":null,"name":"Image","required":null,"description":"$file Default:none","condition":"=Image","duplicable":false,"fields":[],"order":4,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"Width","required":null,"description":"Default: max-w-6xl mx-auto ","condition":"=Width","duplicable":false,"fields":[],"order":5,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"Grid","required":null,"description":"$default(grid grid-flow-row-dense md:grid-cols-12) Default: grid grid-flow-row-dense md:grid-cols-12","condition":"=Grid","duplicable":false,"fields":[],"order":6,"restricted":false,"rootField":false,"defaultValue":"grid grid-flow-row-dense md:grid-cols-12"},{"id":null,"name":"GroupAccess","required":null,"description":"$instanceDescription Group allowed to access this dashboard","condition":"=Access","duplicable":true,"fields":[],"order":7,"restricted":false,"rootField":false,"defaultValue":null}],"order":2,"restricted":false,"rootField":true,"defaultValue":null},{"id":null,"name":"URL","required":null,"description":"$link $auto.text(id).join('/recordm/index.html#/cob.custom-resource/',id,'/dash') $instanceDescription","condition":null,"duplicable":false,"fields":[],"order":8,"restricted":false,"rootField":true,"defaultValue":null},{"id":null,"name":"Boards","required":null,"description":"$group","condition":null,"duplicable":false,"fields":[],"order":9,"restricted":false,"rootField":true,"defaultValue":null},{"id":null,"name":"Board","required":null,"description":null,"condition":null,"duplicable":true,"fields":[{"id":null,"name":"BoardCustomize","required":null,"description":"$[Classes,Image] $multiple $help[Select the defaults to change] $style[hide] ","condition":null,"duplicable":false,"fields":[{"id":null,"name":"BoardClasses","required":null,"description":"$default(col-span-12 md:col-span-4 rounded-md border border-gray-300 bg-white bg-opacity-70 p-4 m-1) Default:col-span-12 md:col-span-4 rounded-md border border-gray-300 bg-white bg-opacity-70 p-4 m-1","condition":"=Classes","duplicable":false,"fields":[],"order":12,"restricted":false,"rootField":false,"defaultValue":"col-span-12 md:col-span-4 rounded-md border border-gray-300 bg-white bg-opacity-70 p-4 m-1"},{"id":null,"name":"Image","required":null,"description":"$file Default: none","condition":"=Image","duplicable":false,"fields":[],"order":13,"restricted":false,"rootField":false,"defaultValue":null}],"order":11,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"Component","required":null,"description":"$[Label,Menu,Totals,Kibana,Filter,Calendar] $instanceDescription $style[singleColumn] ","condition":null,"duplicable":true,"fields":[{"id":null,"name":"LabelCustomize","required":null,"description":"$[Classes,Image] $multiple $help[Select the defaults to change] $style[hide] ","condition":"=Label","duplicable":false,"fields":[{"id":null,"name":"LabelClasses","required":null,"description":"$default(text-center font-bold pb-2) Default: text-center font-bold pb-2","condition":"=Classes","duplicable":false,"fields":[],"order":16,"restricted":false,"rootField":false,"defaultValue":"text-center font-bold pb-2"},{"id":null,"name":"Image","required":null,"description":"$file Default: none","condition":"=Image","duplicable":false,"fields":[],"order":17,"restricted":false,"rootField":false,"defaultValue":null}],"order":15,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"Label","required":null,"description":null,"condition":"=Label","duplicable":false,"fields":[],"order":18,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"MenuCustomize","required":null,"description":"$[Classes] $multiple $help[Select the defaults to change] $style[hide] ","condition":"=Menu","duplicable":false,"fields":[{"id":null,"name":"MenuClasses","required":null,"description":"$default(flex flex-col gap-y-2) Default: flex flex-col gap-y-2","condition":"=Classes","duplicable":false,"fields":[],"order":20,"restricted":false,"rootField":false,"defaultValue":"flex flex-col gap-y-2"}],"order":19,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"Text","required":null,"description":null,"condition":"=Menu","duplicable":true,"fields":[{"id":null,"name":"TextCustomize","required":null,"description":"$[Classes,Icon,Attention,Visibility] $multiple $help[Select the defaults to change] $style[hide] ","condition":null,"duplicable":false,"fields":[{"id":null,"name":"TextClasses","required":null,"description":"$default(transition ease-in-out duration-300 rounded-md border border-gray-300 border-l-2 border-l-sky-600 shadow-sm transform hover:translate-x-0.5 p-2) Default: transition ease-in-out duration-300 rounded-md border border-gray-300 border-l-2 border-l-sky-600 shadow-sm transform hover:translate-x-0.5 p-2","condition":"=Classes","duplicable":false,"fields":[],"order":23,"restricted":false,"rootField":false,"defaultValue":"transition ease-in-out duration-300 rounded-md border border-gray-300 border-l-2 border-l-sky-600 shadow-sm transform hover:translate-x-0.5 p-2"},{"id":null,"name":"Icon","required":null,"description":"Default: none Example: fa-solid fa-circle-chevron-left","condition":"=Icon","duplicable":false,"fields":[],"order":24,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"TextAttention","required":null,"description":"Crisis:<=-5, ActionableBad:-4 .. -1, No action Required:0, ActionableGood:1..4,Extraordinary:>=5","condition":"=Attention","duplicable":false,"fields":[],"order":25,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"GroupVisibility","required":null,"description":"Group allowed to view this menu line","condition":"=Visibility","duplicable":true,"fields":[],"order":26,"restricted":false,"rootField":false,"defaultValue":null}],"order":22,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"Link","required":null,"description":null,"condition":null,"duplicable":false,"fields":[],"order":27,"restricted":false,"rootField":false,"defaultValue":null}],"order":21,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"TotalsCustomize","required":null,"description":"$[Classes,InputVar] $multiple $help[Select the defaults to change] $style[hide] ","condition":"=Totals","duplicable":false,"fields":[{"id":null,"name":"TotalsClasses","required":null,"description":"$default(w-full table-auto) Default: w-full table-auto","condition":"=Classes","duplicable":false,"fields":[],"order":29,"restricted":false,"rootField":false,"defaultValue":"w-full table-auto"},{"id":null,"name":"InputVarTotals","required":null,"description":null,"condition":"=InputVar","duplicable":true,"fields":[],"order":30,"restricted":false,"rootField":false,"defaultValue":null}],"order":28,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"Line","required":null,"description":null,"condition":"=Totals","duplicable":true,"fields":[{"id":null,"name":"LineCustomize","required":null,"description":"$[LineClasses,TitleClasses] $multiple $help[Select the defaults to change] $style[hide] ","condition":null,"duplicable":false,"fields":[{"id":null,"name":"LineClasses","required":null,"description":"$default(text-right) Default: text-right","condition":"=LineClasses","duplicable":false,"fields":[],"order":33,"restricted":false,"rootField":false,"defaultValue":"text-right"},{"id":null,"name":"TitleClasses","required":null,"description":"$default(text-left p-2) Default: text-left p-2","condition":"=TitleClasses","duplicable":false,"fields":[],"order":34,"restricted":false,"rootField":false,"defaultValue":"text-left p-2"}],"order":32,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"Value","required":null,"description":"$[*Label,definitionCount,domainCount,fieldSum,fieldAverage,fieldWeightedAverage,dmEquipmentCount,link] ","condition":null,"duplicable":true,"fields":[{"id":null,"name":"ValueCustomize","required":null,"description":"$[Classes,View,Attention,AttentionClasses,Unit] $multiple $help[Select the defaults to change] $style[hide]","condition":null,"duplicable":false,"fields":[{"id":null,"name":"ValueClasses","required":null,"description":"$default(w-0 p-2) Default: w-0 p-2","condition":"=Classes","duplicable":false,"fields":[],"order":37,"restricted":false,"rootField":false,"defaultValue":"w-0 p-2"},{"id":null,"name":"View","required":null,"description":"Default: none","condition":"=View","duplicable":false,"fields":[],"order":38,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"ValueAttention","required":null,"description":"Crisis:<=-5, ActionableBad:-4 .. -1, No action Required:0, ActionableGood:1..4,Extraordinary:>=5","condition":"=Attention","duplicable":false,"fields":[],"order":39,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"ValueAttentionClasses","required":null,"description":"$default(fa-solid fa-circle pr-1 animate-pulse text-lg align-middle) Default: fa-solid fa-circle pr-1 animate-pulse text-lg align-middle","condition":"=AttentionClasses","duplicable":false,"fields":[],"order":40,"restricted":false,"rootField":false,"defaultValue":"fa-solid fa-circle pr-1 animate-pulse text-lg align-middle"},{"id":null,"name":"Unit","required":null,"description":null,"condition":"=Unit","duplicable":false,"fields":[],"order":41,"restricted":false,"rootField":false,"defaultValue":null}],"order":36,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"Arg","required":null,"description":null,"condition":null,"duplicable":true,"fields":[],"order":42,"restricted":false,"rootField":false,"defaultValue":null}],"order":35,"restricted":false,"rootField":false,"defaultValue":"Label"}],"order":31,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"KibanaCustomize","required":null,"description":"$[Classes,InputVar,OutputVar,Query] $multiple $help[Select the defaults to change] $style[hide] ","condition":"=Kibana","duplicable":false,"fields":[{"id":null,"name":"KibanaClasses","required":null,"description":null,"condition":"=Classes","duplicable":false,"fields":[],"order":44,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"InputVarKibana","required":null,"description":null,"condition":"=InputVar","duplicable":true,"fields":[],"order":45,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"OutputVarKibana","required":null,"description":null,"condition":"=OutputVar","duplicable":false,"fields":[],"order":46,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"InputQueryKibana","required":null,"description":"Atenção: espaços no Kibana são OR e não AND","condition":"=Query","duplicable":false,"fields":[],"order":47,"restricted":false,"rootField":false,"defaultValue":null}],"order":43,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"ShareLink","required":null,"description":null,"condition":"=Kibana","duplicable":false,"fields":[],"order":48,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"FilterCustomize","required":null,"description":"$[Classes,Type,Placeholder] $multiple $help[Select the defaults to change] $style[hide] ","condition":"=Filter","duplicable":false,"fields":[{"id":null,"name":"FilterClasses","required":null,"description":null,"condition":"=Classes","duplicable":false,"fields":[],"order":50,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"Type","required":null,"description":"$[Text,List,Date]","condition":"=Type","duplicable":false,"fields":[{"id":null,"name":"Alternatives","required":null,"description":null,"condition":"=List","duplicable":false,"fields":[],"order":52,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"DateFilterType","required":null,"description":null,"condition":"=Date","duplicable":false,"fields":[],"order":53,"restricted":false,"rootField":false,"defaultValue":null}],"order":51,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"Placeholder","required":null,"description":"$default(Pesquisar...) default: Pesquisar...","condition":"=Placeholder","duplicable":false,"fields":[],"order":54,"restricted":false,"rootField":false,"defaultValue":"Pesquisar..."}],"order":49,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"OutputVarFilter","required":null,"description":null,"condition":"=Filter","duplicable":false,"fields":[],"order":55,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"Query","required":null,"description":null,"condition":"=MD List","duplicable":false,"fields":[],"order":56,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"CalendarCustomize","required":null,"description":"$[Classes,InputVar,OutputVar,Settings] $multiple $help[Select the defaults to change] $style[hide] ","condition":"=Calendar","duplicable":false,"fields":[{"id":null,"name":"CalendarClasses","required":null,"description":null,"condition":"=Classes","duplicable":false,"fields":[],"order":58,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"InputVarCalendar","required":null,"description":null,"condition":"=InputVar","duplicable":true,"fields":[],"order":59,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"MaxVisibleDayEvents","required":null,"description":"$number(0) Specify the maximum number of events that will be visible before enabling the +more link. Set to -1 to list all events. Defaults to 3.","condition":"=Settings","duplicable":false,"fields":[],"order":60,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"AllowCreateInstances","required":null,"description":"$[TRUE,FALSE] $default(FALSE)","condition":"=Settings","duplicable":false,"fields":[],"order":61,"restricted":false,"rootField":false,"defaultValue":"FALSE"},{"id":null,"name":"CreateDefinition","required":null,"description":"Name of the Definition of Instances to Create","condition":"=Settings","duplicable":false,"fields":[],"order":62,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"OutputVarCalendar","required":null,"description":null,"condition":"=OutputVar","duplicable":false,"fields":[],"order":63,"restricted":false,"rootField":false,"defaultValue":null}],"order":57,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"Events","required":null,"description":"$group","condition":"=Calendar","duplicable":true,"fields":[{"id":null,"name":"Definition","required":"mandatory","description":"$definition","condition":null,"duplicable":false,"fields":[],"order":65,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"DateStartEventField","required":"mandatory","description":"Name of the definition date field that represents the beginning of the event","condition":null,"duplicable":false,"fields":[],"order":66,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"DateEndEventField","required":null,"description":"Name of the definition date field that represents the end of the event","condition":null,"duplicable":false,"fields":[],"order":67,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"DescriptionEventField","required":"mandatory","description":"Name of the definition field to use as the event description","condition":null,"duplicable":false,"fields":[],"order":68,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"StateEventField","required":null,"description":"Name of the field to calculate the color for the event. If not defined it will use always the same color for all events","condition":null,"duplicable":false,"fields":[],"order":69,"restricted":false,"rootField":false,"defaultValue":null},{"id":null,"name":"EventsQuery","required":null,"description":"Define a query to restrict the results that will appear in the calendar. Defaults to all records in the definition","condition":null,"duplicable":false,"fields":[],"order":70,"restricted":false,"rootField":false,"defaultValue":null}],"order":64,"restricted":false,"rootField":false,"defaultValue":null}],"order":14,"restricted":false,"rootField":false,"defaultValue":null}],"order":10,"restricted":false,"rootField":true,"defaultValue":null}],"version":null}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
const DEBUG = true
|
|
2
|
-
class ComponentStatePersistence {
|
|
3
|
-
constructor(id,updateCb) {
|
|
4
|
-
this._id = id
|
|
5
|
-
this.content = this._getStateFromHash()
|
|
6
|
-
updateCb(this.content)
|
|
7
|
-
this._onHashChange = function() {
|
|
8
|
-
if(DEBUG) console.log("[STATE] Hash changed",this._id,this._content)
|
|
9
|
-
this.content = this._getStateFromHash()
|
|
10
|
-
if(updateCb) updateCb(this.content)
|
|
11
|
-
}.bind(this)
|
|
12
|
-
window.addEventListener('hashchange', this._onHashChange, true);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
get content() {
|
|
16
|
-
return this._content
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
set content(newContent) {
|
|
20
|
-
if(DEBUG) console.log("[STATE] update value:", JSON.stringify(this._content) !== JSON.stringify(newContent), this._id,JSON.stringify(this._content),JSON.stringify(newContent))
|
|
21
|
-
if (JSON.stringify(this._content) !== JSON.stringify(newContent)) {
|
|
22
|
-
this._content = newContent
|
|
23
|
-
this._setStateInHash()
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
stop() {
|
|
28
|
-
if(DEBUG) console.log("[STATE] stoped",this._id,this.content,this._getStateFromHash())
|
|
29
|
-
window.removeEventListener('hashchange', this._onHashChange, true)
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
_getStateFromHash() {
|
|
33
|
-
const hashParts = window.location.hash.split("/")
|
|
34
|
-
const [name, ...rest] = hashParts[2].split(":")
|
|
35
|
-
let statesInHash = rest.length > 1 ? JSON.parse(decodeURIComponent(rest.join(":"))) : {}
|
|
36
|
-
return statesInHash[this._id]
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
_setStateInHash() {
|
|
40
|
-
const hashParts = window.location.hash.split("/")
|
|
41
|
-
const [name, ...rest] = hashParts[2].split(":")
|
|
42
|
-
let statesInHash = rest.length > 1 ? JSON.parse(decodeURIComponent(rest.join(":"))) : {}
|
|
43
|
-
|
|
44
|
-
// Update if content changed and we are still in a dash custom-UI
|
|
45
|
-
if(JSON.stringify(statesInHash[this._id]) !== JSON.stringify(this._content) && hashParts[3] && hashParts[3].startsWith("dash") ) {
|
|
46
|
-
// Update id property or remove it, if content is empty
|
|
47
|
-
if( this._content ) {
|
|
48
|
-
statesInHash[this._id] = this._content
|
|
49
|
-
} else {
|
|
50
|
-
delete statesInHash[this._id]
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
hashParts[2] = Object.keys(statesInHash).length > 0 ? `${name}:${JSON.stringify(statesInHash)}` : name
|
|
54
|
-
|
|
55
|
-
const newDestination = hashParts.join("/")
|
|
56
|
-
if(history.pushState) {
|
|
57
|
-
history.pushState(null, null, newDestination);
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
location.hash = newDestination;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export default ComponentStatePersistence
|