@mikezimm/fps-core-v7 1.0.11 → 1.0.12
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/lib/banner/bannerX/checkCert.d.ts +15 -0
- package/lib/banner/bannerX/checkCert.d.ts.map +1 -0
- package/lib/banner/bannerX/checkCert.js +14 -0
- package/lib/banner/bannerX/checkCert.js.map +1 -0
- package/lib/banner/components/Gear/CreateKeySiteProps.d.ts +10 -0
- package/lib/banner/components/Gear/CreateKeySiteProps.d.ts.map +1 -0
- package/lib/banner/components/Gear/CreateKeySiteProps.js +20 -0
- package/lib/banner/components/Gear/CreateKeySiteProps.js.map +1 -0
- package/lib/banner/components/Gear/IKeySiteProps.d.ts +10 -0
- package/lib/banner/components/Gear/IKeySiteProps.d.ts.map +1 -0
- package/lib/banner/components/Gear/IKeySiteProps.js +2 -0
- package/lib/banner/components/Gear/IKeySiteProps.js.map +1 -0
- package/lib/banner/components/ItemPicker/functions/fetchFileList.d.ts +36 -0
- package/lib/banner/components/ItemPicker/functions/fetchFileList.d.ts.map +1 -0
- package/lib/banner/components/ItemPicker/functions/fetchFileList.js +80 -0
- package/lib/banner/components/ItemPicker/functions/fetchFileList.js.map +1 -0
- package/lib/banner/components/ItemPicker/functions/fetchFileListUniqueIds.d.ts +35 -0
- package/lib/banner/components/ItemPicker/functions/fetchFileListUniqueIds.d.ts.map +1 -0
- package/lib/banner/components/ItemPicker/functions/fetchFileListUniqueIds.js +16 -0
- package/lib/banner/components/ItemPicker/functions/fetchFileListUniqueIds.js.map +1 -0
- package/lib/banner/components/ItemPicker/functions/fetchListList.d.ts +40 -0
- package/lib/banner/components/ItemPicker/functions/fetchListList.d.ts.map +1 -0
- package/lib/banner/components/ItemPicker/functions/fetchListList.js +72 -0
- package/lib/banner/components/ItemPicker/functions/fetchListList.js.map +1 -0
- package/lib/banner/components/ItemPicker/functions/onListItemPickerChanged.d.ts +9 -0
- package/lib/banner/components/ItemPicker/functions/onListItemPickerChanged.d.ts.map +1 -0
- package/lib/banner/components/ItemPicker/functions/onListItemPickerChanged.js +17 -0
- package/lib/banner/components/ItemPicker/functions/onListItemPickerChanged.js.map +1 -0
- package/lib/banner/components/ItemPicker/functions/onListItemPropPaneStart.d.ts +11 -0
- package/lib/banner/components/ItemPicker/functions/onListItemPropPaneStart.d.ts.map +1 -0
- package/lib/banner/components/ItemPicker/functions/onListItemPropPaneStart.js +87 -0
- package/lib/banner/components/ItemPicker/functions/onListItemPropPaneStart.js.map +1 -0
- package/lib/banner/components/ItemPicker/functions/onListPickerChanged.d.ts +8 -0
- package/lib/banner/components/ItemPicker/functions/onListPickerChanged.d.ts.map +1 -0
- package/lib/banner/components/ItemPicker/functions/onListPickerChanged.js +41 -0
- package/lib/banner/components/ItemPicker/functions/onListPickerChanged.js.map +1 -0
- package/lib/banner/components/ItemPicker/functions/onWebUrlPickerValueChanged.d.ts +10 -0
- package/lib/banner/components/ItemPicker/functions/onWebUrlPickerValueChanged.d.ts.map +1 -0
- package/lib/banner/components/ItemPicker/functions/onWebUrlPickerValueChanged.js +46 -0
- package/lib/banner/components/ItemPicker/functions/onWebUrlPickerValueChanged.js.map +1 -0
- package/lib/banner/components/ItemPicker/interfaces/IFPSListItemPickerWPClass.d.ts +5 -0
- package/lib/banner/components/ItemPicker/interfaces/IFPSListItemPickerWPClass.d.ts.map +1 -1
- package/lib/banner/components/ItemPicker/interfaces/IFPSListItemPickerWPClass.js +3 -1
- package/lib/banner/components/ItemPicker/interfaces/IFPSListItemPickerWPClass.js.map +1 -1
- package/lib/banner/components/ItemPicker/interfaces/IFPSListItemPropPaneDropDownOption.d.ts +5 -0
- package/lib/banner/components/ItemPicker/interfaces/IFPSListItemPropPaneDropDownOption.d.ts.map +1 -1
- package/lib/banner/components/ItemPicker/interfaces/IFPSListItemPropPaneDropDownOption.js +3 -1
- package/lib/banner/components/ItemPicker/interfaces/IFPSListItemPropPaneDropDownOption.js.map +1 -1
- package/lib/banner/components/SpecialBanner/interface.d.ts +19 -0
- package/lib/banner/components/SpecialBanner/interface.d.ts.map +1 -0
- package/lib/banner/components/SpecialBanner/interface.js +20 -0
- package/lib/banner/components/SpecialBanner/interface.js.map +1 -0
- package/lib/banner/components/VisitorPanel/Interfaces.d.ts +5 -0
- package/lib/banner/components/VisitorPanel/Interfaces.d.ts.map +1 -1
- package/lib/banner/components/VisitorPanel/Interfaces.js +3 -1
- package/lib/banner/components/VisitorPanel/Interfaces.js.map +1 -1
- package/lib/banner/features/ImportExport/BuildExportPropsX.d.ts +5 -0
- package/lib/banner/features/ImportExport/BuildExportPropsX.d.ts.map +1 -1
- package/lib/banner/features/ImportExport/BuildExportPropsX.js +6 -1
- package/lib/banner/features/ImportExport/BuildExportPropsX.js.map +1 -1
- package/lib/banner/interfaces/MinWP/IMinWPBannerProps.d.ts +5 -0
- package/lib/banner/interfaces/MinWP/IMinWPBannerProps.d.ts.map +1 -1
- package/lib/banner/interfaces/MinWP/IMinWPBannerProps.js +5 -0
- package/lib/banner/interfaces/MinWP/IMinWPBannerProps.js.map +1 -1
- package/lib/banner/mainReact/IWebpartBannerProps.d.ts +155 -0
- package/lib/banner/mainReact/IWebpartBannerProps.d.ts.map +1 -0
- package/lib/banner/mainReact/IWebpartBannerProps.js +8 -0
- package/lib/banner/mainReact/IWebpartBannerProps.js.map +1 -0
- package/lib/banner/mainReact/ReactComponentProps.d.ts +25 -0
- package/lib/banner/mainReact/ReactComponentProps.d.ts.map +1 -0
- package/lib/banner/mainReact/ReactComponentProps.js +7 -0
- package/lib/banner/mainReact/ReactComponentProps.js.map +1 -0
- package/lib/banner/mainReact/ReactComponentState.d.ts +32 -0
- package/lib/banner/mainReact/ReactComponentState.d.ts.map +1 -0
- package/lib/banner/mainReact/ReactComponentState.js +7 -0
- package/lib/banner/mainReact/ReactComponentState.js.map +1 -0
- package/lib/common/Pivots/PivotOptions.d.ts +16 -0
- package/lib/common/Pivots/PivotOptions.d.ts.map +1 -0
- package/lib/common/Pivots/PivotOptions.js +37 -0
- package/lib/common/Pivots/PivotOptions.js.map +1 -0
- package/lib/common/Pivots/Types.d.ts +4 -0
- package/lib/common/Pivots/Types.d.ts.map +1 -0
- package/lib/common/Pivots/Types.js +2 -0
- package/lib/common/Pivots/Types.js.map +1 -0
- package/lib/components/atoms/FPSAgeSlider/FPSAgeSliderOptions10YearPart.d.ts +4 -0
- package/lib/components/atoms/FPSAgeSlider/FPSAgeSliderOptions10YearPart.d.ts.map +1 -0
- package/lib/components/atoms/FPSAgeSlider/FPSAgeSliderOptions10YearPart.js +12 -0
- package/lib/components/atoms/FPSAgeSlider/FPSAgeSliderOptions10YearPart.js.map +1 -0
- package/lib/components/atoms/FPSAgeSlider/FPSAgeSliderOptions5YearPart.d.ts +4 -0
- package/lib/components/atoms/FPSAgeSlider/FPSAgeSliderOptions5YearPart.d.ts.map +1 -0
- package/lib/components/atoms/FPSAgeSlider/FPSAgeSliderOptions5YearPart.js +13 -0
- package/lib/components/atoms/FPSAgeSlider/FPSAgeSliderOptions5YearPart.js.map +1 -0
- package/lib/components/atoms/FPSAgeSlider/FPSAgeSliderOptions7YearPart.d.ts +4 -0
- package/lib/components/atoms/FPSAgeSlider/FPSAgeSliderOptions7YearPart.d.ts.map +1 -0
- package/lib/components/atoms/FPSAgeSlider/FPSAgeSliderOptions7YearPart.js +11 -0
- package/lib/components/atoms/FPSAgeSlider/FPSAgeSliderOptions7YearPart.js.map +1 -0
- package/lib/components/atoms/FPSAgeSlider/FPSAgeTypes.d.ts +23 -0
- package/lib/components/atoms/FPSAgeSlider/FPSAgeTypes.d.ts.map +1 -0
- package/lib/components/atoms/FPSAgeSlider/FPSAgeTypes.js +34 -0
- package/lib/components/atoms/FPSAgeSlider/FPSAgeTypes.js.map +1 -0
- package/lib/components/atoms/FPSAgeSlider/createAgeSliderWPProps.d.ts +3 -0
- package/lib/components/atoms/FPSAgeSlider/createAgeSliderWPProps.d.ts.map +1 -0
- package/lib/components/atoms/FPSAgeSlider/createAgeSliderWPProps.js +10 -0
- package/lib/components/atoms/FPSAgeSlider/createAgeSliderWPProps.js.map +1 -0
- package/lib/components/atoms/Icons/IFPSAppIcons.d.ts +27 -0
- package/lib/components/atoms/Icons/IFPSAppIcons.d.ts.map +1 -0
- package/lib/components/atoms/Icons/IFPSAppIcons.js +34 -0
- package/lib/components/atoms/Icons/IFPSAppIcons.js.map +1 -0
- package/lib/components/atoms/Icons/getIconStyles.d.ts +11 -0
- package/lib/components/atoms/Icons/getIconStyles.d.ts.map +1 -0
- package/lib/components/atoms/Icons/getIconStyles.js +38 -0
- package/lib/components/atoms/Icons/getIconStyles.js.map +1 -0
- package/lib/components/atoms/Icons/iconNames.d.ts +71 -0
- package/lib/components/atoms/Icons/iconNames.d.ts.map +1 -0
- package/lib/components/atoms/Icons/iconNames.js +72 -0
- package/lib/components/atoms/Icons/iconNames.js.map +1 -0
- package/lib/components/atoms/Icons/stdECStorage.d.ts +36 -0
- package/lib/components/atoms/Icons/stdECStorage.d.ts.map +1 -0
- package/lib/components/atoms/Icons/stdECStorage.js +119 -0
- package/lib/components/atoms/Icons/stdECStorage.js.map +1 -0
- package/lib/components/atoms/SVGIcons/JiraIcon.d.ts +2 -0
- package/lib/components/atoms/SVGIcons/JiraIcon.d.ts.map +1 -0
- package/lib/components/atoms/SVGIcons/JiraIcon.js +2 -0
- package/lib/components/atoms/SVGIcons/JiraIcon.js.map +1 -0
- package/lib/components/atoms/SVGIcons/TeamsLogo.d.ts +2 -0
- package/lib/components/atoms/SVGIcons/TeamsLogo.d.ts.map +1 -0
- package/lib/components/atoms/SVGIcons/TeamsLogo.js +2 -0
- package/lib/components/atoms/SVGIcons/TeamsLogo.js.map +1 -0
- package/lib/components/atoms/SVGIcons/defaultHubIcon.d.ts +16 -0
- package/lib/components/atoms/SVGIcons/defaultHubIcon.d.ts.map +1 -0
- package/lib/components/atoms/SVGIcons/defaultHubIcon.js +17 -0
- package/lib/components/atoms/SVGIcons/defaultHubIcon.js.map +1 -0
- package/lib/components/atoms/SVGIcons/defaultHubIcon2.d.ts +16 -0
- package/lib/components/atoms/SVGIcons/defaultHubIcon2.d.ts.map +1 -0
- package/lib/components/atoms/SVGIcons/defaultHubIcon2.js +17 -0
- package/lib/components/atoms/SVGIcons/defaultHubIcon2.js.map +1 -0
- package/lib/components/atoms/SVGIcons/fpsIcon125.d.ts +16 -0
- package/lib/components/atoms/SVGIcons/fpsIcon125.d.ts.map +1 -0
- package/lib/components/atoms/SVGIcons/fpsIcon125.js +17 -0
- package/lib/components/atoms/SVGIcons/fpsIcon125.js.map +1 -0
- package/lib/components/atoms/SVGIcons/fpsLogo125.d.ts +16 -0
- package/lib/components/atoms/SVGIcons/fpsLogo125.d.ts.map +1 -0
- package/lib/components/atoms/SVGIcons/fpsLogo125.js +17 -0
- package/lib/components/atoms/SVGIcons/fpsLogo125.js.map +1 -0
- package/lib/components/atoms/SVGIcons/fpsLogo326.d.ts +16 -0
- package/lib/components/atoms/SVGIcons/fpsLogo326.d.ts.map +1 -0
- package/lib/components/atoms/SVGIcons/fpsLogo326.js +17 -0
- package/lib/components/atoms/SVGIcons/fpsLogo326.js.map +1 -0
- package/lib/components/atoms/SharedItems/IItemWithSharingInfo.d.ts +112 -0
- package/lib/components/atoms/SharedItems/IItemWithSharingInfo.d.ts.map +1 -0
- package/lib/components/atoms/SharedItems/IItemWithSharingInfo.js +32 -0
- package/lib/components/atoms/SharedItems/IItemWithSharingInfo.js.map +1 -0
- package/lib/components/atoms/SharedItems/IKnownMeta.d.ts +6 -0
- package/lib/components/atoms/SharedItems/IKnownMeta.d.ts.map +1 -0
- package/lib/components/atoms/SharedItems/IKnownMeta.js +6 -0
- package/lib/components/atoms/SharedItems/IKnownMeta.js.map +1 -0
- package/lib/components/atoms/SharedItems/openLinkInNewTabUsingDatahref.d.ts +2 -0
- package/lib/components/atoms/SharedItems/openLinkInNewTabUsingDatahref.d.ts.map +1 -0
- package/lib/components/atoms/SharedItems/openLinkInNewTabUsingDatahref.js +9 -0
- package/lib/components/atoms/SharedItems/openLinkInNewTabUsingDatahref.js.map +1 -0
- package/lib/components/atoms/SharedItems/processSharedItems.d.ts +14 -0
- package/lib/components/atoms/SharedItems/processSharedItems.d.ts.map +1 -0
- package/lib/components/atoms/SharedItems/processSharedItems.js +88 -0
- package/lib/components/atoms/SharedItems/processSharedItems.js.map +1 -0
- package/lib/components/atoms/Suggestions/ISuggestion.d.ts +14 -0
- package/lib/components/atoms/Suggestions/ISuggestion.d.ts.map +1 -0
- package/lib/components/atoms/Suggestions/ISuggestion.js +5 -0
- package/lib/components/atoms/Suggestions/ISuggestion.js.map +1 -0
- package/lib/components/atoms/Suggestions/SuggestionsSample-Labels.d.ts +17 -0
- package/lib/components/atoms/Suggestions/SuggestionsSample-Labels.d.ts.map +1 -0
- package/lib/components/atoms/Suggestions/SuggestionsSample-Labels.js +89 -0
- package/lib/components/atoms/Suggestions/SuggestionsSample-Labels.js.map +1 -0
- package/lib/components/atoms/Suggestions/convertSugsLC.d.ts +10 -0
- package/lib/components/atoms/Suggestions/convertSugsLC.d.ts.map +1 -0
- package/lib/components/atoms/Suggestions/convertSugsLC.js +32 -0
- package/lib/components/atoms/Suggestions/convertSugsLC.js.map +1 -0
- package/lib/components/atoms/Suggestions/excludePrepositions.d.ts +5 -0
- package/lib/components/atoms/Suggestions/excludePrepositions.d.ts.map +1 -0
- package/lib/components/atoms/Suggestions/excludePrepositions.js +39 -0
- package/lib/components/atoms/Suggestions/excludePrepositions.js.map +1 -0
- package/lib/components/atoms/Suggestions/getSuggestionsByKeys.d.ts +10 -0
- package/lib/components/atoms/Suggestions/getSuggestionsByKeys.d.ts.map +1 -0
- package/lib/components/atoms/Suggestions/getSuggestionsByKeys.js +72 -0
- package/lib/components/atoms/Suggestions/getSuggestionsByKeys.js.map +1 -0
- package/lib/components/atoms/TeachBubble/IMinTeachBubble.d.ts +20 -0
- package/lib/components/atoms/TeachBubble/IMinTeachBubble.d.ts.map +1 -0
- package/lib/components/atoms/TeachBubble/IMinTeachBubble.js +13 -0
- package/lib/components/atoms/TeachBubble/IMinTeachBubble.js.map +1 -0
- package/lib/components/atoms/TeachBubble/SampleTeachBubbles.d.ts +4 -0
- package/lib/components/atoms/TeachBubble/SampleTeachBubbles.d.ts.map +1 -0
- package/lib/components/atoms/TeachBubble/SampleTeachBubbles.js +33 -0
- package/lib/components/atoms/TeachBubble/SampleTeachBubbles.js.map +1 -0
- package/lib/components/atoms/TeachBubble/getTeacher.d.ts +15 -0
- package/lib/components/atoms/TeachBubble/getTeacher.d.ts.map +1 -0
- package/lib/components/atoms/TeachBubble/getTeacher.js +28 -0
- package/lib/components/atoms/TeachBubble/getTeacher.js.map +1 -0
- package/lib/components/atoms/WordSummary/IWordSummary.d.ts +35 -0
- package/lib/components/atoms/WordSummary/IWordSummary.d.ts.map +1 -0
- package/lib/components/atoms/WordSummary/IWordSummary.js +8 -0
- package/lib/components/atoms/WordSummary/IWordSummary.js.map +1 -0
- package/lib/components/atoms/WordSummary/buildWordSummary.d.ts +11 -0
- package/lib/components/atoms/WordSummary/buildWordSummary.d.ts.map +1 -0
- package/lib/components/atoms/WordSummary/buildWordSummary.js +90 -0
- package/lib/components/atoms/WordSummary/buildWordSummary.js.map +1 -0
- package/lib/components/webparts/CSSCharts/ICSSCharts.d.ts +83 -0
- package/lib/components/webparts/CSSCharts/ICSSCharts.d.ts.map +1 -0
- package/lib/components/webparts/CSSCharts/ICSSCharts.js +2 -0
- package/lib/components/webparts/CSSCharts/ICSSCharts.js.map +1 -0
- package/lib/components/webparts/CSSCharts/themes.d.ts +6 -0
- package/lib/components/webparts/CSSCharts/themes.d.ts.map +1 -0
- package/lib/components/webparts/CSSCharts/themes.js +13 -0
- package/lib/components/webparts/CSSCharts/themes.js.map +1 -0
- package/lib/components/webparts/CarrotCharts/IFoamTree.d.ts +203 -0
- package/lib/components/webparts/CarrotCharts/IFoamTree.d.ts.map +1 -0
- package/lib/components/webparts/CarrotCharts/IFoamTree.js +21 -0
- package/lib/components/webparts/CarrotCharts/IFoamTree.js.map +1 -0
- package/lib/components/webparts/CarrotCharts/IFoamTreeDefaults.d.ts +223 -0
- package/lib/components/webparts/CarrotCharts/IFoamTreeDefaults.d.ts.map +1 -0
- package/lib/components/webparts/CarrotCharts/IFoamTreeDefaults.js +204 -0
- package/lib/components/webparts/CarrotCharts/IFoamTreeDefaults.js.map +1 -0
- package/lib/components/webparts/Drilldown/IDrillItem.d.ts +46 -0
- package/lib/components/webparts/Drilldown/IDrillItem.d.ts.map +1 -0
- package/lib/components/webparts/Drilldown/IDrillItem.js +7 -0
- package/lib/components/webparts/Drilldown/IDrillItem.js.map +1 -0
- package/lib/components/webparts/Drilldown/QuickCommands/ConstantsTMT.d.ts +32 -0
- package/lib/components/webparts/Drilldown/QuickCommands/ConstantsTMT.d.ts.map +1 -0
- package/lib/components/webparts/Drilldown/QuickCommands/ConstantsTMT.js +31 -0
- package/lib/components/webparts/Drilldown/QuickCommands/ConstantsTMT.js.map +1 -0
- package/lib/components/webparts/Drilldown/QuickCommands/IFieldDef.d.ts +12 -0
- package/lib/components/webparts/Drilldown/QuickCommands/IFieldDef.d.ts.map +1 -0
- package/lib/components/webparts/Drilldown/QuickCommands/IFieldDef.js +3 -0
- package/lib/components/webparts/Drilldown/QuickCommands/IFieldDef.js.map +1 -0
- package/lib/components/webparts/Drilldown/QuickCommands/IQuickCommands.d.ts +75 -0
- package/lib/components/webparts/Drilldown/QuickCommands/IQuickCommands.d.ts.map +1 -0
- package/lib/components/webparts/Drilldown/QuickCommands/IQuickCommands.js +24 -0
- package/lib/components/webparts/Drilldown/QuickCommands/IQuickCommands.js.map +1 -0
- package/lib/components/webparts/Drilldown/Refiners/IRefiners.d.ts +153 -0
- package/lib/components/webparts/Drilldown/Refiners/IRefiners.d.ts.map +1 -0
- package/lib/components/webparts/Drilldown/Refiners/IRefiners.js +35 -0
- package/lib/components/webparts/Drilldown/Refiners/IRefiners.js.map +1 -0
- package/lib/components/webparts/Drilldown/Refiners/functions.d.ts +8 -0
- package/lib/components/webparts/Drilldown/Refiners/functions.d.ts.map +1 -0
- package/lib/components/webparts/Drilldown/Refiners/functions.js +12 -0
- package/lib/components/webparts/Drilldown/Refiners/functions.js.map +1 -0
- package/lib/logic/Links/Navigation.d.ts +9 -0
- package/lib/logic/Links/Navigation.d.ts.map +1 -0
- package/lib/logic/Links/Navigation.js +22 -0
- package/lib/logic/Links/Navigation.js.map +1 -0
- package/lib/logic/Links/UrlFunctions.d.ts +50 -0
- package/lib/logic/Links/UrlFunctions.d.ts.map +1 -0
- package/lib/logic/Links/UrlFunctions.js +148 -0
- package/lib/logic/Links/UrlFunctions.js.map +1 -0
- package/lib/logic/Links/getAllDomainsFromUrls.d.ts +2 -0
- package/lib/logic/Links/getAllDomainsFromUrls.d.ts.map +1 -0
- package/lib/logic/Links/getAllDomainsFromUrls.js +75 -0
- package/lib/logic/Links/getAllDomainsFromUrls.js.map +1 -0
- package/lib/logic/Links/getDomainTypeFromUrl.d.ts +19 -0
- package/lib/logic/Links/getDomainTypeFromUrl.d.ts.map +1 -0
- package/lib/logic/Links/getDomainTypeFromUrl.js +73 -0
- package/lib/logic/Links/getDomainTypeFromUrl.js.map +1 -0
- package/lib/logic/Links/getDomains.d.ts +28 -0
- package/lib/logic/Links/getDomains.d.ts.map +1 -0
- package/lib/logic/Links/getDomains.js +41 -0
- package/lib/logic/Links/getDomains.js.map +1 -0
- package/lib/logic/Links/getSPOUrl.d.ts +39 -0
- package/lib/logic/Links/getSPOUrl.d.ts.map +1 -0
- package/lib/logic/Links/getSPOUrl.js +60 -0
- package/lib/logic/Links/getSPOUrl.js.map +1 -0
- package/lib/logic/Randomize/functions.d.ts +38 -0
- package/lib/logic/Randomize/functions.d.ts.map +1 -0
- package/lib/logic/Randomize/functions.js +70 -0
- package/lib/logic/Randomize/functions.js.map +1 -0
- package/lib/logic/Regex/constants.d.ts +15 -0
- package/lib/logic/Regex/constants.d.ts.map +1 -0
- package/lib/logic/Regex/constants.js +23 -0
- package/lib/logic/Regex/constants.js.map +1 -0
- package/lib/logic/Strings/choiceKeys.d.ts +35 -0
- package/lib/logic/Strings/choiceKeys.d.ts.map +1 -0
- package/lib/logic/Strings/choiceKeys.js +60 -0
- package/lib/logic/Strings/choiceKeys.js.map +1 -0
- package/lib/logic/Strings/decamelize.d.ts +7 -0
- package/lib/logic/Strings/decamelize.d.ts.map +1 -0
- package/lib/logic/Strings/decamelize.js +38 -0
- package/lib/logic/Strings/decamelize.js.map +1 -0
- package/lib/logic/Strings/drillParse/constants.d.ts +2 -0
- package/lib/logic/Strings/drillParse/constants.d.ts.map +1 -0
- package/lib/logic/Strings/drillParse/constants.js +2 -0
- package/lib/logic/Strings/drillParse/constants.js.map +1 -0
- package/lib/logic/Strings/drillParse/convertNumbers.d.ts +19 -0
- package/lib/logic/Strings/drillParse/convertNumbers.d.ts.map +1 -0
- package/lib/logic/Strings/drillParse/convertNumbers.js +84 -0
- package/lib/logic/Strings/drillParse/convertNumbers.js.map +1 -0
- package/lib/logic/Strings/drillParse/convertUTCTime.d.ts +15 -0
- package/lib/logic/Strings/drillParse/convertUTCTime.d.ts.map +1 -0
- package/lib/logic/Strings/drillParse/convertUTCTime.js +107 -0
- package/lib/logic/Strings/drillParse/convertUTCTime.js.map +1 -0
- package/lib/logic/Strings/drillParse/createItemFunctionProp.d.ts +31 -0
- package/lib/logic/Strings/drillParse/createItemFunctionProp.d.ts.map +1 -0
- package/lib/logic/Strings/drillParse/createItemFunctionProp.js +352 -0
- package/lib/logic/Strings/drillParse/createItemFunctionProp.js.map +1 -0
- package/lib/logic/Strings/drillParse/get1stDigitFromString.d.ts +7 -0
- package/lib/logic/Strings/drillParse/get1stDigitFromString.d.ts.map +1 -0
- package/lib/logic/Strings/drillParse/get1stDigitFromString.js +10 -0
- package/lib/logic/Strings/drillParse/get1stDigitFromString.js.map +1 -0
- package/lib/logic/Strings/drillParse/getLetterBuckets.d.ts +11 -0
- package/lib/logic/Strings/drillParse/getLetterBuckets.d.ts.map +1 -0
- package/lib/logic/Strings/drillParse/getLetterBuckets.js +37 -0
- package/lib/logic/Strings/drillParse/getLetterBuckets.js.map +1 -0
- package/lib/logic/Strings/drillParse/getWords.d.ts +46 -0
- package/lib/logic/Strings/drillParse/getWords.d.ts.map +1 -0
- package/lib/logic/Strings/drillParse/getWords.js +106 -0
- package/lib/logic/Strings/drillParse/getWords.js.map +1 -0
- package/lib/logic/Strings/drillParse/trimAfter.d.ts +23 -0
- package/lib/logic/Strings/drillParse/trimAfter.d.ts.map +1 -0
- package/lib/logic/Strings/drillParse/trimAfter.js +77 -0
- package/lib/logic/Strings/drillParse/trimAfter.js.map +1 -0
- package/lib/logic/Strings/drillParse/trimB4.d.ts +24 -0
- package/lib/logic/Strings/drillParse/trimB4.d.ts.map +1 -0
- package/lib/logic/Strings/drillParse/trimB4.js +64 -0
- package/lib/logic/Strings/drillParse/trimB4.js.map +1 -0
- package/lib/logic/Strings/evalParse/basicParse.d.ts +8 -0
- package/lib/logic/Strings/evalParse/basicParse.d.ts.map +1 -0
- package/lib/logic/Strings/evalParse/basicParse.js +29 -0
- package/lib/logic/Strings/evalParse/basicParse.js.map +1 -0
- package/lib/logic/Strings/evalParse/parseTodayXExpression.d.ts +17 -0
- package/lib/logic/Strings/evalParse/parseTodayXExpression.d.ts.map +1 -0
- package/lib/logic/Strings/evalParse/parseTodayXExpression.js +40 -0
- package/lib/logic/Strings/evalParse/parseTodayXExpression.js.map +1 -0
- package/lib/logic/Strings/filtering.d.ts +7 -0
- package/lib/logic/Strings/filtering.d.ts.map +1 -0
- package/lib/logic/Strings/filtering.js +55 -0
- package/lib/logic/Strings/filtering.js.map +1 -0
- package/lib/logic/Strings/getGroupStrings/getGroupByDate.d.ts +15 -0
- package/lib/logic/Strings/getGroupStrings/getGroupByDate.d.ts.map +1 -0
- package/lib/logic/Strings/getGroupStrings/getGroupByDate.js +60 -0
- package/lib/logic/Strings/getGroupStrings/getGroupByDate.js.map +1 -0
- package/lib/logic/Strings/getGroupStrings/getGroupByNumber.d.ts +12 -0
- package/lib/logic/Strings/getGroupStrings/getGroupByNumber.d.ts.map +1 -0
- package/lib/logic/Strings/getGroupStrings/getGroupByNumber.js +169 -0
- package/lib/logic/Strings/getGroupStrings/getGroupByNumber.js.map +1 -0
- package/lib/logic/Strings/getGroupStrings/getRefinerFromField.d.ts +15 -0
- package/lib/logic/Strings/getGroupStrings/getRefinerFromField.d.ts.map +1 -0
- package/lib/logic/Strings/getGroupStrings/getRefinerFromField.js +67 -0
- package/lib/logic/Strings/getGroupStrings/getRefinerFromField.js.map +1 -0
- package/lib/logic/Strings/handleBarsContext.d.ts +1 -0
- package/lib/logic/Strings/handleBarsContext.d.ts.map +1 -0
- package/lib/logic/Strings/handleBarsContext.js +64 -0
- package/lib/logic/Strings/handleBarsContext.js.map +1 -0
- package/lib/logic/Strings/handleBarsHTML.d.ts +41 -0
- package/lib/logic/Strings/handleBarsHTML.d.ts.map +1 -0
- package/lib/logic/Strings/handleBarsHTML.js +76 -0
- package/lib/logic/Strings/handleBarsHTML.js.map +1 -0
- package/lib/logic/Strings/handleBarsSub.d.ts +11 -0
- package/lib/logic/Strings/handleBarsSub.d.ts.map +1 -0
- package/lib/logic/Strings/handleBarsSub.js +37 -0
- package/lib/logic/Strings/handleBarsSub.js.map +1 -0
- package/lib/logic/Strings/html.d.ts +14 -0
- package/lib/logic/Strings/html.d.ts.map +1 -0
- package/lib/logic/Strings/html.js +40 -0
- package/lib/logic/Strings/html.js.map +1 -0
- package/lib/logic/Strings/htmlV2.d.ts +44 -0
- package/lib/logic/Strings/htmlV2.d.ts.map +1 -0
- package/lib/logic/Strings/htmlV2.js +158 -0
- package/lib/logic/Strings/htmlV2.js.map +1 -0
- package/lib/logic/Strings/splitHash.d.ts +12 -0
- package/lib/logic/Strings/splitHash.d.ts.map +1 -0
- package/lib/logic/Strings/splitHash.js +33 -0
- package/lib/logic/Strings/splitHash.js.map +1 -0
- package/lib/logic/Time/IFPSDateLanguageObject.d.ts +5 -0
- package/lib/logic/Time/IFPSDateLanguageObject.d.ts.map +1 -0
- package/lib/logic/Time/IFPSDateLanguageObject.js +2 -0
- package/lib/logic/Time/IFPSDateLanguageObject.js.map +1 -0
- package/lib/logic/Time/IFPSDateLaunguages.d.ts +3 -0
- package/lib/logic/Time/IFPSDateLaunguages.d.ts.map +1 -0
- package/lib/logic/Time/IFPSDateLaunguages.js +4 -0
- package/lib/logic/Time/IFPSDateLaunguages.js.map +1 -0
- package/lib/logic/Time/Interfaces.d.ts +53 -0
- package/lib/logic/Time/Interfaces.d.ts.map +1 -0
- package/lib/logic/Time/Interfaces.js +3 -0
- package/lib/logic/Time/Interfaces.js.map +1 -0
- package/lib/logic/Time/checks.d.ts +2 -0
- package/lib/logic/Time/checks.d.ts.map +1 -0
- package/lib/logic/Time/checks.js +23 -0
- package/lib/logic/Time/checks.js.map +1 -0
- package/lib/logic/Time/dayLabels.d.ts +4 -0
- package/lib/logic/Time/dayLabels.d.ts.map +1 -0
- package/lib/logic/Time/dayLabels.js +22 -0
- package/lib/logic/Time/dayLabels.js.map +1 -0
- package/lib/logic/Time/deltas.d.ts +35 -0
- package/lib/logic/Time/deltas.d.ts.map +1 -0
- package/lib/logic/Time/deltas.js +183 -0
- package/lib/logic/Time/deltas.js.map +1 -0
- package/lib/logic/Time/getFPSPrefNavLang.d.ts +3 -0
- package/lib/logic/Time/getFPSPrefNavLang.d.ts.map +1 -0
- package/lib/logic/Time/getFPSPrefNavLang.js +15 -0
- package/lib/logic/Time/getFPSPrefNavLang.js.map +1 -0
- package/lib/logic/Time/getLabels.d.ts +12 -0
- package/lib/logic/Time/getLabels.d.ts.map +1 -0
- package/lib/logic/Time/getLabels.js +43 -0
- package/lib/logic/Time/getLabels.js.map +1 -0
- package/lib/logic/Time/getMMMDD.d.ts +1 -0
- package/lib/logic/Time/getMMMDD.d.ts.map +1 -0
- package/lib/logic/Time/getMMMDD.js +1 -0
- package/lib/logic/Time/getMMMDD.js.map +1 -0
- package/lib/logic/Time/monthLabels.d.ts +6 -0
- package/lib/logic/Time/monthLabels.d.ts.map +1 -0
- package/lib/logic/Time/monthLabels.js +34 -0
- package/lib/logic/Time/monthLabels.js.map +1 -0
- package/lib/logic/Time/monthStrOldKeys.d.ts +20 -0
- package/lib/logic/Time/monthStrOldKeys.d.ts.map +1 -0
- package/lib/logic/Time/monthStrOldKeys.js +21 -0
- package/lib/logic/Time/monthStrOldKeys.js.map +1 -0
- package/lib/logic/Time/monthStrings.d.ts +9 -0
- package/lib/logic/Time/monthStrings.d.ts.map +1 -0
- package/lib/logic/Time/monthStrings.js +36 -0
- package/lib/logic/Time/monthStrings.js.map +1 -0
- package/lib/logic/Time/personalize.d.ts +9 -0
- package/lib/logic/Time/personalize.d.ts.map +1 -0
- package/lib/logic/Time/personalize.js +74 -0
- package/lib/logic/Time/personalize.js.map +1 -0
- package/lib/logic/Time/smallTimeObject.d.ts +10 -0
- package/lib/logic/Time/smallTimeObject.d.ts.map +1 -0
- package/lib/logic/Time/smallTimeObject.js +50 -0
- package/lib/logic/Time/smallTimeObject.js.map +1 -0
- package/lib/logic/Time/timeObject.d.ts +10 -0
- package/lib/logic/Time/timeObject.d.ts.map +1 -0
- package/lib/logic/Time/timeObject.js +122 -0
- package/lib/logic/Time/timeObject.js.map +1 -0
- package/lib/logic/Time/weeks.d.ts +54 -0
- package/lib/logic/Time/weeks.d.ts.map +1 -0
- package/lib/logic/Time/weeks.js +105 -0
- package/lib/logic/Time/weeks.js.map +1 -0
- package/lib/logic/Time/yearsArray.d.ts +36 -0
- package/lib/logic/Time/yearsArray.d.ts.map +1 -0
- package/lib/logic/Time/yearsArray.js +47 -0
- package/lib/logic/Time/yearsArray.js.map +1 -0
- package/lib/logic/Types/typeServices.d.ts +7 -0
- package/lib/logic/Types/typeServices.d.ts.map +1 -0
- package/lib/logic/Types/typeServices.js +55 -0
- package/lib/logic/Types/typeServices.js.map +1 -0
- package/lib/types/@fluentUI/@7.199.1/Panel.d.ts +86 -0
- package/lib/types/@fluentUI/@7.199.1/Panel.d.ts.map +1 -0
- package/lib/types/@fluentUI/@7.199.1/Panel.js +4 -0
- package/lib/types/@fluentUI/@7.199.1/Panel.js.map +1 -0
- package/lib/types/@msft/1.15.2/sp-property-pane.d.ts +144 -0
- package/lib/types/@msft/1.15.2/sp-property-pane.d.ts.map +1 -1
- package/lib/types/fps-common/AudienceInterfaces.d.ts +22 -0
- package/lib/types/fps-common/AudienceInterfaces.d.ts.map +1 -0
- package/lib/types/fps-common/AudienceInterfaces.js +28 -0
- package/lib/types/fps-common/AudienceInterfaces.js.map +1 -0
- package/lib/types/fps-common/IFPSBasicToggleSetting.d.ts +5 -0
- package/lib/types/fps-common/IFPSBasicToggleSetting.d.ts.map +1 -0
- package/lib/types/fps-common/IFPSBasicToggleSetting.js +2 -0
- package/lib/types/fps-common/IFPSBasicToggleSetting.js.map +1 -0
- package/lib/types/fps-common/IFPSPropPaneField.d.ts +12 -0
- package/lib/types/fps-common/IFPSPropPaneField.d.ts.map +1 -0
- package/lib/types/fps-common/IFPSPropPaneField.js +2 -0
- package/lib/types/fps-common/IFPSPropPaneField.js.map +1 -0
- package/lib/types/fps-common/IMyInterfaces.d.ts +69 -0
- package/lib/types/fps-common/IMyInterfaces.d.ts.map +1 -0
- package/lib/types/fps-common/IMyInterfaces.js +28 -0
- package/lib/types/fps-common/IMyInterfaces.js.map +1 -0
- package/lib/types/fps-common/IzPivots.d.ts +20 -0
- package/lib/types/fps-common/IzPivots.d.ts.map +1 -0
- package/lib/types/fps-common/IzPivots.js +2 -0
- package/lib/types/fps-common/IzPivots.js.map +1 -0
- package/lib/types/fps-common/Picked/IListInterfaces.d.ts +1 -0
- package/lib/types/fps-common/Picked/IListInterfaces.d.ts.map +1 -0
- package/lib/types/fps-common/Picked/IListInterfaces.js +6 -0
- package/lib/types/fps-common/Picked/IListInterfaces.js.map +1 -0
- package/lib/types/fps-common/Picked/IPickedList.d.ts +7 -0
- package/lib/types/fps-common/Picked/IPickedList.d.ts.map +1 -0
- package/lib/types/fps-common/Picked/IPickedList.js +2 -0
- package/lib/types/fps-common/Picked/IPickedList.js.map +1 -0
- package/lib/types/fps-common/Picked/IPickedView.d.ts +6 -0
- package/lib/types/fps-common/Picked/IPickedView.d.ts.map +1 -0
- package/lib/types/fps-common/Picked/IPickedView.js +2 -0
- package/lib/types/fps-common/Picked/IPickedView.js.map +1 -0
- package/lib/types/fps-common/Picked/IPickedWebBasic.d.ts +11 -0
- package/lib/types/fps-common/Picked/IPickedWebBasic.d.ts.map +1 -0
- package/lib/types/fps-common/Picked/IPickedWebBasic.js +8 -0
- package/lib/types/fps-common/Picked/IPickedWebBasic.js.map +1 -0
- package/lib/types/fps-common/Picked/IZBasicItemInfo.d.ts +35 -0
- package/lib/types/fps-common/Picked/IZBasicItemInfo.d.ts.map +1 -0
- package/lib/types/fps-common/Picked/IZBasicItemInfo.js +7 -0
- package/lib/types/fps-common/Picked/IZBasicItemInfo.js.map +1 -0
- package/lib/types/react/IFPSJSX_Element.d.ts +9 -1
- package/lib/types/react/IFPSJSX_Element.d.ts.map +1 -1
- package/lib/types/spfxPropControls/@3.11.0/IPropertyFieldGroupOrPerson.d.ts +23 -1
- package/lib/types/spfxPropControls/@3.11.0/IPropertyFieldGroupOrPerson.d.ts.map +1 -1
- package/lib/types/spfxPropControls/@3.11.0/IPropertyFieldGroupOrPerson.js +4 -1
- package/lib/types/spfxPropControls/@3.11.0/IPropertyFieldGroupOrPerson.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CodeAnalizerComment: Updated 1 imports on 2024-09-22 02:56:43
|
|
3
|
+
* Update:: import { makeTheTimeObject } to '@mikezimm/fps-core-v7/lib/logic/Time/timeObject;'
|
|
4
|
+
|
|
5
|
+
*/
|
|
6
|
+
import { monthStr3 } from "../../Time/monthLabels";
|
|
7
|
+
import { makeTheTimeObject } from "../../Time/timeObject";
|
|
8
|
+
/**
|
|
9
|
+
* 2024-08-24: Migrated from drillFunctions
|
|
10
|
+
* getGroupByDate
|
|
11
|
+
* @param fieldValue
|
|
12
|
+
* @param ruleSet
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
export function getGroupByDate(fieldValue, ruleSet) {
|
|
16
|
+
fieldValue = fieldValue.trim();
|
|
17
|
+
let tempDate = makeTheTimeObject(fieldValue);
|
|
18
|
+
let reFormattedDate = null;
|
|
19
|
+
// 'groupByDays' | 'groupByWeeks' | 'groupByMonths' | 'groupByYears' | 'groupByDayOfWeek' |
|
|
20
|
+
if (ruleSet.indexOf('groupByDays') > -1) {
|
|
21
|
+
reFormattedDate = tempDate.dayYYYYMMDD;
|
|
22
|
+
}
|
|
23
|
+
else if (ruleSet.indexOf('groupByWeeks') > -1) {
|
|
24
|
+
reFormattedDate = tempDate.year + '-' + tempDate.week;
|
|
25
|
+
}
|
|
26
|
+
else if (ruleSet.indexOf('groupByMonthsYYMM') > -1) {
|
|
27
|
+
reFormattedDate = tempDate.year + '-' + ("0" + (tempDate.month ? tempDate.month + 1 : 0)).slice(-2);
|
|
28
|
+
}
|
|
29
|
+
else if (ruleSet.indexOf('groupByMonthsMMM') > -1) {
|
|
30
|
+
reFormattedDate = monthStr3['en-us'][tempDate.month ? tempDate.month + 1 : 0];
|
|
31
|
+
}
|
|
32
|
+
else if (ruleSet.indexOf('groupByYears') > -1) {
|
|
33
|
+
reFormattedDate = tempDate.year ? tempDate.year.toString() : '';
|
|
34
|
+
}
|
|
35
|
+
else if (ruleSet.indexOf('groupByDayOfWeek') > -1) {
|
|
36
|
+
reFormattedDate = tempDate.dayOfWeekDDD;
|
|
37
|
+
}
|
|
38
|
+
else if (ruleSet.indexOf('groupByDateBuckets') > -1) {
|
|
39
|
+
if (tempDate.daysAgo === undefined) {
|
|
40
|
+
reFormattedDate = 'Unknown';
|
|
41
|
+
}
|
|
42
|
+
else if (tempDate.daysAgo > 360) {
|
|
43
|
+
reFormattedDate = '> 1 Year';
|
|
44
|
+
}
|
|
45
|
+
else if (tempDate.daysAgo > 30) {
|
|
46
|
+
reFormattedDate = '> 1 Month';
|
|
47
|
+
}
|
|
48
|
+
else if (tempDate.daysAgo > 7) {
|
|
49
|
+
reFormattedDate = '> 1 Week';
|
|
50
|
+
}
|
|
51
|
+
else if (tempDate.daysAgo > 1) {
|
|
52
|
+
reFormattedDate = '> 1 Day';
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
reFormattedDate = 'Today';
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return reFormattedDate;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=getGroupByDate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGroupByDate.js","sourceRoot":"","sources":["../../../../src/logic/Strings/getGroupStrings/getGroupByDate.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAE,UAAgB,EAAE,OAA2B;IAE3E,UAAU,GAAG,UAAU,CAAC,IAAI,EAAE,CAAC;IAC/B,IAAI,QAAQ,GAAG,iBAAiB,CAAE,UAAU,CAAE,CAAC;IAC/C,IAAI,eAAe,GAAG,IAAI,CAAC;IAC3B,6FAA6F;IAC7F,IAAK,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAG;QACvC,eAAe,GAAG,QAAQ,CAAC,WAAW,CAAC;KAE1C;SAAM,IAAK,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,EAAG;QAC/C,eAAe,GAAG,QAAQ,CAAC,IAAI,GAAG,GAAG,GAAE,QAAQ,CAAC,IAAI,CAAC;KAExD;SAAM,IAAK,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,EAAG;QACpD,eAAe,GAAG,QA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AG,CAAC,EAAG;YAC/B,eAAe,GAAG,SAAS,CAAE;SAEhC;aAAM;YAAE,eAAe,GAAG,OAAO,CAAE;SAAE;KAEzC;IACD,OAAO,eAAqB,CAAC;AAC/B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RefineRuleValues } from "../../../components/webparts/Drilldown/Refiners/IRefiners";
|
|
2
|
+
import { ITypeStrings } from "../../Types/typeServices";
|
|
3
|
+
/**
|
|
4
|
+
* 2024-08-24: Migrated from drillFunctions
|
|
5
|
+
* getGroupByNumber, doThisMathOp
|
|
6
|
+
* @param fieldValue
|
|
7
|
+
* @param type
|
|
8
|
+
* @param ruleSet
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
export declare function getGroupByNumber(fieldValue: any, type: ITypeStrings, ruleSet: RefineRuleValues[]): string;
|
|
12
|
+
//# sourceMappingURL=getGroupByNumber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGroupByNumber.d.ts","sourceRoot":"","sources":["../../../../src/logic/Strings/getGroupStrings/getGroupByNumber.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAE,UAAU,EAAG,GAAG,EAAE,IAAI,EAAG,YAAY,EAAG,OAAO,EAAE,gBAAgB,EAAE,GAAI,MAAM,CAiF9G"}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 2024-08-24: Migrated from drillFunctions
|
|
3
|
+
* getGroupByNumber, doThisMathOp
|
|
4
|
+
* @param fieldValue
|
|
5
|
+
* @param type
|
|
6
|
+
* @param ruleSet
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export function getGroupByNumber(fieldValue, type, ruleSet) {
|
|
10
|
+
//textAsNumber,
|
|
11
|
+
let result = fieldValue;
|
|
12
|
+
if (type === 'numberstring' && ruleSet.indexOf('textAsNumber') === -1) {
|
|
13
|
+
return result; // Do not apply any special rules.
|
|
14
|
+
}
|
|
15
|
+
else if (type === 'numberstring') { //This needs to be converted to number
|
|
16
|
+
result = parseFloat(fieldValue);
|
|
17
|
+
}
|
|
18
|
+
else if (type === 'number') { //This is already a number... do nothing
|
|
19
|
+
}
|
|
20
|
+
else { //Just for kicks
|
|
21
|
+
alert('Not sure why this is happening... check out function: \ngetGroupByNumber');
|
|
22
|
+
}
|
|
23
|
+
if (ruleSet.indexOf('groupBy10s') > -1) {
|
|
24
|
+
result = doThisMathOp(result, 10, ruleSet).toString();
|
|
25
|
+
}
|
|
26
|
+
else if (ruleSet.indexOf('groupBy100s') > -1) {
|
|
27
|
+
result = doThisMathOp(result, 100, ruleSet).toString();
|
|
28
|
+
}
|
|
29
|
+
else if (ruleSet.indexOf('groupBy1000s') > -1) {
|
|
30
|
+
result = doThisMathOp(result, 1000, ruleSet).toString();
|
|
31
|
+
}
|
|
32
|
+
else if (ruleSet.indexOf('groupByMillions') > -1) {
|
|
33
|
+
result = doThisMathOp(result, 1000000, ruleSet).toString();
|
|
34
|
+
}
|
|
35
|
+
else if (ruleSet.indexOf('<log10Group') > -1) {
|
|
36
|
+
if (result < 0) {
|
|
37
|
+
result = '<0';
|
|
38
|
+
}
|
|
39
|
+
else if (result < .001) {
|
|
40
|
+
result = '<.001';
|
|
41
|
+
}
|
|
42
|
+
else if (result < .01) {
|
|
43
|
+
result = '<.01';
|
|
44
|
+
}
|
|
45
|
+
else if (result < .1) {
|
|
46
|
+
result = '<.1';
|
|
47
|
+
}
|
|
48
|
+
else if (result < 1) {
|
|
49
|
+
result = '<1';
|
|
50
|
+
}
|
|
51
|
+
else if (result < 10) {
|
|
52
|
+
result = '<10';
|
|
53
|
+
}
|
|
54
|
+
else if (result < 100) {
|
|
55
|
+
result = '<100';
|
|
56
|
+
}
|
|
57
|
+
else if (result < 1000) {
|
|
58
|
+
result = '<1,000';
|
|
59
|
+
}
|
|
60
|
+
else if (result < 10000) {
|
|
61
|
+
result = '<10,000';
|
|
62
|
+
}
|
|
63
|
+
else if (result < 100000) {
|
|
64
|
+
result = '<100,000';
|
|
65
|
+
}
|
|
66
|
+
else if (result < 1000000) {
|
|
67
|
+
result = '<1,000,000';
|
|
68
|
+
}
|
|
69
|
+
else if (result < 10000000) {
|
|
70
|
+
result = '<10,000,000';
|
|
71
|
+
}
|
|
72
|
+
else if (result < 100000000) {
|
|
73
|
+
result = '<100,000,000';
|
|
74
|
+
}
|
|
75
|
+
else if (result < 1000000000) {
|
|
76
|
+
result = '<1,000,000,000';
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
else if (ruleSet.indexOf('>log10Group') > -1) {
|
|
80
|
+
if (result > 1000000000) {
|
|
81
|
+
result = '>1,000,000,000';
|
|
82
|
+
}
|
|
83
|
+
else if (result > 100000000) {
|
|
84
|
+
result = '>100,000,000';
|
|
85
|
+
}
|
|
86
|
+
else if (result > 10000000) {
|
|
87
|
+
result = '>10,000,000';
|
|
88
|
+
}
|
|
89
|
+
else if (result > 1000000) {
|
|
90
|
+
result = '>1,000,000';
|
|
91
|
+
}
|
|
92
|
+
else if (result > 100000) {
|
|
93
|
+
result = '>100,000';
|
|
94
|
+
}
|
|
95
|
+
else if (result > 10000) {
|
|
96
|
+
result = '>10,000';
|
|
97
|
+
}
|
|
98
|
+
else if (result > 1000) {
|
|
99
|
+
result = '>1,000';
|
|
100
|
+
}
|
|
101
|
+
else if (result > 100) {
|
|
102
|
+
result = '>100';
|
|
103
|
+
}
|
|
104
|
+
else if (result > 10) {
|
|
105
|
+
result = '>10';
|
|
106
|
+
}
|
|
107
|
+
else if (result > 1) {
|
|
108
|
+
result = '>1';
|
|
109
|
+
}
|
|
110
|
+
else if (result > .1) {
|
|
111
|
+
result = '>.1';
|
|
112
|
+
}
|
|
113
|
+
else if (result > .01) {
|
|
114
|
+
result = '>.01';
|
|
115
|
+
}
|
|
116
|
+
else if (result > .001) {
|
|
117
|
+
result = '>.001';
|
|
118
|
+
}
|
|
119
|
+
else if (result > 0) {
|
|
120
|
+
result = '>0';
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
result = '<0';
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
else if (ruleSet.indexOf('log10e3') > -1) {
|
|
127
|
+
if (result < .001) {
|
|
128
|
+
result = '<.001';
|
|
129
|
+
}
|
|
130
|
+
else if (result < 1) {
|
|
131
|
+
result = '<1';
|
|
132
|
+
}
|
|
133
|
+
else if (result < 1000) {
|
|
134
|
+
result = '<1,000';
|
|
135
|
+
}
|
|
136
|
+
else if (result < 1000000) {
|
|
137
|
+
result = '<1,000,000';
|
|
138
|
+
}
|
|
139
|
+
else if (result < 1000000000) {
|
|
140
|
+
result = '<1,000,000,000';
|
|
141
|
+
}
|
|
142
|
+
else if (result < 1000000000000) {
|
|
143
|
+
result = '<1,000,000,000,000';
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
// if ( typeof result !== 'string' && ruleSet.indexOf( 'numberAsText' ) > -1 ) {
|
|
147
|
+
//2022-03-31: For now, going to just assume any number should be converted to string at this point because the refiner filter function is always going to get the label to compare to which is a string.
|
|
148
|
+
if (typeof result !== 'string') {
|
|
149
|
+
result = result.toString();
|
|
150
|
+
}
|
|
151
|
+
return result;
|
|
152
|
+
}
|
|
153
|
+
function doThisMathOp(val, toThis, ref) {
|
|
154
|
+
let result = val;
|
|
155
|
+
if (ref.indexOf('mathCeiling') > -1) {
|
|
156
|
+
result = Math.ceil(result / toThis) * toThis;
|
|
157
|
+
}
|
|
158
|
+
else if (ref.indexOf('mathFloor') > -1) {
|
|
159
|
+
result = Math.floor(result / toThis) * toThis;
|
|
160
|
+
}
|
|
161
|
+
else if (ref.indexOf('mathRound') > -1) {
|
|
162
|
+
result = Math.round(result / toThis) * toThis;
|
|
163
|
+
}
|
|
164
|
+
else { //This would be default
|
|
165
|
+
result = Math.round(result / toThis) * toThis;
|
|
166
|
+
}
|
|
167
|
+
return result;
|
|
168
|
+
}
|
|
169
|
+
//# sourceMappingURL=getGroupByNumber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGroupByNumber.js","sourceRoot":"","sources":["../../../../src/logic/Strings/getGroupStrings/getGroupByNumber.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,MAAM,UAAU,gBAAgB,CAAE,UAAgB,EAAE,IAAmB,EAAG,OAA2B;IAEnG,eAAe;IACf,IAAI,MAAM,GAAG,UAAU,CAAC;IAExB,IAAK,IAAI,KAAK,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,EAAG;QACrE,OAAO,MAAM,CAAC,CAAC,kCAAkC;KAEpD;SAAM,IAAK,IAAI,KAAK,cAAc,EAAG,EAAE,sCAAsC;QAC1E,MAAM,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC;KAEnC;SAAM,IAAK,IAAI,KAAK,QAAQ,EAAG,EAAE,wCAAwC;KAEzE;SAAM,EAAE,gBAAgB;QACrB,KAAK,CAAC,2EAA2E,CAAC,CAAC;KAEtF;IAED,IAAK,OAAO,CAAC,OAAO,CAAE,YAAY,CAAE,GAAG,CAAC,CAAC,EAAG;QACxC,MAAM,GAAG,YAAY,CAAE,MAAM,EAAE,EAAE,EAAE,OAAO,CAAE,CAAC,QAAQ,EAAE,CAAC;KAE3D;SAAM,IAAK,OAAO,CAAC,OAAO,CAAE,aAAa,CAAE,GAAG,CAAC,CAAC,EAAG;QAChD,MAAM,GAAG,YAAY,CAAE,MAAM,EAAE,GAAG,EAAE,OAAO,CAAE,CAAC,QAAQ,EAAE,CAAC;KAE5D;SAAM,IAAK,OAAO,CAAC,OAAO,CAAE,cAAc,CAAE,GAAG,CAAC,CAAC,EAAG;QACjD,MAAM,GAAG,YAAY,CAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CA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AAG,MAAM,CAAE;KAEhD;SAAM,EAAE,uBAAuB;QAC5B,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,GAAC,MAAM,CAAC,GAAG,MAAM,CAAE;KAEhD;IAED,OAAO,MAAM,CAAC;AAEhB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RefineRuleValues } from "../../../components/webparts/Drilldown/Refiners/IRefiners";
|
|
2
|
+
/**
|
|
3
|
+
* 2024-08-24: Migrated from drillFunctions
|
|
4
|
+
* getRefinerFromField
|
|
5
|
+
*
|
|
6
|
+
* This takes a field value of type any (number, date, text) and a set of rules to apply
|
|
7
|
+
* And returns an array of strings that can be used for filtering.
|
|
8
|
+
* This with grouping items into smaller buckets... like 1000's instead of 1001, 1002, 1003... etc
|
|
9
|
+
* @param fieldValue
|
|
10
|
+
* @param ruleSet
|
|
11
|
+
* @param emptyRefiner
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
export declare function getRefinerFromField(fieldValue: any, ruleSet: RefineRuleValues[], emptyRefiner: string): string[];
|
|
15
|
+
//# sourceMappingURL=getRefinerFromField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRefinerFromField.d.ts","sourceRoot":"","sources":["../../../../src/logic/Strings/getGroupStrings/getRefinerFromField.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAK7F;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAG,UAAU,EAAG,GAAG,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,YAAY,EAAE,MAAM,GAAI,MAAM,EAAE,CA8DpH"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { getDetailValueType } from "../../Types/typeServices";
|
|
2
|
+
import { getGroupByDate } from "./getGroupByDate";
|
|
3
|
+
import { getGroupByNumber } from "./getGroupByNumber";
|
|
4
|
+
/**
|
|
5
|
+
* 2024-08-24: Migrated from drillFunctions
|
|
6
|
+
* getRefinerFromField
|
|
7
|
+
*
|
|
8
|
+
* This takes a field value of type any (number, date, text) and a set of rules to apply
|
|
9
|
+
* And returns an array of strings that can be used for filtering.
|
|
10
|
+
* This with grouping items into smaller buckets... like 1000's instead of 1001, 1002, 1003... etc
|
|
11
|
+
* @param fieldValue
|
|
12
|
+
* @param ruleSet
|
|
13
|
+
* @param emptyRefiner
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
export function getRefinerFromField(fieldValue, ruleSet, emptyRefiner) {
|
|
17
|
+
let result = [];
|
|
18
|
+
// Basic types copied from: https://www.w3schools.com/js/tryit.asp?filename=tryjs_typeof_all
|
|
19
|
+
let detailType = getDetailValueType(fieldValue);
|
|
20
|
+
if (detailType === 'null' || detailType === 'undefined' || detailType === 'function') {
|
|
21
|
+
result = [emptyRefiner];
|
|
22
|
+
}
|
|
23
|
+
else if (detailType === 'boolean') {
|
|
24
|
+
result = [fieldValue === true ? 'true' : 'false'];
|
|
25
|
+
}
|
|
26
|
+
else if (detailType === 'number') {
|
|
27
|
+
result = [getGroupByNumber(fieldValue, detailType, ruleSet)];
|
|
28
|
+
}
|
|
29
|
+
else if (detailType === 'array') {
|
|
30
|
+
result = fieldValue;
|
|
31
|
+
//Applying this logic would cause the refiner list to grow for some reason... likely due to nesting
|
|
32
|
+
// result = fieldValue.map( value => {
|
|
33
|
+
// return getRefinerFromField( value, ruleSet, emptyRefiner );
|
|
34
|
+
// });
|
|
35
|
+
}
|
|
36
|
+
else if (detailType === 'object') {
|
|
37
|
+
result = [JSON.stringify(fieldValue)];
|
|
38
|
+
}
|
|
39
|
+
else if (detailType === 'datestring' && ruleSet.indexOf('groupByString') < 0) {
|
|
40
|
+
result = [getGroupByDate(fieldValue, ruleSet)];
|
|
41
|
+
}
|
|
42
|
+
else if (detailType === 'numberstring' && ruleSet.indexOf('groupByString') < 0) {
|
|
43
|
+
fieldValue = fieldValue.trim();
|
|
44
|
+
result = [getGroupByNumber(fieldValue, detailType, ruleSet)];
|
|
45
|
+
}
|
|
46
|
+
else if (detailType === 'string' || ruleSet.indexOf('groupByString') > -1) {
|
|
47
|
+
//If it's a string, then test if it's a date, return the best date in an array. Object.prototype.toString.call(date) === '[object Date]' //https://stackoverflow.com/a/643827
|
|
48
|
+
//As of 2020-09-01: This does not accurately detect dates.
|
|
49
|
+
fieldValue = fieldValue.trim();
|
|
50
|
+
//parse by semiColon or comma if rule dictates
|
|
51
|
+
if (ruleSet.indexOf('parseBySemiColons') > -1 && fieldValue.indexOf(';') > -1) {
|
|
52
|
+
fieldValue = getRefinerFromField(fieldValue.split(';'), ruleSet, emptyRefiner);
|
|
53
|
+
}
|
|
54
|
+
else if (ruleSet.indexOf('parseByCommas') > -1 && fieldValue.indexOf(',') > -1) {
|
|
55
|
+
fieldValue = getRefinerFromField(fieldValue.split(','), ruleSet, emptyRefiner);
|
|
56
|
+
//This loop closes https://github.com/mikezimm/drilldown7/issues/83
|
|
57
|
+
}
|
|
58
|
+
else if (ruleSet.indexOf('groupByString') > -1 && fieldValue === '') {
|
|
59
|
+
result = [emptyRefiner];
|
|
60
|
+
}
|
|
61
|
+
else { // This should be a string
|
|
62
|
+
result = [fieldValue];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return result;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=getRefinerFromField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRefinerFromField.js","sourceRoot":"","sources":["../../../../src/logic/Strings/getGroupStrings/getRefinerFromField.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,mBAAmB,CAAG,UAAgB,EAAE,OAA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AC,OAAO,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,EAAE;QAE1E,gLAAgL;QAChL,2DAA2D;QAC3D,UAAU,GAAG,UAAU,CAAC,IAAI,EAAE,CAAC;QACvB,8CAA8C;QACtD,IAAK,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,GAAI,CAAC,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAG;YAC9E,UAAU,GAAG,mBAAmB,CAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,EAAG,OAAO,EAAE,YAAY,CAAE,CAAC;SAEtF;aAAM,IAAI,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,GAAI,CAAC,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAG;YAChF,UAAU,GAAG,mBAAmB,CAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,EAAG,OAAO,EAAE,YAAY,CAAE,CAAC;YAEvF,mEAAmE;SAClE;aAAM,IAAI,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,GAAI,CAAC,CAAC,IAAI,UAAU,KAAK,EAAE,EAAG;YACrE,MAAM,GAAG,CAAE,YAAY,CAAE,CAAC;SAE7B;aAAM,EAAE,0BAA0B;YAC/B,MAAM,GAAG,CAAE,UAAU,CAAE,CAAC;SAE3B;KACJ;IAED,OAAO,MAAM,CAAC;AAEhB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=handleBarsContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleBarsContext.d.ts","sourceRoot":"","sources":["../../../src/logic/Strings/handleBarsContext.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// /**
|
|
2
|
+
// * CodeAnalizerComment: Updated 1 imports on 2024-09-21 23:07:24
|
|
3
|
+
// * Update:: import { WebPartContextCopy_15_2 } to '@mikezimm/fps-core-v7/lib/types/@msft/1.15.2/WebPartContext;'
|
|
4
|
+
// */
|
|
5
|
+
// // import { WebPartContextCopy_15_2 } from '@mikezimm/fps-core-v7/lib/types/@msft/1.15.2/WebPartContext'; //./../common/interfaces/@msft/1.15.2/WebPartContext';
|
|
6
|
+
// import { WebPartContextCopy_15_2 } from "@mikezimm/fps-core-v7/lib/types/@msft/1.15.2/WebPartContext";
|
|
7
|
+
// export interface IHandleBarReplacements {
|
|
8
|
+
// // [key: string]: string[];
|
|
9
|
+
// Pages: string[];
|
|
10
|
+
// Lists: string[];
|
|
11
|
+
// Users: string[];
|
|
12
|
+
// Webs: string[];
|
|
13
|
+
// Sites: string[];
|
|
14
|
+
// }
|
|
15
|
+
// export const HandleBarReplacements : IHandleBarReplacements = {
|
|
16
|
+
// Pages: [ '{{PageId}}' ] ,
|
|
17
|
+
// Lists: [ '{{ListTitle}}', '{{ListId}}', '{{ListUrl}}' ] ,
|
|
18
|
+
// Users: [ '{{UserName}}', '{{UserLogin}}', '{{UserEmail}}' ] ,
|
|
19
|
+
// Webs: [ '{{WebTitle}}', '{{WebUrl}}', '{{SiteId}}' ] ,
|
|
20
|
+
// Sites: [ '{{SiteTitle}}', '{{SiteUrl}}', '{{SiteId}}' ] ,
|
|
21
|
+
// }
|
|
22
|
+
// /**
|
|
23
|
+
// * Replaces HandleBar style strings with known replacements from context
|
|
24
|
+
// *
|
|
25
|
+
// * Used first in PageInfo converting web part prop input in relatedItems heading, web, ListTitle and restFilter
|
|
26
|
+
// *
|
|
27
|
+
// * @param str
|
|
28
|
+
// * @param context
|
|
29
|
+
// * @returns
|
|
30
|
+
// */
|
|
31
|
+
// export function replaceHandleBars( str: string , context: WebPartContextCopy_15_2 ): string {
|
|
32
|
+
// if ( !str ) { return '' ; } else {
|
|
33
|
+
// if ( str.indexOf('{{') === -1 || str.indexOf('}}') === -1 ) {
|
|
34
|
+
// return str;
|
|
35
|
+
// } else {
|
|
36
|
+
// let newStr = str.replace( /{{PageId}}/gi , `${context.pageContext.listItem ? context.pageContext.listItem.id.toFixed() : '{{PageId}}'}` );
|
|
37
|
+
// if ( str.indexOf('{{List') > -1 ) {
|
|
38
|
+
// newStr = newStr.replace( /{{ListTitle}}/gi , `${context.pageContext.list ? context.pageContext.list.title : '{{ListTitle}}' }` );
|
|
39
|
+
// newStr = newStr.replace( /{{ListId}}/gi , `${context.pageContext.list ? context.pageContext.list.id : '{{ListId}}'}` );
|
|
40
|
+
// newStr = newStr.replace( /{{ListUrl}}/gi , `${context.pageContext.list ? context.pageContext.list.serverRelativeUrl : '{{ListUrl}}'}` );
|
|
41
|
+
// }
|
|
42
|
+
// if ( str.indexOf('{{User') > -1 ) {
|
|
43
|
+
// newStr = newStr.replace( /{{UserName}}/gi , `${ context.pageContext.user.displayName }` );
|
|
44
|
+
// newStr = newStr.replace( /{{UserLogin}}/gi , `${ context.pageContext.user.loginName }` );
|
|
45
|
+
// newStr = newStr.replace( /{{UserEmail}}/gi , `${ context.pageContext.user.email }` );
|
|
46
|
+
// }
|
|
47
|
+
// if ( str.indexOf('{{Web') > -1 ) {
|
|
48
|
+
// newStr = newStr.replace( /{{WebTitle}}/gi , `${context.pageContext.web.title}` );
|
|
49
|
+
// newStr = newStr.replace( /{{WebUrl}}/gi , `${context.pageContext.web.serverRelativeUrl}` );
|
|
50
|
+
// newStr = newStr.replace( /{{WebId}}/gi , `${context.pageContext.web.id}` );
|
|
51
|
+
// }
|
|
52
|
+
// if ( str.indexOf('{{Site') > -1 ) {
|
|
53
|
+
// newStr = newStr.replace( /{{SiteTitle}}/gi , `${context.pageContext.web.title}` );
|
|
54
|
+
// newStr = newStr.replace( /{{SiteUrl}}/gi , `${context.pageContext.web.serverRelativeUrl}` );
|
|
55
|
+
// newStr = newStr.replace( /{{SiteId}}/gi , `${context.pageContext.web.id}` );
|
|
56
|
+
// }
|
|
57
|
+
// let now = new Date();
|
|
58
|
+
// newStr = newStr.replace( /{{Now}}/gi , `${ now.toLocaleString() }` );
|
|
59
|
+
// newStr = newStr.replace( /{{Today}}/gi , `${ now.toLocaleDateString() }` );
|
|
60
|
+
// return newStr;
|
|
61
|
+
// }
|
|
62
|
+
// }
|
|
63
|
+
// }
|
|
64
|
+
//# sourceMappingURL=handleBarsContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleBarsContext.js","sourceRoot":"","sources":["../../../src/logic/Strings/handleBarsContext.ts"],"names":[],"mappings":"AAAA,MAAM;AACN,mEAAmE;AACnE,mHAAmH;AAEnH,MAAM;AAGN,mKAAmK;AAEnK,yGAAyG;AAEzG,4CAA4C;AAC5C,gCAAgC;AAChC,qBAAqB;AACrB,qBAAqB;AACrB,qBAAqB;AACrB,oBAAoB;AACpB,qBAAqB;AAErB,IAAI;AAEJ,kEAAkE;AAElE,gCAAgC;AAChC,gEAAgE;AAChE,oEAAoE;AACpE,6DAA6D;AAC7D,gEAAgE;AAEhE,IAAI;AAEJ,MAAM;AACN,2EAA2E;AAC3E,KAAK;AACL,kHAAkH;AAClH,KAAK;AACL,gBAAgB;AAChB,oBAAoB;AACpB,cAAc;AACd,MAAM;AAGN,gGAAgG;AAEhG,yCAAyC;AAEzC,sEAAsE;AACtE,sBAAsB;AAEtB,iBAAiB;AAEjB,qJAAqJ;AAErJ,8CAA8C;AAC9C,8IAA8I;AAC9I,oIAAoI;AACpI,qJAAqJ;AACrJ,YAAY;AAEZ,8CAA8C;AAC9C,uGAAuG;AACvG,sGAAsG;AACtG,kGAAkG;AAClG,YAAY;AAEZ,6CAA6C;AAC7C,8FAA8F;AAC9F,wGAAwG;AACxG,wFAAwF;AACxF,YAAY;AAEZ,8CAA8C;AAC9C,+FAA+F;AAC/F,yGAAyG;AACzG,yFAAyF;AACzF,YAAY;AAEZ,gCAAgC;AAEhC,gFAAgF;AAChF,sFAAsF;AAEtF,yBAAyB;AAEzB,UAAU;AACV,QAAQ;AACR,IAAI"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const HandleBarsRegex: RegExp;
|
|
2
|
+
/**
|
|
3
|
+
* const regex = /{{(.*?)}}/g;
|
|
4
|
+
*
|
|
5
|
+
* function replaceHandlebars(template, data) {
|
|
6
|
+
// Create a regular expression to match handlebars expressions
|
|
7
|
+
const regex = /{{(.*?)}}/g;
|
|
8
|
+
// Replace each expression with the corresponding value from the data object
|
|
9
|
+
return template.replace(regex, (match, expression) => {
|
|
10
|
+
// Evaluate the expression using the data object as the context
|
|
11
|
+
return eval(expression);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* This function will replace
|
|
18
|
+
* <h2>{{Title}}</h2>
|
|
19
|
+
*
|
|
20
|
+
* with the Title property of the item passed in:
|
|
21
|
+
* <h2>item.Title</h2>
|
|
22
|
+
*
|
|
23
|
+
* @param item
|
|
24
|
+
* @param handleBarString
|
|
25
|
+
* @param emptyIfSubEmpty
|
|
26
|
+
* @param replaceSlashDots >> will replace Author/Title with AuthorTitle - consistant with the way Drilldown works
|
|
27
|
+
* @returns
|
|
28
|
+
*/
|
|
29
|
+
export declare function replaceHTMLHandleBars(item: any, handleBarString: string, emptyIfSubEmpty: boolean, replaceSlashDots?: boolean): string;
|
|
30
|
+
/**
|
|
31
|
+
* This will get all properties that are surrounded by handlebars from a string and put them in an array
|
|
32
|
+
* Recommended to get item props to fetch or select
|
|
33
|
+
* Does NOT remove any / or . characters.
|
|
34
|
+
*
|
|
35
|
+
* @param handleBarString
|
|
36
|
+
* @param removeEmpty
|
|
37
|
+
* @param removeDups
|
|
38
|
+
* @returns
|
|
39
|
+
*/
|
|
40
|
+
export declare function getHandleBarPropsFromString(handleBarString: string, removeEmpty: boolean, removeDups: boolean): string[];
|
|
41
|
+
//# sourceMappingURL=handleBarsHTML.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleBarsHTML.d.ts","sourceRoot":"","sources":["../../../src/logic/Strings/handleBarsHTML.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,QAAkB,CAAC;AAE/C;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,CAAE,IAAI,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,gBAAgB,GAAE,OAAc,GAAK,MAAM,CAuB/I;AAED;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CAAG,eAAe,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,GAAI,MAAM,EAAE,CAc3H"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export const HandleBarsRegex = /{{([^}]+)}}/gi;
|
|
2
|
+
// NOTE: BingChat came up with this regex:
|
|
3
|
+
/**
|
|
4
|
+
* const regex = /{{(.*?)}}/g;
|
|
5
|
+
*
|
|
6
|
+
* function replaceHandlebars(template, data) {
|
|
7
|
+
// Create a regular expression to match handlebars expressions
|
|
8
|
+
const regex = /{{(.*?)}}/g;
|
|
9
|
+
// Replace each expression with the corresponding value from the data object
|
|
10
|
+
return template.replace(regex, (match, expression) => {
|
|
11
|
+
// Evaluate the expression using the data object as the context
|
|
12
|
+
return eval(expression);
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* This function will replace
|
|
19
|
+
* <h2>{{Title}}</h2>
|
|
20
|
+
*
|
|
21
|
+
* with the Title property of the item passed in:
|
|
22
|
+
* <h2>item.Title</h2>
|
|
23
|
+
*
|
|
24
|
+
* @param item
|
|
25
|
+
* @param handleBarString
|
|
26
|
+
* @param emptyIfSubEmpty
|
|
27
|
+
* @param replaceSlashDots >> will replace Author/Title with AuthorTitle - consistant with the way Drilldown works
|
|
28
|
+
* @returns
|
|
29
|
+
*/
|
|
30
|
+
export function replaceHTMLHandleBars(item, handleBarString, emptyIfSubEmpty, replaceSlashDots = true) {
|
|
31
|
+
if (typeof handleBarString !== 'string') {
|
|
32
|
+
return handleBarString;
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
let returnEmpty = false;
|
|
36
|
+
// Get array of strings by splitting the string by any {{ or }}
|
|
37
|
+
const linkSplits = handleBarString.split(HandleBarsRegex);
|
|
38
|
+
const newSplits = linkSplits.map((str, idx) => {
|
|
39
|
+
if (idx % 2 === 1) { //idx is odd. This is a replacement
|
|
40
|
+
// https://github.com/mikezimm/drilldown7/issues/396
|
|
41
|
+
if (replaceSlashDots === true)
|
|
42
|
+
str = str.replace(/[./]/g, '');
|
|
43
|
+
str = item[str] ? item[str] : `No ${str} found`;
|
|
44
|
+
if (!linkSplits[idx] && emptyIfSubEmpty === true)
|
|
45
|
+
returnEmpty = true;
|
|
46
|
+
}
|
|
47
|
+
return str;
|
|
48
|
+
});
|
|
49
|
+
return returnEmpty === true ? '' : newSplits.join('');
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* This will get all properties that are surrounded by handlebars from a string and put them in an array
|
|
54
|
+
* Recommended to get item props to fetch or select
|
|
55
|
+
* Does NOT remove any / or . characters.
|
|
56
|
+
*
|
|
57
|
+
* @param handleBarString
|
|
58
|
+
* @param removeEmpty
|
|
59
|
+
* @param removeDups
|
|
60
|
+
* @returns
|
|
61
|
+
*/
|
|
62
|
+
export function getHandleBarPropsFromString(handleBarString, removeEmpty, removeDups) {
|
|
63
|
+
const results = [];
|
|
64
|
+
const linkSplits = handleBarString.split(HandleBarsRegex);
|
|
65
|
+
linkSplits.map((str, idx) => {
|
|
66
|
+
if (idx % 2 === 1) { //idx is odd. This is a replacement
|
|
67
|
+
if (str || removeEmpty === false) {
|
|
68
|
+
if (removeDups === false || results.indexOf(`${str}`) === -1)
|
|
69
|
+
results.push(`${str}`);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
console.log('getHandleBarPropsFromString', results, handleBarString);
|
|
74
|
+
return results;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=handleBarsHTML.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleBarsHTML.js","sourceRoot":"","sources":["../../../src/logic/Strings/handleBarsHTML.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC;AAC/C,2CAA2C;AAC3C;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,qBAAqB,CAAE,IAAS,EAAE,eAAuB,EAAE,eAAwB,EAAE,mBAA4B,IAAI;IAEnI,IAAK,OAAO,eAAe,KAAK,QAAQ,EAAG;QACzC,OAAO,eAAe,CAAC;KAExB;SAAM;QACL,IAAI,WAAW,GAAQ,KAAK,CAAC;QAC7B,+DAA+D;QAC/D,MAAM,UAAU,GAAG,eAAe,CAAC,KAAK,CAAE,eAAe,CAAE,CAAC;QAE5D,MAAM,SAAS,GAAa,UAAU,CAAC,GAAG,CAAE,CAAE,GAAW,EAAE,GAAW,EAAG,EAAE;YACzE,IAAK,GAAG,GAAG,CAAC,KAAK,CAAC,EAAG,EAAE,oCAAoC;gBACzD,qDAAqD;gBACrD,IAAK,gBAAgB,KAAK,IAAI;oBAAG,GAAG,GAAG,GAAG,CAAC,OAAO,CAAE,OAAO,EAAE,EAAE,CAAE,CAAC;gBAClE,GAAG,GAAG,IAAI,CAAE,GAAG,CAAE,CAAC,CAAC,CAAC,IAAI,CAAE,GAAG,CAAE,CAAC,CAAC,CAAC,MAAO,GAAI,QAAQ,CAAC;gBACtD,IAAK,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,eAAe,KAAK,IAAI;oBAAG,WAAW,GAAG,IAAI,CAAC;aACxE;YACD,OAAO,GAAG,CAAC;QACb,CAAC,CAAC,CAAC;QAEH,OAAO,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KAEvD;AACH,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,2BAA2B,CAAG,eAAuB,EAAE,WAAoB,EAAE,UAAmB;IAE9G,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,MAAM,UAAU,GAAG,eAAe,CAAC,KAAK,CAAE,eAAe,CAAE,CAAC;IAC5D,UAAU,CAAC,GAAG,CAAE,CAAE,GAAW,EAAE,GAAW,EAAG,EAAE;QAC7C,IAAK,GAAG,GAAG,CAAC,KAAK,CAAC,EAAG,EAAE,oCAAoC;YACzD,IAAK,GAAG,IAAI,WAAW,KAAK,KAAK,EAAG;gBAClC,IAAK,UAAU,KAAK,KAAK,IAAI,OAAO,CAAC,OAAO,CAAE,GAAI,GAAI,EAAE,CAAE,KAAK,CAAC,CAAC;oBAAG,OAAO,CAAC,IAAI,CAAE,GAAI,GAAI,EAAE,CAAE,CAAC;aAChG;SACF;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,CAAE,6BAA6B,EAAE,OAAO,EAAE,eAAe,CAAE,CAAC;IACvE,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const HandleBarsRegex: RegExp;
|
|
2
|
+
/**
|
|
3
|
+
* Could be replaced with replaceHTMLHandleBars
|
|
4
|
+
*
|
|
5
|
+
* @param item
|
|
6
|
+
* @param handleBarString
|
|
7
|
+
* @param emptyIfSubEmpty
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export declare function replaceHandleBarsValues(item: any, handleBarString: string, emptyIfSubEmpty: boolean): string;
|
|
11
|
+
//# sourceMappingURL=handleBarsSub.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleBarsSub.d.ts","sourceRoot":"","sources":["../../../src/logic/Strings/handleBarsSub.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe,QAAkB,CAAC;AAE/C;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAE,IAAI,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,UA4BpG"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// EVENTUALLY MOVE THIS TO npmFunctions
|
|
2
|
+
export const HandleBarsRegex = /{{([^}]+)}}/gi;
|
|
3
|
+
/**
|
|
4
|
+
* Could be replaced with replaceHTMLHandleBars
|
|
5
|
+
*
|
|
6
|
+
* @param item
|
|
7
|
+
* @param handleBarString
|
|
8
|
+
* @param emptyIfSubEmpty
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
export function replaceHandleBarsValues(item, handleBarString, emptyIfSubEmpty) {
|
|
12
|
+
var _a, _b;
|
|
13
|
+
if (typeof handleBarString !== 'string') {
|
|
14
|
+
return handleBarString;
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
let returnEmpty = false;
|
|
18
|
+
// Get array of strings by splitting the string by any {{ or }}
|
|
19
|
+
const linkSplits = handleBarString.split(HandleBarsRegex);
|
|
20
|
+
// Replace first handlebars instance
|
|
21
|
+
if (linkSplits.length > 2) {
|
|
22
|
+
const part1 = (_a = linkSplits[1]) === null || _a === void 0 ? void 0 : _a.trim().replace('/', ''); //Get column name, removing / from lookup values
|
|
23
|
+
linkSplits[1] = item[part1] ? item[part1] : emptyIfSubEmpty === true ? '' : `${part1}`;
|
|
24
|
+
if (!linkSplits[1] && emptyIfSubEmpty === true)
|
|
25
|
+
returnEmpty = true;
|
|
26
|
+
}
|
|
27
|
+
// Replace second handlebars instance
|
|
28
|
+
if (linkSplits.length > 4) {
|
|
29
|
+
const part3 = (_b = linkSplits[3]) === null || _b === void 0 ? void 0 : _b.trim().replace('/', ''); //Get column name, removing / from lookup values
|
|
30
|
+
linkSplits[3] = item[part3] ? item[part3] : emptyIfSubEmpty === true ? '' : `${part3}`;
|
|
31
|
+
if (!linkSplits[3] && emptyIfSubEmpty === true)
|
|
32
|
+
returnEmpty = true;
|
|
33
|
+
}
|
|
34
|
+
return returnEmpty === true ? '' : linkSplits.join('');
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=handleBarsSub.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleBarsSub.js","sourceRoot":"","sources":["../../../src/logic/Strings/handleBarsSub.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC;AAE/C;;;;;;;GAOG;AACH,MAAM,UAAU,uBAAuB,CAAE,IAAS,EAAE,eAAuB,EAAE,eAAwB;;IAEnG,IAAK,OAAO,eAAe,KAAK,QAAQ,EAAG;QACzC,OAAO,eAAe,CAAC;KAExB;SAAM;QACL,IAAI,WAAW,GAAY,KAAK,CAAC;QACjC,+DAA+D;QAC/D,MAAM,UAAU,GAAG,eAAe,CAAC,KAAK,CAAE,eAAe,CAAE,CAAC;QAE5D,oCAAoC;QACpC,IAAK,UAAU,CAAC,MAAM,GAAG,CAAC,EAAG;YAC3B,MAAM,KAAK,GAAG,MAAA,UAAU,CAAC,CAAC,CAAC,0CAAE,IAAI,GAAG,OAAO,CAAC,GAAG,EAAC,EAAE,CAAC,CAAC,CAAC,gDAAgD;YACrG,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,CAAE,KAAK,CAAE,CAAC,CAAC,CAAC,IAAI,CAAE,KAAK,CAAE,CAAC,CAAC,CAAC,eAAe,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,CAAE;YAC5F,IAAK,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,eAAe,KAAK,IAAI;gBAAG,WAAW,GAAG,IAAI,CAAC;SACtE;QAED,qCAAqC;QACrC,IAAK,UAAU,CAAC,MAAM,GAAG,CAAC,EAAG;YAC3B,MAAM,KAAK,GAAG,MAAA,UAAU,CAAC,CAAC,CAAC,0CAAE,IAAI,GAAG,OAAO,CAAC,GAAG,EAAC,EAAE,CAAC,CAAC,CAAC,gDAAgD;YACrG,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,CAAE,KAAK,CAAE,CAAC,CAAC,CAAC,IAAI,CAAE,KAAK,CAAE,CAAC,CAAC,CAAC,eAAe,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,CAAE;YAC5F,IAAK,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,eAAe,KAAK,IAAI;gBAAG,WAAW,GAAG,IAAI,CAAC;SACtE;QAED,OAAO,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KACxD;AAGH,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creation of string from HTML entities
|
|
3
|
+
*
|
|
4
|
+
* Used first in ALVFinMan for reading CanvasContent1 in Modern Pages
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
export declare function convertHTMLToJSON(str: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* This can take SharePoint html content ( like from ModernPage CanvasContent1 field and make it readable )
|
|
10
|
+
* @param str
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export declare function replaceHTMLEntities(str: string): string;
|
|
14
|
+
//# sourceMappingURL=html.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/logic/Strings/html.ts"],"names":[],"mappings":"AAEA;;;;;EAKE;AAEF,wBAAgB,iBAAiB,CAAE,GAAG,EAAE,MAAM,GAAI,MAAM,CAGvD;AAED;;;;GAIG;AACF,wBAAgB,mBAAmB,CAAE,GAAG,EAAE,MAAM,GAAI,MAAM,CAiC1D"}
|