@x15ventures/x15-ui-library 3.16.1 → 3.18.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/dist/cjs/autoGenerated/libraryThemes.js +12 -12
- package/dist/cjs/autoGenerated/libraryThemes.js.map +1 -1
- package/dist/cjs/autoGenerated/libraryThemes.json +12 -12
- package/dist/cjs/components/design/accordion/Accordion.js +7 -23
- package/dist/cjs/components/design/accordion/Accordion.js.map +1 -1
- package/dist/cjs/components/design/banners/pageBanner/PageBanner.js +2 -4
- package/dist/cjs/components/design/banners/pageBanner/PageBanner.js.map +1 -1
- package/dist/cjs/components/design/card/cardContent/CardContentLine.js +2 -2
- package/dist/cjs/components/design/card/cardContent/CardContentLine.js.map +1 -1
- package/dist/cjs/components/design/card/cardHeader/CardHeaderItem.js +2 -2
- package/dist/cjs/components/design/card/cardHeader/CardHeaderItem.js.map +1 -1
- package/dist/cjs/components/design/dialog/Dialog.js +3 -1
- package/dist/cjs/components/design/dialog/Dialog.js.map +1 -1
- package/dist/cjs/components/design/dialog/dialog.css +5 -0
- package/dist/cjs/components/design/headerBar/HeaderBar.js +3 -3
- package/dist/cjs/components/design/headerBar/HeaderBar.js.map +1 -1
- package/dist/cjs/components/design/icons/notificationIcon/NotificationIcon.js +4 -5
- package/dist/cjs/components/design/icons/notificationIcon/NotificationIcon.js.map +1 -1
- package/dist/cjs/components/design/paginators/Paginator.js +4 -12
- package/dist/cjs/components/design/paginators/Paginator.js.map +1 -1
- package/dist/cjs/components/design/progressIndicators/circularProgressIndicator/CircularProgressIndicator.js +89 -0
- package/dist/cjs/components/design/progressIndicators/circularProgressIndicator/CircularProgressIndicator.js.map +1 -0
- package/dist/cjs/components/design/progressIndicators/circularProgressIndicator/circularProgressIndicator.css +301 -0
- package/dist/cjs/components/design/revealMore/RevealMoreBelow.js +1 -3
- package/dist/cjs/components/design/revealMore/RevealMoreBelow.js.map +1 -1
- package/dist/cjs/components/design/revealMore/RevealMoreInline.js +3 -5
- package/dist/cjs/components/design/revealMore/RevealMoreInline.js.map +1 -1
- package/dist/cjs/components/design/revealMore/types/revealMoreTypes.js.map +1 -1
- package/dist/cjs/components/design/sidePanel/SidePanel.js +3 -5
- package/dist/cjs/components/design/sidePanel/SidePanel.js.map +1 -1
- package/dist/cjs/components/design/statusIndicators/statusIconLabel/StatusIconLabel.js +6 -11
- package/dist/cjs/components/design/statusIndicators/statusIconLabel/StatusIconLabel.js.map +1 -1
- package/dist/cjs/components/design/tabs/Tabs.js +2 -2
- package/dist/cjs/components/design/tabs/Tabs.js.map +1 -1
- package/dist/cjs/components/design/themeLoader/ThemeLoader.js +2 -2
- package/dist/cjs/components/design/themeLoader/ThemeLoader.js.map +1 -1
- package/dist/cjs/components/design/tooltip/Tooltip.js +43 -13
- package/dist/cjs/components/design/tooltip/Tooltip.js.map +1 -1
- package/dist/cjs/components/design/tooltip/index.js +6 -0
- package/dist/cjs/components/design/tooltip/index.js.map +1 -1
- package/dist/cjs/components/design/tooltip/tooltip.css +18 -7
- package/dist/cjs/components/form/buttons/SimpleButton.js +3 -3
- package/dist/cjs/components/form/buttons/SimpleButton.js.map +1 -1
- package/dist/cjs/components/form/buttons/button.interface.js.map +1 -1
- package/dist/cjs/components/form/formFields/formFieldWrapper/formFieldProps.js.map +1 -1
- package/dist/cjs/components/form/formFields/subComponents/inputs/checkbox/InputCheckbox.js +5 -5
- package/dist/cjs/components/form/formFields/subComponents/inputs/checkbox/InputCheckbox.js.map +1 -1
- package/dist/cjs/components/form/formFields/subComponents/inputs/checkbox/checkboxSwitch/CheckboxSwitch.js +176 -0
- package/dist/cjs/components/form/formFields/subComponents/inputs/checkbox/checkboxSwitch/CheckboxSwitch.js.map +1 -0
- package/dist/cjs/components/form/formFields/subComponents/inputs/checkbox/checkboxSwitch/_checkboxSwitchVariables.css +0 -0
- package/dist/cjs/components/form/formFields/subComponents/inputs/checkbox/checkboxSwitch/checkboxSwitch.css +306 -0
- package/dist/cjs/components/form/formFields/subComponents/inputs/checkbox/checkboxSwitch/checkboxSwitchProps.js +6 -0
- package/dist/cjs/components/form/formFields/subComponents/inputs/checkbox/checkboxSwitch/checkboxSwitchProps.js.map +1 -0
- package/dist/cjs/components/form/formFields/subComponents/inputs/checkbox/inputCheckboxProps.js.map +1 -1
- package/dist/cjs/components/form/formFields/subComponents/inputs/file/dragAndDrop/DragAndDropFileUpload.js +3 -5
- package/dist/cjs/components/form/formFields/subComponents/inputs/file/dragAndDrop/DragAndDropFileUpload.js.map +1 -1
- package/dist/cjs/components/form/formFields/subComponents/inputs/file/fileAttachmentList/FileAttachmentsList.js +12 -22
- package/dist/cjs/components/form/formFields/subComponents/inputs/file/fileAttachmentList/FileAttachmentsList.js.map +1 -1
- package/dist/cjs/components/form/formFields/subComponents/inputs/file/fileInputProps.js.map +1 -1
- package/dist/cjs/components/index.js +14 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/components/navigation/menu/Menu.interfaces.js.map +1 -1
- package/dist/cjs/components/navigation/menu/menuItemContent/MenuItemIcon.js +19 -31
- package/dist/cjs/components/navigation/menu/menuItemContent/MenuItemIcon.js.map +1 -1
- package/dist/cjs/helpers/iconHelpers.js +83 -0
- package/dist/cjs/helpers/iconHelpers.js.map +1 -0
- package/dist/cjs/helpers/index.js +43 -0
- package/dist/cjs/helpers/index.js.map +1 -1
- package/dist/cjs/helpers/objectHelpers.js +9 -2
- package/dist/cjs/helpers/objectHelpers.js.map +1 -1
- package/dist/cjs/hooks/InteractiveHostFocus.js +62 -0
- package/dist/cjs/hooks/InteractiveHostFocus.js.map +1 -0
- package/dist/cjs/hooks/index.js +7 -0
- package/dist/cjs/hooks/index.js.map +1 -1
- package/dist/cjs/index.js +79 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/headerText.interface.js.map +1 -1
- package/dist/cjs/package.json +16 -28
- package/dist/cjs/styles/index.css +61 -0
- package/dist/cjs/styles/storybook/storybook.css +7 -0
- package/dist/cjs/styles/variables/cssVars/_darkModeVariables.css +21 -0
- package/dist/cjs/styles/variables/cssVars/_formVariables.css +40 -0
- package/dist/cjs/widgets/index.js +14 -0
- package/dist/cjs/widgets/index.js.map +1 -0
- package/dist/cjs/widgets/processLauncher/ProcessLauncher.js +272 -0
- package/dist/cjs/widgets/processLauncher/ProcessLauncher.js.map +1 -0
- package/dist/cjs/widgets/processLauncher/index.js +13 -0
- package/dist/cjs/widgets/processLauncher/index.js.map +1 -0
- package/dist/cjs/widgets/processLauncher/processLauncher.interfaces.js +6 -0
- package/dist/cjs/widgets/processLauncher/processLauncher.interfaces.js.map +1 -0
- package/dist/components/design/accordion/Accordion.d.ts +3 -2
- package/dist/components/design/accordion/Accordion.d.ts.map +1 -1
- package/dist/components/design/banners/pageBanner/PageBanner.d.ts +2 -1
- package/dist/components/design/banners/pageBanner/PageBanner.d.ts.map +1 -1
- package/dist/components/design/card/cardContent/CardContentLine.d.ts +2 -2
- package/dist/components/design/card/cardContent/CardContentLine.d.ts.map +1 -1
- package/dist/components/design/card/cardHeader/CardHeaderItem.d.ts +2 -2
- package/dist/components/design/card/cardHeader/CardHeaderItem.d.ts.map +1 -1
- package/dist/components/design/dialog/Dialog.d.ts.map +1 -1
- package/dist/components/design/headerBar/HeaderBar.d.ts.map +1 -1
- package/dist/components/design/icons/notificationIcon/NotificationIcon.d.ts +2 -2
- package/dist/components/design/icons/notificationIcon/NotificationIcon.d.ts.map +1 -1
- package/dist/components/design/paginators/Paginator.d.ts +3 -2
- package/dist/components/design/paginators/Paginator.d.ts.map +1 -1
- package/dist/components/design/progressIndicators/circularProgressIndicator/CircularProgressIndicator.d.ts +18 -0
- package/dist/components/design/progressIndicators/circularProgressIndicator/CircularProgressIndicator.d.ts.map +1 -0
- package/dist/components/design/progressIndicators/circularProgressIndicator/CircularProgressIndicator.test.d.ts +5 -0
- package/dist/components/design/progressIndicators/circularProgressIndicator/CircularProgressIndicator.test.d.ts.map +1 -0
- package/dist/components/design/revealMore/RevealMoreBelow.d.ts.map +1 -1
- package/dist/components/design/revealMore/RevealMoreInline.d.ts.map +1 -1
- package/dist/components/design/revealMore/types/revealMoreTypes.d.ts +3 -2
- package/dist/components/design/revealMore/types/revealMoreTypes.d.ts.map +1 -1
- package/dist/components/design/sidePanel/SidePanel.d.ts +3 -2
- package/dist/components/design/sidePanel/SidePanel.d.ts.map +1 -1
- package/dist/components/design/statusIndicators/statusIconLabel/StatusIconLabel.d.ts +2 -2
- package/dist/components/design/statusIndicators/statusIconLabel/StatusIconLabel.d.ts.map +1 -1
- package/dist/components/design/tabs/Tabs.d.ts +3 -3
- package/dist/components/design/tabs/Tabs.d.ts.map +1 -1
- package/dist/components/design/tooltip/Tooltip.d.ts +17 -3
- package/dist/components/design/tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/design/tooltip/Tooltip.test.d.ts +1 -1
- package/dist/components/design/tooltip/Tooltip.test.d.ts.map +1 -1
- package/dist/components/design/tooltip/index.d.ts +1 -1
- package/dist/components/design/tooltip/index.d.ts.map +1 -1
- package/dist/components/form/buttons/SimpleButton.test.d.ts +5 -0
- package/dist/components/form/buttons/SimpleButton.test.d.ts.map +1 -0
- package/dist/components/form/buttons/button.interface.d.ts +3 -3
- package/dist/components/form/buttons/button.interface.d.ts.map +1 -1
- package/dist/components/form/formFields/formFieldWrapper/formFieldProps.d.ts +2 -1
- package/dist/components/form/formFields/formFieldWrapper/formFieldProps.d.ts.map +1 -1
- package/dist/components/form/formFields/subComponents/inputs/checkbox/checkboxSwitch/CheckboxSwitch.d.ts +29 -0
- package/dist/components/form/formFields/subComponents/inputs/checkbox/checkboxSwitch/CheckboxSwitch.d.ts.map +1 -0
- package/dist/components/form/formFields/subComponents/inputs/checkbox/checkboxSwitch/CheckboxSwitch.test.d.ts +5 -0
- package/dist/components/form/formFields/subComponents/inputs/checkbox/checkboxSwitch/CheckboxSwitch.test.d.ts.map +1 -0
- package/dist/components/form/formFields/subComponents/inputs/checkbox/checkboxSwitch/checkboxSwitchProps.d.ts +52 -0
- package/dist/components/form/formFields/subComponents/inputs/checkbox/checkboxSwitch/checkboxSwitchProps.d.ts.map +1 -0
- package/dist/components/form/formFields/subComponents/inputs/checkbox/inputCheckboxProps.d.ts +3 -3
- package/dist/components/form/formFields/subComponents/inputs/checkbox/inputCheckboxProps.d.ts.map +1 -1
- package/dist/components/form/formFields/subComponents/inputs/file/fileAttachmentList/FileAttachmentsList.d.ts.map +1 -1
- package/dist/components/form/formFields/subComponents/inputs/file/fileInputProps.d.ts +4 -3
- package/dist/components/form/formFields/subComponents/inputs/file/fileInputProps.d.ts.map +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/navigation/menu/Menu.interfaces.d.ts +4 -3
- package/dist/components/navigation/menu/Menu.interfaces.d.ts.map +1 -1
- package/dist/components/navigation/menu/menuItemContent/MenuItemIcon.d.ts +2 -1
- package/dist/components/navigation/menu/menuItemContent/MenuItemIcon.d.ts.map +1 -1
- package/dist/components/navigation/menu/menuItemContent/MenuItemIcon.test.d.ts +5 -0
- package/dist/components/navigation/menu/menuItemContent/MenuItemIcon.test.d.ts.map +1 -0
- package/dist/esm/autoGenerated/libraryThemes.js +12 -12
- package/dist/esm/autoGenerated/libraryThemes.js.map +1 -1
- package/dist/esm/autoGenerated/libraryThemes.json +12 -12
- package/dist/esm/components/design/accordion/Accordion.js +7 -23
- package/dist/esm/components/design/accordion/Accordion.js.map +1 -1
- package/dist/esm/components/design/banners/pageBanner/PageBanner.js +2 -4
- package/dist/esm/components/design/banners/pageBanner/PageBanner.js.map +1 -1
- package/dist/esm/components/design/card/cardContent/CardContentLine.js +2 -2
- package/dist/esm/components/design/card/cardContent/CardContentLine.js.map +1 -1
- package/dist/esm/components/design/card/cardHeader/CardHeaderItem.js +2 -2
- package/dist/esm/components/design/card/cardHeader/CardHeaderItem.js.map +1 -1
- package/dist/esm/components/design/dialog/Dialog.js +3 -1
- package/dist/esm/components/design/dialog/Dialog.js.map +1 -1
- package/dist/esm/components/design/dialog/dialog.css +5 -0
- package/dist/esm/components/design/headerBar/HeaderBar.js +3 -3
- package/dist/esm/components/design/headerBar/HeaderBar.js.map +1 -1
- package/dist/esm/components/design/icons/notificationIcon/NotificationIcon.js +4 -5
- package/dist/esm/components/design/icons/notificationIcon/NotificationIcon.js.map +1 -1
- package/dist/esm/components/design/paginators/Paginator.js +4 -12
- package/dist/esm/components/design/paginators/Paginator.js.map +1 -1
- package/dist/esm/components/design/progressIndicators/circularProgressIndicator/CircularProgressIndicator.js +82 -0
- package/dist/esm/components/design/progressIndicators/circularProgressIndicator/CircularProgressIndicator.js.map +1 -0
- package/dist/esm/components/design/progressIndicators/circularProgressIndicator/circularProgressIndicator.css +301 -0
- package/dist/esm/components/design/revealMore/RevealMoreBelow.js +1 -3
- package/dist/esm/components/design/revealMore/RevealMoreBelow.js.map +1 -1
- package/dist/esm/components/design/revealMore/RevealMoreInline.js +2 -4
- package/dist/esm/components/design/revealMore/RevealMoreInline.js.map +1 -1
- package/dist/esm/components/design/revealMore/types/revealMoreTypes.js.map +1 -1
- package/dist/esm/components/design/sidePanel/SidePanel.js +3 -5
- package/dist/esm/components/design/sidePanel/SidePanel.js.map +1 -1
- package/dist/esm/components/design/statusIndicators/statusIconLabel/StatusIconLabel.js +6 -11
- package/dist/esm/components/design/statusIndicators/statusIconLabel/StatusIconLabel.js.map +1 -1
- package/dist/esm/components/design/tabs/Tabs.js +2 -2
- package/dist/esm/components/design/tabs/Tabs.js.map +1 -1
- package/dist/esm/components/design/themeLoader/ThemeLoader.js +1 -1
- package/dist/esm/components/design/themeLoader/ThemeLoader.js.map +1 -1
- package/dist/esm/components/design/tooltip/Tooltip.js +41 -12
- package/dist/esm/components/design/tooltip/Tooltip.js.map +1 -1
- package/dist/esm/components/design/tooltip/index.js +1 -1
- package/dist/esm/components/design/tooltip/index.js.map +1 -1
- package/dist/esm/components/design/tooltip/tooltip.css +18 -7
- package/dist/esm/components/form/buttons/SimpleButton.js +3 -3
- package/dist/esm/components/form/buttons/SimpleButton.js.map +1 -1
- package/dist/esm/components/form/buttons/button.interface.js.map +1 -1
- package/dist/esm/components/form/formFields/formFieldWrapper/formFieldProps.js.map +1 -1
- package/dist/esm/components/form/formFields/subComponents/inputs/checkbox/InputCheckbox.js +5 -5
- package/dist/esm/components/form/formFields/subComponents/inputs/checkbox/InputCheckbox.js.map +1 -1
- package/dist/esm/components/form/formFields/subComponents/inputs/checkbox/checkboxSwitch/CheckboxSwitch.js +167 -0
- package/dist/esm/components/form/formFields/subComponents/inputs/checkbox/checkboxSwitch/CheckboxSwitch.js.map +1 -0
- package/dist/esm/components/form/formFields/subComponents/inputs/checkbox/checkboxSwitch/_checkboxSwitchVariables.css +0 -0
- package/dist/esm/components/form/formFields/subComponents/inputs/checkbox/checkboxSwitch/checkboxSwitch.css +306 -0
- package/dist/esm/components/form/formFields/subComponents/inputs/checkbox/checkboxSwitch/checkboxSwitchProps.js +2 -0
- package/dist/esm/components/form/formFields/subComponents/inputs/checkbox/checkboxSwitch/checkboxSwitchProps.js.map +1 -0
- package/dist/esm/components/form/formFields/subComponents/inputs/checkbox/inputCheckboxProps.js.map +1 -1
- package/dist/esm/components/form/formFields/subComponents/inputs/file/dragAndDrop/DragAndDropFileUpload.js +3 -5
- package/dist/esm/components/form/formFields/subComponents/inputs/file/dragAndDrop/DragAndDropFileUpload.js.map +1 -1
- package/dist/esm/components/form/formFields/subComponents/inputs/file/fileAttachmentList/FileAttachmentsList.js +12 -22
- package/dist/esm/components/form/formFields/subComponents/inputs/file/fileAttachmentList/FileAttachmentsList.js.map +1 -1
- package/dist/esm/components/form/formFields/subComponents/inputs/file/fileInputProps.js.map +1 -1
- package/dist/esm/components/index.js +2 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/components/navigation/menu/Menu.interfaces.js.map +1 -1
- package/dist/esm/components/navigation/menu/menuItemContent/MenuItemIcon.js +17 -30
- package/dist/esm/components/navigation/menu/menuItemContent/MenuItemIcon.js.map +1 -1
- package/dist/esm/helpers/iconHelpers.js +73 -0
- package/dist/esm/helpers/iconHelpers.js.map +1 -0
- package/dist/esm/helpers/index.js +2 -1
- package/dist/esm/helpers/index.js.map +1 -1
- package/dist/esm/helpers/objectHelpers.js +7 -3
- package/dist/esm/helpers/objectHelpers.js.map +1 -1
- package/dist/esm/hooks/InteractiveHostFocus.js +56 -0
- package/dist/esm/hooks/InteractiveHostFocus.js.map +1 -0
- package/dist/esm/hooks/index.js +1 -0
- package/dist/esm/hooks/index.js.map +1 -1
- package/dist/esm/index.js +5 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/headerText.interface.js.map +1 -1
- package/dist/esm/package.json +16 -28
- package/dist/esm/styles/index.css +61 -0
- package/dist/esm/styles/storybook/storybook.css +7 -0
- package/dist/esm/styles/variables/cssVars/_darkModeVariables.css +21 -0
- package/dist/esm/styles/variables/cssVars/_formVariables.css +40 -0
- package/dist/esm/widgets/index.js +4 -0
- package/dist/esm/widgets/index.js.map +1 -0
- package/dist/esm/widgets/processLauncher/ProcessLauncher.js +263 -0
- package/dist/esm/widgets/processLauncher/ProcessLauncher.js.map +1 -0
- package/dist/esm/widgets/processLauncher/index.js +2 -0
- package/dist/esm/widgets/processLauncher/index.js.map +1 -0
- package/dist/esm/widgets/processLauncher/processLauncher.interfaces.js +2 -0
- package/dist/esm/widgets/processLauncher/processLauncher.interfaces.js.map +1 -0
- package/dist/helpers/iconHelpers.d.ts +30 -0
- package/dist/helpers/iconHelpers.d.ts.map +1 -0
- package/dist/helpers/iconHelpers.test.d.ts +5 -0
- package/dist/helpers/iconHelpers.test.d.ts.map +1 -0
- package/dist/helpers/index.d.ts +4 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/objectHelpers.d.ts +10 -3
- package/dist/helpers/objectHelpers.d.ts.map +1 -1
- package/dist/hooks/InteractiveHostFocus.d.ts +12 -0
- package/dist/hooks/InteractiveHostFocus.d.ts.map +1 -0
- package/dist/hooks/InteractiveHostFocus.test.d.ts +5 -0
- package/dist/hooks/InteractiveHostFocus.test.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/index.d.ts +9 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/interfaces/headerText.interface.d.ts +3 -3
- package/dist/interfaces/headerText.interface.d.ts.map +1 -1
- package/dist/package.json +16 -28
- package/dist/widgets/index.d.ts +3 -0
- package/dist/widgets/index.d.ts.map +1 -0
- package/dist/widgets/processLauncher/ProcessLauncher.d.ts +21 -0
- package/dist/widgets/processLauncher/ProcessLauncher.d.ts.map +1 -0
- package/dist/widgets/processLauncher/ProcessLauncher.test.d.ts +5 -0
- package/dist/widgets/processLauncher/ProcessLauncher.test.d.ts.map +1 -0
- package/dist/widgets/processLauncher/index.d.ts +4 -0
- package/dist/widgets/processLauncher/index.d.ts.map +1 -0
- package/dist/widgets/processLauncher/processLauncher.interfaces.d.ts +45 -0
- package/dist/widgets/processLauncher/processLauncher.interfaces.d.ts.map +1 -0
- package/package.json +16 -28
- package/readme.md +0 -36
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = exports.ProcessLauncher = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _reactHookForm = require("react-hook-form");
|
|
11
|
+
var _components = require("../../components");
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
|
+
/*
|
|
14
|
+
ProcessLauncher is a component that provides a UI for launching an process.
|
|
15
|
+
It displays a button that opens a modal for launching the process when the process is in the 'prelaunch' state.
|
|
16
|
+
It displays a CircularProgressIndicator when the process is in other states (running, complete, warning, error).
|
|
17
|
+
The dialog contains a form for configuring the process before launching it. The form is passed as children to the ProcessLauncher component.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
const defaultLaunchButtonProps = {
|
|
21
|
+
cssClass: 'button outline icon-only processLauncherButton',
|
|
22
|
+
hideLabel: true,
|
|
23
|
+
size: 'default',
|
|
24
|
+
icon: 'magic-wand'
|
|
25
|
+
};
|
|
26
|
+
const defaultProgressIndicatorProps = {
|
|
27
|
+
size: 'small',
|
|
28
|
+
hideLabel: true,
|
|
29
|
+
icon: 'magic-wand'
|
|
30
|
+
};
|
|
31
|
+
const ProcessLauncher = ({
|
|
32
|
+
initialStatus = 'idle',
|
|
33
|
+
statusMessage = '',
|
|
34
|
+
processDefinition,
|
|
35
|
+
launchButtonProps = {},
|
|
36
|
+
progressIndicatorProps = {},
|
|
37
|
+
onLaunch = () => {},
|
|
38
|
+
onCancel = () => {},
|
|
39
|
+
progressUpdateMode = 'fetch',
|
|
40
|
+
onProgressCheck,
|
|
41
|
+
progressSubscription,
|
|
42
|
+
onProgressIndicatorClick,
|
|
43
|
+
preRequisiteFieldIds = [],
|
|
44
|
+
preRequisitesDialogTitle = 'Launch Process',
|
|
45
|
+
children
|
|
46
|
+
}) => {
|
|
47
|
+
const {
|
|
48
|
+
id: processId
|
|
49
|
+
} = processDefinition;
|
|
50
|
+
const [isDialogOpen, setIsDialogOpen] = _react.default.useState(false);
|
|
51
|
+
const [status, setStatus] = _react.default.useState(initialStatus);
|
|
52
|
+
const [currentProgress, setCurrentProgress] = _react.default.useState(0);
|
|
53
|
+
const launchAttemptRef = (0, _react.useRef)(0);
|
|
54
|
+
const formContext = (0, _reactHookForm.useFormContext)();
|
|
55
|
+
const handleCancel = () => {
|
|
56
|
+
launchAttemptRef.current += 1;
|
|
57
|
+
setIsDialogOpen(false);
|
|
58
|
+
setStatus('idle');
|
|
59
|
+
onCancel();
|
|
60
|
+
};
|
|
61
|
+
const handlePreLaunchTriggered = () => {
|
|
62
|
+
launchAttemptRef.current += 1;
|
|
63
|
+
setStatus('prelaunch');
|
|
64
|
+
setIsDialogOpen(true);
|
|
65
|
+
};
|
|
66
|
+
const handleLaunch = async () => {
|
|
67
|
+
const launchAttempt = ++launchAttemptRef.current;
|
|
68
|
+
// Validate the form data here if needed before launching the process
|
|
69
|
+
// Get the field values from the form and pass them to the onLaunch function
|
|
70
|
+
// Loop through the preRequisiteFieldIds and check if they have values in the form
|
|
71
|
+
// Also bundle the values of the preRequisiteFieldIds and pass them to the onLaunch function
|
|
72
|
+
if (preRequisiteFieldIds.length === 0) {
|
|
73
|
+
// If there are no preRequisiteFieldIds, we can launch the process without any validation
|
|
74
|
+
setIsDialogOpen(false);
|
|
75
|
+
setStatus('running');
|
|
76
|
+
onLaunch({
|
|
77
|
+
processId,
|
|
78
|
+
fieldValues: {}
|
|
79
|
+
});
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const {
|
|
83
|
+
trigger,
|
|
84
|
+
getFieldState,
|
|
85
|
+
setFocus
|
|
86
|
+
} = formContext;
|
|
87
|
+
const isValid = await trigger(preRequisiteFieldIds);
|
|
88
|
+
if (launchAttempt !== launchAttemptRef.current) return;
|
|
89
|
+
if (!isValid) {
|
|
90
|
+
const firstInvalidFieldId = preRequisiteFieldIds.find(fieldId => getFieldState(fieldId).invalid);
|
|
91
|
+
if (firstInvalidFieldId) setFocus(firstInvalidFieldId);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
setIsDialogOpen(false);
|
|
95
|
+
setStatus('running');
|
|
96
|
+
setCurrentProgress(0);
|
|
97
|
+
const fieldValues = Object.fromEntries(preRequisiteFieldIds.map(fieldId => [fieldId, formContext.getValues(fieldId)]));
|
|
98
|
+
onLaunch({
|
|
99
|
+
processId,
|
|
100
|
+
fieldValues
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
// Ref (not a render-scoped let) so every closure clears the same interval handle
|
|
105
|
+
const progressCheckIntervalRef = (0, _react.useRef)(null);
|
|
106
|
+
const progressUnsubscribeRef = (0, _react.useRef)(null);
|
|
107
|
+
const turnOffProgressCheck = (0, _react.useCallback)(() => {
|
|
108
|
+
if (progressCheckIntervalRef.current) {
|
|
109
|
+
clearInterval(progressCheckIntervalRef.current);
|
|
110
|
+
progressCheckIntervalRef.current = null;
|
|
111
|
+
}
|
|
112
|
+
}, []);
|
|
113
|
+
const turnOffProgressSubscription = (0, _react.useCallback)(() => {
|
|
114
|
+
if (progressUnsubscribeRef.current) {
|
|
115
|
+
progressUnsubscribeRef.current();
|
|
116
|
+
progressUnsubscribeRef.current = null;
|
|
117
|
+
}
|
|
118
|
+
}, []);
|
|
119
|
+
const handleProgressUpdate = (0, _react.useCallback)(({
|
|
120
|
+
progress: updatedProgress,
|
|
121
|
+
status: explicitStatus
|
|
122
|
+
}) => {
|
|
123
|
+
if (updatedProgress === undefined || updatedProgress === null) {
|
|
124
|
+
setStatus('error');
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
setCurrentProgress(updatedProgress);
|
|
128
|
+
|
|
129
|
+
// An explicit status (e.g. warning) always wins over the value inferred from progress alone.
|
|
130
|
+
if (explicitStatus) {
|
|
131
|
+
setStatus(explicitStatus);
|
|
132
|
+
if (explicitStatus === 'complete' || explicitStatus === 'error') {
|
|
133
|
+
turnOffProgressCheck();
|
|
134
|
+
turnOffProgressSubscription();
|
|
135
|
+
}
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
if (updatedProgress === 100) {
|
|
139
|
+
setStatus('complete');
|
|
140
|
+
turnOffProgressCheck();
|
|
141
|
+
turnOffProgressSubscription();
|
|
142
|
+
} else if (updatedProgress >= 0 && updatedProgress < 100) {
|
|
143
|
+
setStatus('running');
|
|
144
|
+
}
|
|
145
|
+
}, [setStatus, setCurrentProgress, turnOffProgressCheck, turnOffProgressSubscription]);
|
|
146
|
+
const turnOnProgressCheck = (0, _react.useCallback)(() => {
|
|
147
|
+
turnOffProgressCheck();
|
|
148
|
+
let inFlight = false;
|
|
149
|
+
let active = true;
|
|
150
|
+
progressCheckIntervalRef.current = setInterval(() => {
|
|
151
|
+
if (inFlight || !active) return;
|
|
152
|
+
inFlight = true;
|
|
153
|
+
onProgressCheck?.().then(updatedProgress => {
|
|
154
|
+
if (active) handleProgressUpdate({
|
|
155
|
+
progress: updatedProgress
|
|
156
|
+
});
|
|
157
|
+
}).catch(e => {
|
|
158
|
+
if (active) {
|
|
159
|
+
console.error('Error getting process progress', e);
|
|
160
|
+
setStatus('error');
|
|
161
|
+
}
|
|
162
|
+
}).finally(() => {
|
|
163
|
+
inFlight = false;
|
|
164
|
+
});
|
|
165
|
+
}, 1000);
|
|
166
|
+
return () => {
|
|
167
|
+
active = false;
|
|
168
|
+
turnOffProgressCheck();
|
|
169
|
+
};
|
|
170
|
+
}, [turnOffProgressCheck, onProgressCheck, handleProgressUpdate]);
|
|
171
|
+
const turnOnProgressSubscription = (0, _react.useCallback)(() => {
|
|
172
|
+
turnOffProgressSubscription();
|
|
173
|
+
if (!progressSubscription) {
|
|
174
|
+
console.error('progressUpdateMode is "subscribe" but no progressSubscription was provided');
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
progressUnsubscribeRef.current = progressSubscription.subscribe(progressSubscription.eventName, {
|
|
178
|
+
onProgress: handleProgressUpdate,
|
|
179
|
+
onError: () => setStatus('error')
|
|
180
|
+
});
|
|
181
|
+
}, [turnOffProgressSubscription, progressSubscription, handleProgressUpdate]);
|
|
182
|
+
const handleResetLauncher = () => {
|
|
183
|
+
setStatus('idle');
|
|
184
|
+
setCurrentProgress(0);
|
|
185
|
+
turnOffProgressCheck();
|
|
186
|
+
turnOffProgressSubscription();
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
// 'warning' is a non-terminal state pushed mid-run, so treat it the same as 'running' here.
|
|
190
|
+
const isProgressActive = status === 'running' || status === 'warning';
|
|
191
|
+
(0, _react.useEffect)(() => {
|
|
192
|
+
// Depending on the derived boolean (not `status` itself) avoids tearing down and
|
|
193
|
+
// re-establishing the poll/subscription when moving between 'running' and 'warning'.
|
|
194
|
+
let stopProgressCheck;
|
|
195
|
+
if (isProgressActive) {
|
|
196
|
+
if (progressUpdateMode === 'subscribe') {
|
|
197
|
+
turnOnProgressSubscription();
|
|
198
|
+
} else {
|
|
199
|
+
stopProgressCheck = turnOnProgressCheck();
|
|
200
|
+
}
|
|
201
|
+
} else {
|
|
202
|
+
turnOffProgressCheck();
|
|
203
|
+
turnOffProgressSubscription();
|
|
204
|
+
}
|
|
205
|
+
return () => {
|
|
206
|
+
stopProgressCheck?.();
|
|
207
|
+
turnOffProgressSubscription();
|
|
208
|
+
};
|
|
209
|
+
}, [isProgressActive, progressUpdateMode, turnOnProgressCheck, turnOnProgressSubscription, turnOffProgressCheck, turnOffProgressSubscription]);
|
|
210
|
+
const getLaunchButtonClassName = () => {
|
|
211
|
+
if (launchButtonProps.cssClass) {
|
|
212
|
+
return launchButtonProps.cssClass;
|
|
213
|
+
}
|
|
214
|
+
return launchButtonProps.size === 'xsmall' ? `${defaultLaunchButtonProps.cssClass} compact` : defaultLaunchButtonProps.cssClass;
|
|
215
|
+
};
|
|
216
|
+
const baseProgressIndicatorProps = {
|
|
217
|
+
...defaultProgressIndicatorProps,
|
|
218
|
+
...progressIndicatorProps,
|
|
219
|
+
statusMessage,
|
|
220
|
+
id: `processLauncherProgressIndicator_${processDefinition.id}`,
|
|
221
|
+
name: processDefinition.name,
|
|
222
|
+
progress: currentProgress
|
|
223
|
+
};
|
|
224
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
225
|
+
className: `processLauncher ${launchButtonProps.size || 'default'}`
|
|
226
|
+
}, (status === 'idle' || status === 'prelaunch') && /*#__PURE__*/_react.default.createElement(_components.SimpleButton, (0, _extends2.default)({}, defaultLaunchButtonProps, launchButtonProps, {
|
|
227
|
+
cssClass: getLaunchButtonClassName(),
|
|
228
|
+
leftIcon: launchButtonProps.icon || defaultLaunchButtonProps.icon,
|
|
229
|
+
id: `processLauncherButton_${processDefinition.id}`,
|
|
230
|
+
label: `Launch ${processDefinition.name}`,
|
|
231
|
+
onClickHandler: preRequisiteFieldIds.length > 0 ? handlePreLaunchTriggered : handleLaunch
|
|
232
|
+
})), status === 'prelaunch' && /*#__PURE__*/_react.default.createElement(_components.Dialog, {
|
|
233
|
+
customCssClasses: {
|
|
234
|
+
dialog: 'processLauncherDialog'
|
|
235
|
+
},
|
|
236
|
+
open: isDialogOpen,
|
|
237
|
+
id: `processLauncherDialog_${processDefinition.id}`,
|
|
238
|
+
size: "m",
|
|
239
|
+
onClose: handleCancel,
|
|
240
|
+
header: preRequisitesDialogTitle,
|
|
241
|
+
footer: /*#__PURE__*/_react.default.createElement("div", {
|
|
242
|
+
className: "actionButtons"
|
|
243
|
+
}, /*#__PURE__*/_react.default.createElement(_components.SimpleButton, {
|
|
244
|
+
id: `processLauncherDialogCancelButton_${processDefinition.id}`,
|
|
245
|
+
label: "Cancel",
|
|
246
|
+
onClickHandler: handleCancel,
|
|
247
|
+
cssClass: "secondary outline"
|
|
248
|
+
}), /*#__PURE__*/_react.default.createElement(_components.SimpleButton, {
|
|
249
|
+
id: `processLauncherDialogLaunchButton_${processDefinition.id}`,
|
|
250
|
+
label: "Launch process",
|
|
251
|
+
onClickHandler: handleLaunch,
|
|
252
|
+
cssClass: "primary"
|
|
253
|
+
}))
|
|
254
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
255
|
+
className: "processLauncherPrerequisites"
|
|
256
|
+
}, children)), status === 'running' && /*#__PURE__*/_react.default.createElement(_components.CircularProgressIndicator, (0, _extends2.default)({}, baseProgressIndicatorProps, {
|
|
257
|
+
mode: "default",
|
|
258
|
+
onClickHandler: onProgressIndicatorClick
|
|
259
|
+
})), status === 'warning' && /*#__PURE__*/_react.default.createElement(_components.CircularProgressIndicator, (0, _extends2.default)({}, baseProgressIndicatorProps, {
|
|
260
|
+
mode: "warning",
|
|
261
|
+
onClickHandler: onProgressIndicatorClick
|
|
262
|
+
})), status === 'complete' && /*#__PURE__*/_react.default.createElement(_components.CircularProgressIndicator, (0, _extends2.default)({}, baseProgressIndicatorProps, {
|
|
263
|
+
mode: "success",
|
|
264
|
+
onClickHandler: handleResetLauncher
|
|
265
|
+
})), status === 'error' && /*#__PURE__*/_react.default.createElement(_components.CircularProgressIndicator, (0, _extends2.default)({}, baseProgressIndicatorProps, {
|
|
266
|
+
mode: "error",
|
|
267
|
+
onClickHandler: handleResetLauncher
|
|
268
|
+
})));
|
|
269
|
+
};
|
|
270
|
+
exports.ProcessLauncher = ProcessLauncher;
|
|
271
|
+
var _default = exports.default = ProcessLauncher;
|
|
272
|
+
//# sourceMappingURL=ProcessLauncher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProcessLauncher.js","names":["_react","_interopRequireWildcard","require","_reactHookForm","_components","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","defaultLaunchButtonProps","cssClass","hideLabel","size","icon","defaultProgressIndicatorProps","ProcessLauncher","initialStatus","statusMessage","processDefinition","launchButtonProps","progressIndicatorProps","onLaunch","onCancel","progressUpdateMode","onProgressCheck","progressSubscription","onProgressIndicatorClick","preRequisiteFieldIds","preRequisitesDialogTitle","children","id","processId","isDialogOpen","setIsDialogOpen","React","useState","status","setStatus","currentProgress","setCurrentProgress","launchAttemptRef","useRef","formContext","useFormContext","handleCancel","current","handlePreLaunchTriggered","handleLaunch","launchAttempt","length","fieldValues","trigger","getFieldState","setFocus","isValid","firstInvalidFieldId","find","fieldId","invalid","fromEntries","map","getValues","progressCheckIntervalRef","progressUnsubscribeRef","turnOffProgressCheck","useCallback","clearInterval","turnOffProgressSubscription","handleProgressUpdate","progress","updatedProgress","explicitStatus","undefined","turnOnProgressCheck","inFlight","active","setInterval","then","catch","console","error","finally","turnOnProgressSubscription","subscribe","eventName","onProgress","onError","handleResetLauncher","isProgressActive","useEffect","stopProgressCheck","getLaunchButtonClassName","baseProgressIndicatorProps","name","createElement","className","SimpleButton","_extends2","leftIcon","label","onClickHandler","Dialog","customCssClasses","dialog","open","onClose","header","footer","CircularProgressIndicator","mode","exports","_default"],"sources":["../../../../src/widgets/processLauncher/ProcessLauncher.tsx"],"sourcesContent":["import React, { ReactNode, useCallback, useEffect, useRef } from 'react';\nimport { useFormContext } from 'react-hook-form';\nimport { SimpleButton, Dialog, CircularProgressIndicator } from '../../components';\n\nimport {\n ProcessDefinition,\n ProcessLaunchButtonProps,\n ProcessLauncherProgressProps,\n ProcessProgressIndicatorProps, ProcessProgressUpdate, ProcessStatus\n} from './processLauncher.interfaces';\n\nexport type ProcessLauncherProps = {\n initialStatus?: ProcessStatus;\n statusMessage?: string;\n processDefinition: ProcessDefinition;\n launchButtonProps?: ProcessLaunchButtonProps;\n progressIndicatorProps?: ProcessProgressIndicatorProps;\n /* eslint-disable-next-line no-unused-vars */\n onLaunch: (params: {processId: string, fieldValues: Record<string, unknown>}) => void;\n onCancel: () => void;\n onProgressIndicatorClick?: () => void;\n preRequisiteFieldIds?: string[];\n preRequisitesDialogTitle?: string;\n children: ReactNode;\n} & ProcessLauncherProgressProps;\n\n/*\n ProcessLauncher is a component that provides a UI for launching an process.\n It displays a button that opens a modal for launching the process when the process is in the 'prelaunch' state.\n It displays a CircularProgressIndicator when the process is in other states (running, complete, warning, error).\n The dialog contains a form for configuring the process before launching it. The form is passed as children to the ProcessLauncher component.\n */\n\nconst defaultLaunchButtonProps: ProcessLaunchButtonProps = {\n cssClass: 'button outline icon-only processLauncherButton',\n hideLabel: true,\n size: 'default',\n icon: 'magic-wand'\n};\n\nconst defaultProgressIndicatorProps: ProcessProgressIndicatorProps = {\n size: 'small',\n hideLabel: true,\n icon: 'magic-wand'\n};\n\nexport const ProcessLauncher: React.FC<ProcessLauncherProps> = (\n {\n initialStatus = 'idle',\n statusMessage = '',\n processDefinition,\n launchButtonProps = {},\n progressIndicatorProps = {},\n onLaunch = () => {},\n onCancel = () => {},\n progressUpdateMode = 'fetch',\n onProgressCheck,\n progressSubscription,\n onProgressIndicatorClick,\n preRequisiteFieldIds = [],\n preRequisitesDialogTitle = 'Launch Process',\n children\n }\n) => {\n const { id: processId } = processDefinition;\n\n const [isDialogOpen, setIsDialogOpen] = React.useState(false);\n const [status, setStatus] = React.useState<ProcessStatus>(initialStatus);\n const [currentProgress, setCurrentProgress] = React.useState<number>(0);\n const launchAttemptRef = useRef(0);\n\n const formContext = useFormContext();\n\n const handleCancel = () => {\n launchAttemptRef.current += 1;\n setIsDialogOpen(false);\n setStatus('idle');\n onCancel();\n };\n\n const handlePreLaunchTriggered = () => {\n launchAttemptRef.current += 1;\n setStatus('prelaunch');\n setIsDialogOpen(true);\n };\n\n const handleLaunch = async () => {\n const launchAttempt = ++launchAttemptRef.current;\n // Validate the form data here if needed before launching the process\n // Get the field values from the form and pass them to the onLaunch function\n // Loop through the preRequisiteFieldIds and check if they have values in the form\n // Also bundle the values of the preRequisiteFieldIds and pass them to the onLaunch function\n if (preRequisiteFieldIds.length === 0) {\n // If there are no preRequisiteFieldIds, we can launch the process without any validation\n setIsDialogOpen(false);\n setStatus('running');\n onLaunch({ processId, fieldValues: {} });\n return;\n }\n\n const { trigger, getFieldState, setFocus } = formContext;\n const isValid = await trigger(preRequisiteFieldIds);\n if (launchAttempt !== launchAttemptRef.current) return;\n\n if (!isValid) {\n const firstInvalidFieldId = preRequisiteFieldIds.find((fieldId) => getFieldState(fieldId).invalid);\n if (firstInvalidFieldId) setFocus(firstInvalidFieldId);\n return;\n }\n\n setIsDialogOpen(false);\n setStatus('running');\n setCurrentProgress(0);\n\n const fieldValues = Object.fromEntries(\n preRequisiteFieldIds.map((fieldId) => [fieldId, formContext.getValues(fieldId)])\n );\n onLaunch({ processId, fieldValues });\n };\n\n // Ref (not a render-scoped let) so every closure clears the same interval handle\n const progressCheckIntervalRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n const progressUnsubscribeRef = useRef<(() => void) | null>(null);\n\n const turnOffProgressCheck = useCallback(() => {\n if (progressCheckIntervalRef.current) {\n clearInterval(progressCheckIntervalRef.current);\n progressCheckIntervalRef.current = null;\n }\n }, []);\n\n const turnOffProgressSubscription = useCallback(() => {\n if (progressUnsubscribeRef.current) {\n progressUnsubscribeRef.current();\n progressUnsubscribeRef.current = null;\n }\n }, []);\n\n const handleProgressUpdate = useCallback(({ progress: updatedProgress, status: explicitStatus }: ProcessProgressUpdate) => {\n if (updatedProgress === undefined || updatedProgress === null) {\n setStatus('error');\n return;\n }\n\n setCurrentProgress(updatedProgress);\n\n // An explicit status (e.g. warning) always wins over the value inferred from progress alone.\n if (explicitStatus) {\n setStatus(explicitStatus);\n if (explicitStatus === 'complete' || explicitStatus === 'error') {\n turnOffProgressCheck();\n turnOffProgressSubscription();\n }\n return;\n }\n\n if (updatedProgress === 100) {\n setStatus('complete');\n turnOffProgressCheck();\n turnOffProgressSubscription();\n } else if (updatedProgress >= 0 && updatedProgress < 100) {\n setStatus('running');\n }\n }, [setStatus, setCurrentProgress, turnOffProgressCheck, turnOffProgressSubscription]);\n\n const turnOnProgressCheck = useCallback(() => {\n turnOffProgressCheck();\n let inFlight = false;\n let active = true;\n progressCheckIntervalRef.current = setInterval(() => {\n if (inFlight || !active) return;\n inFlight = true;\n onProgressCheck?.().then((updatedProgress) => {\n if (active) handleProgressUpdate({ progress: updatedProgress });\n }).catch((e) => {\n if (active) {\n console.error('Error getting process progress', e);\n setStatus('error');\n }\n }).finally(() => {\n inFlight = false;\n });\n }, 1000);\n return () => {\n active = false;\n turnOffProgressCheck();\n };\n }, [turnOffProgressCheck, onProgressCheck, handleProgressUpdate]);\n\n const turnOnProgressSubscription = useCallback(() => {\n turnOffProgressSubscription();\n if (!progressSubscription) {\n console.error('progressUpdateMode is \"subscribe\" but no progressSubscription was provided');\n return;\n }\n\n progressUnsubscribeRef.current = progressSubscription.subscribe(\n progressSubscription.eventName,\n {\n onProgress: handleProgressUpdate,\n onError: () => setStatus('error')\n }\n );\n }, [turnOffProgressSubscription, progressSubscription, handleProgressUpdate]);\n\n const handleResetLauncher = () => {\n setStatus('idle');\n setCurrentProgress(0);\n turnOffProgressCheck();\n turnOffProgressSubscription();\n };\n\n // 'warning' is a non-terminal state pushed mid-run, so treat it the same as 'running' here.\n const isProgressActive = status === 'running' || status === 'warning';\n\n useEffect(() => {\n // Depending on the derived boolean (not `status` itself) avoids tearing down and\n // re-establishing the poll/subscription when moving between 'running' and 'warning'.\n let stopProgressCheck: (() => void) | undefined;\n if (isProgressActive) {\n if (progressUpdateMode === 'subscribe') {\n turnOnProgressSubscription();\n } else {\n stopProgressCheck = turnOnProgressCheck();\n }\n } else {\n turnOffProgressCheck();\n turnOffProgressSubscription();\n }\n return () => {\n stopProgressCheck?.();\n turnOffProgressSubscription();\n };\n }, [isProgressActive, progressUpdateMode, turnOnProgressCheck, turnOnProgressSubscription, turnOffProgressCheck, turnOffProgressSubscription]);\n\n const getLaunchButtonClassName = () => {\n if (launchButtonProps.cssClass) {\n return launchButtonProps.cssClass;\n }\n\n return launchButtonProps.size === 'xsmall'\n ? `${ defaultLaunchButtonProps.cssClass } compact`\n : defaultLaunchButtonProps.cssClass;\n };\n\n const baseProgressIndicatorProps = {\n ...defaultProgressIndicatorProps,\n ...progressIndicatorProps,\n statusMessage,\n id: `processLauncherProgressIndicator_${ processDefinition.id }`,\n name: processDefinition.name,\n progress: currentProgress,\n };\n\n return (\n <div className={ `processLauncher ${ launchButtonProps.size || 'default' }` }>\n {\n (status === 'idle' || status === 'prelaunch') &&\n <SimpleButton\n {\n ...{\n ...defaultLaunchButtonProps,\n ...launchButtonProps,\n }\n }\n cssClass={ getLaunchButtonClassName() }\n leftIcon={ launchButtonProps.icon || defaultLaunchButtonProps.icon }\n id={ `processLauncherButton_${ processDefinition.id }` }\n label={ `Launch ${ processDefinition.name }` }\n onClickHandler={\n preRequisiteFieldIds.length > 0 ? handlePreLaunchTriggered : handleLaunch\n }\n />\n }\n\n {\n status === 'prelaunch' && (\n <Dialog\n customCssClasses={ { dialog: 'processLauncherDialog' } }\n open={ isDialogOpen }\n id={ `processLauncherDialog_${ processDefinition.id }` }\n size=\"m\"\n onClose={ handleCancel }\n header={ preRequisitesDialogTitle }\n footer={\n <div className=\"actionButtons\">\n <SimpleButton id={ `processLauncherDialogCancelButton_${ processDefinition.id }` } label=\"Cancel\" onClickHandler={ handleCancel } cssClass=\"secondary outline\" />\n <SimpleButton id={ `processLauncherDialogLaunchButton_${ processDefinition.id }` } label=\"Launch process\" onClickHandler={ handleLaunch } cssClass=\"primary\" />\n </div>\n }\n >\n <div className=\"processLauncherPrerequisites\">\n { children }\n </div>\n </Dialog>\n )\n }\n\n { status === 'running' && (\n <CircularProgressIndicator\n {\n ...{\n ...baseProgressIndicatorProps\n }\n }\n mode=\"default\"\n onClickHandler={ onProgressIndicatorClick }\n />\n ) }\n\n { status === 'warning' && (\n <CircularProgressIndicator\n {\n ...{\n ...baseProgressIndicatorProps\n }\n }\n mode=\"warning\"\n onClickHandler={ onProgressIndicatorClick }\n />\n ) }\n\n { status === 'complete' && (\n <CircularProgressIndicator\n {\n ...{\n ...baseProgressIndicatorProps\n }\n }\n mode=\"success\"\n onClickHandler={ handleResetLauncher }\n />\n ) }\n\n { status === 'error' && (\n <CircularProgressIndicator\n {\n ...{\n ...baseProgressIndicatorProps\n }\n }\n mode=\"error\"\n onClickHandler={ handleResetLauncher }\n />\n ) }\n </div>\n );\n};\n\nexport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CAAAuH,yBAAyB,MAAAX,SAAA,CAAAjG,OAAA,MAGjB4F,0BAA0B;IAGjCiB,IAAI,EAAC,OAAO;IACZT,cAAc,EAAGb;EAAqB,EACvC,CAEA,CAAC;AAEV,CAAC;AAACuB,OAAA,CAAA/F,eAAA,GAAAA,eAAA;AAAA,IAAAgG,QAAA,GAAAD,OAAA,CAAA9G,OAAA,GAEae,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ProcessLauncher", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _ProcessLauncher.ProcessLauncher;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _ProcessLauncher = require("./ProcessLauncher");
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_ProcessLauncher","require"],"sources":["../../../../src/widgets/processLauncher/index.ts"],"sourcesContent":["export { ProcessLauncher } from './ProcessLauncher';\n\nexport type { ProcessLauncherProps } from './ProcessLauncher';\nexport type {\n ProcessDefinition,\n ProcessLaunchButtonProps,\n ProcessProgressIndicatorProps,\n ProcessStatus,\n ProcessProgressUpdateMode,\n ProcessPushableStatus,\n ProcessProgressUpdate,\n ProcessProgressSubscriptionHandlers,\n ProcessProgressUnsubscribe,\n ProcessProgressSubscription,\n ProcessLauncherFetchProgressProps,\n ProcessLauncherSubscribeProgressProps,\n ProcessLauncherProgressProps\n} from './processLauncher.interfaces';\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processLauncher.interfaces.js","names":[],"sources":["../../../../src/widgets/processLauncher/processLauncher.interfaces.ts"],"sourcesContent":["import { IconSource } from '../../helpers/iconHelpers';\n\nexport type ProcessDefinition = {\n id: string;\n name: string;\n description: string;\n};\n\nexport type ProcessLaunchButtonProps = {\n cssClass?: string;\n icon?: IconSource;\n hideLabel?: boolean;\n size?: 'xsmall' | 'small' | 'default' | 'large' | 'xlarge';\n};\n\nexport type ProcessProgressIndicatorProps = {\n icon?: IconSource;\n hideLabel?: boolean;\n size?: 'xsmall' | 'small' | 'default' | 'large' | 'xlarge';\n};\n\nexport type ProcessStatus = 'idle' | 'prelaunch' | 'running' | 'warning' | 'complete' | 'error';\n\nexport type ProcessProgressUpdateMode = 'fetch' | 'subscribe';\n\n// Statuses a subscription message is allowed to push explicitly; 'idle'/'prelaunch' are launcher-controlled only.\nexport type ProcessPushableStatus = Extract<ProcessStatus, 'running' | 'warning' | 'complete' | 'error'>;\n\nexport type ProcessProgressUpdate = {\n progress: number;\n // Omit to let progress alone drive status (0-99 = running, 100 = complete), or set explicitly for warning/error.\n status?: ProcessPushableStatus;\n};\n\nexport type ProcessProgressSubscriptionHandlers = {\n /* eslint-disable-next-line no-unused-vars */\n onProgress: (update: ProcessProgressUpdate) => void;\n /* eslint-disable-next-line no-unused-vars */\n onError?: (error: unknown) => void;\n};\n\nexport type ProcessProgressUnsubscribe = () => void;\n\n/*\n Transport-agnostic subscription contract. Consumers wire `subscribe` to whatever\n message bus they use (EventSource, WebSocket, pub/sub client, etc.), listen for\n `eventName`, parse the raw message into a progress percentage (0-100), and invoke\n the provided `onProgress`/`onError` handlers. The returned function must unsubscribe.\n */\nexport type ProcessProgressSubscription = {\n eventName: string;\n /* eslint-disable-next-line no-unused-vars */\n subscribe: (eventName: string, handlers: ProcessProgressSubscriptionHandlers) => ProcessProgressUnsubscribe;\n};\n\nexport type ProcessLauncherFetchProgressProps = {\n progressUpdateMode?: 'fetch';\n onProgressCheck: () => Promise<number>;\n progressSubscription?: never;\n};\n\nexport type ProcessLauncherSubscribeProgressProps = {\n progressUpdateMode: 'subscribe';\n progressSubscription: ProcessProgressSubscription;\n onProgressCheck?: never;\n};\n\nexport type ProcessLauncherProgressProps =\n | ProcessLauncherFetchProgressProps\n | ProcessLauncherSubscribeProgressProps;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
+
import { IconSource } from '../../../helpers/iconHelpers';
|
|
2
3
|
import './accordion.scss';
|
|
3
4
|
export interface AccordionProps {
|
|
4
5
|
id: string;
|
|
@@ -9,8 +10,8 @@ export interface AccordionProps {
|
|
|
9
10
|
outerBorders?: boolean;
|
|
10
11
|
hasShadow?: boolean;
|
|
11
12
|
onChange?: (args: boolean) => void;
|
|
12
|
-
openIcon?:
|
|
13
|
-
closeIcon?:
|
|
13
|
+
openIcon?: IconSource;
|
|
14
|
+
closeIcon?: IconSource;
|
|
14
15
|
heading: ReactNode;
|
|
15
16
|
footer?: ReactNode;
|
|
16
17
|
customCssClass?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../../src/components/design/accordion/Accordion.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAoB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../../src/components/design/accordion/Accordion.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAoB,MAAM,OAAO,CAAC;AAG3D,OAAO,EAAE,UAAU,EAAc,MAAM,8BAA8B,CAAC;AAGtE,OAAO,kBAAkB,CAAC;AAE1B,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,MAAM,CAAC;IACxD,uBAAuB,CAAC,EAAE,SAAS,CAAC;IACpC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,YAAY,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;IAClD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,oBAAoB,CAAC,EAAE;QACrB,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;QACrC,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;QACtC,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;KACtC,CAAC;CACH;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAwI9C,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode, ReactElement } from 'react';
|
|
2
|
+
import { IconSource } from '../../../../helpers/iconHelpers';
|
|
2
3
|
import './pageBanners.scss';
|
|
3
4
|
export interface PageBannerProps {
|
|
4
5
|
id: string;
|
|
@@ -8,7 +9,7 @@ export interface PageBannerProps {
|
|
|
8
9
|
autoHide?: boolean;
|
|
9
10
|
autoHideDelay?: 1 | 3 | 5 | 10;
|
|
10
11
|
displayMode?: 'fixed' | 'inline';
|
|
11
|
-
icon?:
|
|
12
|
+
icon?: IconSource;
|
|
12
13
|
position?: 'topRight' | 'topCentre' | 'bottomRight' | 'bottomLeft';
|
|
13
14
|
type?: 'alert' | 'info' | 'warn' | 'error' | 'success';
|
|
14
15
|
disableClose?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageBanner.d.ts","sourceRoot":"","sources":["../../../../../src/components/design/banners/pageBanner/PageBanner.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAY,SAAS,EAAE,YAAY,EAAa,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PageBanner.d.ts","sourceRoot":"","sources":["../../../../../src/components/design/banners/pageBanner/PageBanner.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAY,SAAS,EAAE,YAAY,EAAa,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAc,MAAM,iCAAiC,CAAC;AAGzE,OAAO,oBAAoB,CAAC;AAE5B,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,SAAS,GAAG,YAAY,CAAC;IACnC,SAAS,CAAC,EAAE,aAAa,GAAG,cAAc,GAAG,aAAa,GAAG,MAAM,CAAC;IACpE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;IAC/B,WAAW,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IACjC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,YAAY,CAAC;IACnE,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;IACvD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAClC,cAAc,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;CAC1C;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAwEhD,CAAC;AAEF,eAAe,UAAU,CAAC;AAE1B,OAAO,EAAE,UAAU,IAAI,MAAM,EAAE,CAAC;AAChC,OAAO,EAAE,UAAU,IAAI,KAAK,EAAE,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IconSource } from '../../../../helpers/iconHelpers';
|
|
3
3
|
import { LogoLinkProps } from '../../logos/LogoLink';
|
|
4
4
|
import { GenericFunction } from '../../../../interfaces';
|
|
5
5
|
import { StatusIndicatorsInterface } from '../../statusIndicators/statusIndicators.interface';
|
|
6
6
|
import './cardContentLine.scss';
|
|
7
7
|
export interface CardContentLineProps {
|
|
8
8
|
id: string;
|
|
9
|
-
icon?:
|
|
9
|
+
icon?: IconSource;
|
|
10
10
|
logo?: LogoLinkProps;
|
|
11
11
|
graphic?: {
|
|
12
12
|
imageUrl: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardContentLine.d.ts","sourceRoot":"","sources":["../../../../../src/components/design/card/cardContent/CardContentLine.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EACZ,YAAY,EACZ,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,
|
|
1
|
+
{"version":3,"file":"CardContentLine.d.ts","sourceRoot":"","sources":["../../../../../src/components/design/card/cardContent/CardContentLine.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EACZ,YAAY,EACZ,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,UAAU,EAAc,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAY,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAC;AAG9F,OAAO,wBAAwB,CAAC;AAEhC,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,OAAO,CAAC,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,eAAe,CAAC;IAC7B,QAAQ,EAAE,SAAS,GAAG,YAAY,CAAC;IACnC,QAAQ,CAAC,EAAE,yBAAyB,CAAC;CACtC;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA6C1D,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IconSource } from '../../../../helpers/iconHelpers';
|
|
3
3
|
import { LogoLinkProps } from '../../logos/LogoLink';
|
|
4
4
|
import { ButtonProps } from '../../../form/buttons/button.interface';
|
|
5
5
|
export interface CardHeaderItemProps {
|
|
6
|
-
icon?:
|
|
6
|
+
icon?: IconSource;
|
|
7
7
|
logo?: LogoLinkProps;
|
|
8
8
|
graphic?: {
|
|
9
9
|
imageUrl: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardHeaderItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/design/card/cardHeader/CardHeaderItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,
|
|
1
|
+
{"version":3,"file":"CardHeaderItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/design/card/cardHeader/CardHeaderItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,UAAU,EAAc,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAY,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAGrE,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,OAAO,CAAC,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,SAAS,GAAG,YAAY,CAAC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,WAAW,CAAC;CAC5B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsCxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/design/dialog/Dialog.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAqD,MAAM,OAAO,CAAC;AAI5F,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CA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AEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAO/E,OAAO,kBAAkB,CAAC;AAK1B,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"HeaderBar.d.ts","sourceRoot":"","sources":["../../../../src/components/design/headerBar/HeaderBar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAO/E,OAAO,kBAAkB,CAAC;AAK1B,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAmDnD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IconSource } from '../../../../helpers/iconHelpers';
|
|
3
3
|
import './notificationIcon.scss';
|
|
4
4
|
export interface NotificationIconProps {
|
|
5
|
-
icon?:
|
|
5
|
+
icon?: IconSource;
|
|
6
6
|
customCssClass?: string;
|
|
7
7
|
text?: number | string;
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/design/icons/notificationIcon/NotificationIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"NotificationIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/design/icons/notificationIcon/NotificationIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAc,MAAM,iCAAiC,CAAC;AAEzE,OAAO,yBAAyB,CAAC;AAEjC,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAgB5D,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { GenericFunction } from '../../../interfaces/generic.interface';
|
|
3
|
+
import { IconSource } from '../../../helpers/iconHelpers';
|
|
3
4
|
import './paginator.scss';
|
|
4
5
|
export interface IconLabelProp {
|
|
5
|
-
icon?:
|
|
6
|
+
icon?: IconSource | null;
|
|
6
7
|
label?: string | null;
|
|
7
8
|
}
|
|
8
9
|
export interface PaginatorProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Paginator.d.ts","sourceRoot":"","sources":["../../../../src/components/design/paginators/Paginator.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"Paginator.d.ts","sourceRoot":"","sources":["../../../../src/components/design/paginators/Paginator.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,OAAO,kBAAkB,CAAC;AAE1B,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,eAAe,CAAC;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,gBAAgB,CAAC,EAAE,eAAe,CAAC;IACnC,cAAc,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IACxC,iBAAiB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IAChD,YAAY,CAAC,EAAE;QACb,cAAc,CAAC,EAAE,aAAa,CAAC;QAC/B,UAAU,CAAC,EAAE,aAAa,CAAC;QAC3B,WAAW,CAAC,EAAE,aAAa,CAAC;QAC5B,UAAU,CAAC,EAAE,aAAa,CAAC;KAC5B,CAAC;IACF,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAkO9C,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconSource } from '../../../../helpers/iconHelpers';
|
|
3
|
+
import './circularProgressIndicator.scss';
|
|
4
|
+
export interface CircularProgressIndicatorProps {
|
|
5
|
+
name: string;
|
|
6
|
+
progress: number;
|
|
7
|
+
description?: string;
|
|
8
|
+
statusMessage?: string;
|
|
9
|
+
icon?: IconSource;
|
|
10
|
+
hideLabel?: boolean;
|
|
11
|
+
id: string;
|
|
12
|
+
onClickHandler?: () => void;
|
|
13
|
+
mode?: 'default' | 'warning' | 'error' | 'success';
|
|
14
|
+
size?: 'xsmall' | 'small' | 'default' | 'large' | 'xlarge';
|
|
15
|
+
}
|
|
16
|
+
export declare const CircularProgressIndicator: React.FC<CircularProgressIndicatorProps>;
|
|
17
|
+
export default CircularProgressIndicator;
|
|
18
|
+
//# sourceMappingURL=CircularProgressIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CircularProgressIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/design/progressIndicators/circularProgressIndicator/CircularProgressIndicator.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAc,MAAM,iCAAiC,CAAC;AAEzE,OAAO,kCAAkC,CAAC;AAE1C,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACnD,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;CAC5D;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA6F9E,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CircularProgressIndicator.test.d.ts","sourceRoot":"","sources":["../../../../../src/components/design/progressIndicators/circularProgressIndicator/CircularProgressIndicator.test.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RevealMoreBelow.d.ts","sourceRoot":"","sources":["../../../../src/components/design/revealMore/RevealMoreBelow.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,oBAAoB,EAAsB,MAAM,yBAAyB,CAAC;AAInF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"RevealMoreBelow.d.ts","sourceRoot":"","sources":["../../../../src/components/design/revealMore/RevealMoreBelow.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,oBAAoB,EAAsB,MAAM,yBAAyB,CAAC;AAInF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAqE1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RevealMoreInline.d.ts","sourceRoot":"","sources":["../../../../src/components/design/revealMore/RevealMoreInline.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,qBAAqB,EAAsB,MAAM,yBAAyB,CAAC;AAIpF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"RevealMoreInline.d.ts","sourceRoot":"","sources":["../../../../src/components/design/revealMore/RevealMoreInline.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,qBAAqB,EAAsB,MAAM,yBAAyB,CAAC;AAIpF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAiE5D,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { IconSource } from '../../../../helpers/iconHelpers';
|
|
2
3
|
export type BaseRevealMoreProps = {
|
|
3
4
|
children: React.ReactNode | string;
|
|
4
5
|
customCssClass?: string;
|
|
@@ -13,8 +14,8 @@ export type ManagedButtonProps = {
|
|
|
13
14
|
revealMoreLabelOnClickHandler?: () => void;
|
|
14
15
|
revealLessLabelOnClickHandler?: () => void;
|
|
15
16
|
icon?: {
|
|
16
|
-
onRevealMore:
|
|
17
|
-
onRevealLess:
|
|
17
|
+
onRevealMore: IconSource;
|
|
18
|
+
onRevealLess: IconSource;
|
|
18
19
|
};
|
|
19
20
|
};
|
|
20
21
|
export type RevealMoreInlineProps = BaseRevealMoreProps & (CustomButtonProps | ManagedButtonProps) & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revealMoreTypes.d.ts","sourceRoot":"","sources":["../../../../../src/components/design/revealMore/types/revealMoreTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"revealMoreTypes.d.ts","sourceRoot":"","sources":["../../../../../src/components/design/revealMore/types/revealMoreTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAG7D,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAA;AAGD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,gBAAgB,EAAE,KAAK,CAAC,YAAY,CAAC;IACrC,gBAAgB,EAAE,KAAK,CAAC,YAAY,CAAC;CACtC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,6BAA6B,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3C,6BAA6B,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3C,IAAI,CAAC,EAAE;QACL,YAAY,EAAE,UAAU,CAAC;QACzB,YAAY,EAAE,UAAU,CAAC;KAC1B,CAAC;CACH,CAAA;AAGD,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,GAAG,CAAC,iBAAiB,GAAG,kBAAkB,CAAC,GAAG;IACnG,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,GAAG,CAAC,iBAAiB,GAAG,kBAAkB,CAAC,GAAG;IAClG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;CACpC,CAAA;AAGD,MAAM,MAAM,eAAe,GACvB,CAAC;IAAE,UAAU,EAAE,QAAQ,CAAA;CAAE,GAAG,qBAAqB,CAAC,GAClD,CAAC;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE,GAAG,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { GenericFunction } from '../../../interfaces';
|
|
3
|
+
import { IconSource } from '../../../helpers/iconHelpers';
|
|
3
4
|
import './sidePanel.scss';
|
|
4
5
|
export interface SidePanelInterface {
|
|
5
6
|
id: string;
|
|
@@ -9,8 +10,8 @@ export interface SidePanelInterface {
|
|
|
9
10
|
positionRefNode?: HTMLElement | React.RefObject<HTMLElement>;
|
|
10
11
|
animation?: 'none' | 'slide';
|
|
11
12
|
icons?: {
|
|
12
|
-
open:
|
|
13
|
-
closed:
|
|
13
|
+
open: IconSource;
|
|
14
|
+
closed: IconSource;
|
|
14
15
|
};
|
|
15
16
|
onClose?: GenericFunction;
|
|
16
17
|
onOpen?: GenericFunction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidePanel.d.ts","sourceRoot":"","sources":["../../../../src/components/design/sidePanel/SidePanel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EACZ,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"SidePanel.d.ts","sourceRoot":"","sources":["../../../../src/components/design/sidePanel/SidePanel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EACZ,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAc,MAAM,8BAA8B,CAAC;AAEtE,OAAO,kBAAkB,CAAC;AAE1B,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;IAC/C,eAAe,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC7D,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,UAAU,CAAC;QACjB,MAAM,EAAE,UAAU,CAAC;KACpB,CAAA;IACD,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAqHlD,CAAC"}
|