@quillsql/admin 1.3.3 → 1.3.6
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/dist/cjs/Admin.d.ts.map +1 -0
- package/dist/{Admin.js → cjs/Admin.js} +24 -28
- package/dist/cjs/AdminProvider.d.ts.map +1 -0
- package/dist/{AdminProvider.js → cjs/AdminProvider.js} +0 -1
- package/dist/cjs/api/ConnectionClient.d.ts.map +1 -0
- package/dist/{api → cjs/api}/ConnectionClient.js +0 -1
- package/dist/cjs/components/Banner/index.d.ts.map +1 -0
- package/dist/{components → cjs/components}/Banner/index.js +0 -1
- package/dist/cjs/components/CardSection.d.ts.map +1 -0
- package/dist/{components → cjs/components}/CardSection.js +0 -1
- package/dist/cjs/components/CardTitle.d.ts.map +1 -0
- package/dist/{components → cjs/components}/CardTitle.js +0 -1
- package/dist/cjs/components/DashboardSelectPopover.d.ts.map +1 -0
- package/dist/{components → cjs/components}/DashboardSelectPopover.js +0 -1
- package/dist/cjs/components/DatabaseSelector.d.ts.map +1 -0
- package/dist/{components → cjs/components}/DatabaseSelector.js +0 -1
- package/dist/cjs/components/DeleteButton.d.ts.map +1 -0
- package/dist/{components → cjs/components}/DeleteButton.js +0 -1
- package/dist/cjs/components/DropDownMenu.d.ts.map +1 -0
- package/dist/{components → cjs/components}/DropDownMenu.js +0 -1
- package/dist/cjs/components/DropDownMenuWithLabel.d.ts.map +1 -0
- package/dist/{components → cjs/components}/DropDownMenuWithLabel.js +0 -1
- package/dist/cjs/components/EmptyDashboardComponent/index.d.ts +3 -0
- package/dist/cjs/components/EmptyDashboardComponent/index.d.ts.map +1 -0
- package/dist/cjs/components/EmptyDashboardComponent/index.js +45 -0
- package/dist/cjs/components/EnvSelectPopover.d.ts.map +1 -0
- package/dist/{components → cjs/components}/EnvSelectPopover.js +19 -3
- package/dist/cjs/components/InputLabel.d.ts.map +1 -0
- package/dist/{components → cjs/components}/InputLabel.js +0 -1
- package/dist/cjs/components/OrgSelect.d.ts.map +1 -0
- package/dist/{components → cjs/components}/OrgSelect.js +0 -1
- package/dist/cjs/components/SqlViewTile.d.ts.map +1 -0
- package/dist/{components → cjs/components}/SqlViewTile.js +0 -1
- package/dist/cjs/components/StepDisplay.d.ts.map +1 -0
- package/dist/{components → cjs/components}/StepDisplay.js +0 -1
- package/dist/cjs/components/index.d.ts.map +1 -0
- package/dist/{components → cjs/components}/index.js +0 -1
- package/dist/cjs/forms/client_onboard/ConnectDatabase.d.ts.map +1 -0
- package/dist/{forms → cjs/forms}/client_onboard/ConnectDatabase.js +0 -1
- package/dist/cjs/forms/client_onboard/ConnectSchema.d.ts.map +1 -0
- package/dist/{forms → cjs/forms}/client_onboard/ConnectSchema.js +0 -1
- package/dist/cjs/forms/client_onboard/CreateSqlViews.d.ts.map +1 -0
- package/dist/{forms → cjs/forms}/client_onboard/CreateSqlViews.js +0 -1
- package/dist/cjs/hooks/useItemBeingEdited.d.ts.map +1 -0
- package/dist/{hooks → cjs/hooks}/useItemBeingEdited.js +0 -1
- package/dist/cjs/icons/ArrowDownHeadIcon.d.ts.map +1 -0
- package/dist/{icons → cjs/icons}/ArrowDownHeadIcon.js +0 -1
- package/dist/cjs/icons/XMarkIcon.d.ts.map +1 -0
- package/dist/{icons → cjs/icons}/XMarkIcon.js +0 -1
- package/dist/cjs/icons/index.d.ts.map +1 -0
- package/dist/{icons → cjs/icons}/index.js +0 -1
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/{index.js → cjs/index.js} +0 -1
- package/dist/cjs/modals/EditDashboardsModal.d.ts.map +1 -0
- package/dist/{modals → cjs/modals}/EditDashboardsModal.js +0 -1
- package/dist/cjs/modals/NewDashboardModal.d.ts.map +1 -0
- package/dist/{modals → cjs/modals}/NewDashboardModal.js +0 -1
- package/dist/cjs/modals/PromoteDashModal.d.ts.map +1 -0
- package/dist/{modals → cjs/modals}/PromoteDashModal.js +0 -1
- package/dist/cjs/modals/PromoteViewModal.d.ts.map +1 -0
- package/dist/{modals → cjs/modals}/PromoteViewModal.js +0 -1
- package/dist/cjs/modals/ReorderDashboardModal.d.ts.map +1 -0
- package/dist/{modals → cjs/modals}/ReorderDashboardModal.js +0 -1
- package/dist/cjs/modals/index.d.ts.map +1 -0
- package/dist/{modals → cjs/modals}/index.js +0 -1
- package/dist/cjs/primitives/ButtonPrimitive.d.ts.map +1 -0
- package/dist/{primitives → cjs/primitives}/ButtonPrimitive.js +0 -1
- package/dist/cjs/primitives/HeaderPrimitive.d.ts.map +1 -0
- package/dist/{primitives → cjs/primitives}/HeaderPrimitive.js +0 -1
- package/dist/cjs/primitives/ModalPrimitive.d.ts.map +1 -0
- package/dist/{primitives → cjs/primitives}/ModalPrimitive.js +0 -1
- package/dist/cjs/primitives/SecondaryButtonPrimitive.d.ts.map +1 -0
- package/dist/{primitives → cjs/primitives}/SecondaryButtonPrimitive.js +0 -1
- package/dist/cjs/primitives/SelectPrimitive.d.ts.map +1 -0
- package/dist/{primitives → cjs/primitives}/SelectPrimitive.js +0 -1
- package/dist/cjs/primitives/TextInputPrimitive.d.ts.map +1 -0
- package/dist/{primitives → cjs/primitives}/TextInputPrimitive.js +0 -1
- package/dist/cjs/primitives/TogglePrimitive.d.ts.map +1 -0
- package/dist/{primitives → cjs/primitives}/TogglePrimitive.js +0 -1
- package/dist/cjs/primitives/index.d.ts.map +1 -0
- package/dist/{primitives → cjs/primitives}/index.js +0 -1
- package/dist/cjs/public_components/CreateEnvironment.d.ts.map +1 -0
- package/dist/{public_components → cjs/public_components}/CreateEnvironment.js +0 -1
- package/dist/cjs/public_components/DashboardBuilder.d.ts.map +1 -0
- package/dist/{public_components → cjs/public_components}/DashboardBuilder.js +0 -1
- package/dist/cjs/public_components/DashboardManager.d.ts.map +1 -0
- package/dist/{public_components → cjs/public_components}/DashboardManager.js +11 -5
- package/dist/cjs/public_components/SQLViewManager.d.ts.map +1 -0
- package/dist/{public_components → cjs/public_components}/SQLViewManager.js +0 -1
- package/dist/cjs/utils/constants.d.ts.map +1 -0
- package/dist/{utils → cjs/utils}/constants.js +0 -1
- package/dist/cjs/utils/databases.d.ts.map +1 -0
- package/dist/{utils → cjs/utils}/databases.js +0 -1
- package/dist/cjs/utils/delay.d.ts.map +1 -0
- package/dist/{utils → cjs/utils}/delay.js +0 -1
- package/dist/cjs/utils/schema.d.ts.map +1 -0
- package/dist/{utils → cjs/utils}/schema.js +0 -1
- package/dist/cjs/utils/table.d.ts.map +1 -0
- package/dist/{utils → cjs/utils}/table.js +0 -1
- package/dist/esm/Admin.d.ts +167 -0
- package/dist/esm/Admin.d.ts.map +1 -0
- package/dist/esm/Admin.js +1387 -0
- package/dist/esm/AdminProvider.d.ts +126 -0
- package/dist/esm/AdminProvider.d.ts.map +1 -0
- package/dist/esm/AdminProvider.js +315 -0
- package/dist/esm/api/ConnectionClient.d.ts +24 -0
- package/dist/esm/api/ConnectionClient.d.ts.map +1 -0
- package/dist/esm/api/ConnectionClient.js +244 -0
- package/dist/esm/components/Banner/index.d.ts +3 -0
- package/dist/esm/components/Banner/index.d.ts.map +1 -0
- package/dist/esm/components/Banner/index.js +27 -0
- package/dist/esm/components/CardSection.d.ts +3 -0
- package/dist/esm/components/CardSection.d.ts.map +1 -0
- package/dist/esm/components/CardSection.js +9 -0
- package/dist/esm/components/CardTitle.d.ts +3 -0
- package/dist/esm/components/CardTitle.d.ts.map +1 -0
- package/dist/esm/components/CardTitle.js +11 -0
- package/dist/esm/components/DashboardSelectPopover.d.ts +11 -0
- package/dist/esm/components/DashboardSelectPopover.d.ts.map +1 -0
- package/dist/esm/components/DashboardSelectPopover.js +175 -0
- package/dist/esm/components/DatabaseSelector.d.ts +11 -0
- package/dist/esm/components/DatabaseSelector.d.ts.map +1 -0
- package/dist/esm/components/DatabaseSelector.js +22 -0
- package/dist/esm/components/DeleteButton.d.ts +3 -0
- package/dist/esm/components/DeleteButton.d.ts.map +1 -0
- package/dist/esm/components/DeleteButton.js +10 -0
- package/dist/esm/components/DropDownMenu.d.ts +10 -0
- package/dist/esm/components/DropDownMenu.d.ts.map +1 -0
- package/dist/esm/components/DropDownMenu.js +39 -0
- package/dist/esm/components/DropDownMenuWithLabel.d.ts +12 -0
- package/dist/esm/components/DropDownMenuWithLabel.d.ts.map +1 -0
- package/dist/esm/components/DropDownMenuWithLabel.js +47 -0
- package/dist/esm/components/EmptyDashboardComponent/index.d.ts +3 -0
- package/dist/esm/components/EmptyDashboardComponent/index.d.ts.map +1 -0
- package/dist/esm/components/EmptyDashboardComponent/index.js +42 -0
- package/dist/esm/components/EnvSelectPopover.d.ts +13 -0
- package/dist/esm/components/EnvSelectPopover.d.ts.map +1 -0
- package/dist/esm/components/EnvSelectPopover.js +222 -0
- package/dist/esm/components/InputLabel.d.ts +3 -0
- package/dist/esm/components/InputLabel.d.ts.map +1 -0
- package/dist/esm/components/InputLabel.js +10 -0
- package/dist/esm/components/OrgSelect.d.ts +12 -0
- package/dist/esm/components/OrgSelect.d.ts.map +1 -0
- package/dist/esm/components/OrgSelect.js +193 -0
- package/dist/esm/components/SqlViewTile.d.ts +8 -0
- package/dist/esm/components/SqlViewTile.d.ts.map +1 -0
- package/dist/esm/components/SqlViewTile.js +40 -0
- package/dist/esm/components/StepDisplay.d.ts +10 -0
- package/dist/esm/components/StepDisplay.d.ts.map +1 -0
- package/dist/esm/components/StepDisplay.js +15 -0
- package/dist/esm/components/index.d.ts +6 -0
- package/dist/esm/components/index.d.ts.map +1 -0
- package/dist/esm/components/index.js +5 -0
- package/dist/esm/forms/client_onboard/ConnectDatabase.d.ts +11 -0
- package/dist/esm/forms/client_onboard/ConnectDatabase.d.ts.map +1 -0
- package/dist/esm/forms/client_onboard/ConnectDatabase.js +137 -0
- package/dist/esm/forms/client_onboard/ConnectSchema.d.ts +13 -0
- package/dist/esm/forms/client_onboard/ConnectSchema.d.ts.map +1 -0
- package/dist/esm/forms/client_onboard/ConnectSchema.js +171 -0
- package/dist/esm/forms/client_onboard/CreateSqlViews.d.ts +15 -0
- package/dist/esm/forms/client_onboard/CreateSqlViews.d.ts.map +1 -0
- package/dist/esm/forms/client_onboard/CreateSqlViews.js +202 -0
- package/dist/esm/hooks/useItemBeingEdited.d.ts +4 -0
- package/dist/esm/hooks/useItemBeingEdited.d.ts.map +1 -0
- package/dist/esm/hooks/useItemBeingEdited.js +25 -0
- package/dist/esm/icons/ArrowDownHeadIcon.d.ts +5 -0
- package/dist/esm/icons/ArrowDownHeadIcon.d.ts.map +1 -0
- package/dist/esm/icons/ArrowDownHeadIcon.js +3 -0
- package/dist/esm/icons/XMarkIcon.d.ts +3 -0
- package/dist/esm/icons/XMarkIcon.d.ts.map +1 -0
- package/dist/esm/icons/XMarkIcon.js +11 -0
- package/dist/esm/icons/index.d.ts +2 -0
- package/dist/esm/icons/index.d.ts.map +1 -0
- package/dist/esm/icons/index.js +1 -0
- package/dist/esm/index.d.ts +7 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/modals/EditDashboardsModal.d.ts +20 -0
- package/dist/esm/modals/EditDashboardsModal.d.ts.map +1 -0
- package/dist/esm/modals/EditDashboardsModal.js +91 -0
- package/dist/esm/modals/NewDashboardModal.d.ts +19 -0
- package/dist/esm/modals/NewDashboardModal.d.ts.map +1 -0
- package/dist/esm/modals/NewDashboardModal.js +276 -0
- package/dist/esm/modals/PromoteDashModal.d.ts +17 -0
- package/dist/esm/modals/PromoteDashModal.d.ts.map +1 -0
- package/dist/esm/modals/PromoteDashModal.js +123 -0
- package/dist/esm/modals/PromoteViewModal.d.ts +13 -0
- package/dist/esm/modals/PromoteViewModal.d.ts.map +1 -0
- package/dist/esm/modals/PromoteViewModal.js +105 -0
- package/dist/esm/modals/ReorderDashboardModal.d.ts +11 -0
- package/dist/esm/modals/ReorderDashboardModal.d.ts.map +1 -0
- package/dist/esm/modals/ReorderDashboardModal.js +124 -0
- package/dist/esm/modals/index.d.ts +5 -0
- package/dist/esm/modals/index.d.ts.map +1 -0
- package/dist/esm/modals/index.js +4 -0
- package/dist/esm/primitives/ButtonPrimitive.d.ts +12 -0
- package/dist/esm/primitives/ButtonPrimitive.d.ts.map +1 -0
- package/dist/esm/primitives/ButtonPrimitive.js +47 -0
- package/dist/esm/primitives/HeaderPrimitive.d.ts +9 -0
- package/dist/esm/primitives/HeaderPrimitive.d.ts.map +1 -0
- package/dist/esm/primitives/HeaderPrimitive.js +9 -0
- package/dist/esm/primitives/ModalPrimitive.d.ts +12 -0
- package/dist/esm/primitives/ModalPrimitive.d.ts.map +1 -0
- package/dist/esm/primitives/ModalPrimitive.js +47 -0
- package/dist/esm/primitives/SecondaryButtonPrimitive.d.ts +10 -0
- package/dist/esm/primitives/SecondaryButtonPrimitive.d.ts.map +1 -0
- package/dist/esm/primitives/SecondaryButtonPrimitive.js +22 -0
- package/dist/esm/primitives/SelectPrimitive.d.ts +16 -0
- package/dist/esm/primitives/SelectPrimitive.d.ts.map +1 -0
- package/dist/esm/primitives/SelectPrimitive.js +41 -0
- package/dist/esm/primitives/TextInputPrimitive.d.ts +12 -0
- package/dist/esm/primitives/TextInputPrimitive.d.ts.map +1 -0
- package/dist/esm/primitives/TextInputPrimitive.js +24 -0
- package/dist/esm/primitives/TogglePrimitive.d.ts +6 -0
- package/dist/esm/primitives/TogglePrimitive.d.ts.map +1 -0
- package/dist/esm/primitives/TogglePrimitive.js +45 -0
- package/dist/esm/primitives/index.d.ts +7 -0
- package/dist/esm/primitives/index.d.ts.map +1 -0
- package/dist/esm/primitives/index.js +6 -0
- package/dist/esm/public_components/CreateEnvironment.d.ts +6 -0
- package/dist/esm/public_components/CreateEnvironment.d.ts.map +1 -0
- package/dist/esm/public_components/CreateEnvironment.js +135 -0
- package/dist/esm/public_components/DashboardBuilder.d.ts +7 -0
- package/dist/esm/public_components/DashboardBuilder.d.ts.map +1 -0
- package/dist/esm/public_components/DashboardBuilder.js +192 -0
- package/dist/esm/public_components/DashboardManager.d.ts +6 -0
- package/dist/esm/public_components/DashboardManager.d.ts.map +1 -0
- package/dist/esm/public_components/DashboardManager.js +312 -0
- package/dist/esm/public_components/SQLViewManager.d.ts +5 -0
- package/dist/esm/public_components/SQLViewManager.d.ts.map +1 -0
- package/dist/esm/public_components/SQLViewManager.js +394 -0
- package/dist/esm/utils/constants.d.ts +26 -0
- package/dist/esm/utils/constants.d.ts.map +1 -0
- package/dist/esm/utils/constants.js +13 -0
- package/dist/esm/utils/databases.d.ts +34 -0
- package/dist/esm/utils/databases.d.ts.map +1 -0
- package/dist/esm/utils/databases.js +51 -0
- package/dist/esm/utils/delay.d.ts +2 -0
- package/dist/esm/utils/delay.d.ts.map +1 -0
- package/dist/esm/utils/delay.js +3 -0
- package/dist/esm/utils/schema.d.ts +22 -0
- package/dist/esm/utils/schema.d.ts.map +1 -0
- package/dist/esm/utils/schema.js +1 -0
- package/dist/esm/utils/table.d.ts +16 -0
- package/dist/esm/utils/table.d.ts.map +1 -0
- package/dist/esm/utils/table.js +1 -0
- package/package.json +11 -7
- package/dist/Admin.d.ts.map +0 -1
- package/dist/Admin.js.map +0 -1
- package/dist/AdminProvider.d.ts.map +0 -1
- package/dist/AdminProvider.js.map +0 -1
- package/dist/api/ConnectionClient.d.ts.map +0 -1
- package/dist/api/ConnectionClient.js.map +0 -1
- package/dist/components/Banner/index.d.ts.map +0 -1
- package/dist/components/Banner/index.js.map +0 -1
- package/dist/components/CardSection.d.ts.map +0 -1
- package/dist/components/CardSection.js.map +0 -1
- package/dist/components/CardTitle.d.ts.map +0 -1
- package/dist/components/CardTitle.js.map +0 -1
- package/dist/components/DashboardSelectPopover.d.ts.map +0 -1
- package/dist/components/DashboardSelectPopover.js.map +0 -1
- package/dist/components/DatabaseSelector.d.ts.map +0 -1
- package/dist/components/DatabaseSelector.js.map +0 -1
- package/dist/components/DeleteButton.d.ts.map +0 -1
- package/dist/components/DeleteButton.js.map +0 -1
- package/dist/components/DropDownMenu.d.ts.map +0 -1
- package/dist/components/DropDownMenu.js.map +0 -1
- package/dist/components/DropDownMenuWithLabel.d.ts.map +0 -1
- package/dist/components/DropDownMenuWithLabel.js.map +0 -1
- package/dist/components/EnvSelectPopover.d.ts.map +0 -1
- package/dist/components/EnvSelectPopover.js.map +0 -1
- package/dist/components/InputLabel.d.ts.map +0 -1
- package/dist/components/InputLabel.js.map +0 -1
- package/dist/components/OrgSelect.d.ts.map +0 -1
- package/dist/components/OrgSelect.js.map +0 -1
- package/dist/components/SqlViewTile.d.ts.map +0 -1
- package/dist/components/SqlViewTile.js.map +0 -1
- package/dist/components/StepDisplay.d.ts.map +0 -1
- package/dist/components/StepDisplay.js.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/forms/client_onboard/ConnectDatabase.d.ts.map +0 -1
- package/dist/forms/client_onboard/ConnectDatabase.js.map +0 -1
- package/dist/forms/client_onboard/ConnectSchema.d.ts.map +0 -1
- package/dist/forms/client_onboard/ConnectSchema.js.map +0 -1
- package/dist/forms/client_onboard/CreateSqlViews.d.ts.map +0 -1
- package/dist/forms/client_onboard/CreateSqlViews.js.map +0 -1
- package/dist/hooks/useItemBeingEdited.d.ts.map +0 -1
- package/dist/hooks/useItemBeingEdited.js.map +0 -1
- package/dist/icons/ArrowDownHeadIcon.d.ts.map +0 -1
- package/dist/icons/ArrowDownHeadIcon.js.map +0 -1
- package/dist/icons/XMarkIcon.d.ts.map +0 -1
- package/dist/icons/XMarkIcon.js.map +0 -1
- package/dist/icons/index.d.ts.map +0 -1
- package/dist/icons/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/modals/EditDashboardsModal.d.ts.map +0 -1
- package/dist/modals/EditDashboardsModal.js.map +0 -1
- package/dist/modals/NewDashboardModal.d.ts.map +0 -1
- package/dist/modals/NewDashboardModal.js.map +0 -1
- package/dist/modals/PromoteDashModal.d.ts.map +0 -1
- package/dist/modals/PromoteDashModal.js.map +0 -1
- package/dist/modals/PromoteViewModal.d.ts.map +0 -1
- package/dist/modals/PromoteViewModal.js.map +0 -1
- package/dist/modals/ReorderDashboardModal.d.ts.map +0 -1
- package/dist/modals/ReorderDashboardModal.js.map +0 -1
- package/dist/modals/index.d.ts.map +0 -1
- package/dist/modals/index.js.map +0 -1
- package/dist/primitives/ButtonPrimitive.d.ts.map +0 -1
- package/dist/primitives/ButtonPrimitive.js.map +0 -1
- package/dist/primitives/HeaderPrimitive.d.ts.map +0 -1
- package/dist/primitives/HeaderPrimitive.js.map +0 -1
- package/dist/primitives/ModalPrimitive.d.ts.map +0 -1
- package/dist/primitives/ModalPrimitive.js.map +0 -1
- package/dist/primitives/SecondaryButtonPrimitive.d.ts.map +0 -1
- package/dist/primitives/SecondaryButtonPrimitive.js.map +0 -1
- package/dist/primitives/SelectPrimitive.d.ts.map +0 -1
- package/dist/primitives/SelectPrimitive.js.map +0 -1
- package/dist/primitives/TextInputPrimitive.d.ts.map +0 -1
- package/dist/primitives/TextInputPrimitive.js.map +0 -1
- package/dist/primitives/TogglePrimitive.d.ts.map +0 -1
- package/dist/primitives/TogglePrimitive.js.map +0 -1
- package/dist/primitives/index.d.ts.map +0 -1
- package/dist/primitives/index.js.map +0 -1
- package/dist/public_components/CreateEnvironment.d.ts.map +0 -1
- package/dist/public_components/CreateEnvironment.js.map +0 -1
- package/dist/public_components/DashboardBuilder.d.ts.map +0 -1
- package/dist/public_components/DashboardBuilder.js.map +0 -1
- package/dist/public_components/DashboardManager.d.ts.map +0 -1
- package/dist/public_components/DashboardManager.js.map +0 -1
- package/dist/public_components/SQLViewManager.d.ts.map +0 -1
- package/dist/public_components/SQLViewManager.js.map +0 -1
- package/dist/utils/constants.d.ts.map +0 -1
- package/dist/utils/constants.js.map +0 -1
- package/dist/utils/databases.d.ts.map +0 -1
- package/dist/utils/databases.js.map +0 -1
- package/dist/utils/delay.d.ts.map +0 -1
- package/dist/utils/delay.js.map +0 -1
- package/dist/utils/schema.d.ts.map +0 -1
- package/dist/utils/schema.js.map +0 -1
- package/dist/utils/table.d.ts.map +0 -1
- package/dist/utils/table.js.map +0 -1
- /package/dist/{Admin.d.ts → cjs/Admin.d.ts} +0 -0
- /package/dist/{AdminProvider.d.ts → cjs/AdminProvider.d.ts} +0 -0
- /package/dist/{api → cjs/api}/ConnectionClient.d.ts +0 -0
- /package/dist/{components → cjs/components}/Banner/index.d.ts +0 -0
- /package/dist/{components → cjs/components}/CardSection.d.ts +0 -0
- /package/dist/{components → cjs/components}/CardTitle.d.ts +0 -0
- /package/dist/{components → cjs/components}/DashboardSelectPopover.d.ts +0 -0
- /package/dist/{components → cjs/components}/DatabaseSelector.d.ts +0 -0
- /package/dist/{components → cjs/components}/DeleteButton.d.ts +0 -0
- /package/dist/{components → cjs/components}/DropDownMenu.d.ts +0 -0
- /package/dist/{components → cjs/components}/DropDownMenuWithLabel.d.ts +0 -0
- /package/dist/{components → cjs/components}/EnvSelectPopover.d.ts +0 -0
- /package/dist/{components → cjs/components}/InputLabel.d.ts +0 -0
- /package/dist/{components → cjs/components}/OrgSelect.d.ts +0 -0
- /package/dist/{components → cjs/components}/SqlViewTile.d.ts +0 -0
- /package/dist/{components → cjs/components}/StepDisplay.d.ts +0 -0
- /package/dist/{components → cjs/components}/index.d.ts +0 -0
- /package/dist/{forms → cjs/forms}/client_onboard/ConnectDatabase.d.ts +0 -0
- /package/dist/{forms → cjs/forms}/client_onboard/ConnectSchema.d.ts +0 -0
- /package/dist/{forms → cjs/forms}/client_onboard/CreateSqlViews.d.ts +0 -0
- /package/dist/{hooks → cjs/hooks}/useItemBeingEdited.d.ts +0 -0
- /package/dist/{icons → cjs/icons}/ArrowDownHeadIcon.d.ts +0 -0
- /package/dist/{icons → cjs/icons}/XMarkIcon.d.ts +0 -0
- /package/dist/{icons → cjs/icons}/index.d.ts +0 -0
- /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
- /package/dist/{modals → cjs/modals}/EditDashboardsModal.d.ts +0 -0
- /package/dist/{modals → cjs/modals}/NewDashboardModal.d.ts +0 -0
- /package/dist/{modals → cjs/modals}/PromoteDashModal.d.ts +0 -0
- /package/dist/{modals → cjs/modals}/PromoteViewModal.d.ts +0 -0
- /package/dist/{modals → cjs/modals}/ReorderDashboardModal.d.ts +0 -0
- /package/dist/{modals → cjs/modals}/index.d.ts +0 -0
- /package/dist/{primitives → cjs/primitives}/ButtonPrimitive.d.ts +0 -0
- /package/dist/{primitives → cjs/primitives}/HeaderPrimitive.d.ts +0 -0
- /package/dist/{primitives → cjs/primitives}/ModalPrimitive.d.ts +0 -0
- /package/dist/{primitives → cjs/primitives}/SecondaryButtonPrimitive.d.ts +0 -0
- /package/dist/{primitives → cjs/primitives}/SelectPrimitive.d.ts +0 -0
- /package/dist/{primitives → cjs/primitives}/TextInputPrimitive.d.ts +0 -0
- /package/dist/{primitives → cjs/primitives}/TogglePrimitive.d.ts +0 -0
- /package/dist/{primitives → cjs/primitives}/index.d.ts +0 -0
- /package/dist/{public_components → cjs/public_components}/CreateEnvironment.d.ts +0 -0
- /package/dist/{public_components → cjs/public_components}/DashboardBuilder.d.ts +0 -0
- /package/dist/{public_components → cjs/public_components}/DashboardManager.d.ts +0 -0
- /package/dist/{public_components → cjs/public_components}/SQLViewManager.d.ts +0 -0
- /package/dist/{utils → cjs/utils}/constants.d.ts +0 -0
- /package/dist/{utils → cjs/utils}/databases.d.ts +0 -0
- /package/dist/{utils → cjs/utils}/delay.d.ts +0 -0
- /package/dist/{utils → cjs/utils}/schema.d.ts +0 -0
- /package/dist/{utils → cjs/utils}/table.d.ts +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export default function DropdownMenuWithLabel({ items, setSelected, selected, theme, label, disabled = false, secondaryTextColor = '#6e6e6e', }) {
|
|
3
|
+
return (_jsxs("div", { children: [_jsx("h1", { style: {
|
|
4
|
+
fontSize: '14px',
|
|
5
|
+
paddingTop: '0px',
|
|
6
|
+
marginTop: '0px',
|
|
7
|
+
marginBottom: '4px',
|
|
8
|
+
fontWeight: '600',
|
|
9
|
+
color: secondaryTextColor,
|
|
10
|
+
userSelect: 'none',
|
|
11
|
+
}, children: label }), _jsx("div", { style: { display: 'flex', flexDirection: 'column' }, children: _jsxs("div", { style: {
|
|
12
|
+
position: 'relative',
|
|
13
|
+
fontFamily: theme?.fontFamily,
|
|
14
|
+
fontSize: 14,
|
|
15
|
+
fontWeight: 500,
|
|
16
|
+
}, children: [_jsxs("select", { style: {
|
|
17
|
+
width: '100%',
|
|
18
|
+
minWidth: 250,
|
|
19
|
+
maxWidth: 250,
|
|
20
|
+
outline: 'none',
|
|
21
|
+
textAlign: 'left',
|
|
22
|
+
whiteSpace: 'nowrap',
|
|
23
|
+
overflow: 'hidden',
|
|
24
|
+
textOverflow: 'ellipsis',
|
|
25
|
+
borderRadius: 6,
|
|
26
|
+
WebkitAppearance: 'none',
|
|
27
|
+
paddingLeft: 12,
|
|
28
|
+
paddingRight: 12,
|
|
29
|
+
height: 38,
|
|
30
|
+
borderWidth: 1,
|
|
31
|
+
borderColor: '#e7e7e7',
|
|
32
|
+
background: 'white',
|
|
33
|
+
color: '#212121',
|
|
34
|
+
boxShadow: '0 1px 2px 0 rgba(0,0,0,.05)',
|
|
35
|
+
fontFamily: theme?.fontFamily,
|
|
36
|
+
}, disabled: disabled, onChange: (e) => {
|
|
37
|
+
setSelected(items.find((item) => item === e.target.value));
|
|
38
|
+
}, value: selected || '', children: [_jsx("option", { value: "", children: items && items.length !== 0 ? 'Select' : 'N/A' }), items.slice(0, 50).map((item) => (_jsx("option", { value: item, children: item }, item)))] }), _jsxs("svg", { style: {
|
|
39
|
+
height: '20px',
|
|
40
|
+
width: '20px',
|
|
41
|
+
flex: 'none',
|
|
42
|
+
position: 'absolute',
|
|
43
|
+
right: 8,
|
|
44
|
+
top: 9,
|
|
45
|
+
color: '#565656',
|
|
46
|
+
}, "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", visibility: disabled ? 'hidden' : 'visible', children: [_jsx("path", { fill: "none", d: "M0 0h24v24H0z" }), _jsx("path", { fill: "currentColor", d: "M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z" })] })] }) })] }));
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/EmptyDashboardComponent/index.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAU,uBAAuB,IAAI,GAAG,CAAC,OAAO,CA+E7D"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useAdmin } from '../../AdminProvider';
|
|
3
|
+
export default function EmptyDashboardComponent() {
|
|
4
|
+
const { state } = useAdmin();
|
|
5
|
+
return (_jsx("div", { style: {
|
|
6
|
+
width: '100%',
|
|
7
|
+
display: 'flex',
|
|
8
|
+
flexDirection: 'column',
|
|
9
|
+
alignItems: 'center',
|
|
10
|
+
}, children: _jsxs("div", { style: {
|
|
11
|
+
height: 80,
|
|
12
|
+
width: 260,
|
|
13
|
+
borderRadius: 6,
|
|
14
|
+
marginTop: 100,
|
|
15
|
+
display: 'flex',
|
|
16
|
+
flexDirection: 'column',
|
|
17
|
+
alignItems: 'center',
|
|
18
|
+
justifyContent: 'center',
|
|
19
|
+
gap: 20,
|
|
20
|
+
}, className: "hover-dash-rect", onClick: () => {
|
|
21
|
+
if (state.navigateToDashboardBuilder) {
|
|
22
|
+
state.navigateToDashboardBuilder();
|
|
23
|
+
}
|
|
24
|
+
}, children: [_jsx("style", { children: ` .hover-dash-rect { background: white; border: 1px dashed #e7e7e7; } .hover-dash-rect:hover { background: white; box-shadow: 0px 1px 24px 0px rgba(0, 0, 0, 0.07); border: 1px solid #e7e7e7; } ` }), _jsxs("div", { style: {
|
|
25
|
+
display: 'flex',
|
|
26
|
+
flexDirection: 'row',
|
|
27
|
+
alignItems: 'center',
|
|
28
|
+
justifyContent: 'center',
|
|
29
|
+
width: 260,
|
|
30
|
+
}, children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "#565656", height: 26, width: 26, children: [_jsx("path", { fillRule: "evenodd", d: "M2.25 13.5a8.25 8.25 0 0 1 8.25-8.25.75.75 0 0 1 .75.75v6.75H18a.75.75 0 0 1 .75.75 8.25 8.25 0 0 1-16.5 0Z", clipRule: "evenodd" }), _jsx("path", { fillRule: "evenodd", d: "M12.75 3a.75.75 0 0 1 .75-.75 8.25 8.25 0 0 1 8.25 8.25.75.75 0 0 1-.75.75h-7.5a.75.75 0 0 1-.75-.75V3Z", clipRule: "evenodd" })] }), _jsx("div", { style: {
|
|
31
|
+
fontSize: 14,
|
|
32
|
+
fontWeight: 500,
|
|
33
|
+
color: '#565656',
|
|
34
|
+
// border: '1px solid #e7e7e7',
|
|
35
|
+
paddingTop: 8,
|
|
36
|
+
paddingBottom: 8,
|
|
37
|
+
paddingRight: 12,
|
|
38
|
+
paddingLeft: 12,
|
|
39
|
+
borderRadius: 4,
|
|
40
|
+
cursor: 'pointer',
|
|
41
|
+
}, className: "quill-hover-button", children: "Create your first chart" })] })] }) }));
|
|
42
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface EnvSelectPopoverProps {
|
|
2
|
+
clients: any[];
|
|
3
|
+
setClient: (client: any) => void;
|
|
4
|
+
client: any;
|
|
5
|
+
theme: any;
|
|
6
|
+
environment: string;
|
|
7
|
+
setEnvironment: (environment: string) => void;
|
|
8
|
+
handlePromote?: (client: any) => void;
|
|
9
|
+
showPromote?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export default function EnvSelectPopover({ clients, setClient, client, theme, environment, setEnvironment, handlePromote, showPromote, }: EnvSelectPopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=EnvSelectPopover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvSelectPopover.d.ts","sourceRoot":"","sources":["../../../src/components/EnvSelectPopover.tsx"],"names":[],"mappings":"AAIA,UAAU,qBAAqB;IAC7B,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,SAAS,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IACjC,MAAM,EAAE,GAAG,CAAC;IACZ,KAAK,EAAE,GAAG,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,OAAO,EACP,SAAS,EACT,MAAM,EACN,KAAK,EACL,WAAW,EACX,cAAc,EACd,aAAa,EACb,WAAW,GACZ,EAAE,qBAAqB,2CAsTvB"}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useRef, useEffect } from 'react';
|
|
3
|
+
import { ArrowDownHeadIcon } from '../icons';
|
|
4
|
+
import { useAdmin } from '../AdminProvider';
|
|
5
|
+
export default function EnvSelectPopover({ clients, setClient, client, theme, environment, setEnvironment, handlePromote, showPromote, }) {
|
|
6
|
+
const { state, dispatch } = useAdmin();
|
|
7
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
8
|
+
const [hoveredItemId, setHoveredItemId] = useState(null);
|
|
9
|
+
const [isPromoteHovered, setIsPromoteHovered] = useState(false);
|
|
10
|
+
const handleItemClick = (selectedClient) => {
|
|
11
|
+
if (state.activeQuery) {
|
|
12
|
+
const message = 'Are you sure? Changing environment will exit edit mode and your changes will not be saved.';
|
|
13
|
+
if (!confirm(message))
|
|
14
|
+
return;
|
|
15
|
+
dispatch({ type: 'SET_ACTIVE_QUERY', payload: '' });
|
|
16
|
+
dispatch({ type: 'SET_ACTIVE_EDIT_ITEM', payload: null });
|
|
17
|
+
}
|
|
18
|
+
setClient(selectedClient);
|
|
19
|
+
setIsOpen(false);
|
|
20
|
+
};
|
|
21
|
+
const handlePromoteClick = (e, client) => {
|
|
22
|
+
e.preventDefault();
|
|
23
|
+
if (handlePromote) {
|
|
24
|
+
handlePromote(client);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
const popoverRef = useRef(null);
|
|
28
|
+
const handleOutsideClick = (event) => {
|
|
29
|
+
if (popoverRef.current && !popoverRef.current.contains(event.target)) {
|
|
30
|
+
setIsOpen(false);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
if (isOpen) {
|
|
35
|
+
document.addEventListener('mousedown', handleOutsideClick);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
document.removeEventListener('mousedown', handleOutsideClick);
|
|
39
|
+
}
|
|
40
|
+
return () => {
|
|
41
|
+
document.removeEventListener('mousedown', handleOutsideClick); // Cleanup
|
|
42
|
+
};
|
|
43
|
+
}, [isOpen]);
|
|
44
|
+
const dropdownStyles = {
|
|
45
|
+
position: 'relative',
|
|
46
|
+
display: 'inline-block',
|
|
47
|
+
fontFamily: theme.fontFamily,
|
|
48
|
+
fontSize: 14,
|
|
49
|
+
};
|
|
50
|
+
const separatorStyle = {
|
|
51
|
+
borderBottom: '1px solid #e7e7e7',
|
|
52
|
+
};
|
|
53
|
+
const triggerButtonStyles = {
|
|
54
|
+
width: '100%',
|
|
55
|
+
minWidth: 230,
|
|
56
|
+
maxWidth: 230,
|
|
57
|
+
outline: 'none',
|
|
58
|
+
textAlign: 'left',
|
|
59
|
+
whiteSpace: 'nowrap',
|
|
60
|
+
overflow: 'hidden',
|
|
61
|
+
textOverflow: 'ellipsis',
|
|
62
|
+
borderRadius: 6,
|
|
63
|
+
WebkitAppearance: 'none',
|
|
64
|
+
paddingLeft: 12,
|
|
65
|
+
paddingRight: 12,
|
|
66
|
+
height: 38,
|
|
67
|
+
borderTop: '1px solid #e7e7e7',
|
|
68
|
+
borderLeft: '1px solid #e7e7e7',
|
|
69
|
+
borderRight: '1px solid #e7e7e7',
|
|
70
|
+
borderBottom: '1px solid #e7e7e7',
|
|
71
|
+
background: theme.backgroundColor,
|
|
72
|
+
color: theme.primaryTextColor,
|
|
73
|
+
// boxShadow: "0 1px 2px 0 rgba(0,0,0,.05)",
|
|
74
|
+
fontFamily: theme.fontFamily,
|
|
75
|
+
fontWeight: 500,
|
|
76
|
+
};
|
|
77
|
+
const dropdownContentStyles = {
|
|
78
|
+
display: isOpen ? 'flex' : 'none',
|
|
79
|
+
flexDirection: 'column',
|
|
80
|
+
background: '#FFFFFF',
|
|
81
|
+
// background: "#F7F8FA",
|
|
82
|
+
position: 'absolute',
|
|
83
|
+
boxShadow: '0px 1px 12px 0px rgba(56, 65, 81, 0.1)',
|
|
84
|
+
border: '1px solid #e7e7e7',
|
|
85
|
+
boxSizing: 'border-box',
|
|
86
|
+
zIndex: 1,
|
|
87
|
+
borderRadius: 6,
|
|
88
|
+
padding: 8,
|
|
89
|
+
maxHeight: 420,
|
|
90
|
+
width: 230,
|
|
91
|
+
marginTop: 8,
|
|
92
|
+
gap: 5,
|
|
93
|
+
overflowY: 'scroll',
|
|
94
|
+
};
|
|
95
|
+
const itemStyles = {
|
|
96
|
+
// padding: "10px",
|
|
97
|
+
height: 42,
|
|
98
|
+
paddingLeft: 10,
|
|
99
|
+
paddingRight: 4,
|
|
100
|
+
paddingTop: 6,
|
|
101
|
+
paddingBottom: 6,
|
|
102
|
+
cursor: 'pointer',
|
|
103
|
+
fontSize: '14px',
|
|
104
|
+
color: theme.primaryTextColor,
|
|
105
|
+
display: 'flex',
|
|
106
|
+
flexDirection: 'row',
|
|
107
|
+
alignItems: 'center',
|
|
108
|
+
justifyContent: 'space-between',
|
|
109
|
+
fontWeight: '500',
|
|
110
|
+
};
|
|
111
|
+
const itemHoverStyles = {
|
|
112
|
+
backgroundColor: 'rgba(56, 65, 81, 0.04)',
|
|
113
|
+
borderRadius: 6,
|
|
114
|
+
};
|
|
115
|
+
const selectedItemStyles = {
|
|
116
|
+
backgroundColor: 'rgba(56, 65, 81, 0.04)',
|
|
117
|
+
borderRadius: 6,
|
|
118
|
+
// boxShadow: "0 1px 6px 0 rgba(56, 65, 81, 0.09)",
|
|
119
|
+
fontWeight: '500',
|
|
120
|
+
// border: "1px solid #e7e7e7",
|
|
121
|
+
};
|
|
122
|
+
const promoteStyles = {
|
|
123
|
+
color: theme.primaryTextColor,
|
|
124
|
+
cursor: 'pointer',
|
|
125
|
+
fontSize: '13px',
|
|
126
|
+
border: isPromoteHovered ? '1px solid #e7e7e7' : '1px solid transparent',
|
|
127
|
+
backgroundColor: isPromoteHovered ? 'white' : undefined,
|
|
128
|
+
boxShadow: isPromoteHovered
|
|
129
|
+
? '0px 1px 12px 0px rgba(56, 65, 81, 0.1)'
|
|
130
|
+
: undefined,
|
|
131
|
+
display: 'flex',
|
|
132
|
+
flexDirection: 'row',
|
|
133
|
+
alignItems: 'center',
|
|
134
|
+
paddingLeft: 7,
|
|
135
|
+
paddingRight: 9,
|
|
136
|
+
paddingTop: 6,
|
|
137
|
+
paddingBottom: 6,
|
|
138
|
+
borderRadius: 4,
|
|
139
|
+
gap: 3,
|
|
140
|
+
};
|
|
141
|
+
const clientStyles = {
|
|
142
|
+
color: theme.primaryTextColor,
|
|
143
|
+
cursor: 'pointer',
|
|
144
|
+
fontSize: '13px',
|
|
145
|
+
border: '1px solid transparent',
|
|
146
|
+
display: 'flex',
|
|
147
|
+
flexDirection: 'row',
|
|
148
|
+
alignItems: 'center',
|
|
149
|
+
paddingLeft: 7,
|
|
150
|
+
paddingRight: 9,
|
|
151
|
+
paddingTop: 6,
|
|
152
|
+
paddingBottom: 6,
|
|
153
|
+
borderRadius: 4,
|
|
154
|
+
gap: 3,
|
|
155
|
+
};
|
|
156
|
+
const itemTextStyles = {
|
|
157
|
+
// marginRight: "30px",
|
|
158
|
+
whiteSpace: 'nowrap',
|
|
159
|
+
overflow: 'hidden',
|
|
160
|
+
textOverflow: 'ellipsis',
|
|
161
|
+
};
|
|
162
|
+
if (client && client._id === '642ee580e45ecb91213b44aa') {
|
|
163
|
+
return (_jsxs("div", { style: {
|
|
164
|
+
background: '#f7f7f7',
|
|
165
|
+
borderRadius: 6,
|
|
166
|
+
height: 38,
|
|
167
|
+
display: 'flex',
|
|
168
|
+
flexDirection: 'row',
|
|
169
|
+
alignItems: 'center',
|
|
170
|
+
paddingLeft: 4,
|
|
171
|
+
paddingRight: 4,
|
|
172
|
+
}, children: [_jsx("button", { style: {
|
|
173
|
+
background: environment === 'PRODUCTION' ? 'white' : undefined,
|
|
174
|
+
color: environment === 'PRODUCTION' ? '#384151' : '#677389',
|
|
175
|
+
fontWeight: environment === 'PRODUCTION' ? '600' : '500',
|
|
176
|
+
borderRadius: 4,
|
|
177
|
+
paddingLeft: 6,
|
|
178
|
+
paddingRight: 6,
|
|
179
|
+
paddingTop: 3,
|
|
180
|
+
paddingBottom: 3,
|
|
181
|
+
fontSize: 16,
|
|
182
|
+
}, onClick: () => setEnvironment('PRODUCTION'), children: "Production" }), _jsx("button", { style: {
|
|
183
|
+
background: environment === 'STAGING' ? 'white' : undefined,
|
|
184
|
+
color: environment === 'STAGING' ? '#384151' : '#677389',
|
|
185
|
+
fontWeight: environment === 'STAGING' ? '600' : '500',
|
|
186
|
+
borderRadius: 4,
|
|
187
|
+
paddingLeft: 6,
|
|
188
|
+
paddingRight: 6,
|
|
189
|
+
paddingTop: 3,
|
|
190
|
+
paddingBottom: 3,
|
|
191
|
+
fontSize: 16,
|
|
192
|
+
}, onClick: () => setEnvironment('STAGING'), children: "Staging" })] }));
|
|
193
|
+
}
|
|
194
|
+
return (_jsxs("div", { style: dropdownStyles, ref: popoverRef, children: [_jsx("button", {
|
|
195
|
+
// onMouseEnter={() => setIsOpen(true)}
|
|
196
|
+
onClick: () => setIsOpen((isOpen) => !isOpen), style: triggerButtonStyles, children: client ? client.name : 'Select environment' }), _jsx("div", { style: dropdownContentStyles, children: !!clients.length &&
|
|
197
|
+
clients.map((item) => (_jsxs("div", { onClick: client && client._id !== item._id
|
|
198
|
+
? () => handleItemClick(item)
|
|
199
|
+
: undefined, style: {
|
|
200
|
+
...itemStyles,
|
|
201
|
+
...(hoveredItemId === item._id ? itemHoverStyles : {}),
|
|
202
|
+
...(client && client._id === item._id
|
|
203
|
+
? selectedItemStyles
|
|
204
|
+
: {}),
|
|
205
|
+
}, onMouseEnter: () => setHoveredItemId(item._id), onMouseLeave: () => setHoveredItemId(null), children: [_jsx("span", { onClick: client && client._id === item._id
|
|
206
|
+
? () => handleItemClick(item)
|
|
207
|
+
: undefined, style: {
|
|
208
|
+
...clientStyles,
|
|
209
|
+
visibility: showPromote ? 'visible' : 'hidden',
|
|
210
|
+
}, children: item.name }), client && client._id === item._id && (_jsxs("div", { onClick: (e) => handlePromoteClick(e, item), style: {
|
|
211
|
+
...promoteStyles,
|
|
212
|
+
visibility: showPromote ? 'visible' : 'hidden',
|
|
213
|
+
}, onMouseEnter: () => setIsPromoteHovered(true), onMouseLeave: () => setIsPromoteHovered(false), children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "currentColor", height: "16px", width: "16px", children: [_jsx("path", { d: "M7.25 10.25a.75.75 0 0 0 1.5 0V4.56l2.22 2.22a.75.75 0 1 0 1.06-1.06l-3.5-3.5a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 0 0 1.06 1.06l2.22-2.22v5.69Z" }), _jsx("path", { d: "M3.5 9.75a.75.75 0 0 0-1.5 0v1.5A2.75 2.75 0 0 0 4.75 14h6.5A2.75 2.75 0 0 0 14 11.25v-1.5a.75.75 0 0 0-1.5 0v1.5c0 .69-.56 1.25-1.25 1.25h-6.5c-.69 0-1.25-.56-1.25-1.25v-1.5Z" })] }), "Promote"] }))] }, item._id))) }), _jsx(ArrowDownHeadIcon, { style: {
|
|
214
|
+
height: '20px',
|
|
215
|
+
width: '20px',
|
|
216
|
+
flex: 'none',
|
|
217
|
+
position: 'absolute',
|
|
218
|
+
right: 8,
|
|
219
|
+
top: 9.5,
|
|
220
|
+
color: '#6C727F',
|
|
221
|
+
}, "aria-hidden": "true" })] }));
|
|
222
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputLabel.d.ts","sourceRoot":"","sources":["../../../src/components/InputLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAcxE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export default function InputLabel(props) {
|
|
3
|
+
return (_jsx("div", { style: {
|
|
4
|
+
fontFamily: 'Inter; Helvetica',
|
|
5
|
+
color: '#6C727F',
|
|
6
|
+
fontSize: 14,
|
|
7
|
+
fontWeight: '600',
|
|
8
|
+
marginBottom: 2,
|
|
9
|
+
}, children: props.children }));
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface OrgSelectProps {
|
|
2
|
+
parentRef: any;
|
|
3
|
+
environment: string;
|
|
4
|
+
setEnvironment: (environment: string) => void;
|
|
5
|
+
organizations: any[];
|
|
6
|
+
theme: any;
|
|
7
|
+
organizationId: string;
|
|
8
|
+
setOrganizationId: (organizationId: string | null) => void;
|
|
9
|
+
}
|
|
10
|
+
export default function OrgSelect({ environment, setEnvironment, organizations, theme, organizationId, setOrganizationId, parentRef, }: OrgSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=OrgSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrgSelect.d.ts","sourceRoot":"","sources":["../../../src/components/OrgSelect.tsx"],"names":[],"mappings":"AAWA,UAAU,cAAc;IACtB,SAAS,EAAE,GAAG,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,aAAa,EAAE,GAAG,EAAE,CAAC;IACrB,KAAK,EAAE,GAAG,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CAC5D;AA0ND,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,WAAW,EACX,cAAc,EACd,aAAa,EACb,KAAK,EACL,cAAc,EACd,iBAAiB,EACjB,SAAS,GACV,EAAE,cAAc,2CAiGhB"}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef, useState, } from 'react';
|
|
3
|
+
import { ArrowDownHeadIcon } from '../icons';
|
|
4
|
+
import { useAdmin } from '../AdminProvider';
|
|
5
|
+
const useOnClickOutside = (ref, handler) => {
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
const listener = (event) => {
|
|
8
|
+
if (!ref.current || ref.current.contains(event.target)) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
handler(event);
|
|
12
|
+
};
|
|
13
|
+
document.addEventListener('mousedown', listener);
|
|
14
|
+
document.addEventListener('touchstart', listener);
|
|
15
|
+
return () => {
|
|
16
|
+
document.removeEventListener('mousedown', listener);
|
|
17
|
+
document.removeEventListener('touchstart', listener);
|
|
18
|
+
};
|
|
19
|
+
}, [ref, handler]);
|
|
20
|
+
};
|
|
21
|
+
function MemoizedPopover({ onClose, parentRef, children, style = {}, onClick, label, showTrigger = true, isOpen, setIsOpen, }) {
|
|
22
|
+
const modalRef = useRef(null);
|
|
23
|
+
useOnClickOutside(modalRef, (e) => {
|
|
24
|
+
// Exclude click on trigger button (e.g. Dropdown Button) from outside click handler
|
|
25
|
+
const isTriggerElem = parentRef
|
|
26
|
+
? parentRef.current?.contains(e.target)
|
|
27
|
+
: false;
|
|
28
|
+
if (isTriggerElem) {
|
|
29
|
+
handleCloseModal();
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
const handleCloseModal = () => {
|
|
33
|
+
setIsOpen(false);
|
|
34
|
+
if (onClose) {
|
|
35
|
+
onClose();
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
return (_jsxs("div", { children: [showTrigger && (_jsxs("button", {
|
|
39
|
+
// onMouseEnter={() => setIsOpen(true)}
|
|
40
|
+
onClick: (e) => {
|
|
41
|
+
setIsOpen(!isOpen);
|
|
42
|
+
if (onClick) {
|
|
43
|
+
onClick(e);
|
|
44
|
+
}
|
|
45
|
+
}, style: {
|
|
46
|
+
width: '100%',
|
|
47
|
+
minWidth: 230,
|
|
48
|
+
maxWidth: 230,
|
|
49
|
+
outline: 'none',
|
|
50
|
+
textAlign: 'left',
|
|
51
|
+
whiteSpace: 'nowrap',
|
|
52
|
+
overflow: 'hidden',
|
|
53
|
+
textOverflow: 'ellipsis',
|
|
54
|
+
borderRadius: 6,
|
|
55
|
+
WebkitAppearance: 'none',
|
|
56
|
+
borderTop: '1px solid #e7e7e7',
|
|
57
|
+
borderLeft: '1px solid #e7e7e7',
|
|
58
|
+
borderRight: '1px solid #e7e7e7',
|
|
59
|
+
borderBottom: '1px solid #e7e7e7',
|
|
60
|
+
paddingLeft: 12,
|
|
61
|
+
paddingRight: 12,
|
|
62
|
+
height: 38,
|
|
63
|
+
background: 'white',
|
|
64
|
+
color: '#384151',
|
|
65
|
+
// boxShadow: "0 1px 2px 0 rgba(0,0,0,.05)",
|
|
66
|
+
// fontFamily: theme.fontFamily,
|
|
67
|
+
fontWeight: 500,
|
|
68
|
+
fontSize: 14,
|
|
69
|
+
position: 'relative',
|
|
70
|
+
}, children: [label, _jsx(ArrowDownHeadIcon, { style: {
|
|
71
|
+
height: '20px',
|
|
72
|
+
width: '20px',
|
|
73
|
+
flex: 'none',
|
|
74
|
+
position: 'absolute',
|
|
75
|
+
right: 8,
|
|
76
|
+
top: 8,
|
|
77
|
+
color: '#6C727F',
|
|
78
|
+
}, "aria-hidden": "true" })] })), isOpen && (_jsx("div", { id: "quill-popover-modal", ref: modalRef, style: { position: 'relative' }, children: _jsx("div", { style: {
|
|
79
|
+
background: 'white',
|
|
80
|
+
position: 'absolute',
|
|
81
|
+
boxShadow: '0px 1px 12px 0px rgba(56, 65, 81, 0.1)',
|
|
82
|
+
border: '1px solid #e7e7e7',
|
|
83
|
+
boxSizing: 'content-box',
|
|
84
|
+
zIndex: 1,
|
|
85
|
+
top: showTrigger ? 8 : 0,
|
|
86
|
+
borderRadius: 6,
|
|
87
|
+
// padding: 20,
|
|
88
|
+
overflow: 'auto',
|
|
89
|
+
display: 'flex',
|
|
90
|
+
flexDirection: 'column',
|
|
91
|
+
alignItems: 'center',
|
|
92
|
+
...style,
|
|
93
|
+
}, children: children }) }))] }));
|
|
94
|
+
}
|
|
95
|
+
const MemoizedTextInput = ({ value, onChange, placeholder, id, }) => {
|
|
96
|
+
return (_jsxs("div", { style: {
|
|
97
|
+
position: 'relative',
|
|
98
|
+
display: 'flex',
|
|
99
|
+
flexDirection: 'row',
|
|
100
|
+
alignItems: 'center',
|
|
101
|
+
marginTop: 2,
|
|
102
|
+
}, children: [_jsx("style", { children: `
|
|
103
|
+
.quill-text-input {
|
|
104
|
+
background-color: white;
|
|
105
|
+
height: 40px;
|
|
106
|
+
width: 180px;
|
|
107
|
+
z-index: 2;
|
|
108
|
+
color: #384151;
|
|
109
|
+
border-radius: 4px;
|
|
110
|
+
text-align: left;
|
|
111
|
+
padding-right: 12px;
|
|
112
|
+
padding-top: 0px;
|
|
113
|
+
padding-bottom: 0px;
|
|
114
|
+
box-sizing: content-box;
|
|
115
|
+
margin-left: 6px;
|
|
116
|
+
}
|
|
117
|
+
.quill-text-input:focus {
|
|
118
|
+
outline: none;
|
|
119
|
+
}` }), _jsx("div", { style: { width: 6 } }), _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "rgba(56, 65, 81, 0.7)", height: "16", width: "16", children: _jsx("path", { fillRule: "evenodd", d: "M9.965 11.026a5 5 0 1 1 1.06-1.06l2.755 2.754a.75.75 0 1 1-1.06 1.06l-2.755-2.754ZM10.5 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z", clipRule: "evenodd" }) }), _jsx("input", { id: id, className: "quill-text-input", type: "text", value: value, onChange: (event) => onChange(event.target.value), placeholder: placeholder })] }));
|
|
120
|
+
};
|
|
121
|
+
export default function OrgSelect({ environment, setEnvironment, organizations, theme, organizationId, setOrganizationId, parentRef, }) {
|
|
122
|
+
useEffect(() => {
|
|
123
|
+
setEnvironment(environment);
|
|
124
|
+
}, [environment]);
|
|
125
|
+
const { state, dispatch } = useAdmin();
|
|
126
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
127
|
+
const [searchQuery, setSearchQuery] = useState('');
|
|
128
|
+
const dropDownItems = organizations.map((org) => ({
|
|
129
|
+
name: org.name,
|
|
130
|
+
id: org.id,
|
|
131
|
+
}));
|
|
132
|
+
const handleSelectOrganization = (selectedItem) => {
|
|
133
|
+
if (state.activeQuery) {
|
|
134
|
+
const message = 'Are you sure? Changing organization will exit edit mode and your changes will not be saved.';
|
|
135
|
+
if (!confirm(message))
|
|
136
|
+
return;
|
|
137
|
+
dispatch({ type: 'SET_ACTIVE_QUERY', payload: '' });
|
|
138
|
+
dispatch({ type: 'SET_ACTIVE_EDIT_ITEM', payload: null });
|
|
139
|
+
}
|
|
140
|
+
setOrganizationId(selectedItem?.id || '');
|
|
141
|
+
setIsOpen(false);
|
|
142
|
+
};
|
|
143
|
+
const selectedOrganization = dropDownItems.find((item) => item.id === organizationId);
|
|
144
|
+
const filteredOrganizations = searchQuery === ''
|
|
145
|
+
? dropDownItems
|
|
146
|
+
: dropDownItems.filter((org) => org.name
|
|
147
|
+
.toLowerCase()
|
|
148
|
+
.replace(/\s+/g, '')
|
|
149
|
+
.includes(searchQuery.toLowerCase().replace(/\s+/g, '')));
|
|
150
|
+
return (_jsxs("div", { style: { display: 'flex', flexDirection: 'column' }, children: [_jsx("h1", { style: {
|
|
151
|
+
fontSize: '14px',
|
|
152
|
+
paddingTop: '0px',
|
|
153
|
+
marginTop: '0px',
|
|
154
|
+
marginBottom: '4px',
|
|
155
|
+
fontWeight: '600',
|
|
156
|
+
color: theme.secondaryTextColor,
|
|
157
|
+
}, children: "Organization" }), _jsxs(MemoizedPopover, { parentRef: parentRef, label: selectedOrganization && selectedOrganization.name, isOpen: isOpen, onClose: () => setIsOpen(false), style: {
|
|
158
|
+
boxSizing: 'border-box',
|
|
159
|
+
fontSize: 14,
|
|
160
|
+
// padding: 11,
|
|
161
|
+
}, setIsOpen: setIsOpen, onClick: () => console.log(), children: [_jsx(MemoizedTextInput, { id: "quill-search-bar", placeholder: "Search", value: searchQuery, onChange: setSearchQuery }), _jsx("div", { style: { height: 9, width: 230, borderTop: '1px solid #e7e7e7' } }), _jsxs("div", { style: { gap: 2, maxHeight: '50vh' }, children: [filteredOrganizations.map((item, index) => (_jsx(OrgSelectRow, { setSelected: handleSelectOrganization, item: item }, index))), filteredOrganizations.length === 0 && (_jsx(OrgSelectRow, { item: { name: 'No organizations found' } }))] }), _jsx("div", { style: { height: 8, width: 230 } })] })] }));
|
|
162
|
+
}
|
|
163
|
+
function OrgSelectRow({ item, setSelected, }) {
|
|
164
|
+
return (_jsxs("div", { onClick: setSelected ? () => setSelected(item) : undefined, className: "quill-org-select", children: [_jsx("style", { children: `
|
|
165
|
+
.quill-org-select {
|
|
166
|
+
background-color: white;
|
|
167
|
+
height: 42px;
|
|
168
|
+
color: #384151;
|
|
169
|
+
width: 216px;
|
|
170
|
+
borderBottom: 1px solid #e7e7e7;
|
|
171
|
+
border-radius: 6px;
|
|
172
|
+
text-align: left;
|
|
173
|
+
padding-left: 10px;
|
|
174
|
+
padding-right: 12px;
|
|
175
|
+
display: flex;
|
|
176
|
+
flex-direction: row;
|
|
177
|
+
align-items: center;
|
|
178
|
+
cursor: pointer;
|
|
179
|
+
font-weight: 500;
|
|
180
|
+
font-size: 14px;
|
|
181
|
+
text-overflow: ellipsis;
|
|
182
|
+
white-space: nowrap;
|
|
183
|
+
overflow: hidden;
|
|
184
|
+
}
|
|
185
|
+
.quill-org-select:hover {
|
|
186
|
+
background-color: rgba(56, 65, 81, 0.04);
|
|
187
|
+
}` }), _jsx("div", { style: {
|
|
188
|
+
textOverflow: 'ellipsis',
|
|
189
|
+
whiteSpace: 'nowrap',
|
|
190
|
+
overflow: 'hidden',
|
|
191
|
+
display: 'block',
|
|
192
|
+
}, children: item.name })] }));
|
|
193
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export default function SqlViewTile({ query, name, header2Style, header1Style, }: {
|
|
3
|
+
query: string;
|
|
4
|
+
name: string;
|
|
5
|
+
header1Style?: CSSProperties;
|
|
6
|
+
header2Style?: CSSProperties;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=SqlViewTile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SqlViewTile.d.ts","sourceRoot":"","sources":["../../../src/components/SqlViewTile.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI7C,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,KAAK,EACL,IAAI,EACJ,YAAY,EACZ,YAAY,GACb,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,YAAY,CAAC,EAAE,aAAa,CAAC;CAC9B,2CAuEA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import prismTheme from 'prism-react-renderer/themes/nightOwlLight';
|
|
3
|
+
import Highlight, { defaultProps } from 'prism-react-renderer';
|
|
4
|
+
export default function SqlViewTile({ query, name, header2Style, header1Style, }) {
|
|
5
|
+
return (_jsxs("div", { style: {
|
|
6
|
+
// height: '30px',
|
|
7
|
+
// width: '40px',
|
|
8
|
+
width: '100%',
|
|
9
|
+
height: 200,
|
|
10
|
+
display: 'flex',
|
|
11
|
+
flexDirection: 'column',
|
|
12
|
+
border: '1px solid #e7e7e7',
|
|
13
|
+
borderRadius: 6,
|
|
14
|
+
padding: '12px',
|
|
15
|
+
background: 'white',
|
|
16
|
+
}, children: [_jsx("h1", { style: {
|
|
17
|
+
...header1Style,
|
|
18
|
+
maxWidth: '100%',
|
|
19
|
+
whiteSpace: 'nowrap',
|
|
20
|
+
overflow: 'hidden',
|
|
21
|
+
textOverflow: 'ellipsis',
|
|
22
|
+
fontSize: 15,
|
|
23
|
+
color: '#212121',
|
|
24
|
+
}, children: name }), _jsx("div", { style: {
|
|
25
|
+
backgroundColor: '#FBFBFB',
|
|
26
|
+
height: '100%',
|
|
27
|
+
borderRadius: 6,
|
|
28
|
+
fontSize: 14,
|
|
29
|
+
overflow: 'hidden',
|
|
30
|
+
border: '1px solid #e7e7e7',
|
|
31
|
+
}, children: _jsx(Highlight, { ...defaultProps, theme: prismTheme, code: query, language: "sql", children: ({ className, style, tokens, getLineProps, getTokenProps }) => (_jsx("pre", { className: className, style: {
|
|
32
|
+
...style,
|
|
33
|
+
textAlign: 'left',
|
|
34
|
+
margin: '1em 0',
|
|
35
|
+
padding: '0.5em',
|
|
36
|
+
overflow: 'scroll',
|
|
37
|
+
height: 130,
|
|
38
|
+
maxWidth: 520,
|
|
39
|
+
}, children: tokens.map((line, i) => (_jsx("div", { ...getLineProps({ line, key: i }), children: line.map((token, key) => (_jsx("span", { ...getTokenProps({ token, key }) }, key))) }, i))) })) }) })] }));
|
|
40
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
interface StepDisplayProps {
|
|
3
|
+
label: string;
|
|
4
|
+
completed: boolean;
|
|
5
|
+
header1Style: CSSProperties;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export default function StepDisplay({ label, completed, header1Style, onClick, }: StepDisplayProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=StepDisplay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepDisplay.d.ts","sourceRoot":"","sources":["../../../src/components/StepDisplay.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAY,MAAM,OAAO,CAAC;AAGvD,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,aAAa,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,KAAK,EACL,SAAS,EACT,YAAY,EACZ,OAAO,GACR,EAAE,gBAAgB,2CA0ClB"}
|