@ubnt/store.core 9.13.0-alpha.4 → 9.13.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/CHANGELOG.md +0 -115
- package/lib/_virtual/_virtual_multi-entry.js +12 -27
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +10 -14
- package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
- package/lib/assets/attention.svg +5 -5
- package/lib/assets/attention2.svg +5 -5
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mjs +1 -1
- package/lib/components/Header/Header.mjs.map +1 -1
- package/lib/components/Header/LinksModal/mapping.d.ts +1 -2
- package/lib/components/Header/LinksModal/mapping.js +3 -4
- package/lib/components/Header/LinksModal/mapping.js.map +1 -1
- package/lib/components/Header/LinksModal/mapping.mjs +3 -4
- package/lib/components/Header/LinksModal/mapping.mjs.map +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +3 -4
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs +4 -5
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +2 -7
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +3 -8
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
- package/lib/components/LandingPagePro/LandingPagePro.d.ts +0 -3
- package/lib/components/LandingPagePro/LandingPagePro.js +3 -3
- package/lib/components/LandingPagePro/LandingPagePro.js.map +1 -1
- package/lib/components/LandingPagePro/LandingPagePro.mjs +2 -2
- package/lib/components/LandingPagePro/LandingPagePro.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +15 -311
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +15 -309
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +22 -38
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.mjs +22 -38
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.d.ts +2 -10
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +0 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +0 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/HddSlots/HddSlots.d.ts +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/HddSlots/HddSlots.js +4 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/HddSlots/HddSlots.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/HddSlots/HddSlots.mjs +4 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/HddSlots/HddSlots.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js +0 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs +0 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +4 -4
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +4 -4
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +2 -1
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs +2 -1
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs.map +1 -1
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.d.ts +1 -1
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.js +1 -3
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +1 -0
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.mjs +1 -3
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +1 -0
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.d.ts +0 -1
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.js +7 -10
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +1 -0
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.mjs +7 -10
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +1 -0
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.types.d.ts +0 -1
- package/lib/components/ResourceCalculatorV1/components/index.d.ts +1 -0
- package/lib/components/ResourceCalculatorV1/components/index.js +5 -0
- package/lib/{utils/money/allocators → components/ResourceCalculatorV1/components}/index.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/components/index.mjs +3 -0
- package/lib/{utils/money/allocators → components/ResourceCalculatorV1/components}/index.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/translations/en.json.js +1 -4
- package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +1 -4
- package/lib/components/ResourceCalculatorV1/translations/en.json.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts +2 -2
- package/lib/components/index.d.ts +0 -1
- package/lib/components/index.js +0 -2
- package/lib/components/index.js.map +1 -1
- package/lib/components/index.mjs +0 -2
- package/lib/components/index.mjs.map +1 -1
- package/lib/constants/icons/options/colors/black.svg.js +5 -5
- package/lib/constants/icons/options/colors/index.js +3 -3
- package/lib/constants/icons/options/styles/black.svg.js +5 -5
- package/lib/constants/icons/options/styles/index.js +3 -3
- package/lib/constants/optionIcons.js +6 -6
- package/lib/constants/optionIcons.mjs +4 -4
- package/lib/constants/proStoreCategories/mapping/index.d.ts +0 -1
- package/lib/constants/proStoreCategories/mapping/index.js +10 -15
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +10 -15
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +1 -2
- package/lib/constants/proStoreCategories/mapping/unifi.js +0 -1
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +0 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +0 -3
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +1 -3
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +1 -1
- package/lib/constants/url.d.ts +0 -1
- package/lib/constants/url.js +0 -1
- package/lib/constants/url.js.map +1 -1
- package/lib/constants/url.mjs +0 -1
- package/lib/constants/url.mjs.map +1 -1
- package/lib/helpers/index.d.ts +0 -1
- package/lib/helpers/index.js +0 -11
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/index.mjs +0 -1
- package/lib/helpers/index.mjs.map +1 -1
- package/lib/types/index.d.ts +0 -1
- package/lib/types/index.js +0 -2
- package/lib/types/index.js.map +1 -1
- package/lib/types/index.mjs +0 -1
- package/lib/types/index.mjs.map +1 -1
- package/lib/utils/array.d.ts +0 -4
- package/lib/utils/array.js +0 -10
- package/lib/utils/array.js.map +1 -1
- package/lib/utils/array.mjs +1 -10
- package/lib/utils/array.mjs.map +1 -1
- package/lib/utils/money/constants.d.ts +25 -56
- package/lib/utils/money/constants.js +7 -72
- package/lib/utils/money/constants.js.map +1 -1
- package/lib/utils/money/constants.mjs +7 -70
- package/lib/utils/money/constants.mjs.map +1 -1
- package/lib/utils/money/format.d.ts +5 -10
- package/lib/utils/money/format.js +14 -22
- package/lib/utils/money/format.js.map +1 -1
- package/lib/utils/money/format.mjs +16 -23
- package/lib/utils/money/format.mjs.map +1 -1
- package/lib/utils/money/index.d.ts +1 -4
- package/lib/utils/money/index.js +8 -26
- package/lib/utils/money/index.js.map +1 -1
- package/lib/utils/money/index.mjs +4 -8
- package/lib/utils/money/index.mjs.map +1 -1
- package/lib/utils/money/misc.d.ts +28 -68
- package/lib/utils/money/misc.js +64 -35
- package/lib/utils/money/misc.js.map +1 -1
- package/lib/utils/money/misc.mjs +43 -32
- package/lib/utils/money/misc.mjs.map +1 -1
- package/lib/utils/money/tax.d.ts +2 -38
- package/lib/utils/money/tax.js +10 -46
- package/lib/utils/money/tax.js.map +1 -1
- package/lib/utils/money/tax.mjs +11 -42
- package/lib/utils/money/tax.mjs.map +1 -1
- package/lib/utils/money/types.d.ts +3 -78
- package/lib/utils/number.d.ts +1 -1
- package/lib/utils/number.js +1 -1
- package/lib/utils/number.js.map +1 -1
- package/lib/utils/number.mjs +1 -1
- package/lib/utils/number.mjs.map +1 -1
- package/lib/utils/validations.d.ts +15 -0
- package/lib/utils/validations.js +23 -0
- package/lib/utils/validations.js.map +1 -0
- package/lib/utils/validations.mjs +21 -0
- package/lib/utils/validations.mjs.map +1 -0
- package/package.json +1 -1
- package/lib/assets/efg.png +0 -0
- package/lib/assets/ucg-max.png +0 -0
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +0 -1
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +0 -1
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +0 -1
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js +0 -27
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs +0 -3
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js +0 -27
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs +0 -3
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs.map +0 -1
- package/lib/helpers/product.d.ts +0 -87
- package/lib/helpers/product.js +0 -346
- package/lib/helpers/product.js.map +0 -1
- package/lib/helpers/product.mjs +0 -335
- package/lib/helpers/product.mjs.map +0 -1
- package/lib/types/product.d.ts +0 -87
- package/lib/types/product.js +0 -14
- package/lib/types/product.js.map +0 -1
- package/lib/types/product.mjs +0 -13
- package/lib/types/product.mjs.map +0 -1
- package/lib/utils/money/allocators/fixedAmount.d.ts +0 -26
- package/lib/utils/money/allocators/fixedAmount.js +0 -55
- package/lib/utils/money/allocators/fixedAmount.js.map +0 -1
- package/lib/utils/money/allocators/fixedAmount.mjs +0 -53
- package/lib/utils/money/allocators/fixedAmount.mjs.map +0 -1
- package/lib/utils/money/allocators/index.d.ts +0 -2
- package/lib/utils/money/allocators/index.js +0 -8
- package/lib/utils/money/allocators/index.mjs +0 -4
- package/lib/utils/money/allocators/productAmount.d.ts +0 -13
- package/lib/utils/money/allocators/productAmount.js +0 -110
- package/lib/utils/money/allocators/productAmount.js.map +0 -1
- package/lib/utils/money/allocators/productAmount.mjs +0 -108
- package/lib/utils/money/allocators/productAmount.mjs.map +0 -1
- package/lib/utils/money/exchangeRate.d.ts +0 -31
- package/lib/utils/money/exchangeRate.js +0 -27
- package/lib/utils/money/exchangeRate.js.map +0 -1
- package/lib/utils/money/exchangeRate.mjs +0 -23
- package/lib/utils/money/exchangeRate.mjs.map +0 -1
- package/lib/utils/money/misc.private.d.ts +0 -23
- package/lib/utils/money/misc.private.js +0 -46
- package/lib/utils/money/misc.private.js.map +0 -1
- package/lib/utils/money/misc.private.mjs +0 -21
- package/lib/utils/money/misc.private.mjs.map +0 -1
- package/lib/utils/money/shipping.d.ts +0 -5
- package/lib/utils/money/shipping.js +0 -8
- package/lib/utils/money/shipping.js.map +0 -1
- package/lib/utils/money/shipping.mjs +0 -6
- package/lib/utils/money/shipping.mjs.map +0 -1
- package/lib/utils/money/tax.private.d.ts +0 -17
- package/lib/utils/money/tax.private.js +0 -65
- package/lib/utils/money/tax.private.js.map +0 -1
- package/lib/utils/money/tax.private.mjs +0 -60
- package/lib/utils/money/tax.private.mjs.map +0 -1
- package/lib/utils/productSort.d.ts +0 -41
- package/lib/utils/productSort.js +0 -66
- package/lib/utils/productSort.js.map +0 -1
- package/lib/utils/productSort.mjs +0 -59
- package/lib/utils/productSort.mjs.map +0 -1
- /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.d.ts +0 -0
- /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js +0 -0
- /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js.map +0 -0
- /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs +0 -0
- /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs.map +0 -0
|
@@ -2,8 +2,8 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useCallback, useRef, useState, useMemo, useEffect } from 'react';
|
|
3
3
|
import { imageSrc } from '../../../../../../utils/asset.mjs';
|
|
4
4
|
import '../../../../../CustomImage/index.mjs';
|
|
5
|
-
import '../../../../../HorizontalOptionSelect/index.mjs';
|
|
6
5
|
import '../../../../../StyleableSvgImage/index.mjs';
|
|
6
|
+
import '../../../../components/HorizontalOptionSelect/index.mjs';
|
|
7
7
|
import '../../../../ComputeResourceCalculator/index.mjs';
|
|
8
8
|
import { useResourceCalculatorTranslation } from '../../../../translations/useResourceCalculatorTranslation.mjs';
|
|
9
9
|
import '../assets/empty-port.svg.mjs';
|
|
@@ -12,13 +12,13 @@ import '../assets/plus.svg.mjs';
|
|
|
12
12
|
import '../assets/search.svg.mjs';
|
|
13
13
|
import { Modal, CLASS_NAMES, ModalHeader, ModalSearchWrap, ModalSearchIconWrap, ModalSearchInput, ListItemsWrap, ListItem, ListItemImgWrap, ListItemTitleWrap, ListItemTitle, ListItemValueLabel, ListItemActionsWrap, ListItemCounter, ListItemCounterBtn, ListItemCounterValue, ListItemAddActionLabel } from './PoeConsumerSelectModal.styles.mjs';
|
|
14
14
|
import EmptyPortIcon__default from "../../../../../../assets/empty-port.svg";
|
|
15
|
-
import { HorizontalOptionSelect } from '
|
|
15
|
+
import { HorizontalOptionSelect } from '../../../../components/HorizontalOptionSelect/HorizontalOptionSelect.mjs';
|
|
16
16
|
import { isMessageFormatted } from '../../../../ComputeResourceCalculator/ComputeResourceCalculator.types.mjs';
|
|
17
17
|
import { CustomImage } from '../../../../../CustomImage/CustomImage.mjs';
|
|
18
18
|
import SearchIcon__default from "../../../../../../assets/search2.svg";
|
|
19
19
|
import { StyleableSvgImage } from '../../../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
20
|
-
import MinusIcon__default from "../../../../../../assets/
|
|
21
|
-
import PlusIcon__default from "../../../../../../assets/
|
|
20
|
+
import MinusIcon__default from "../../../../../../assets/minus5.svg";
|
|
21
|
+
import PlusIcon__default from "../../../../../../assets/plus6.svg";
|
|
22
22
|
"use strict";
|
|
23
23
|
const PoeConsumerSelectModal = ({
|
|
24
24
|
isOpen,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PoeConsumerSelectModal.mjs","sources":["../../../../../../../src/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.tsx"],"sourcesContent":["import type { StaticImageData } from \"next/image\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\n\nimport { imageSrc } from \"../../../../../../utils/asset\";\nimport { CustomImage } from \"../../../../../CustomImage\";\nimport { HorizontalOptionSelect } from \"../../../../../HorizontalOptionSelect\";\nimport { StyleableSvgImage } from \"../../../../../StyleableSvgImage\";\nimport type { ResourceCalculatorTranslationKey } from \"../../../../ComputeResourceCalculator\";\nimport { isMessageFormatted } from \"../../../../ComputeResourceCalculator\";\nimport { useResourceCalculatorTranslation } from \"../../../../translations/useResourceCalculatorTranslation\";\nimport EmptyPortIcon from \"../assets/empty-port.svg\";\nimport MinusIcon from \"../assets/minus.svg\";\nimport PlusIcon from \"../assets/plus.svg\";\nimport SearchIcon from \"../assets/search.svg\";\nimport * as S from \"./PoeConsumerSelectModal.styles\";\n\ntype PoeConsumerSelectModalProps = {\n isOpen: boolean;\n\n // Max count of devices that can be selected, this value is: (max ports - occupied ports).\n maxCount: number;\n\n onSelect: (poeConsumerId: string | null, count: number) => void;\n onClose: () => void;\n items: Array<{\n id: string | null;\n category: string;\n title: ResourceCalculatorTranslationKey;\n wattage: number;\n src: StaticImageData | string;\n }>;\n};\n\nexport const PoeConsumerSelectModal = ({\n isOpen,\n maxCount,\n onSelect,\n items,\n onClose,\n}: PoeConsumerSelectModalProps) => {\n const { formatMessage } = useResourceCalculatorTranslation();\n\n // #############################################################################\n // Helpers\n // #############################################################################\n const stopPropagation = useCallback(\n (event: React.MouseEvent<HTMLElement>) => {\n event.stopPropagation();\n },\n [],\n );\n\n // #############################################################################\n // Search filter\n // #############################################################################\n const inputRef = useRef<HTMLInputElement>(null);\n\n const [searchQuery, setSearchQuery] = useState(\"\");\n\n const handleSearchQueryChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n setSearchQuery(e.target.value);\n },\n [setSearchQuery],\n );\n\n const handleFocusSearchInput = useCallback(() => {\n if (inputRef.current) {\n inputRef.current.focus();\n }\n }, []);\n\n const filterSearchItems = useCallback(\n (\n items: PoeConsumerSelectModalProps[\"items\"],\n ): PoeConsumerSelectModalProps[\"items\"] => {\n if (searchQuery.trim().length === 0) {\n return items;\n }\n\n return items.filter((item) => {\n return item.title.toLowerCase().includes(searchQuery.toLowerCase());\n });\n },\n [searchQuery],\n );\n\n // #############################################################################\n // Category filter\n // #############################################################################\n const itemCategories: string[] = useMemo(() => {\n const allCategories = items.map((item) => item.category);\n\n // Remove duplicates\n return [...new Set(allCategories)];\n }, [items]);\n\n const [currentItemCategory, setCurrentItemCategory] = useState<string | null>(\n itemCategories[0] || null,\n );\n\n const handleSelectCategory = useCallback(\n (id: string) => {\n setCurrentItemCategory(id);\n setSearchQuery(\"\");\n },\n [setCurrentItemCategory, setSearchQuery],\n );\n\n // #############################################################################\n // Filtered items for display\n // #############################################################################\n const displayedPoeConsumerItems = useMemo(() => {\n // Clone current items\n let itemsTmp = [...items];\n\n // Filter category\n itemsTmp = itemsTmp.filter((item) => item.category === currentItemCategory);\n\n // Filter search query\n itemsTmp = filterSearchItems(itemsTmp);\n\n // Add empty option first in items\n itemsTmp = [\n {\n id: null,\n category: \"\",\n title: \"poeConsumer.empty\",\n wattage: 0,\n src:\n typeof EmptyPortIcon === \"string\" ? EmptyPortIcon : EmptyPortIcon.src,\n },\n ...itemsTmp,\n ];\n\n // Result\n return itemsTmp;\n }, [items, currentItemCategory, filterSearchItems]);\n\n // #############################################################################\n // Counter - for selecting how many of the selected device to add\n // #############################################################################\n const [count, setCount] = useState<number>(1);\n\n // Reset count when modal opens\n useEffect(() => {\n if (isOpen) {\n setCount(1);\n }\n }, [setCount, isOpen]);\n\n const handleIncrementCount = useCallback(() => {\n if (count < maxCount) {\n setCount(count + 1);\n }\n }, [maxCount, count, setCount]);\n\n const handleDecrementCount = useCallback(() => {\n if (count > 1) {\n setCount(count - 1);\n }\n }, [count, setCount]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Modal\n header={<></>}\n onRequestClose={onClose}\n contentClassName={S.CLASS_NAMES.modalContentClassname}\n isOpen={isOpen}\n lockScroll\n size=\"auto\"\n >\n <S.ModalHeader>\n <HorizontalOptionSelect\n activeId={currentItemCategory}\n items={itemCategories.map((category) => {\n // Translate label if possible\n const finalLabelKey = `category.${category}`;\n const finalLabel = isMessageFormatted(finalLabelKey)\n ? formatMessage(finalLabelKey)\n : category;\n\n return {\n label: finalLabel,\n id: category,\n onSelect: () => handleSelectCategory(category),\n };\n })}\n />\n </S.ModalHeader>\n\n <S.ModalSearchWrap onClick={handleFocusSearchInput}>\n <S.ModalSearchIconWrap>\n <CustomImage\n asset={{\n width: 20,\n height: 20,\n src: typeof SearchIcon === \"string\" ? SearchIcon : SearchIcon.src,\n alt: \"search\",\n }}\n sizes=\"100%\"\n />\n </S.ModalSearchIconWrap>\n\n <S.ModalSearchInput\n ref={inputRef}\n type=\"text\"\n value={searchQuery}\n onChange={handleSearchQueryChange}\n />\n </S.ModalSearchWrap>\n\n <S.ListItemsWrap>\n {displayedPoeConsumerItems.map((item, i) => (\n <S.ListItem\n key={`poe-consumer-item-${i}`}\n onClick={() => onSelect(item.id, count)}\n >\n <S.ListItemImgWrap>\n <CustomImage\n asset={{\n width: 30,\n height: 30,\n src: imageSrc(item.src),\n alt: item.title,\n }}\n sizes=\"100%\"\n />\n </S.ListItemImgWrap>\n\n <S.ListItemTitleWrap>\n <S.ListItemTitle>{formatMessage(item.title)}</S.ListItemTitle>\n <S.ListItemValueLabel>{`${item.wattage} W`}</S.ListItemValueLabel>\n </S.ListItemTitleWrap>\n\n {/* Dont render counter if empty option */}\n {item.id !== null && (\n <S.ListItemActionsWrap>\n <S.ListItemCounter onClick={stopPropagation}>\n <S.ListItemCounterBtn\n onClick={handleDecrementCount}\n disabled={count === 1}\n >\n <StyleableSvgImage src={MinusIcon} width={8} height={8} />\n </S.ListItemCounterBtn>\n\n <S.ListItemCounterValue>{count}</S.ListItemCounterValue>\n\n <S.ListItemCounterBtn\n onClick={handleIncrementCount}\n disabled={count === maxCount}\n >\n <StyleableSvgImage src={PlusIcon} width={8} height={8} />\n </S.ListItemCounterBtn>\n </S.ListItemCounter>\n\n <S.ListItemAddActionLabel>\n {formatMessage(\"add\")}\n </S.ListItemAddActionLabel>\n </S.ListItemActionsWrap>\n )}\n </S.ListItem>\n ))}\n </S.ListItemsWrap>\n </S.Modal>\n );\n};\n"],"names":["PoeConsumerSelectModal","isOpen","maxCount","onSelect","items","onClose","formatMessage","useResourceCalculatorTranslation","stopPropagation","useCallback","event","inputRef","useRef","searchQuery","setSearchQuery","useState","handleSearchQueryChange","e","target","value","handleFocusSearchInput","current","focus","filterSearchItems","trim","length","filter","item","title","toLowerCase","includes","itemCategories","useMemo","allCategories","map","category","Set","currentItemCategory","setCurrentItemCategory","handleSelectCategory","id","displayedPoeConsumerItems","itemsTmp","wattage","src","EmptyPortIcon","count","setCount","useEffect","handleIncrementCount","handleDecrementCount","jsxs","S.Modal","header","jsx","Fragment","onRequestClose","contentClassName","S.CLASS_NAMES","modalContentClassname","lockScroll","size","children","S.ModalHeader","HorizontalOptionSelect","activeId","finalLabelKey","finalLabel","isMessageFormatted","label","S.ModalSearchWrap","onClick","S.ModalSearchIconWrap","CustomImage","asset","width","height","SearchIcon","alt","sizes","S.ModalSearchInput","ref","type","onChange","S.ListItemsWrap","i","S.ListItem","S.ListItemImgWrap","imageSrc","S.ListItemTitleWrap","S.ListItemTitle","S.ListItemValueLabel","S.ListItemActionsWrap","S.ListItemCounter","S.ListItemCounterBtn","disabled","StyleableSvgImage","MinusIcon","S.ListItemCounterValue","PlusIcon","S.ListItemAddActionLabel"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAiCO,MAAMA,yBAAyBA,CAAC;EACrCC,MAAA;EACAC,QAAA;EACAC,QAAA;EACAC,KAAA;EACAC;AACF,CAAmC,KAAA;EAC3B,MAAA;IAAEC;GAAc,GAAIC,gCAAiC,EAAA;EAK3D,MAAMC,eAAkB,GAAAC,WAAA,CACrBC,KAAyC,IAAA;IACxCA,KAAA,CAAMF,eAAgB,CAAA,CAAA;EACxB,CAAA,EACA,EAAC,CACH;EAKM,MAAAG,QAAA,GAAWC,OAAyB,IAAI,CAAA;EAE9C,MAAM,CAACC,WAAA,EAAaC,cAAc,CAAA,GAAIC,SAAS,EAAE,CAAA;EAEjD,MAAMC,uBAA0B,GAAAP,WAAA,CAC7BQ,CAA2C,IAAA;IAC3BH,cAAA,CAAAG,CAAA,CAAEC,OAAOC,KAAK,CAAA;EAC/B,CAAA,EACA,CAACL,cAAc,CAAA,CACjB;EAEM,MAAAM,sBAAA,GAAyBX,YAAY,MAAM;IAC/C,IAAIE,SAASU,OAAS,EAAA;MACpBV,QAAA,CAASU,QAAQC,KAAM,EAAA;IACzB;EACF,CAAA,EAAG,EAAE,CAAA;EAEL,MAAMC,iBAAoB,GAAAd,WAAA,CAEtBL,MACyC,IAAA;IACzC,IAAIS,WAAY,CAAAW,IAAA,EAAO,CAAAC,MAAA,KAAW,CAAG,EAAA;MAC5BrB,OAAAA,MA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,"file":"PoeConsumerSelectModal.mjs","sources":["../../../../../../../src/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.tsx"],"sourcesContent":["import type { StaticImageData } from \"next/image\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\n\nimport { imageSrc } from \"../../../../../../utils/asset\";\nimport { CustomImage } from \"../../../../../CustomImage\";\nimport { StyleableSvgImage } from \"../../../../../StyleableSvgImage\";\nimport { HorizontalOptionSelect } from \"../../../../components/HorizontalOptionSelect\";\nimport type { ResourceCalculatorTranslationKey } from \"../../../../ComputeResourceCalculator\";\nimport { isMessageFormatted } from \"../../../../ComputeResourceCalculator\";\nimport { useResourceCalculatorTranslation } from \"../../../../translations/useResourceCalculatorTranslation\";\nimport EmptyPortIcon from \"../assets/empty-port.svg\";\nimport MinusIcon from \"../assets/minus.svg\";\nimport PlusIcon from \"../assets/plus.svg\";\nimport SearchIcon from \"../assets/search.svg\";\nimport * as S from \"./PoeConsumerSelectModal.styles\";\n\ntype PoeConsumerSelectModalProps = {\n isOpen: boolean;\n\n // Max count of devices that can be selected, this value is: (max ports - occupied ports).\n maxCount: number;\n\n onSelect: (poeConsumerId: string | null, count: number) => void;\n onClose: () => void;\n items: Array<{\n id: string | null;\n category: string;\n title: ResourceCalculatorTranslationKey;\n wattage: number;\n src: StaticImageData | string;\n }>;\n};\n\nexport const PoeConsumerSelectModal = ({\n isOpen,\n maxCount,\n onSelect,\n items,\n onClose,\n}: PoeConsumerSelectModalProps) => {\n const { formatMessage } = useResourceCalculatorTranslation();\n\n // #############################################################################\n // Helpers\n // #############################################################################\n const stopPropagation = useCallback(\n (event: React.MouseEvent<HTMLElement>) => {\n event.stopPropagation();\n },\n [],\n );\n\n // #############################################################################\n // Search filter\n // #############################################################################\n const inputRef = useRef<HTMLInputElement>(null);\n\n const [searchQuery, setSearchQuery] = useState(\"\");\n\n const handleSearchQueryChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n setSearchQuery(e.target.value);\n },\n [setSearchQuery],\n );\n\n const handleFocusSearchInput = useCallback(() => {\n if (inputRef.current) {\n inputRef.current.focus();\n }\n }, []);\n\n const filterSearchItems = useCallback(\n (\n items: PoeConsumerSelectModalProps[\"items\"],\n ): PoeConsumerSelectModalProps[\"items\"] => {\n if (searchQuery.trim().length === 0) {\n return items;\n }\n\n return items.filter((item) => {\n return item.title.toLowerCase().includes(searchQuery.toLowerCase());\n });\n },\n [searchQuery],\n );\n\n // #############################################################################\n // Category filter\n // #############################################################################\n const itemCategories: string[] = useMemo(() => {\n const allCategories = items.map((item) => item.category);\n\n // Remove duplicates\n return [...new Set(allCategories)];\n }, [items]);\n\n const [currentItemCategory, setCurrentItemCategory] = useState<string | null>(\n itemCategories[0] || null,\n );\n\n const handleSelectCategory = useCallback(\n (id: string) => {\n setCurrentItemCategory(id);\n setSearchQuery(\"\");\n },\n [setCurrentItemCategory, setSearchQuery],\n );\n\n // #############################################################################\n // Filtered items for display\n // #############################################################################\n const displayedPoeConsumerItems = useMemo(() => {\n // Clone current items\n let itemsTmp = [...items];\n\n // Filter category\n itemsTmp = itemsTmp.filter((item) => item.category === currentItemCategory);\n\n // Filter search query\n itemsTmp = filterSearchItems(itemsTmp);\n\n // Add empty option first in items\n itemsTmp = [\n {\n id: null,\n category: \"\",\n title: \"poeConsumer.empty\",\n wattage: 0,\n src:\n typeof EmptyPortIcon === \"string\" ? EmptyPortIcon : EmptyPortIcon.src,\n },\n ...itemsTmp,\n ];\n\n // Result\n return itemsTmp;\n }, [items, currentItemCategory, filterSearchItems]);\n\n // #############################################################################\n // Counter - for selecting how many of the selected device to add\n // #############################################################################\n const [count, setCount] = useState<number>(1);\n\n // Reset count when modal opens\n useEffect(() => {\n if (isOpen) {\n setCount(1);\n }\n }, [setCount, isOpen]);\n\n const handleIncrementCount = useCallback(() => {\n if (count < maxCount) {\n setCount(count + 1);\n }\n }, [maxCount, count, setCount]);\n\n const handleDecrementCount = useCallback(() => {\n if (count > 1) {\n setCount(count - 1);\n }\n }, [count, setCount]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Modal\n header={<></>}\n onRequestClose={onClose}\n contentClassName={S.CLASS_NAMES.modalContentClassname}\n isOpen={isOpen}\n lockScroll\n size=\"auto\"\n >\n <S.ModalHeader>\n <HorizontalOptionSelect\n activeId={currentItemCategory}\n items={itemCategories.map((category) => {\n // Translate label if possible\n const finalLabelKey = `category.${category}`;\n const finalLabel = isMessageFormatted(finalLabelKey)\n ? formatMessage(finalLabelKey)\n : category;\n\n return {\n label: finalLabel,\n id: category,\n onSelect: () => handleSelectCategory(category),\n };\n })}\n />\n </S.ModalHeader>\n\n <S.ModalSearchWrap onClick={handleFocusSearchInput}>\n <S.ModalSearchIconWrap>\n <CustomImage\n asset={{\n width: 20,\n height: 20,\n src: typeof SearchIcon === \"string\" ? SearchIcon : SearchIcon.src,\n alt: \"search\",\n }}\n sizes=\"100%\"\n />\n </S.ModalSearchIconWrap>\n\n <S.ModalSearchInput\n ref={inputRef}\n type=\"text\"\n value={searchQuery}\n onChange={handleSearchQueryChange}\n />\n </S.ModalSearchWrap>\n\n <S.ListItemsWrap>\n {displayedPoeConsumerItems.map((item, i) => (\n <S.ListItem\n key={`poe-consumer-item-${i}`}\n onClick={() => onSelect(item.id, count)}\n >\n <S.ListItemImgWrap>\n <CustomImage\n asset={{\n width: 30,\n height: 30,\n src: imageSrc(item.src),\n alt: item.title,\n }}\n sizes=\"100%\"\n />\n </S.ListItemImgWrap>\n\n <S.ListItemTitleWrap>\n <S.ListItemTitle>{formatMessage(item.title)}</S.ListItemTitle>\n <S.ListItemValueLabel>{`${item.wattage} W`}</S.ListItemValueLabel>\n </S.ListItemTitleWrap>\n\n {/* Dont render counter if empty option */}\n {item.id !== null && (\n <S.ListItemActionsWrap>\n <S.ListItemCounter onClick={stopPropagation}>\n <S.ListItemCounterBtn\n onClick={handleDecrementCount}\n disabled={count === 1}\n >\n <StyleableSvgImage src={MinusIcon} width={8} height={8} />\n </S.ListItemCounterBtn>\n\n <S.ListItemCounterValue>{count}</S.ListItemCounterValue>\n\n <S.ListItemCounterBtn\n onClick={handleIncrementCount}\n disabled={count === maxCount}\n >\n <StyleableSvgImage src={PlusIcon} width={8} height={8} />\n </S.ListItemCounterBtn>\n </S.ListItemCounter>\n\n <S.ListItemAddActionLabel>\n {formatMessage(\"add\")}\n </S.ListItemAddActionLabel>\n </S.ListItemActionsWrap>\n )}\n </S.ListItem>\n ))}\n </S.ListItemsWrap>\n </S.Modal>\n );\n};\n"],"names":["PoeConsumerSelectModal","isOpen","maxCount","onSelect","items","onClose","formatMessage","useResourceCalculatorTranslation","stopPropagation","useCallback","event","inputRef","useRef","searchQuery","setSearchQuery","useState","handleSearchQueryChange","e","target","value","handleFocusSearchInput","current","focus","filterSearchItems","trim","length","filter","item","title","toLowerCase","includes","itemCategories","useMemo","allCategories","map","category","Set","currentItemCategory","setCurrentItemCategory","handleSelectCategory","id","displayedPoeConsumerItems","itemsTmp","wattage","src","EmptyPortIcon","count","setCount","useEffect","handleIncrementCount","handleDecrementCount","jsxs","S.Modal","header","jsx","Fragment","onRequestClose","contentClassName","S.CLASS_NAMES","modalContentClassname","lockScroll","size","children","S.ModalHeader","HorizontalOptionSelect","activeId","finalLabelKey","finalLabel","isMessageFormatted","label","S.ModalSearchWrap","onClick","S.ModalSearchIconWrap","CustomImage","asset","width","height","SearchIcon","alt","sizes","S.ModalSearchInput","ref","type","onChange","S.ListItemsWrap","i","S.ListItem","S.ListItemImgWrap","imageSrc","S.ListItemTitleWrap","S.ListItemTitle","S.ListItemValueLabel","S.ListItemActionsWrap","S.ListItemCounter","S.ListItemCounterBtn","disabled","StyleableSvgImage","MinusIcon","S.ListItemCounterValue","PlusIcon","S.ListItemAddActionLabel"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAiCO,MAAMA,yBAAyBA,CAAC;EACrCC,MAAA;EACAC,QAAA;EACAC,QAAA;EACAC,KAAA;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AA,CAAA,eAAAR,GAAA,CAACwC,kBAAE,EAAF;cACCvB,OAAS,EAAArB,oBAAA;cACT6C,UAAUjD,KAAU,KAAA,CAAA;cAEpBgB,6BAACkC,iBAAkB,EAAA;gBAAApD,GAAA,EAAKqD;gBAAWtB,KAAO,EAAA,CAAA;gBAAGC,QAAQ;eAAG;YAAA,CAC1D,CAAA,EAEC,eAAAtB,GAAA,CAAA4C,oBAAA,EAAA;cAAwBpC,QAAM,EAAAhB;YAAA,CAAA,CAAA,EAAA,eAE/BQ,GAAA,CAACwC,kBAAE,EAAF;cACCvB,OAAS,EAAAtB,oBAAA;cACT8C,UAAUjD,KAAU,KAAA5C,QAAA;cAEpB4D,6BAACkC,iBAAkB,EAAA;gBAAApD,GAAA,EAAKuD;gBAAUxB,KAAO,EAAA,CAAA;gBAAGC,QAAQ;eAAG;YAAA,CACzD,CAAA;WACF,CAAA,EAAA,mBAECwB,sBAAE,EAAF;YACEtC,QAAA,EAAAxD,aAAA,CAAc,KAAK;UACtB,CAAA,CAAA;SACF,CAAA;MAAA,CAAA,uBA5CwB+E,CAAC,EA+C9B,CAAA;KACH,CAAA;EAAA,CAAA,CACF;AAEJ,CAAA;"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var MinusIcon = require("../../../../../../assets/
|
|
6
|
+
var MinusIcon = require("../../../../../../assets/minus5.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/minus5.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/minus5.svg";
|
|
3
3
|
//# sourceMappingURL=minus.svg.mjs.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var PlusIcon = require("../../../../../../assets/
|
|
6
|
+
var PlusIcon = require("../../../../../../assets/plus6.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/plus6.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/plus6.svg";
|
|
3
3
|
//# sourceMappingURL=plus.svg.mjs.map
|
|
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var react = require('react');
|
|
5
5
|
var reactUse = require('react-use');
|
|
6
6
|
var layout = require('../../constants/layout.js');
|
|
7
|
-
|
|
7
|
+
require('./components/index.js');
|
|
8
8
|
require('./ComputeResourceCalculator/index.js');
|
|
9
9
|
require('./PoeCalculator/index.js');
|
|
10
10
|
var ResourceCalculator_constants = require('./ResourceCalculator.constants.js');
|
|
@@ -13,6 +13,7 @@ var ResourceCalculator_types = require('./ResourceCalculator.types.js');
|
|
|
13
13
|
var useResourceCalculatorTranslation = require('./translations/useResourceCalculatorTranslation.js');
|
|
14
14
|
var PoeCalculator = require('./PoeCalculator/PoeCalculator.js');
|
|
15
15
|
var ComputeResourceCalculator = require('./ComputeResourceCalculator/ComputeResourceCalculator.js');
|
|
16
|
+
var HorizontalOptionSelect = require('./components/HorizontalOptionSelect/HorizontalOptionSelect.js');
|
|
16
17
|
"use strict";
|
|
17
18
|
const ResourceCalculatorV1 = ({
|
|
18
19
|
enabledCalculatorIds,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceCalculator.js","sources":["../../../src/components/ResourceCalculatorV1/ResourceCalculator.tsx"],"sourcesContent":["import { useCallback, useMemo, useState } from \"react\";\nimport { useMedia } from \"react-use\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport { HorizontalOptionSelect } from \"
|
|
1
|
+
{"version":3,"file":"ResourceCalculator.js","sources":["../../../src/components/ResourceCalculatorV1/ResourceCalculator.tsx"],"sourcesContent":["import { useCallback, useMemo, useState } from \"react\";\nimport { useMedia } from \"react-use\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport { HorizontalOptionSelect } from \"./components\";\nimport type { HorizontalOptionSelectProps } from \"./components/HorizontalOptionSelect/HorizontalOptionSelect.types\";\nimport { ComputeResourceCalculator } from \"./ComputeResourceCalculator\";\nimport { PoeCalculator } from \"./PoeCalculator\";\nimport { RESOURCE_CALCULATORS } from \"./ResourceCalculator.constants\";\nimport * as S from \"./ResourceCalculator.styles\";\nimport type { ResourceCalculatorProps } from \"./ResourceCalculator.types\";\nimport { CalculatorId } from \"./ResourceCalculator.types\";\nimport { useResourceCalculatorTranslation } from \"./translations/useResourceCalculatorTranslation\";\n\n/**\n *\n *\n * This component provides functionality for\n * navigating between the different calculators.\n *\n * Calculators can be rendered individually without the\n * calculator navigation by ignoring this component and rendering\n * the specifc calculator directly.\n *\n *\n */\nexport const ResourceCalculatorV1 = ({\n enabledCalculatorIds,\n defaultActiveDeviceId,\n}: ResourceCalculatorProps) => {\n const { formatMessage } = useResourceCalculatorTranslation();\n const isMobile = useMedia(BREAKPOINTS.TABLET_AND_DOWN, false);\n\n const [activeCalculatorId, setActiveCalculatorId] = useState<CalculatorId>(\n enabledCalculatorIds[0],\n );\n\n const enabledCalculators = useMemo(() => {\n return Object.entries(RESOURCE_CALCULATORS)\n .filter(([key]) => enabledCalculatorIds.includes(key))\n .map(([, value]) => value);\n }, [enabledCalculatorIds]);\n\n const handleCalculatorSelect = useCallback(\n (calculatorId: CalculatorId) => {\n setActiveCalculatorId(calculatorId);\n },\n [setActiveCalculatorId],\n );\n\n const activeCalculatorLayout = useMemo(() => {\n switch (activeCalculatorId) {\n case CalculatorId.ComputeResourceCalculator:\n return (\n <ComputeResourceCalculator\n defaultActiveDeviceId={defaultActiveDeviceId}\n />\n );\n\n case CalculatorId.PoeCalculator:\n return <PoeCalculator />;\n }\n }, [activeCalculatorId, defaultActiveDeviceId]);\n\n const calculatorSelectProps: HorizontalOptionSelectProps = useMemo(() => {\n return {\n activeId: activeCalculatorId.toString(),\n items: enabledCalculators.map((calculator) => ({\n onSelect: () => handleCalculatorSelect(calculator.id),\n id: calculator.id as string,\n label: formatMessage(calculator.label),\n })),\n };\n }, [\n handleCalculatorSelect,\n activeCalculatorId,\n enabledCalculators,\n formatMessage,\n ]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.ResourceCalculatorContainer>\n {!isMobile && <S.Title>{formatMessage(\"capacityCalculator\")}</S.Title>}\n {enabledCalculatorIds.length > 1 && (\n <S.CalculatorSelectWrap>\n <HorizontalOptionSelect {...calculatorSelectProps} />\n </S.CalculatorSelectWrap>\n )}\n\n {activeCalculatorLayout}\n </S.ResourceCalculatorContainer>\n );\n};\n"],"names":["ResourceCalculatorV1","enabledCalculatorIds","defaultActiveDeviceId","formatMessage","useResourceCalculatorTranslation","isMobile","useMedia","BREAKPOINTS","TABLET_AND_DOWN","activeCalculatorId","setActiveCalculatorId","useState","enabledCalculators","useMemo","Object","entries","RESOURCE_CALCULATORS","filter","key","includes","map","value","handleCalculatorSelect","useCallback","calculatorId","activeCalculatorLayout","CalculatorId","ComputeResourceCalculator","jsx","PoeCalculator","calculatorSelectProps","activeId","toString","items","calculator","onSelect","id","label","jsxs","S.ResourceCalculatorContainer","children","S.Title","length","S.CalculatorSelectWrap","HorizontalOptionSelect"],"mappings":";;;;;;;;;;;;;;;;;AA0BO,MAAMA,uBAAuBA,CAAC;EACnCC,oBAAA;EACAC;AACF,CAA+B,KAAA;EACvB,MAAA;IAAEC;GAAc,GAAIC,gCAAAA,CAAAA,gCAAiC,EAAA;EAC3D,MAAMC,QAAW,GAAAC,QAAA,CAAAA,QAAA,CAASC,MAAY,CAAAA,WAAA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E,EAAE,CAAA;QACpDA,IAAIF,UAAW,CAAAE,EAAA;QACfC,KAAA,EAAOlC,aAAc,CAAA+B,UAAA,CAAWG,KAAK;MAAA,CACrC,CAAA;IAAA,CACJ;EAAA,CACC,EAAA,CACDf,sBAAA,EACAb,kBAAA,EACAG,kBAAA,EACAT,aAAA,CACD,CAAA;EAMC,sBAAAmC,UAAA,CAAAA,IAAA,CAACC,qDAAE,EAAF;IACEC,QAAA,EAAA,CAAA,CAACnC,YAAauB,eAAAA,UAAAA,CAAAA,GAAA,CAAAa,iCAAA;MAASD,QAAA,EAAArC,aAAA,CAAc,oBAAoB;KAAE,CAAA,EAC3DF,oBAAA,CAAqByC,MAAS,GAAA,CAAA,IAC5Bd,eAAAA,UAAAA,CAAAA,GAAA,CAAAe,yBAAAA,CAAAA,oBAAA,EAAA;MACCH,QAAC,EAAAZ,eAAAA,UAAAA,CAAAA,GAAA,CAAAgB,sBAAAA,CAAAA,sBAAA,EAAA;QAAwB,GAAGd;MAAA,CAAuB;IACrD,CAAA,CAAA,EAGDL,sBAAA;EACH,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useState, useMemo, useCallback } from 'react';
|
|
3
3
|
import { useMedia } from 'react-use';
|
|
4
4
|
import { BREAKPOINTS } from '../../constants/layout.mjs';
|
|
5
|
-
import
|
|
5
|
+
import './components/index.mjs';
|
|
6
6
|
import './ComputeResourceCalculator/index.mjs';
|
|
7
7
|
import './PoeCalculator/index.mjs';
|
|
8
8
|
import { RESOURCE_CALCULATORS } from './ResourceCalculator.constants.mjs';
|
|
@@ -11,6 +11,7 @@ import { CalculatorId } from './ResourceCalculator.types.mjs';
|
|
|
11
11
|
import { useResourceCalculatorTranslation } from './translations/useResourceCalculatorTranslation.mjs';
|
|
12
12
|
import { PoeCalculator } from './PoeCalculator/PoeCalculator.mjs';
|
|
13
13
|
import { ComputeResourceCalculator } from './ComputeResourceCalculator/ComputeResourceCalculator.mjs';
|
|
14
|
+
import { HorizontalOptionSelect } from './components/HorizontalOptionSelect/HorizontalOptionSelect.mjs';
|
|
14
15
|
"use strict";
|
|
15
16
|
const ResourceCalculatorV1 = ({
|
|
16
17
|
enabledCalculatorIds,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceCalculator.mjs","sources":["../../../src/components/ResourceCalculatorV1/ResourceCalculator.tsx"],"sourcesContent":["import { useCallback, useMemo, useState } from \"react\";\nimport { useMedia } from \"react-use\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport { HorizontalOptionSelect } from \"
|
|
1
|
+
{"version":3,"file":"ResourceCalculator.mjs","sources":["../../../src/components/ResourceCalculatorV1/ResourceCalculator.tsx"],"sourcesContent":["import { useCallback, useMemo, useState } from \"react\";\nimport { useMedia } from \"react-use\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport { HorizontalOptionSelect } from \"./components\";\nimport type { HorizontalOptionSelectProps } from \"./components/HorizontalOptionSelect/HorizontalOptionSelect.types\";\nimport { ComputeResourceCalculator } from \"./ComputeResourceCalculator\";\nimport { PoeCalculator } from \"./PoeCalculator\";\nimport { RESOURCE_CALCULATORS } from \"./ResourceCalculator.constants\";\nimport * as S from \"./ResourceCalculator.styles\";\nimport type { ResourceCalculatorProps } from \"./ResourceCalculator.types\";\nimport { CalculatorId } from \"./ResourceCalculator.types\";\nimport { useResourceCalculatorTranslation } from \"./translations/useResourceCalculatorTranslation\";\n\n/**\n *\n *\n * This component provides functionality for\n * navigating between the different calculators.\n *\n * Calculators can be rendered individually without the\n * calculator navigation by ignoring this component and rendering\n * the specifc calculator directly.\n *\n *\n */\nexport const ResourceCalculatorV1 = ({\n enabledCalculatorIds,\n defaultActiveDeviceId,\n}: ResourceCalculatorProps) => {\n const { formatMessage } = useResourceCalculatorTranslation();\n const isMobile = useMedia(BREAKPOINTS.TABLET_AND_DOWN, false);\n\n const [activeCalculatorId, setActiveCalculatorId] = useState<CalculatorId>(\n enabledCalculatorIds[0],\n );\n\n const enabledCalculators = useMemo(() => {\n return Object.entries(RESOURCE_CALCULATORS)\n .filter(([key]) => enabledCalculatorIds.includes(key))\n .map(([, value]) => value);\n }, [enabledCalculatorIds]);\n\n const handleCalculatorSelect = useCallback(\n (calculatorId: CalculatorId) => {\n setActiveCalculatorId(calculatorId);\n },\n [setActiveCalculatorId],\n );\n\n const activeCalculatorLayout = useMemo(() => {\n switch (activeCalculatorId) {\n case CalculatorId.ComputeResourceCalculator:\n return (\n <ComputeResourceCalculator\n defaultActiveDeviceId={defaultActiveDeviceId}\n />\n );\n\n case CalculatorId.PoeCalculator:\n return <PoeCalculator />;\n }\n }, [activeCalculatorId, defaultActiveDeviceId]);\n\n const calculatorSelectProps: HorizontalOptionSelectProps = useMemo(() => {\n return {\n activeId: activeCalculatorId.toString(),\n items: enabledCalculators.map((calculator) => ({\n onSelect: () => handleCalculatorSelect(calculator.id),\n id: calculator.id as string,\n label: formatMessage(calculator.label),\n })),\n };\n }, [\n handleCalculatorSelect,\n activeCalculatorId,\n enabledCalculators,\n formatMessage,\n ]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.ResourceCalculatorContainer>\n {!isMobile && <S.Title>{formatMessage(\"capacityCalculator\")}</S.Title>}\n {enabledCalculatorIds.length > 1 && (\n <S.CalculatorSelectWrap>\n <HorizontalOptionSelect {...calculatorSelectProps} />\n </S.CalculatorSelectWrap>\n )}\n\n {activeCalculatorLayout}\n </S.ResourceCalculatorContainer>\n );\n};\n"],"names":["ResourceCalculatorV1","enabledCalculatorIds","defaultActiveDeviceId","formatMessage","useResourceCalculatorTranslation","isMobile","useMedia","BREAKPOINTS","TABLET_AND_DOWN","activeCalculatorId","setActiveCalculatorId","useState","enabledCalculators","useMemo","Object","entries","RESOURCE_CALCULATORS","filter","key","includes","map","value","handleCalculatorSelect","useCallback","calculatorId","activeCalculatorLayout","CalculatorId","ComputeResourceCalculator","jsx","PoeCalculator","calculatorSelectProps","activeId","toString","items","calculator","onSelect","id","label","jsxs","S.ResourceCalculatorContainer","children","S.Title","length","S.CalculatorSelectWrap","HorizontalOptionSelect"],"mappings":";;;;;;;;;;;;;;;AA0BO,MAAMA,uBAAuBA,CAAC;EACnCC,oBAAA;EACAC;AACF,CAA+B,KAAA;EACvB,MAAA;IAAEC;GAAc,GAAIC,gCAAiC,EAAA;EAC3D,MAAMC,QAAW,GAAAC,QAAA,CAASC,WAAY,CAAAC,eAAA,EAAiB,KAAK,CAAA;EAEtD,MAAA,CAACC,kBAAoB,EAAAC,qBAAqB,CAAI,GAAAC,QAAA,CAClDV,qBAAqB,CAAC,CAAA,CACxB;EAEM,MAAAW,kBAAA,GAAqBC,QAAQ,MAAM;IAChC,OAAAC,MAAA,CAAOC,QAAQC,oBAAoB,CAAA,CACvCC,OAAO,CAAC,CAACC,GAAG,CAAM,KAAAjB,oBAAA,CAAqBkB,SAASD,GAAG,CAAC,EACpDE,GAAI,CAAA,CAAC,GAAGC,KAAK,MAAMA,KAAK,CAAA;EAAA,CAC7B,EAAG,CAACpB,oBAAoB,CAAC,CAAA;EAEzB,MAAMqB,sBAAyB,GAAAC,WAAA,CAC5BC,YAA+B,IAAA;IAC9Bd,qBAAA,CAAsBc,YAAY,CAAA;EACpC,CAAA,EACA,CAACd,qBAAqB,CAAA,CACxB;EAEM,MAAAe,sBAAA,GAAyBZ,QAAQ,MAAM;IAC3C,QAAQJ,kBAAoB;MAC1B,KAAKiB,YAAa,CAAAC,yBAAA;QAEd,sBAAAC,GAAA,CAACD,yBAAA,EAAA;UACCzB;QAAA,CAAA,CACF;MAGJ,KAAKwB,YAAa,CAAAG,aAAA;QAChB,0BAAQA,aAAc,EAAA,CAAA,CAAA,CAAA;IAC1B;EAAA,CACC,EAAA,CAACpB,kBAAoB,EAAAP,qBAAqB,CAAC,CAAA;EAExC,MAAA4B,qBAAA,GAAqDjB,QAAQ,MAAM;IAChE,OAAA;MACLkB,QAAA,EAAUtB,mBAAmBuB,QAAS,CAAA,CAAA;MACtCC,KAAO,EAAArB,kBAAA,CAAmBQ,GAAI,CAACc,UAAgB,KAAA;QAC7CC,QAAU,EAAAA,CAAA,KAAMb,sBAAuB,CAAAY,UAAA,CAAWE,EAAE,CAAA;QACpDA,IAAIF,UAAW,CAAAE,EAAA;QACfC,KAAA,EAAOlC,aAAc,CAAA+B,UAAA,CAAWG,KAAK;MAAA,CACrC,CAAA;IAAA,CACJ;EAAA,CACC,EAAA,CACDf,sBAAA,EACAb,kBAAA,EACAG,kBAAA,EACAT,aAAA,CACD,CAAA;EAMC,sBAAAmC,IAAA,CAACC,2BAAE,EAAF;IACEC,QAAA,EAAA,CAAA,CAACnC,YAAa,eAAAuB,GAAA,CAAAa,OAAA;MAASD,QAAA,EAAArC,aAAA,CAAc,oBAAoB;KAAE,CAAA,EAC3DF,oBAAA,CAAqByC,MAAS,GAAA,CAAA,IAC5B,eAAAd,GAAA,CAAAe,oBAAA,EAAA;MACCH,QAAC,EAAA,eAAAZ,GAAA,CAAAgB,sBAAA,EAAA;QAAwB,GAAGd;MAAA,CAAuB;IACrD,CAAA,CAAA,EAGDL,sBAAA;EACH,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { HorizontalOptionSelectProps } from "./HorizontalOptionSelect.types";
|
|
2
|
-
export declare const HorizontalOptionSelect: ({ items, activeId, className,
|
|
2
|
+
export declare const HorizontalOptionSelect: ({ items, activeId, className, }: HorizontalOptionSelectProps) => JSX.Element;
|
|
@@ -6,15 +6,13 @@ var HorizontalOptionSelect_styles = require('./HorizontalOptionSelect.styles.js'
|
|
|
6
6
|
const HorizontalOptionSelect = ({
|
|
7
7
|
items,
|
|
8
8
|
activeId,
|
|
9
|
-
className
|
|
10
|
-
symetricButtons
|
|
9
|
+
className
|
|
11
10
|
}) => {
|
|
12
11
|
return /* @__PURE__ */jsxRuntime.jsx(HorizontalOptionSelect_styles.HorizontalOptionSelectWrap, {
|
|
13
12
|
className,
|
|
14
13
|
children: items.map(item => /* @__PURE__ */jsxRuntime.jsx(HorizontalOptionSelect_styles.Button, {
|
|
15
14
|
onClick: item.onSelect,
|
|
16
15
|
$active: activeId === item.id,
|
|
17
|
-
$symetricButtons: symetricButtons,
|
|
18
16
|
children: item.label
|
|
19
17
|
}, item.id))
|
|
20
18
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HorizontalOptionSelect.js","sources":["../../../../../src/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.tsx"],"sourcesContent":["import * as S from \"./HorizontalOptionSelect.styles\";\nimport type { HorizontalOptionSelectProps } from \"./HorizontalOptionSelect.types\";\n\nexport const HorizontalOptionSelect = ({\n items,\n activeId,\n className,\n}: HorizontalOptionSelectProps) => {\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.HorizontalOptionSelectWrap className={className}>\n {items.map((item) => (\n <S.Button\n key={item.id}\n onClick={item.onSelect}\n $active={activeId === item.id}\n >\n {item.label}\n </S.Button>\n ))}\n </S.HorizontalOptionSelectWrap>\n );\n};\n"],"names":["HorizontalOptionSelect","items","activeId","className","jsx","S.HorizontalOptionSelectWrap","HorizontalOptionSelectWrap","children","map","item","S.Button","Button","onClick","onSelect","$active","id","label"],"mappings":";;;;;AAGO,MAAMA,yBAAyBA,CAAC;EACrCC,KAAA;EACAC,QAAA;EACAC;AACF,CAAmC,KAAA;EAK/B,sBAAAC,UAAA,CAAAA,GAAA,CAACC,6BAAA,CAAAC,0BAAA,EAAA;IAA6BH;IAC3BI,QAAM,EAAAN,KAAA,CAAAO,GAAA,CAAKC,IACV,mBAAAL,UAAA,CAAAA,GAAA,CAACM,6BAAE,CAAAC,MAAA,EAAF;MAECC,SAASH,IAAK,CAAAI,QAAA;MACdC,OAAA,EAASZ,aAAaO,IAAK,CAAAM,EAAA;MAE1BR,QAAK,EAAAE,IAAA,CAAAO;IAAA,CAAA,EAJDP,IAAK,CAAAM,EAMb,CAAA;EACH,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -4,15 +4,13 @@ import { HorizontalOptionSelectWrap, Button } from './HorizontalOptionSelect.sty
|
|
|
4
4
|
const HorizontalOptionSelect = ({
|
|
5
5
|
items,
|
|
6
6
|
activeId,
|
|
7
|
-
className
|
|
8
|
-
symetricButtons
|
|
7
|
+
className
|
|
9
8
|
}) => {
|
|
10
9
|
return /* @__PURE__ */jsx(HorizontalOptionSelectWrap, {
|
|
11
10
|
className,
|
|
12
11
|
children: items.map(item => /* @__PURE__ */jsx(Button, {
|
|
13
12
|
onClick: item.onSelect,
|
|
14
13
|
$active: activeId === item.id,
|
|
15
|
-
$symetricButtons: symetricButtons,
|
|
16
14
|
children: item.label
|
|
17
15
|
}, item.id))
|
|
18
16
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HorizontalOptionSelect.mjs","sources":["../../../../../src/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.tsx"],"sourcesContent":["import * as S from \"./HorizontalOptionSelect.styles\";\nimport type { HorizontalOptionSelectProps } from \"./HorizontalOptionSelect.types\";\n\nexport const HorizontalOptionSelect = ({\n items,\n activeId,\n className,\n}: HorizontalOptionSelectProps) => {\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.HorizontalOptionSelectWrap className={className}>\n {items.map((item) => (\n <S.Button\n key={item.id}\n onClick={item.onSelect}\n $active={activeId === item.id}\n >\n {item.label}\n </S.Button>\n ))}\n </S.HorizontalOptionSelectWrap>\n );\n};\n"],"names":["HorizontalOptionSelect","items","activeId","className","jsx","S.HorizontalOptionSelectWrap","children","map","item","S.Button","onClick","onSelect","$active","id","label"],"mappings":";;;AAGO,MAAMA,yBAAyBA,CAAC;EACrCC,KAAA;EACAC,QAAA;EACAC;AACF,CAAmC,KAAA;EAK/B,sBAAAC,GAAA,CAACC,0BAAA,EAAA;IAA6BF;IAC3BG,QAAM,EAAAL,KAAA,CAAAM,GAAA,CAAKC,IACV,mBAAAJ,GAAA,CAACK,MAAE,EAAF;MAECC,SAASF,IAAK,CAAAG,QAAA;MACdC,OAAA,EAASV,aAAaM,IAAK,CAAAK,EAAA;MAE1BP,QAAK,EAAAE,IAAA,CAAAM;IAAA,CAAA,EAJDN,IAAK,CAAAK,EAMb,CAAA;EACH,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare const HorizontalOptionSelectWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
2
|
export declare const Button: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
3
3
|
$active: boolean;
|
|
4
|
-
$symetricButtons?: boolean;
|
|
5
4
|
}, never>;
|
|
@@ -9,10 +9,10 @@ function _interopDefault(e) {
|
|
|
9
9
|
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
10
10
|
"use strict";
|
|
11
11
|
const HorizontalOptionSelectWrap = styled__default["default"].div`
|
|
12
|
-
border-radius:
|
|
13
|
-
background-color: #
|
|
12
|
+
border-radius: 80px;
|
|
13
|
+
background-color: #f6f6f8;
|
|
14
14
|
display: flex;
|
|
15
|
-
padding:
|
|
15
|
+
padding: 4px;
|
|
16
16
|
overflow-x: auto;
|
|
17
17
|
|
|
18
18
|
&::-webkit-slider-thumb,
|
|
@@ -21,26 +21,23 @@ const HorizontalOptionSelectWrap = styled__default["default"].div`
|
|
|
21
21
|
}
|
|
22
22
|
`;
|
|
23
23
|
const Button = styled__default["default"].button`
|
|
24
|
-
flex: ${({
|
|
25
|
-
$symetricButtons
|
|
26
|
-
}) => $symetricButtons ? "1" : "0 1 auto"};
|
|
27
24
|
font-size: 14px;
|
|
28
|
-
line-height:
|
|
25
|
+
line-height: 16.9px;
|
|
29
26
|
font-weight: 400;
|
|
30
27
|
|
|
31
28
|
border: none;
|
|
32
29
|
outline: none;
|
|
33
30
|
box-shadow: none;
|
|
34
31
|
|
|
35
|
-
padding:
|
|
36
|
-
border-radius:
|
|
32
|
+
padding: 7px 12px;
|
|
33
|
+
border-radius: 20px;
|
|
37
34
|
|
|
38
35
|
background-color: ${({
|
|
39
36
|
$active
|
|
40
37
|
}) => $active ? "#FFFFFF" : "transparent"};
|
|
41
38
|
color: ${({
|
|
42
39
|
$active
|
|
43
|
-
}) => $active ? "#
|
|
40
|
+
}) => $active ? "#2D6EF6" : "#565657"};
|
|
44
41
|
|
|
45
42
|
flex-grow: 1;
|
|
46
43
|
white-space: nowrap;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HorizontalOptionSelect.styles.js","sources":["../../../../../src/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.ts"],"sourcesContent":["import styled from \"styled-components\";\n\nexport const HorizontalOptionSelectWrap = styled.div`\n border-radius: 80px;\n background-color: #f6f6f8;\n display: flex;\n padding: 4px;\n overflow-x: auto;\n\n &::-webkit-slider-thumb,\n &::-webkit-scrollbar {\n display: none;\n }\n`;\n\nexport const Button = styled.button<{\n $active: boolean;\n}>`\n font-size: 14px;\n line-height: 16.9px;\n font-weight: 400;\n\n border: none;\n outline: none;\n box-shadow: none;\n\n padding: 7px 12px;\n border-radius: 20px;\n\n background-color: ${({ $active }) => ($active ? \"#FFFFFF\" : \"transparent\")};\n color: ${({ $active }) => ($active ? \"#2D6EF6\" : \"#565657\")};\n\n flex-grow: 1;\n white-space: nowrap;\n cursor: pointer;\n`;\n"],"names":["HorizontalOptionSelectWrap","styled","div","Button","button","$active"],"mappings":";;;;;;;;;;AAEO,MAAMA,6BAA6BC,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAa1C,MAAMC,SAASF,eAAO,CAAA,SAAA,CAAA,CAAAG,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAcP,CAAC;EAAEC;AAAA,CAAe,KAAAA,OAAA,GAAU,YAAY,aAAc;AAAA,WACjE,CAAC;EAAEA;AAAA,CAAe,KAAAA,OAAA,GAAU,YAAY,SAAU;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
"use strict";
|
|
3
3
|
const HorizontalOptionSelectWrap = styled.div`
|
|
4
|
-
border-radius:
|
|
5
|
-
background-color: #
|
|
4
|
+
border-radius: 80px;
|
|
5
|
+
background-color: #f6f6f8;
|
|
6
6
|
display: flex;
|
|
7
|
-
padding:
|
|
7
|
+
padding: 4px;
|
|
8
8
|
overflow-x: auto;
|
|
9
9
|
|
|
10
10
|
&::-webkit-slider-thumb,
|
|
@@ -13,26 +13,23 @@ const HorizontalOptionSelectWrap = styled.div`
|
|
|
13
13
|
}
|
|
14
14
|
`;
|
|
15
15
|
const Button = styled.button`
|
|
16
|
-
flex: ${({
|
|
17
|
-
$symetricButtons
|
|
18
|
-
}) => $symetricButtons ? "1" : "0 1 auto"};
|
|
19
16
|
font-size: 14px;
|
|
20
|
-
line-height:
|
|
17
|
+
line-height: 16.9px;
|
|
21
18
|
font-weight: 400;
|
|
22
19
|
|
|
23
20
|
border: none;
|
|
24
21
|
outline: none;
|
|
25
22
|
box-shadow: none;
|
|
26
23
|
|
|
27
|
-
padding:
|
|
28
|
-
border-radius:
|
|
24
|
+
padding: 7px 12px;
|
|
25
|
+
border-radius: 20px;
|
|
29
26
|
|
|
30
27
|
background-color: ${({
|
|
31
28
|
$active
|
|
32
29
|
}) => $active ? "#FFFFFF" : "transparent"};
|
|
33
30
|
color: ${({
|
|
34
31
|
$active
|
|
35
|
-
}) => $active ? "#
|
|
32
|
+
}) => $active ? "#2D6EF6" : "#565657"};
|
|
36
33
|
|
|
37
34
|
flex-grow: 1;
|
|
38
35
|
white-space: nowrap;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HorizontalOptionSelect.styles.mjs","sources":["../../../../../src/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.ts"],"sourcesContent":["import styled from \"styled-components\";\n\nexport const HorizontalOptionSelectWrap = styled.div`\n border-radius: 80px;\n background-color: #f6f6f8;\n display: flex;\n padding: 4px;\n overflow-x: auto;\n\n &::-webkit-slider-thumb,\n &::-webkit-scrollbar {\n display: none;\n }\n`;\n\nexport const Button = styled.button<{\n $active: boolean;\n}>`\n font-size: 14px;\n line-height: 16.9px;\n font-weight: 400;\n\n border: none;\n outline: none;\n box-shadow: none;\n\n padding: 7px 12px;\n border-radius: 20px;\n\n background-color: ${({ $active }) => ($active ? \"#FFFFFF\" : \"transparent\")};\n color: ${({ $active }) => ($active ? \"#2D6EF6\" : \"#565657\")};\n\n flex-grow: 1;\n white-space: nowrap;\n cursor: pointer;\n`;\n"],"names":["HorizontalOptionSelectWrap","styled","div","Button","button","$active"],"mappings":";;AAEO,MAAMA,6BAA6BC,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAa1C,MAAMC,SAASF,MAAO,CAAAG,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAcP,CAAC;EAAEC;AAAA,CAAe,KAAAA,OAAA,GAAU,YAAY,aAAc;AAAA,WACjE,CAAC;EAAEA;AAAA,CAAe,KAAAA,OAAA,GAAU,YAAY,SAAU;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./HorizontalOptionSelect";
|
package/lib/{utils/money/allocators → components/ResourceCalculatorV1/components}/index.js.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
package/lib/{utils/money/allocators → components/ResourceCalculatorV1/components}/index.mjs.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -42,13 +42,12 @@ var EN_TRANSLATION = {
|
|
|
42
42
|
"talk.phones": "Phones",
|
|
43
43
|
"talk.callRecording": "Call Recording",
|
|
44
44
|
protect: protect,
|
|
45
|
-
"protect.noStorage": "No Storage",
|
|
46
45
|
"protect.hdCameras": "HD Cameras",
|
|
47
46
|
"protect.2kCameras": "2K Cameras",
|
|
48
47
|
"protect.4kCameras": "4K Cameras",
|
|
49
48
|
"protect.storageDriveSize": "Storage Drive Size",
|
|
50
49
|
"protect.days": "Days",
|
|
51
|
-
"protect.CkG2PlusNote": "Recording retention calculated for the pre-installed 1 TB HDD
|
|
50
|
+
"protect.CkG2PlusNote": "Recording retention calculated for the pre-installed 1 TB HDD. Increase retention by upgrading storage capacity.",
|
|
52
51
|
"protect.DreamWallNote": "Recording retention calculated for the pre-installed 512 GB microSD card. Increase retention by upgrading storage capacity.",
|
|
53
52
|
"protect.storageProtection": "This drive is reserved for storage protection.",
|
|
54
53
|
network: network,
|
|
@@ -66,8 +65,6 @@ var EN_TRANSLATION = {
|
|
|
66
65
|
"device.CloudKey+": "CloudKey+",
|
|
67
66
|
"device.UDW": "UDW",
|
|
68
67
|
"device.UDR": "UDR",
|
|
69
|
-
"device.EFG": "EFG",
|
|
70
|
-
"device.UCG Max": "UCG Max",
|
|
71
68
|
showMore: showMore,
|
|
72
69
|
showLess: showLess,
|
|
73
70
|
add: add,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"en.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -37,13 +37,12 @@ var EN_TRANSLATION = {
|
|
|
37
37
|
"talk.phones": "Phones",
|
|
38
38
|
"talk.callRecording": "Call Recording",
|
|
39
39
|
protect: protect,
|
|
40
|
-
"protect.noStorage": "No Storage",
|
|
41
40
|
"protect.hdCameras": "HD Cameras",
|
|
42
41
|
"protect.2kCameras": "2K Cameras",
|
|
43
42
|
"protect.4kCameras": "4K Cameras",
|
|
44
43
|
"protect.storageDriveSize": "Storage Drive Size",
|
|
45
44
|
"protect.days": "Days",
|
|
46
|
-
"protect.CkG2PlusNote": "Recording retention calculated for the pre-installed 1 TB HDD
|
|
45
|
+
"protect.CkG2PlusNote": "Recording retention calculated for the pre-installed 1 TB HDD. Increase retention by upgrading storage capacity.",
|
|
47
46
|
"protect.DreamWallNote": "Recording retention calculated for the pre-installed 512 GB microSD card. Increase retention by upgrading storage capacity.",
|
|
48
47
|
"protect.storageProtection": "This drive is reserved for storage protection.",
|
|
49
48
|
network: network,
|
|
@@ -61,8 +60,6 @@ var EN_TRANSLATION = {
|
|
|
61
60
|
"device.CloudKey+": "CloudKey+",
|
|
62
61
|
"device.UDW": "UDW",
|
|
63
62
|
"device.UDR": "UDR",
|
|
64
|
-
"device.EFG": "EFG",
|
|
65
|
-
"device.UCG Max": "UCG Max",
|
|
66
63
|
showMore: showMore,
|
|
67
64
|
showLess: showLess,
|
|
68
65
|
add: add,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"en.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const useResourceCalculatorTranslation: () => {
|
|
2
|
-
intl: import("@formatjs/intl").IntlShape<"add" | "network" | "protect" | "talk" | "access" | "portCount" | "ports" | "capacityCalculator" | "computeResources" | "estimatesMayVary" | "cloudKeyNote" | "capacityExceeded" | "systemCapacity" | "poeCapacity" | "access.doors" | "talk.phones" | "talk.callRecording" | "protect.
|
|
3
|
-
formatMessage: (id: "add" | "network" | "protect" | "talk" | "access" | "portCount" | "ports" | "capacityCalculator" | "computeResources" | "estimatesMayVary" | "cloudKeyNote" | "capacityExceeded" | "systemCapacity" | "poeCapacity" | "access.doors" | "talk.phones" | "talk.callRecording" | "protect.
|
|
2
|
+
intl: import("@formatjs/intl").IntlShape<"add" | "network" | "protect" | "talk" | "access" | "portCount" | "ports" | "capacityCalculator" | "computeResources" | "estimatesMayVary" | "cloudKeyNote" | "capacityExceeded" | "systemCapacity" | "poeCapacity" | "access.doors" | "talk.phones" | "talk.callRecording" | "protect.hdCameras" | "protect.2kCameras" | "protect.4kCameras" | "protect.storageDriveSize" | "protect.days" | "protect.CkG2PlusNote" | "protect.DreamWallNote" | "protect.storageProtection" | "network.accessPoints" | "network.vpn" | "network.securityDetections" | "network.adBlocking" | "network.qos" | "network.clientsPerAP" | "network.maxFeaturesNote" | "device.UDM Pro Max" | "device.UDM Pro / SE" | "device.UNVR" | "device.UNVR Pro" | "device.CloudKey+" | "device.UDW" | "device.UDR" | "showMore" | "showLess" | "notAvailable" | "addPorts" | "recommendedPoeSwitches" | "requirements" | "watts" | "removePorts" | "poePowerBudget" | "assignPoeDevices" | "adjustYourDevice" | "poeConsumer.empty" | "poeConsumer.Swiss Army Knife Ultra" | "poeConsumer.U7 Pro" | "poeConsumer.U6 Pro" | "poeConsumer.U6 Long-Range" | "poeConsumer.AC Pro" | "poeConsumer.U6 Enterprise" | "poeConsumer.U6+" | "poeConsumer.AC Mesh" | "poeConsumer.U6 Mesh" | "poeConsumer.U6 In-Wall" | "poeConsumer.U6 Enterprise In-Wall" | "poeConsumer.AC Mesh Pro" | "poeConsumer.Building Bridge XG" | "poeConsumer.Building Bridge" | "poeConsumer.AC In-Wall" | "poeConsumer.U6 Lite" | "poeConsumer.WiFi BaseStation XG" | "poeConsumer.AC Long-Range" | "poeConsumer.AC Lite" | "poeConsumer.AI Pro" | "poeConsumer.G5 Bullet" | "poeConsumer.G5 Dome" | "poeConsumer.G5 Flex" | "poeConsumer.G5 Pro" | "poeConsumer.G5 Pro with Enhancer" | "poeConsumer.AI Theta" | "poeConsumer.G4 PTZ" | "poeConsumer.AI 360" | "poeConsumer.AI Bullet" | "poeConsumer.G4 Pro" | "poeConsumer.G4 Bullet" | "poeConsumer.G4 Dome" | "poeConsumer.G3 Flex" | "poeConsumer.G4 Doorbell Pro PoE Kit" | "poeConsumer.AI DSLR" | "poeConsumer.AI DSLR LD" | "poeConsumer.Protect Viewport" | "poeConsumer.Protect Floodlight" | "poeConsumer.Access Hub" | "poeConsumer.Access Reader G2 Pro" | "poeConsumer.Access Reader G2" | "poeConsumer.Access Reader Lite" | "poeConsumer.Connect Display" | "poeConsumer.Phone Touch Max" | "poeConsumer.Phone Touch" | "poeConsumer.Analog Telephone Adapter" | "category.Access Points" | "category.Cameras" | "category.Door Access" | "category.Connect Display" | "category.Talk" | "poeProvider.Standard 24 PoE" | "poeProvider.Standard 48 PoE" | "poeProvider.Pro 24 PoE" | "poeProvider.Pro 48 PoE" | "poeProvider.Lite 16 PoE" | "poeProvider.Lite 8 PoE" | "poeProvider.Flex" | "poeProvider.Standard 16 PoE" | "poeProvider.Pro Max 24 PoE" | "poeProvider.Pro Max 48 PoE" | "poeProvider.Enterprise 24 PoE" | "poeProvider.Enterprise 48 PoE" | "poeProvider.Mission Critical" | "poeProvider.8 PoE (Gen1)" | "poeProvider.Standard 24 PoE (Gen1)" | "poeProvider.Standard 48 PoE (Gen1)" | "poeProvider.XG 6 PoE (Gen1)" | "poeProvider.Pro 8 PoE" | "poeProvider.Enterprise 8 PoE" | "poeProvider.Industrial" | "poeProvider.8 PoE, SFP (Gen1)" | "poeProvider.Standard 16 PoE (Gen1)" | "poeProvider.Ultra" | "poeProvider.Ultra 60W" | "poeProvider.Ultra 210W" | "designCenter.title" | "designCenter.startYourProject">;
|
|
3
|
+
formatMessage: (id: "add" | "network" | "protect" | "talk" | "access" | "portCount" | "ports" | "capacityCalculator" | "computeResources" | "estimatesMayVary" | "cloudKeyNote" | "capacityExceeded" | "systemCapacity" | "poeCapacity" | "access.doors" | "talk.phones" | "talk.callRecording" | "protect.hdCameras" | "protect.2kCameras" | "protect.4kCameras" | "protect.storageDriveSize" | "protect.days" | "protect.CkG2PlusNote" | "protect.DreamWallNote" | "protect.storageProtection" | "network.accessPoints" | "network.vpn" | "network.securityDetections" | "network.adBlocking" | "network.qos" | "network.clientsPerAP" | "network.maxFeaturesNote" | "device.UDM Pro Max" | "device.UDM Pro / SE" | "device.UNVR" | "device.UNVR Pro" | "device.CloudKey+" | "device.UDW" | "device.UDR" | "showMore" | "showLess" | "notAvailable" | "addPorts" | "recommendedPoeSwitches" | "requirements" | "watts" | "removePorts" | "poePowerBudget" | "assignPoeDevices" | "adjustYourDevice" | "poeConsumer.empty" | "poeConsumer.Swiss Army Knife Ultra" | "poeConsumer.U7 Pro" | "poeConsumer.U6 Pro" | "poeConsumer.U6 Long-Range" | "poeConsumer.AC Pro" | "poeConsumer.U6 Enterprise" | "poeConsumer.U6+" | "poeConsumer.AC Mesh" | "poeConsumer.U6 Mesh" | "poeConsumer.U6 In-Wall" | "poeConsumer.U6 Enterprise In-Wall" | "poeConsumer.AC Mesh Pro" | "poeConsumer.Building Bridge XG" | "poeConsumer.Building Bridge" | "poeConsumer.AC In-Wall" | "poeConsumer.U6 Lite" | "poeConsumer.WiFi BaseStation XG" | "poeConsumer.AC Long-Range" | "poeConsumer.AC Lite" | "poeConsumer.AI Pro" | "poeConsumer.G5 Bullet" | "poeConsumer.G5 Dome" | "poeConsumer.G5 Flex" | "poeConsumer.G5 Pro" | "poeConsumer.G5 Pro with Enhancer" | "poeConsumer.AI Theta" | "poeConsumer.G4 PTZ" | "poeConsumer.AI 360" | "poeConsumer.AI Bullet" | "poeConsumer.G4 Pro" | "poeConsumer.G4 Bullet" | "poeConsumer.G4 Dome" | "poeConsumer.G3 Flex" | "poeConsumer.G4 Doorbell Pro PoE Kit" | "poeConsumer.AI DSLR" | "poeConsumer.AI DSLR LD" | "poeConsumer.Protect Viewport" | "poeConsumer.Protect Floodlight" | "poeConsumer.Access Hub" | "poeConsumer.Access Reader G2 Pro" | "poeConsumer.Access Reader G2" | "poeConsumer.Access Reader Lite" | "poeConsumer.Connect Display" | "poeConsumer.Phone Touch Max" | "poeConsumer.Phone Touch" | "poeConsumer.Analog Telephone Adapter" | "category.Access Points" | "category.Cameras" | "category.Door Access" | "category.Connect Display" | "category.Talk" | "poeProvider.Standard 24 PoE" | "poeProvider.Standard 48 PoE" | "poeProvider.Pro 24 PoE" | "poeProvider.Pro 48 PoE" | "poeProvider.Lite 16 PoE" | "poeProvider.Lite 8 PoE" | "poeProvider.Flex" | "poeProvider.Standard 16 PoE" | "poeProvider.Pro Max 24 PoE" | "poeProvider.Pro Max 48 PoE" | "poeProvider.Enterprise 24 PoE" | "poeProvider.Enterprise 48 PoE" | "poeProvider.Mission Critical" | "poeProvider.8 PoE (Gen1)" | "poeProvider.Standard 24 PoE (Gen1)" | "poeProvider.Standard 48 PoE (Gen1)" | "poeProvider.XG 6 PoE (Gen1)" | "poeProvider.Pro 8 PoE" | "poeProvider.Enterprise 8 PoE" | "poeProvider.Industrial" | "poeProvider.8 PoE, SFP (Gen1)" | "poeProvider.Standard 16 PoE (Gen1)" | "poeProvider.Ultra" | "poeProvider.Ultra 60W" | "poeProvider.Ultra 210W" | "designCenter.title" | "designCenter.startYourProject", values?: {
|
|
4
4
|
[x: string]: import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>;
|
|
5
5
|
}) => string;
|
|
6
6
|
};
|
package/lib/components/index.js
CHANGED
|
@@ -54,7 +54,6 @@ var index$O = require('./VideoPlayerNew/index.js');
|
|
|
54
54
|
var index$P = require('./ResourceCalculatorV1/index.js');
|
|
55
55
|
var index$Q = require('./CartIcon/index.js');
|
|
56
56
|
var index$R = require('./Header/AccountMenu/index.js');
|
|
57
|
-
var index$S = require('./QuantityInput/index.js');
|
|
58
57
|
"use strict";
|
|
59
58
|
exports.Avatar = index;
|
|
60
59
|
exports.Button = index$1;
|
|
@@ -110,5 +109,4 @@ exports.VideoPlayer = index$O;
|
|
|
110
109
|
exports.ResourceCalculatorV1 = index$P;
|
|
111
110
|
exports.CartIcon = index$Q;
|
|
112
111
|
exports.AccountMenu = index$R;
|
|
113
|
-
exports.QuantityInput = index$S;
|
|
114
112
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/components/index.mjs
CHANGED
|
@@ -106,7 +106,5 @@ import * as index$Q from './CartIcon/index.mjs';
|
|
|
106
106
|
export { index$Q as CartIcon };
|
|
107
107
|
import * as index$R from './Header/AccountMenu/index.mjs';
|
|
108
108
|
export { index$R as AccountMenu };
|
|
109
|
-
import * as index$S from './QuantityInput/index.mjs';
|
|
110
|
-
export { index$S as QuantityInput };
|
|
111
109
|
"use strict";
|
|
112
110
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|