@mikezimm/fps-library-v2 2.0.109 → 2.0.111
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/PackageVersion.js +3 -3
- package/lib/PackageVersionStyles.d.ts.map +1 -1
- package/lib/PackageVersionStyles.js +3 -3
- package/lib/PackageVersionStyles.js.map +1 -1
- package/lib/banner/FPSWebPartClass/BuildBannerPropsX2.d.ts +2 -0
- package/lib/banner/FPSWebPartClass/BuildBannerPropsX2.d.ts.map +1 -1
- package/lib/banner/FPSWebPartClass/BuildBannerPropsX2.js +2 -1
- package/lib/banner/FPSWebPartClass/BuildBannerPropsX2.js.map +1 -1
- package/lib/banner/FPSWebPartClass/IMinimalSPPermission.d.ts +8 -0
- package/lib/banner/FPSWebPartClass/IMinimalSPPermission.d.ts.map +1 -0
- package/lib/banner/FPSWebPartClass/IMinimalSPPermission.js +2 -0
- package/lib/banner/FPSWebPartClass/IMinimalSPPermission.js.map +1 -0
- package/lib/banner/FPSWebPartClass/runWebPartRender.d.ts +12 -1
- package/lib/banner/FPSWebPartClass/runWebPartRender.d.ts.map +1 -1
- package/lib/banner/FPSWebPartClass/runWebPartRender.js +12 -1
- package/lib/banner/FPSWebPartClass/runWebPartRender.js.map +1 -1
- package/lib/banner/bannerX/BannerContent.d.ts +1 -0
- package/lib/banner/bannerX/BannerContent.d.ts.map +1 -1
- package/lib/banner/bannerX/FullPanel.d.ts +1 -0
- package/lib/banner/bannerX/FullPanel.d.ts.map +1 -1
- package/lib/banner/bannerX/MinPanel.d.ts +1 -0
- package/lib/banner/bannerX/MinPanel.d.ts.map +1 -1
- package/lib/banner/bannerX/Near/beAUserIcon.d.ts +1 -0
- package/lib/banner/bannerX/Near/beAUserIcon.d.ts.map +1 -1
- package/lib/banner/bannerX/Near/easyPagesIcon.d.ts +1 -0
- package/lib/banner/bannerX/Near/easyPagesIcon.d.ts.map +1 -1
- package/lib/banner/bannerX/Near/expandoIcon.d.ts +1 -0
- package/lib/banner/bannerX/Near/expandoIcon.d.ts.map +1 -1
- package/lib/banner/bannerX/Near/gearIcon.d.ts +1 -0
- package/lib/banner/bannerX/Near/gearIcon.d.ts.map +1 -1
- package/lib/banner/bannerX/Near/goHomeIcon.d.ts +1 -0
- package/lib/banner/bannerX/Near/goHomeIcon.d.ts.map +1 -1
- package/lib/banner/bannerX/Near/goParentIcon.d.ts +1 -0
- package/lib/banner/bannerX/Near/goParentIcon.d.ts.map +1 -1
- package/lib/banner/bannerX/Near/updateNearElements.d.ts +1 -0
- package/lib/banner/bannerX/Near/updateNearElements.d.ts.map +1 -1
- package/lib/banner/bannerX/WhiteRefreshElements.d.ts +1 -0
- package/lib/banner/bannerX/WhiteRefreshElements.d.ts.map +1 -1
- package/lib/banner/bannerX/getCertElement.d.ts +1 -0
- package/lib/banner/bannerX/getCertElement.d.ts.map +1 -1
- package/lib/banner/bannerX/getMsg.d.ts +1 -0
- package/lib/banner/bannerX/getMsg.d.ts.map +1 -1
- package/lib/banner/components/EasyPages/Analytics/components/Row.d.ts +1 -0
- package/lib/banner/components/EasyPages/Analytics/components/Row.d.ts.map +1 -1
- package/lib/banner/components/EasyPages/Analytics/components/RowBar.d.ts +1 -0
- package/lib/banner/components/EasyPages/Analytics/components/RowBar.d.ts.map +1 -1
- package/lib/banner/components/EasyPages/components/elements.d.ts +1 -0
- package/lib/banner/components/EasyPages/components/elements.d.ts.map +1 -1
- package/lib/banner/components/Panel/createAboutRow.d.ts +1 -0
- package/lib/banner/components/Panel/createAboutRow.d.ts.map +1 -1
- package/lib/banner/components/Panel/createWhyRow.d.ts +1 -0
- package/lib/banner/components/Panel/createWhyRow.d.ts.map +1 -1
- package/lib/banner/components/SpecialBanner/component.d.ts +1 -0
- package/lib/banner/components/SpecialBanner/component.d.ts.map +1 -1
- package/lib/banner/components/VisitorPanel/VisitorPanelComponent.d.ts +1 -0
- package/lib/banner/components/VisitorPanel/VisitorPanelComponent.d.ts.map +1 -1
- package/lib/banner/features/WebPartHistory/HistoryContent.d.ts +1 -0
- package/lib/banner/features/WebPartHistory/HistoryContent.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/PropPaneHelp.d.ts +1 -0
- package/lib/common/PropPaneHelp/PropPaneHelp.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/atoms/GridAreaHelp.d.ts +1 -0
- package/lib/common/PropPaneHelp/atoms/GridAreaHelp.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/atoms/GridAreaNamesNetworkBuilder.d.ts +1 -0
- package/lib/common/PropPaneHelp/atoms/GridAreaNamesNetworkBuilder.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/atoms/HandleBarsHelp.d.ts +1 -0
- package/lib/common/PropPaneHelp/atoms/HandleBarsHelp.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/atoms/HandleBarsJSONObjectHelp.d.ts +1 -0
- package/lib/common/PropPaneHelp/atoms/HandleBarsJSONObjectHelp.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/atoms/SeeWiki.d.ts +1 -0
- package/lib/common/PropPaneHelp/atoms/SeeWiki.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/atoms/Warnings.d.ts +1 -0
- package/lib/common/PropPaneHelp/atoms/Warnings.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/Drilldown.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/Drilldown.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/ListView.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/ListView.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/ReactListViewCommands copy 2.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/ReactListViewCommands copy 2.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/ReactListViewCommands copy.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/ReactListViewCommands copy.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/Refiners.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/Refiners.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/TenantHelpInfo.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/TenantHelpInfo.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/listview/Commands.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/listview/Commands.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/listview/HandleBarViews.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/listview/HandleBarViews.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/listview/ListPerformance.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/listview/ListPerformance.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/listview/ReactListViews.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/listview/ReactListViews.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/listview/RefinerColumns.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/listview/RefinerColumns.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/listview/RefinerRules.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/listview/RefinerRules.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/listview/Refiners.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/listview/Refiners.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/listview/Stats.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/listview/Stats.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/listview/StringFunctions.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/listview/StringFunctions.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/listview/Users.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/listview/Users.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/listview/Views.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/listview/Views.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/standard/Banner.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/standard/Banner.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/standard/FPSBasic.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/standard/FPSBasic.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/standard/FPSExpand.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/standard/FPSExpand.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/standard/Import.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/standard/Import.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/standard/PinMe.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/standard/PinMe.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/standard/SinglePageApp.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/standard/SinglePageApp.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/pages/standard/Visitor.d.ts +1 -0
- package/lib/common/PropPaneHelp/pages/standard/Visitor.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/preconfig/SitePresetsInfo.d.ts +1 -0
- package/lib/common/PropPaneHelp/preconfig/SitePresetsInfo.d.ts.map +1 -1
- package/lib/components/atoms/EasyIcons/functions/eiHelp.d.ts +1 -0
- package/lib/components/atoms/EasyIcons/functions/eiHelp.d.ts.map +1 -1
- package/lib/components/atoms/EasyIcons/functions/eiHelpIcons.d.ts +1 -0
- package/lib/components/atoms/EasyIcons/functions/eiHelpIcons.d.ts.map +1 -1
- package/lib/components/atoms/Elements/HighlightedText.d.ts +1 -0
- package/lib/components/atoms/Elements/HighlightedText.d.ts.map +1 -1
- package/lib/components/atoms/Elements/ToggleJSONButton.d.ts +1 -0
- package/lib/components/atoms/Elements/ToggleJSONButton.d.ts.map +1 -1
- package/lib/components/atoms/Elements/basic.d.ts +1 -0
- package/lib/components/atoms/Elements/basic.d.ts.map +1 -1
- package/lib/components/atoms/Elements/confirmDialog.d.ts +1 -0
- package/lib/components/atoms/Elements/confirmDialog.d.ts.map +1 -1
- package/lib/components/atoms/Elements/confirmDialogBig.d.ts +1 -0
- package/lib/components/atoms/Elements/confirmDialogBig.d.ts.map +1 -1
- package/lib/components/atoms/Elements/draw.d.ts +1 -0
- package/lib/components/atoms/Elements/draw.d.ts.map +1 -1
- package/lib/components/atoms/Elements/putObjectIntoJSON.d.ts +1 -0
- package/lib/components/atoms/Elements/putObjectIntoJSON.d.ts.map +1 -1
- package/lib/components/atoms/FetchStatus/FPSFetchStatus.d.ts +1 -0
- package/lib/components/atoms/FetchStatus/FPSFetchStatus.d.ts.map +1 -1
- package/lib/components/atoms/FilterButtons/PropPaneHelp/FilterButtonPropPaneHelp.d.ts +1 -0
- package/lib/components/atoms/FilterButtons/PropPaneHelp/FilterButtonPropPaneHelp.d.ts.map +1 -1
- package/lib/components/atoms/Highlights/createContentItemCount.d.ts +1 -0
- package/lib/components/atoms/Highlights/createContentItemCount.d.ts.map +1 -1
- package/lib/components/atoms/Highlights/createContentPubDate.d.ts +1 -0
- package/lib/components/atoms/Highlights/createContentPubDate.d.ts.map +1 -1
- package/lib/components/atoms/Highlights/createContentViewsRecent.d.ts +1 -0
- package/lib/components/atoms/Highlights/createContentViewsRecent.d.ts.map +1 -1
- package/lib/components/atoms/Icons/standardEasyContents.d.ts +1 -0
- package/lib/components/atoms/Icons/standardEasyContents.d.ts.map +1 -1
- package/lib/components/atoms/Icons/standardExStorage.d.ts +1 -0
- package/lib/components/atoms/Icons/standardExStorage.d.ts.map +1 -1
- package/lib/components/atoms/Icons/standardPivotTiles.d.ts +1 -0
- package/lib/components/atoms/Icons/standardPivotTiles.d.ts.map +1 -1
- package/lib/components/atoms/Icons/standardUniversalFPS.d.ts +1 -0
- package/lib/components/atoms/Icons/standardUniversalFPS.d.ts.map +1 -1
- package/lib/components/atoms/Icons/stdIconsBuildersV02.d.ts +1 -0
- package/lib/components/atoms/Icons/stdIconsBuildersV02.d.ts.map +1 -1
- package/lib/components/atoms/Inputs/Dropdown/IFpsMultiSelectDropdownProps.d.ts +2 -0
- package/lib/components/atoms/Inputs/Dropdown/IFpsMultiSelectDropdownProps.d.ts.map +1 -1
- package/lib/components/atoms/Inputs/Dropdown/fps-Dropdown.d.ts.map +1 -1
- package/lib/components/atoms/Inputs/Dropdown/fps-Dropdown.js +4 -2
- package/lib/components/atoms/Inputs/Dropdown/fps-Dropdown.js.map +1 -1
- package/lib/components/atoms/Inputs/Toggle/component.d.ts +1 -0
- package/lib/components/atoms/Inputs/Toggle/component.d.ts.map +1 -1
- package/lib/components/atoms/Links/CallBackLinks.d.ts +1 -0
- package/lib/components/atoms/Links/CallBackLinks.d.ts.map +1 -1
- package/lib/components/atoms/Links/LinksChartJS.d.ts +1 -0
- package/lib/components/atoms/Links/LinksChartJS.d.ts.map +1 -1
- package/lib/components/atoms/Links/LinksDevDocs.d.ts +1 -0
- package/lib/components/atoms/Links/LinksDevDocs.d.ts.map +1 -1
- package/lib/components/atoms/Links/RepoLinks/LinksCommon.d.ts +1 -0
- package/lib/components/atoms/Links/RepoLinks/LinksCommon.d.ts.map +1 -1
- package/lib/components/atoms/Links/RepoLinks/LinksTMT.d.ts +1 -0
- package/lib/components/atoms/Links/RepoLinks/LinksTMT.d.ts.map +1 -1
- package/lib/components/atoms/Links/getGoToLinks.d.ts +1 -0
- package/lib/components/atoms/Links/getGoToLinks.d.ts.map +1 -1
- package/lib/components/atoms/PersonaCard/Interfaces/IPersonaCardProps.d.ts +2 -2
- package/lib/components/atoms/PersonaCard/Interfaces/IPersonaCardProps.d.ts.map +1 -1
- package/lib/components/atoms/PersonaCard/PersonaIcons.d.ts +1 -0
- package/lib/components/atoms/PersonaCard/PersonaIcons.d.ts.map +1 -1
- package/lib/components/atoms/ReactJSON/ReactJSONObjectV2.d.ts +1 -0
- package/lib/components/atoms/ReactJSON/ReactJSONObjectV2.d.ts.map +1 -1
- package/lib/components/atoms/ReactJSON/microlinkhq/DynamicLoading/ReactJSON2Function.d.ts +1 -0
- package/lib/components/atoms/ReactJSON/microlinkhq/DynamicLoading/ReactJSON2Function.d.ts.map +1 -1
- package/lib/components/atoms/SharedItems/SharingElements2.d.ts +1 -0
- package/lib/components/atoms/SharedItems/SharingElements2.d.ts.map +1 -1
- package/lib/components/atoms/SharedItems/createChronoSortedSharingEvents.d.ts +1 -0
- package/lib/components/atoms/SharedItems/createChronoSortedSharingEvents.d.ts.map +1 -1
- package/lib/components/atoms/SharedItems/createItemSharingTable.d.ts +1 -0
- package/lib/components/atoms/SharedItems/createItemSharingTable.d.ts.map +1 -1
- package/lib/components/atoms/SharedItems/createShareEventsGroupedByItem.d.ts +1 -0
- package/lib/components/atoms/SharedItems/createShareEventsGroupedByItem.d.ts.map +1 -1
- package/lib/components/atoms/TeachBubble/component.d.ts +1 -0
- package/lib/components/atoms/TeachBubble/component.d.ts.map +1 -1
- package/lib/components/atoms/WhoDunItRow/getDateStampRow.d.ts +1 -0
- package/lib/components/atoms/WhoDunItRow/getDateStampRow.d.ts.map +1 -1
- package/lib/components/atoms/WhoDunItRow/getWhoDunIt.d.ts +1 -0
- package/lib/components/atoms/WhoDunItRow/getWhoDunIt.d.ts.map +1 -1
- package/lib/components/atoms/XML/formating.d.ts +1 -0
- package/lib/components/atoms/XML/formating.d.ts.map +1 -1
- package/lib/components/molecules/AnyContent/IsA/IsAHighlights.d.ts +1 -0
- package/lib/components/molecules/AnyContent/IsA/IsAHighlights.d.ts.map +1 -1
- package/lib/components/molecules/Categories/Headings/HubCon.d.ts +1 -0
- package/lib/components/molecules/Categories/Headings/HubCon.d.ts.map +1 -1
- package/lib/components/molecules/Categories/Highlights/HighlightRegArrays.d.ts +1 -0
- package/lib/components/molecules/Categories/Highlights/HighlightRegArrays.d.ts.map +1 -1
- package/lib/components/molecules/Categories/Highlights/highlightRegex.d.ts +1 -0
- package/lib/components/molecules/Categories/Highlights/highlightRegex.d.ts.map +1 -1
- package/lib/components/molecules/Categories/ICategoriesProps.d.ts +1 -0
- package/lib/components/molecules/Categories/ICategoriesProps.d.ts.map +1 -1
- package/lib/components/molecules/FPSTiles/components/FPSTile/FpsCompactTile.d.ts +1 -0
- package/lib/components/molecules/FPSTiles/components/FPSTile/FpsCompactTile.d.ts.map +1 -1
- package/lib/components/molecules/FPSTiles/components/FPSTile/FpsTileElement.d.ts +1 -0
- package/lib/components/molecules/FPSTiles/components/FPSTile/FpsTileElement.d.ts.map +1 -1
- package/lib/components/molecules/FPSTiles/components/FPSTile/IFPSTileElementProps.d.ts +1 -0
- package/lib/components/molecules/FPSTiles/components/FPSTile/IFPSTileElementProps.d.ts.map +1 -1
- package/lib/components/molecules/FieldPanel/components/command/tableRows.d.ts +1 -0
- package/lib/components/molecules/FieldPanel/components/command/tableRows.d.ts.map +1 -1
- package/lib/components/molecules/FieldPanel/components/common.d.ts +1 -0
- package/lib/components/molecules/FieldPanel/components/common.d.ts.map +1 -1
- package/lib/components/molecules/FieldPanel/components/fetch/Pane.d.ts +1 -0
- package/lib/components/molecules/FieldPanel/components/fetch/Pane.d.ts.map +1 -1
- package/lib/components/molecules/FieldPanel/components/main/Pane.d.ts +1 -0
- package/lib/components/molecules/FieldPanel/components/main/Pane.d.ts.map +1 -1
- package/lib/components/molecules/FieldPanel/getMinFieldPanel.d.ts +1 -0
- package/lib/components/molecules/FieldPanel/getMinFieldPanel.d.ts.map +1 -1
- package/lib/components/molecules/FullPageBackGround/FullPageBGImageElement.d.ts +1 -0
- package/lib/components/molecules/FullPageBackGround/FullPageBGImageElement.d.ts.map +1 -1
- package/lib/components/molecules/FullPageBackGround/PropHelp/CSSPerformance.d.ts +1 -0
- package/lib/components/molecules/FullPageBackGround/PropHelp/CSSPerformance.d.ts.map +1 -1
- package/lib/components/molecules/FullPageBackGround/PropHelp/CSSWarning.d.ts +1 -0
- package/lib/components/molecules/FullPageBackGround/PropHelp/CSSWarning.d.ts.map +1 -1
- package/lib/components/molecules/ModernPages/SinglePage/LimitedVersion.d.ts +1 -0
- package/lib/components/molecules/ModernPages/SinglePage/LimitedVersion.d.ts.map +1 -1
- package/lib/components/molecules/ModernPages/SinglePage/PageDetails.d.ts +1 -0
- package/lib/components/molecules/ModernPages/SinglePage/PageDetails.d.ts.map +1 -1
- package/lib/components/molecules/Performance/tables.d.ts +1 -0
- package/lib/components/molecules/Performance/tables.d.ts.map +1 -1
- package/lib/components/molecules/ReactListV1/atoms/createPanelButtonsV2.d.ts +1 -0
- package/lib/components/molecules/ReactListV1/atoms/createPanelButtonsV2.d.ts.map +1 -1
- package/lib/components/molecules/ReactListV1/atoms/noCommandsInfo.d.ts +1 -0
- package/lib/components/molecules/ReactListV1/atoms/noCommandsInfo.d.ts.map +1 -1
- package/lib/components/molecules/ReactListV1/atoms/toggleFieldBuilder.d.ts +1 -0
- package/lib/components/molecules/ReactListV1/atoms/toggleFieldBuilder.d.ts.map +1 -1
- package/lib/components/molecules/ReactListV1/component/IReactListItemsProps.d.ts +3 -0
- package/lib/components/molecules/ReactListV1/component/IReactListItemsProps.d.ts.map +1 -1
- package/lib/components/molecules/ReactListV1/component/reactListView.d.ts.map +1 -1
- package/lib/components/molecules/ReactListV1/component/reactListView.js +2 -1
- package/lib/components/molecules/ReactListV1/component/reactListView.js.map +1 -1
- package/lib/components/molecules/ReactListV1/component/reactListView_Original.d.ts +1 -0
- package/lib/components/molecules/ReactListV1/component/reactListView_Original.d.ts.map +1 -0
- package/lib/components/molecules/ReactListV1/component/reactListView_Original.js +828 -0
- package/lib/components/molecules/ReactListV1/component/reactListView_Original.js.map +1 -0
- package/lib/components/molecules/ReactListV1/functions/fetchAttachments.d.ts +1 -0
- package/lib/components/molecules/ReactListV1/functions/fetchAttachments.d.ts.map +1 -1
- package/lib/components/molecules/RelatedItems/IRelatedItemsProps.d.ts +10 -3
- package/lib/components/molecules/RelatedItems/IRelatedItemsProps.d.ts.map +1 -1
- package/lib/components/molecules/RelatedItems/RelatedPropsHelp.d.ts +1 -0
- package/lib/components/molecules/RelatedItems/RelatedPropsHelp.d.ts.map +1 -1
- package/lib/components/molecules/SourceList/Content/ContentPanel.d.ts +1 -0
- package/lib/components/molecules/SourceList/Content/ContentPanel.d.ts.map +1 -1
- package/lib/components/molecules/SourceList/Custom/CustomPanel.d.ts +1 -0
- package/lib/components/molecules/SourceList/Custom/CustomPanel.d.ts.map +1 -1
- package/lib/components/molecules/SourceList/Custom/ICustomPanel.d.ts +1 -0
- package/lib/components/molecules/SourceList/Custom/ICustomPanel.d.ts.map +1 -1
- package/lib/components/molecules/SourceList/ItemPane/IItemPaneProps.d.ts +1 -0
- package/lib/components/molecules/SourceList/ItemPane/IItemPaneProps.d.ts.map +1 -1
- package/lib/components/molecules/SourceList/ItemPane/itemEmbed.d.ts +1 -0
- package/lib/components/molecules/SourceList/ItemPane/itemEmbed.d.ts.map +1 -1
- package/lib/components/molecules/SourceList/ItemPane/itemProperties.d.ts +1 -0
- package/lib/components/molecules/SourceList/ItemPane/itemProperties.d.ts.map +1 -1
- package/lib/components/molecules/SourcePage/IconElement.d.ts +1 -0
- package/lib/components/molecules/SourcePage/IconElement.d.ts.map +1 -1
- package/package.json +7 -6
|
@@ -0,0 +1,828 @@
|
|
|
1
|
+
// /**
|
|
2
|
+
// * CodeAnalizerComment: Updated 5 imports on 2024-09-22 14:49:52
|
|
3
|
+
// * Update:: import { PanelType } to '@mikezimm/fps-core-v7/lib/types/@fluentUI/@7.199.1/Panel;'
|
|
4
|
+
// * Update:: import { replaceHandleBarsValues } to '@mikezimm/fps-core-v7/lib/logic/Strings/handleBarsSub;'
|
|
5
|
+
// * Update:: import { IDrillItemInfo } to '@mikezimm/fps-core-v7/lib/components/webparts/Drilldown/IDrillItem;'
|
|
6
|
+
// * Update:: import { IQuickButton } to '@mikezimm/fps-core-v7/lib/components/webparts/Drilldown/QuickCommands/IQuickCommands;'
|
|
7
|
+
// * Update:: import { IAnySourceItemAny } to '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IAnyContent;'
|
|
8
|
+
// */
|
|
9
|
+
// /**
|
|
10
|
+
// * CodeAnalizerComment: Updated 3 imports on 2024-09-21 23:07:24
|
|
11
|
+
// * Update:: import { doesObjectExistInArray } to '@mikezimm/fps-core-v7/lib/logic/Arrays/searching/objectfind;'
|
|
12
|
+
// * Update:: import { check4This } to '@mikezimm/fps-core-v7/lib/logic/Links/CheckSearch;'
|
|
13
|
+
// * Update:: import { IAnySourceItemAny } to '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IAnyContent;'
|
|
14
|
+
// */
|
|
15
|
+
// import * as React from 'react';
|
|
16
|
+
// import { Icon, } from '@fluentui/react/lib/Icon';
|
|
17
|
+
// import { Pivot, PivotItem,} from '@fluentui/react/lib/Pivot';
|
|
18
|
+
// import ReactJson from '@microlink/react-json-view';
|
|
19
|
+
// import { getMaxRichHeightNum } from '../functions/richHeight';
|
|
20
|
+
// import { ListView, SelectionMode, IGrouping, } from "@pnp/spfx-controls-react/lib/ListView";
|
|
21
|
+
// import { Panel, PanelType } from '@fluentui/react/lib/Panel';
|
|
22
|
+
// import { PrimaryButton, DefaultButton } from '@fluentui/react/lib/Button';
|
|
23
|
+
// import PageArrows from '../../Arrows/PageArrows';
|
|
24
|
+
// import { IReactListItemsProps } from './IReactListItemsProps';
|
|
25
|
+
// import { IReactListItemsState } from './IReactListItemsState';
|
|
26
|
+
// import { replaceHandleBarsValues } from '@mikezimm/fps-core-v7/lib/logic/Strings/handleBarsSub';
|
|
27
|
+
// import { IDrillItemInfo } from '@mikezimm/fps-core-v7/lib/components/webparts/Drilldown/IDrillItem';
|
|
28
|
+
// import { IQuickButton } from '@mikezimm/fps-core-v7/lib/components/webparts/Drilldown/QuickCommands/IQuickCommands';
|
|
29
|
+
// import { IViewFieldDD } from '../interfaces/IViewFieldDD';
|
|
30
|
+
// import { buildConfirmDialogBig, IMyBigDialogProps } from '../../../atoms/Elements/confirmDialogBig';
|
|
31
|
+
// import { IContentsToggles, makeToggles } from '../atoms/toggleFieldBuilder';
|
|
32
|
+
// import { autoDetailsList } from '../atoms/detailsList';
|
|
33
|
+
// import { findParentElementPropLikeThis } from '@mikezimm/fps-core-v7/lib/logic/DOM/Search/domSearch';
|
|
34
|
+
// import { updateReactListItem } from '../functions/updateReactListItem';
|
|
35
|
+
// import { doesObjectExistInArray } from '@mikezimm/fps-core-v7/lib/logic/Arrays/searching/objectfind';
|
|
36
|
+
// import { createPanelButtonsV2 } from '../atoms/createPanelButtonsV2';
|
|
37
|
+
// import { createPanelAttachmentElements } from '../functions/fetchAttachments';
|
|
38
|
+
// import { check4This } from '@mikezimm/fps-core-v7/lib/logic/Links/CheckSearch';
|
|
39
|
+
// import { IAnySourceItemAny } from '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IAnyContent';
|
|
40
|
+
// import { createItemSharingTable } from '../../../atoms/SharedItems/createItemSharingTable';
|
|
41
|
+
// import { makeAbsoluteUrl } from '@mikezimm/fps-core-v7/lib/logic/Strings/getSiteCollectionUrlFromLink';
|
|
42
|
+
// import { ReactViewSpecialKeys } from '../interfaces/SpecialViewKeys';
|
|
43
|
+
// import { getWebPartVersionElement } from '../../../../banner/bannerX/VersionElement';
|
|
44
|
+
// require('@mikezimm/fps-styles/dist/reactListView.css');
|
|
45
|
+
// export default class ReactListItems extends React.Component<IReactListItemsProps, IReactListItemsState> {
|
|
46
|
+
// private _componentWidth: number = null;
|
|
47
|
+
// /**
|
|
48
|
+
// * createPanelAttachments is identical on ActionNews and Drilldown7 except panelItem interface
|
|
49
|
+
// * @param thisId
|
|
50
|
+
// * @param panelItem
|
|
51
|
+
// */
|
|
52
|
+
// private async _createPanelAttachments( thisId: any, panelItem: IDrillItemInfo ): Promise<void>{
|
|
53
|
+
// const attachments = await createPanelAttachmentElements( this.props.bannerProps.fpsSpService, this.props.webUrl, this.props.listTitle, panelItem );
|
|
54
|
+
// this.setState({
|
|
55
|
+
// panelAttachments: attachments,
|
|
56
|
+
// lastAttachId: thisId,
|
|
57
|
+
// });
|
|
58
|
+
// }
|
|
59
|
+
// private delim = '|||';
|
|
60
|
+
// private handleExpandedFieldInfoToIViewFields( viewFields?: IViewFieldDD[] ) {
|
|
61
|
+
// //Before this line was added, I think it was mutating props causing double render
|
|
62
|
+
// viewFields = JSON.parse(JSON.stringify( viewFields ));
|
|
63
|
+
// viewFields.map( vf => {
|
|
64
|
+
// //2022-03-18: MEMO TO SELF... SOMETHING SEEMS OFF about this replace...
|
|
65
|
+
// vf.name = vf.name.replace(/\//g,'');
|
|
66
|
+
// });
|
|
67
|
+
// return viewFields;
|
|
68
|
+
// }
|
|
69
|
+
// private createBlankDialog() {
|
|
70
|
+
// let myDialog: IMyBigDialogProps = {
|
|
71
|
+
// title: '',
|
|
72
|
+
// dialogMessage: '',
|
|
73
|
+
// showDialog: false,
|
|
74
|
+
// confirmButton: '',
|
|
75
|
+
// _confirmDialog: this._confirmUpdateDialog.bind(this),
|
|
76
|
+
// _closeDialog: this._closeDialog.bind(this),
|
|
77
|
+
// };
|
|
78
|
+
// return myDialog;
|
|
79
|
+
// }
|
|
80
|
+
// /***
|
|
81
|
+
// * .o88b. .d88b. d8b db .d8888. d888888b d8888b. db db .o88b. d888888b .d88b. d8888b.
|
|
82
|
+
// * d8P Y8 .8P Y8. 888o 88 88' YP `~~88~~' 88 `8D 88 88 d8P Y8 `~~88~~' .8P Y8. 88 `8D
|
|
83
|
+
// * 8P 88 88 88V8o 88 `8bo. 88 88oobY' 88 88 8P 88 88 88 88oobY'
|
|
84
|
+
// * 8b 88 88 88 V8o88 `Y8b. 88 88`8b 88 88 8b 88 88 88 88`8b
|
|
85
|
+
// * Y8b d8 `8b d8' 88 V888 db 8D 88 88 `88. 88b d88 Y8b d8 88 `8b d8' 88 `88.
|
|
86
|
+
// * `Y88P' `Y88P' VP V8P `8888Y' YP 88 YD ~Y8888P' `Y88P' YP `Y88P' 88 YD
|
|
87
|
+
// *
|
|
88
|
+
// *
|
|
89
|
+
// */
|
|
90
|
+
// private _ListViewFontSizes: any[] = [ `default-font-size`, `larger-font-size`, `large-font-size` ];
|
|
91
|
+
// constructor(props: IReactListItemsProps) {
|
|
92
|
+
// super(props);
|
|
93
|
+
// if ( check4This( 'sourceResults=true', false) === true ) console.log( 'listView PROPS: ', this.props, );
|
|
94
|
+
// let viewFields : IViewFieldDD[] = [];
|
|
95
|
+
// if ( this.props.viewFields.length > 0 ) {
|
|
96
|
+
// viewFields = this.handleExpandedFieldInfoToIViewFields( this.props.viewFields );
|
|
97
|
+
// }
|
|
98
|
+
// let groupByFields : IGrouping[] = [];
|
|
99
|
+
// if ( this.props.groupByFields && this.props.groupByFields.length > 0 ) {
|
|
100
|
+
// //Added this reparse to prevent mutating props
|
|
101
|
+
// groupByFields = JSON.parse(JSON.stringify( this.props.groupByFields ));
|
|
102
|
+
// groupByFields.map( gF => { gF.name = gF.name.replace(/\//g,'') ; });
|
|
103
|
+
// }
|
|
104
|
+
// const richHeightNum = getMaxRichHeightNum( this.props.autoRichHeight, this.props.richHeights[0], this.props.items );
|
|
105
|
+
// this.state = {
|
|
106
|
+
// fontSize: this._ListViewFontSizes[0] , //=>> address: https://github.com/mikezimm/drilldown7/issues/169
|
|
107
|
+
// maxChars: this.props.maxChars ? this.props.maxChars : 50,
|
|
108
|
+
// viewFields: viewFields,
|
|
109
|
+
// groupByFields: groupByFields,
|
|
110
|
+
// showPanel: false,
|
|
111
|
+
// showAttach: false,
|
|
112
|
+
// panelId: null,
|
|
113
|
+
// lastPanelId: null,
|
|
114
|
+
// panelItem: null,
|
|
115
|
+
// panelAttachments: [],
|
|
116
|
+
// lastAttachId: null,
|
|
117
|
+
// clickedAttach: false,
|
|
118
|
+
// myDialog: this.createBlankDialog(),
|
|
119
|
+
// pickedCommand: null,
|
|
120
|
+
// panelWidth: PanelType.medium,
|
|
121
|
+
// richHeightNum: richHeightNum,
|
|
122
|
+
// richHeightStr: `${richHeightNum}em`,
|
|
123
|
+
// firstVisible: 0,
|
|
124
|
+
// lastVisible: this.props.itemsPerPage - 1,
|
|
125
|
+
// commandResult: null,
|
|
126
|
+
// commandError: false,
|
|
127
|
+
// showCommandCode: false,
|
|
128
|
+
// };
|
|
129
|
+
// }
|
|
130
|
+
// public componentDidMount() {
|
|
131
|
+
// //this._getListItems();
|
|
132
|
+
// }
|
|
133
|
+
// /***
|
|
134
|
+
// * d8888b. d888888b d8888b. db db d8888b. d8888b. .d8b. d888888b d88888b
|
|
135
|
+
// * 88 `8D `88' 88 `8D 88 88 88 `8D 88 `8D d8' `8b `~~88~~' 88'
|
|
136
|
+
// * 88 88 88 88 88 88 88 88oodD' 88 88 88ooo88 88 88ooooo
|
|
137
|
+
// * 88 88 88 88 88 88 88 88~~~ 88 88 88~~~88 88 88~~~~~
|
|
138
|
+
// * 88 .8D .88. 88 .8D 88b d88 88 88 .8D 88 88 88 88.
|
|
139
|
+
// * Y8888D' Y888888P Y8888D' ~Y8888P' 88 Y8888D' YP YP YP Y88888P
|
|
140
|
+
// *
|
|
141
|
+
// *
|
|
142
|
+
// */
|
|
143
|
+
// public componentDidUpdate(prevProps: IReactListItemsProps, prevState: IReactListItemsState): void {
|
|
144
|
+
// /* eslint-disable @typescript-eslint/no-unused-vars */
|
|
145
|
+
// let redraw = false;
|
|
146
|
+
// let updateViewFields = false;
|
|
147
|
+
// let resetArrows = false;
|
|
148
|
+
// if ( JSON.stringify(prevProps.viewFields) !== JSON.stringify(this.props.viewFields )) {
|
|
149
|
+
// updateViewFields = true;
|
|
150
|
+
// redraw = true;
|
|
151
|
+
// }
|
|
152
|
+
// if ( JSON.stringify(prevProps.groupByFields) !== JSON.stringify(this.props.groupByFields )) {
|
|
153
|
+
// updateViewFields = true;
|
|
154
|
+
// redraw = true;
|
|
155
|
+
// }
|
|
156
|
+
// if ( prevProps.resetArrows !== this.props.resetArrows ) {
|
|
157
|
+
// // updateViewFields = true;
|
|
158
|
+
// resetArrows = true;
|
|
159
|
+
// this.setState({
|
|
160
|
+
// firstVisible: 0,
|
|
161
|
+
// lastVisible: this.props.itemsPerPage - 1,
|
|
162
|
+
// });
|
|
163
|
+
// }
|
|
164
|
+
// if ( prevProps.richHeights.join('') !== this.props.richHeights.join('') ) {
|
|
165
|
+
// updateViewFields = true;
|
|
166
|
+
// redraw = true;
|
|
167
|
+
// }
|
|
168
|
+
// // if ( prevProps.items.length !== this.props.items.length ) {
|
|
169
|
+
// // this._setMaxRichHeight( this.props.autoRichHeight, this.props.richHeight, this.props.items );
|
|
170
|
+
// // redraw = true; }
|
|
171
|
+
// if ( prevProps.listUrl !== this.props.listUrl ) { redraw = true; }
|
|
172
|
+
// /* eslint-enable @typescript-eslint/no-unused-vars */
|
|
173
|
+
// this._updateStateOnPropsChange( updateViewFields );
|
|
174
|
+
// }
|
|
175
|
+
// /***
|
|
176
|
+
// * d8888b. d88888b d8b db d8888b. d88888b d8888b.
|
|
177
|
+
// * 88 `8D 88' 888o 88 88 `8D 88' 88 `8D
|
|
178
|
+
// * 88oobY' 88ooooo 88V8o 88 88 88 88ooooo 88oobY'
|
|
179
|
+
// * 88`8b 88~~~~~ 88 V8o88 88 88 88~~~~~ 88`8b
|
|
180
|
+
// * 88 `88. 88. 88 V888 88 .8D 88. 88 `88.
|
|
181
|
+
// * 88 YD Y88888P VP V8P Y8888D' Y88888P 88 YD
|
|
182
|
+
// *
|
|
183
|
+
// *
|
|
184
|
+
// */
|
|
185
|
+
// public render(): React.ReactElement<IReactListItemsProps> {
|
|
186
|
+
// //console.log( 'ReactListItems props & state: ', this.props, this.state );
|
|
187
|
+
// // let thisLog = null;
|
|
188
|
+
// let showRichHeightButton: any = false;
|
|
189
|
+
// //2022-02-01: Updated this from drilldown7
|
|
190
|
+
// if (this.props.items === null || this.props.items.length === 0) {
|
|
191
|
+
// return (
|
|
192
|
+
// <div className={'' }>
|
|
193
|
+
// List View has NO Items to show
|
|
194
|
+
// </div>
|
|
195
|
+
// );
|
|
196
|
+
// } else {
|
|
197
|
+
// const { bannerProps } = this.props;
|
|
198
|
+
// let attachments = this.state.panelAttachments.length > 0 ? this.state.panelAttachments : null ;
|
|
199
|
+
// let dialog = !this.state.myDialog.showDialog ? null : buildConfirmDialogBig( this.state.myDialog );
|
|
200
|
+
// const { quickCommands, } = this.props;
|
|
201
|
+
// const { commandError, commandResult } = this.state;
|
|
202
|
+
// /***
|
|
203
|
+
// * d888888b .d88b. d888b d888b db d88888b .d8888.
|
|
204
|
+
// * `~~88~~' .8P Y8. 88' Y8b 88' Y8b 88 88' 88' YP
|
|
205
|
+
// * 88 88 88 88 88 88 88ooooo `8bo.
|
|
206
|
+
// * 88 88 88 88 ooo 88 ooo 88 88~~~~~ `Y8b.
|
|
207
|
+
// * 88 `8b d8' 88. ~8~ 88. ~8~ 88booo. 88. db 8D
|
|
208
|
+
// * YP `Y88P' Y888P Y888P Y88888P Y88888P `8888Y'
|
|
209
|
+
// *
|
|
210
|
+
// *
|
|
211
|
+
// */
|
|
212
|
+
// let toggles = !this.state.showPanel ? null : <div style={{ float: 'right' }}> { makeToggles(this.getPageToggles( )) } </div>;
|
|
213
|
+
// const itemLink: any = <div style={{ cursor: 'pointer', fontSize: 'larger', 'fontWeight': 600, color: 'darkblue', padding: '10px 10px 10px 0px', margin: '20px 0px' }}
|
|
214
|
+
// onClick={ () => { window.open( this.state.panelItem.goToPropsLink, '_blank' ) ; }}>Click to open item</div>;
|
|
215
|
+
// let SharingElement = !this.state.panelItem || !this.state.panelItem.ItemSharingInfo ? undefined : <div>
|
|
216
|
+
// <h3>Sharing History</h3>
|
|
217
|
+
// { createItemSharingTable( this.state.panelItem as any, true ) }
|
|
218
|
+
// </div>
|
|
219
|
+
// let fullPanel = null;
|
|
220
|
+
// if ( this.state.showPanel === true && this.state.panelId ) {
|
|
221
|
+
// fullPanel = <Panel
|
|
222
|
+
// isOpen={ this.state.showPanel }
|
|
223
|
+
// type={ this.state.panelWidth }
|
|
224
|
+
// onDismiss={ this._onClosePanel }
|
|
225
|
+
// headerText={ this.state.panelId.toString() }
|
|
226
|
+
// closeButtonAriaLabel="Close"
|
|
227
|
+
// onRenderFooterContent={ this._onRenderFooterContent }
|
|
228
|
+
// isLightDismiss={ true }
|
|
229
|
+
// isFooterAtBottom={ true }
|
|
230
|
+
// >
|
|
231
|
+
// { toggles }
|
|
232
|
+
// <Pivot
|
|
233
|
+
// aria-label="React List View Panel"
|
|
234
|
+
// defaultSelectedIndex ={ 0 }
|
|
235
|
+
// style={{ paddingTop: '16px'}}
|
|
236
|
+
// >
|
|
237
|
+
// <PivotItem headerText="Commands" itemKey= "Commands"><div>
|
|
238
|
+
// {/* https://github.com/mikezimm/drilldown7/issues/168 */}
|
|
239
|
+
// { itemLink }
|
|
240
|
+
// <div id='20pxSpacer' style={{ height: '20px'}}/>
|
|
241
|
+
// { attachments }
|
|
242
|
+
// {/* { createPanelButtonsV1( this.props.quickCommands, this.state.panelItem, this.props.sourceUserInfo, this._panelButtonClicked.bind(this), this.delim ) } */}
|
|
243
|
+
// { createPanelButtonsV2( this.props.quickCommands, this.state.panelItem, this.props.sourceUserInfo, this._panelButtonClickedv2.bind(this), this.delim, this.state.showCommandCode ) }
|
|
244
|
+
// {/* { <Icon iconName= { 'Add' } style={ defaultBannerCommandStyles }/> } */}
|
|
245
|
+
// { SharingElement }
|
|
246
|
+
// </div>
|
|
247
|
+
// </PivotItem>
|
|
248
|
+
// <PivotItem headerText="Details" itemKey= "Details">
|
|
249
|
+
// {/* https://github.com/mikezimm/drilldown7/issues/168 */}
|
|
250
|
+
// { itemLink }
|
|
251
|
+
// { SharingElement }
|
|
252
|
+
// { autoDetailsList(this.state.panelItem, ["Title","refiners"],["search","meta","searchString"],true) }
|
|
253
|
+
// </PivotItem>
|
|
254
|
+
// <PivotItem headerText="JSON" itemKey= "JSON"><div id="CommandsJSONPanel" style={{paddingTop: '20px'}}>
|
|
255
|
+
// {/* https://github.com/mikezimm/drilldown7/issues/168 */}
|
|
256
|
+
// { itemLink }
|
|
257
|
+
// <ReactJson src={ this.state.panelItem } name={ 'panelItem' } collapsed={ true } displayDataTypes={ true } displayObjectSize={ true } enableClipboard={ true } style={{ padding: '20px 0px' }}/>
|
|
258
|
+
// { SharingElement }
|
|
259
|
+
// </div>
|
|
260
|
+
// </PivotItem>
|
|
261
|
+
// </Pivot>
|
|
262
|
+
// { getWebPartVersionElement( this.props.bannerProps, { paddingTop: '4em' } ) }
|
|
263
|
+
// </Panel>;
|
|
264
|
+
// }
|
|
265
|
+
// /**
|
|
266
|
+
// * 2022-02-01: This was copied/updated from drilldown7 to actionnews
|
|
267
|
+
// */
|
|
268
|
+
// let attachPanel = null;
|
|
269
|
+
// if ( this.state.showAttach === true && this.state.panelId ) {
|
|
270
|
+
// attachPanel = <Panel
|
|
271
|
+
// isOpen={this.state.showAttach}
|
|
272
|
+
// type={ this.state.panelWidth }
|
|
273
|
+
// onDismiss={this._onClosePanel}
|
|
274
|
+
// headerText={ this.state.panelId.toString() }
|
|
275
|
+
// closeButtonAriaLabel="Close"
|
|
276
|
+
// onRenderFooterContent={this._onRenderFooterContent}
|
|
277
|
+
// isLightDismiss={ true }
|
|
278
|
+
// isFooterAtBottom={ true }
|
|
279
|
+
// >
|
|
280
|
+
// { attachments }
|
|
281
|
+
// { SharingElement }
|
|
282
|
+
// </Panel>;
|
|
283
|
+
// }
|
|
284
|
+
// let viewFieldsBase: IViewFieldDD[] = this.state.viewFields;
|
|
285
|
+
// let attachField: IViewFieldDD[] = [];
|
|
286
|
+
// if ( this.props.includeAttach ) {
|
|
287
|
+
// //Add attachments column:
|
|
288
|
+
// let callBack = this.props.includeDetails ? null : this._onShowPanel.bind(this);
|
|
289
|
+
// attachField.push({
|
|
290
|
+
// name: 'Attachments',
|
|
291
|
+
// displayName: 'Attach',
|
|
292
|
+
// sorting: true,
|
|
293
|
+
// minWidth: 25,
|
|
294
|
+
// maxWidth: 35,
|
|
295
|
+
// render: (item: IDrillItemInfo) => {
|
|
296
|
+
// let cursor = item.Attachments ? "pointer" : '';
|
|
297
|
+
// return <div id= { 'ButtonID' + item.Id } onClick={ callBack } style={{ fontSize: 'larger' , fontWeight: 'bolder', width: '25px', textAlign: 'center', cursor: cursor }}><Icon iconName= { item.Attachments ? "Attach" : ''}/></div>;
|
|
298
|
+
// },
|
|
299
|
+
// });
|
|
300
|
+
// }
|
|
301
|
+
// let viewFields = attachField.concat( viewFieldsBase );
|
|
302
|
+
// let filtered : IDrillItemInfo[]= [];
|
|
303
|
+
// this.props.items.map( ( item, idx ) => {
|
|
304
|
+
// if ( idx >= this.state.firstVisible && idx <= this.state.lastVisible ) {
|
|
305
|
+
// filtered.push( item );
|
|
306
|
+
// }
|
|
307
|
+
// });
|
|
308
|
+
// const pageArrows = <PageArrows
|
|
309
|
+
// itemCount={ this.props.items.length }
|
|
310
|
+
// itemsPerPage={ this.props.itemsPerPage }
|
|
311
|
+
// setParentStateFirstLast={ this._updateFirstLastVisible.bind(this) }
|
|
312
|
+
// debugMode = { this.props.debugMode }
|
|
313
|
+
// fontSize = { this._componentWidth && this._componentWidth > 800 ? 28 : 24 }
|
|
314
|
+
// resetArrows = { this.props.resetArrows }
|
|
315
|
+
// pageArrowStyles = {{ marginTop: '-7px' }}
|
|
316
|
+
// />;
|
|
317
|
+
// viewFields.map ( field => {
|
|
318
|
+
// // https://github.com/mikezimm/drilldown7/issues/337
|
|
319
|
+
// if ( field.name === 'HasUniqueRoleAssignments' || field.name === 'ItemSharingInfo' ) { // ContactLock
|
|
320
|
+
// field.render = ( item: IAnySourceItemAny ) => {
|
|
321
|
+
// const unique = item.HasUniqueRoleAssignments === true ? true : false;
|
|
322
|
+
// const itemIcon = item[`ItemSharingInfo.ID`] ? 'Share' : item.HasUniqueRoleAssignments === true ? 'Shield' : '';
|
|
323
|
+
// const fontSize = itemIcon ? 'large' : 'default';
|
|
324
|
+
// const title = item[`ItemSharingInfo.ID`] ? 'Item was shared' : item.HasUniqueRoleAssignments === true ? 'Item has unique permissions' : '';
|
|
325
|
+
// // return <Icon style={{ fontSize: fontSize, color: unique === true ? 'red' : 'gray' }} iconName={ itemIcon } title={ title } />;
|
|
326
|
+
// return <Icon style={{ fontSize: fontSize, color: 'black' }} iconName={ itemIcon } title={ title } />;
|
|
327
|
+
// }
|
|
328
|
+
// //This is for: https://github.com/mikezimm/drilldown7/issues/224
|
|
329
|
+
// } else if ( this.props.richColumns.indexOf( field.name ) > -1 ) {
|
|
330
|
+
// showRichHeightButton = true;
|
|
331
|
+
// const fieldStyles = [ `list-view-rt` ];
|
|
332
|
+
// if ( this.props.richMarginAuto === true ) fieldStyles.push( 'list-view-rt-start' );
|
|
333
|
+
// // fieldStyles.push( this._RichTextRowHeight[ this.state.richHeight ] );
|
|
334
|
+
// field.render = ( item: { [x: string]: any; }, index: any ) => { return <div style={{ maxHeight: this.state.richHeightStr }} className={ fieldStyles.join(' ') } dangerouslySetInnerHTML={{__html: item[ field.name ]}} /> }
|
|
335
|
+
// // field.render = ( item, index ) => { this._renderRich( item, field.name ) }
|
|
336
|
+
// } else if ( field.linkSubstitute || field.textSubstitute ) {
|
|
337
|
+
// // Testing to see if Url value is valid... has a value, is a string, and either starts with http or /sites/
|
|
338
|
+
// // Testing to see if Url value is valid... has a value, is a string, and either starts with http or /sites/
|
|
339
|
+
// const isValidSubLink = typeof field.linkSubstitute === "string" &&
|
|
340
|
+
// ( field.linkSubstitute.indexOf("/sites/") === 0 || field.linkSubstitute.indexOf("http") === 0 ) ? true : false;
|
|
341
|
+
// // Testing to see if Url value is valid... has a value, is a string, and either starts with http or /sites/
|
|
342
|
+
// const isValidText = typeof field.textSubstitute === "string" ? true : false;
|
|
343
|
+
// if ( isValidSubLink !== true && isValidText !== true ) {
|
|
344
|
+
// return;
|
|
345
|
+
// } else {
|
|
346
|
+
// // Start on https://github.com/mikezimm/drilldown7/issues/70, https://github.com/mikezimm/drilldown7/issues/268
|
|
347
|
+
// field.render = ( item: { [x: string]: any; }, index: any ) => {
|
|
348
|
+
// const linkSubstitute = isValidSubLink === true ? replaceHandleBarsValues( item, field.linkSubstitute, true ) : '';
|
|
349
|
+
// const textSubstitute = isValidText === true ? replaceHandleBarsValues( item, field.textSubstitute, field.showEmptyAsEmpty === true ? true : false ) : item[field.name];
|
|
350
|
+
// // Return element as a link if the Url passes simple validation. Else just return the displayed value as normal span
|
|
351
|
+
// if ( isValidSubLink === true && linkSubstitute ) {
|
|
352
|
+
// return <a href={ linkSubstitute }>{ textSubstitute }</a>;
|
|
353
|
+
// } else {
|
|
354
|
+
// return <span >{ textSubstitute }</span>;
|
|
355
|
+
// }
|
|
356
|
+
// } // close: field.render = ( item, index ) => {
|
|
357
|
+
// } // close if ( isValid === true ) {
|
|
358
|
+
// /**
|
|
359
|
+
// * 2025-01-27: Added this loop for rendering better link labels
|
|
360
|
+
// * https://github.com/mikezimm/drilldown7/issues/463
|
|
361
|
+
// */
|
|
362
|
+
// } else if ( field.name.indexOf( `${field.displayName}Show`) === 0 ) { // This is a special column like
|
|
363
|
+
// const { linkPropertyName, displayName } = field;
|
|
364
|
+
// if ( linkPropertyName && ReactViewSpecialKeys.indexOf( linkPropertyName ) > -1 ) {
|
|
365
|
+
// field.render = ( item: IAnySourceItemAny ) => {
|
|
366
|
+
// // use the actual column value (strigified) if it exists, else use a
|
|
367
|
+
// const title = displayName && item[ displayName ] ? JSON.stringify( item[ displayName ] ) : linkPropertyName.replace('goTo', '');
|
|
368
|
+
// // return <Icon style={{ fontSize: fontSize, color: unique === true ? 'red' : 'gray' }} iconName={ itemIcon } title={ title } />;
|
|
369
|
+
// return <a style={{ }} href={ item[ linkPropertyName as 'Title'] } onClick={ ( event ) => {
|
|
370
|
+
// event.preventDefault(); // Prevent default navigation
|
|
371
|
+
// window.open( item[ linkPropertyName as 'Title'], '_blank' );
|
|
372
|
+
// }} title={ title }>{ title }</a>;
|
|
373
|
+
// }
|
|
374
|
+
// }
|
|
375
|
+
// }// close: } else if ( field.linkSubstitute ) {
|
|
376
|
+
// }); // close: viewFields.map ( field => {
|
|
377
|
+
// //=>> address: https://github.com/mikezimm/drilldown7/issues/270
|
|
378
|
+
// const changeRichHeight = showRichHeightButton !== true ? null :
|
|
379
|
+
// <div title={ `Change row height from ${this.state.richHeightStr}`} onClick={ this._updateRichHeightState.bind(this) }
|
|
380
|
+
// style={{ fontSize: 'larger' , fontWeight: 'bolder', width: '25px', textAlign: 'center', cursor: 'pointer' }}>
|
|
381
|
+
// <Icon iconName= 'CollapseMenu'/></div>;
|
|
382
|
+
// // determine iconFieldName https://github.com/mikezimm/drilldown7/issues/163
|
|
383
|
+
// const iconFieldName = this.props.isLibrary === true ? 'FileRef' : undefined;
|
|
384
|
+
// //=>> address: https://github.com/mikezimm/drilldown7/issues/169
|
|
385
|
+
// const changeFont = <div title="Change font size" onClick={ this._changeFontSize.bind(this) } style={{ fontSize: 'larger' , fontWeight: 'bolder', width: '25px', textAlign: 'center', cursor: 'pointer' }}><Icon iconName= 'FontSize'/></div>;
|
|
386
|
+
// let listView = <div className={ this.state.fontSize }>
|
|
387
|
+
// <ListView
|
|
388
|
+
// items={ filtered }
|
|
389
|
+
// viewFields={ viewFields }
|
|
390
|
+
// // className={ 'font-size-14' }
|
|
391
|
+
// // listClassName={ stylesL.fontSizeLarger }
|
|
392
|
+
// compact={true}
|
|
393
|
+
// selectionMode={ this.props.includeDetails ? SelectionMode.single : SelectionMode.none }
|
|
394
|
+
// selection={this._onShowPanel.bind(this)}
|
|
395
|
+
// showFilter={false}
|
|
396
|
+
// iconFieldName={ iconFieldName }
|
|
397
|
+
// //defaultFilter="John"
|
|
398
|
+
// filterPlaceHolder="Search..."
|
|
399
|
+
// groupByFields={ this.props.groupByFields }
|
|
400
|
+
// /></div>;
|
|
401
|
+
// // let logTable = itemRows === null ? <div>Nothing to show</div> : <table style={{ display: 'block'}} className={stylesInfo.infoTable}>
|
|
402
|
+
// let barText = this.props.blueBar && this.props.blueBar != null ? this.props.blueBar : <span>Items</span>; // eslint-disable-line eqeqeq
|
|
403
|
+
// let webTitle = null;
|
|
404
|
+
// let listLink = !this.props.includeListLink ? null : <div className={ `info-heading` } onClick={ this._onGoToList.bind(this) }
|
|
405
|
+
// style={{ marginRight: 30, whiteSpace: 'nowrap', paddingTop: 0, cursor: 'pointer', fontSize: 'smaller',background: 'transparent' }}>
|
|
406
|
+
// <span style={{ background: 'transparent' }} className={ [ 'fps-gen-inBlockNoWrap', 'fps-gen-goToLink-theme' ].join(' ') }>Go to list</span></div>;
|
|
407
|
+
// let createItemLink = !this.props.createItemLink ? null : <div title="Create new item" className={ `info-heading` } onClick={ this._CreateNewItem.bind(this) }
|
|
408
|
+
// style={{ marginRight: 30, whiteSpace: 'nowrap', paddingTop: 0, cursor: 'pointer', fontSize: 'larger',background: 'transparent' }}>
|
|
409
|
+
// <span style={{ background: 'transparent' }} className={ `` }><Icon iconName="AddTo"/></span></div>;
|
|
410
|
+
// // https://github.com/mikezimm/drilldown7/issues/249
|
|
411
|
+
// let maxBlueBarLeft = createItemLink ? 35 : 40;
|
|
412
|
+
// if ( !listLink ) maxBlueBarLeft += 15;
|
|
413
|
+
// const headerBarClass = [`info-heading`, `inner-shadow`, `fps-list-header-bar`, this.props.themeClass ];
|
|
414
|
+
// let headerBarStyles: React.CSSProperties = { display: 'flex', justifyContent: 'space-between', };
|
|
415
|
+
// if ( bannerProps.bannerPillShape === true ) headerBarStyles = { ...headerBarStyles, ...{ borderRadius: '50px' }};
|
|
416
|
+
// if ( barText !== null ) {
|
|
417
|
+
// webTitle =<div style={ headerBarStyles } className={ headerBarClass.join(' ') }>
|
|
418
|
+
// {/* https://github.com/mikezimm/drilldown7/issues/249 */}
|
|
419
|
+
// <span className={ `blue-bar-left` } style={{ maxWidth: `${maxBlueBarLeft}%`}} title={ this.props.blueBarTitleText }>( { this.props.items.length } ) { barText }</span>
|
|
420
|
+
// { pageArrows }
|
|
421
|
+
// {/* //=>> address: https://github.com/mikezimm/drilldown7/issues/169 */}
|
|
422
|
+
// <span style={{ gridRow: 'nowrap', display: 'inline-flex', gridGap: '.75em', marginRight: '25px' }}>
|
|
423
|
+
// { changeFont }
|
|
424
|
+
// { changeRichHeight }
|
|
425
|
+
// </span>
|
|
426
|
+
// <span style={{ whiteSpace: 'nowrap', display: 'flex', marginRight: '25px' }}>
|
|
427
|
+
// { createItemLink }
|
|
428
|
+
// { listLink }
|
|
429
|
+
// </span>
|
|
430
|
+
// </div>;
|
|
431
|
+
// /**
|
|
432
|
+
// * Brought this in directly from Drilldown web part
|
|
433
|
+
// * added quickCommands && due to testing on spfx-v2-tester
|
|
434
|
+
// */
|
|
435
|
+
// const createFooter = quickCommands && quickCommands.successBanner > 0 ? true : false; //CommandItemNotUpdatedMessage
|
|
436
|
+
// const footerEleClasses = ['quickCommandFooterStyles', commandResult ? 'quickCommandShow' : 'quickCommandHide' ];
|
|
437
|
+
// if ( !commandResult ) {
|
|
438
|
+
// //Do nothing if no result
|
|
439
|
+
// } else if (commandResult.status === 'Success') {
|
|
440
|
+
// } else if (commandResult.status === 'Unknown') {
|
|
441
|
+
// footerEleClasses.push('quickCommandWarn');
|
|
442
|
+
// } else {
|
|
443
|
+
// footerEleClasses.push('quickCommandError');
|
|
444
|
+
// }
|
|
445
|
+
// const footerInfo = !commandResult ? '' :
|
|
446
|
+
// commandResult.statusElement ? commandResult.statusElement :
|
|
447
|
+
// commandResult.errorInfo ? commandResult.errorInfo.returnMess : ''
|
|
448
|
+
// /**
|
|
449
|
+
// * NOTE: You ALWAYS need a footer element if it's active, even if there is nothing to show.
|
|
450
|
+
// * If not, then you do not get the smooth transitions when it is visible.
|
|
451
|
+
// */
|
|
452
|
+
// const footerElement = createFooter === false ? null : <div className={ footerEleClasses.join(' ') }>
|
|
453
|
+
// { footerInfo }
|
|
454
|
+
// </div>;
|
|
455
|
+
// /*stylesL.reactListView*/
|
|
456
|
+
// return (
|
|
457
|
+
// <div className={ '' }
|
|
458
|
+
// ref={el => {
|
|
459
|
+
// // el can be null - see https://reactjs.org/docs/refs-and-the-dom.html#caveats-with-callback-refs
|
|
460
|
+
// if (!el) return;
|
|
461
|
+
// this._componentWidth = el.getBoundingClientRect().width ;
|
|
462
|
+
// // console.log('componentWidth', this._componentWidth ) ;
|
|
463
|
+
// } }
|
|
464
|
+
// >
|
|
465
|
+
// <div style={{ paddingTop: 10}} className={ `info-pane-tight` }>
|
|
466
|
+
// { webTitle }
|
|
467
|
+
// { fullPanel }
|
|
468
|
+
// { attachPanel }
|
|
469
|
+
// { dialog }
|
|
470
|
+
// { footerElement }
|
|
471
|
+
// { listView }
|
|
472
|
+
// </div>
|
|
473
|
+
// </div>
|
|
474
|
+
// );
|
|
475
|
+
// }
|
|
476
|
+
// } //if ( this.props.items != null && this.props.items.length > 0 ) {
|
|
477
|
+
// } // Render
|
|
478
|
+
// /***
|
|
479
|
+
// * db db d8888b. d8888b. .d8b. d888888b d88888b .d8888. d888888b .d8b. d888888b d88888b
|
|
480
|
+
// * 88 88 88 `8D 88 `8D d8' `8b `~~88~~' 88' 88' YP `~~88~~' d8' `8b `~~88~~' 88'
|
|
481
|
+
// * 88 88 88oodD' 88 88 88ooo88 88 88ooooo `8bo. 88 88ooo88 88 88ooooo
|
|
482
|
+
// * 88 88 88~~~ 88 88 88~~~88 88 88~~~~~ `Y8b. 88 88~~~88 88 88~~~~~
|
|
483
|
+
// * 88b d88 88 88 .8D 88 88 88 88. db 8D 88 88 88 88 88.
|
|
484
|
+
// * ~Y8888P' 88 Y8888D' YP YP YP Y88888P `8888Y' YP YP YP YP Y88888P
|
|
485
|
+
// *
|
|
486
|
+
// *
|
|
487
|
+
// */
|
|
488
|
+
// private _updateRichHeightState(): void {
|
|
489
|
+
// const oldValue = this.state.richHeightNum;
|
|
490
|
+
// const oldIdx = this.props.richHeights.indexOf( oldValue );
|
|
491
|
+
// const nextIdx = oldIdx === this.props.richHeights.length -1 ? 0 : oldIdx + 1;
|
|
492
|
+
// const richHeightNum = this.props.richHeights[ nextIdx ];
|
|
493
|
+
// this.setState({ richHeightNum: richHeightNum, richHeightStr: `${richHeightNum}em` });
|
|
494
|
+
// }
|
|
495
|
+
// private _onGoToList = () : void => {
|
|
496
|
+
// if ( !this.props.listUrl || this.props.listUrl === null || this.props.listUrl === undefined || this.props.listUrl.length === 0 ) {
|
|
497
|
+
// return; // Do nothing
|
|
498
|
+
// }
|
|
499
|
+
// let e: any = event;
|
|
500
|
+
// let isAltClick = e.altKey;
|
|
501
|
+
// let isShfitClick = e.shiftKey;
|
|
502
|
+
// let isCtrlClick = e.ctrlKey;
|
|
503
|
+
// console.log('AltClick, ShfitClick, CtrlClick:', isAltClick, isShfitClick, isCtrlClick );
|
|
504
|
+
// window.open( `${this.props.listUrl}?Source=${window.location.pathname}`, "_blank");
|
|
505
|
+
// }
|
|
506
|
+
// private _CreateNewItem = () : void => {
|
|
507
|
+
// if ( this.props.isLibrary === true ) {
|
|
508
|
+
// window.open( `${this.props.listUrl}`, "_blank");
|
|
509
|
+
// } else {
|
|
510
|
+
// // https://github.com/mikezimm/drilldown7/issues/422
|
|
511
|
+
// if ( this.props.listNewForm.indexOf( '/sites/') === 0 || this.props.listNewForm.indexOf( 'http' ) === 0 ) {
|
|
512
|
+
// window.open( `${this.props.listNewForm}.aspx?Source=${this.props.itemLinkSource}`, "_blank");
|
|
513
|
+
// } else {
|
|
514
|
+
// // window.open(`${this.props.listUrl}/NewForm.aspx?Source=${window.location.pathname}&${window.location.search}`, "_blank");
|
|
515
|
+
// window.open( `${this.props.listUrl}/${this.props.listNewForm}.aspx?Source=${this.props.itemLinkSource}`, "_blank");
|
|
516
|
+
// }
|
|
517
|
+
// }
|
|
518
|
+
// }
|
|
519
|
+
// private _updateStateOnPropsChange( pushViewFieldsToState : boolean ): void {
|
|
520
|
+
// let viewFields : IViewFieldDD[] = [];
|
|
521
|
+
// if ( this.props.viewFields.length > 0 ) {
|
|
522
|
+
// viewFields = this.handleExpandedFieldInfoToIViewFields( this.props.viewFields );
|
|
523
|
+
// }
|
|
524
|
+
// let groupByFields : IGrouping[] = [];
|
|
525
|
+
// if ( this.props.groupByFields && this.props.groupByFields.length > 0 ) {
|
|
526
|
+
// groupByFields = JSON.parse(JSON.stringify( this.props.groupByFields ));
|
|
527
|
+
// groupByFields.map( gF => { gF.name = gF.name.replace(/\//g,'') ; });
|
|
528
|
+
// }
|
|
529
|
+
// if ( pushViewFieldsToState === true ) {
|
|
530
|
+
// this.setState({
|
|
531
|
+
// viewFields: viewFields,
|
|
532
|
+
// groupByFields: groupByFields,
|
|
533
|
+
// });
|
|
534
|
+
// }
|
|
535
|
+
// }
|
|
536
|
+
// /***
|
|
537
|
+
// * d8888b. db db d888888b d888888b .d88b. d8b db .o88b. db d888888b .o88b. db dD
|
|
538
|
+
// * 88 `8D 88 88 `~~88~~' `~~88~~' .8P Y8. 888o 88 d8P Y8 88 `88' d8P Y8 88 ,8P'
|
|
539
|
+
// * 88oooY' 88 88 88 88 88 88 88V8o 88 8P 88 88 8P 88,8P
|
|
540
|
+
// * 88~~~b. 88 88 88 88 88 88 88 V8o88 8b 88 88 8b 88`8b
|
|
541
|
+
// * 88 8D 88b d88 88 88 `8b d8' 88 V888 Y8b d8 88booo. .88. Y8b d8 88 `88.
|
|
542
|
+
// * Y8888P' ~Y8888P' YP YP `Y88P' VP V8P `Y88P' Y88888P Y888888P `Y88P' YP YD
|
|
543
|
+
// *
|
|
544
|
+
// *
|
|
545
|
+
// */
|
|
546
|
+
// private async _panelButtonClickedv2 ( b: any, item: any, event: React.MouseEvent<HTMLElement> ): Promise<void> {
|
|
547
|
+
// console.log( '_panelButtonClickedv2', item );
|
|
548
|
+
// if ( !item ) {
|
|
549
|
+
// alert('Whoops! Can not find ID of _panelButtonClicked!');
|
|
550
|
+
// return null;
|
|
551
|
+
// } else {
|
|
552
|
+
// // Add Command Code to panel https://github.com/mikezimm/drilldown7/issues/252
|
|
553
|
+
// if ( event.ctrlKey === true || event.altKey === true ) {
|
|
554
|
+
// this.setState({ showCommandCode: !this.state.showCommandCode });
|
|
555
|
+
// } else {
|
|
556
|
+
// try {
|
|
557
|
+
// await this.startThisQuickUpdate2( b, item );
|
|
558
|
+
// } catch (ev) {
|
|
559
|
+
// console.log('_panelButtonClicked error:', ev );
|
|
560
|
+
// }
|
|
561
|
+
// }
|
|
562
|
+
// }
|
|
563
|
+
// }
|
|
564
|
+
// /**
|
|
565
|
+
// * Open the dialog
|
|
566
|
+
// */
|
|
567
|
+
// //private _confirmUpdateDialog = () => {
|
|
568
|
+
// private async _confirmUpdateDialog (item: any): Promise<void> {
|
|
569
|
+
// let e: any = event; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
570
|
+
// let thisButtonObject : IQuickButton = this.state.pickedCommand ;
|
|
571
|
+
// await this.completeThisQuickUpdate( this.state.panelId.toString(), thisButtonObject );
|
|
572
|
+
// this.setState({
|
|
573
|
+
// myDialog: this.createBlankDialog(),
|
|
574
|
+
// });
|
|
575
|
+
// }
|
|
576
|
+
// //=>> address: https://github.com/mikezimm/drilldown7/issues/169
|
|
577
|
+
// private _changeFontSize() {
|
|
578
|
+
// const oldValue = this.state.fontSize;
|
|
579
|
+
// const oldIdx = this._ListViewFontSizes.indexOf( oldValue );
|
|
580
|
+
// const nextIdx = oldIdx === this._ListViewFontSizes.length -1 ? 0 : oldIdx + 1;
|
|
581
|
+
// this.setState({ fontSize: this._ListViewFontSizes[ nextIdx ] });
|
|
582
|
+
// }
|
|
583
|
+
// private async startThisQuickUpdate2 ( thisButtonObject: any, item: any ): Promise<void>{
|
|
584
|
+
// const itemId = item.Id;
|
|
585
|
+
// if ( !thisButtonObject ) {
|
|
586
|
+
// alert('_panelButtonClicked - can not find thisButtonObject - ' + itemId );
|
|
587
|
+
// } else {
|
|
588
|
+
// if ( thisButtonObject.updateItem ) {
|
|
589
|
+
// let readyToUpdate = true;
|
|
590
|
+
// if ( !this.props.webUrl ) { alert('Missing listWebUrl for quickCommands') ; readyToUpdate = false ; }
|
|
591
|
+
// if ( !this.props.listTitle ) { alert('Missing listTitle for quickCommands') ; readyToUpdate = false ; }
|
|
592
|
+
// if ( readyToUpdate === true ) {
|
|
593
|
+
// //Attempt to update item:
|
|
594
|
+
// if ( thisButtonObject.confirm && thisButtonObject.confirm.length > 0 ) {
|
|
595
|
+
// let myDialog: IMyBigDialogProps = this.createBlankDialog();
|
|
596
|
+
// myDialog.title = "Are you sure you want to make this update?";
|
|
597
|
+
// myDialog.dialogMessage = thisButtonObject.confirm + '';
|
|
598
|
+
// myDialog.confirmButton = thisButtonObject.label + '';
|
|
599
|
+
// myDialog.showDialog = true;
|
|
600
|
+
// myDialog.maxWidth = 600;
|
|
601
|
+
// this.setState({
|
|
602
|
+
// pickedCommand: thisButtonObject,
|
|
603
|
+
// myDialog: myDialog as IMyBigDialogProps,
|
|
604
|
+
// });
|
|
605
|
+
// } else {
|
|
606
|
+
// await this.completeThisQuickUpdate ( itemId, thisButtonObject );
|
|
607
|
+
// }
|
|
608
|
+
// } else {
|
|
609
|
+
// //Don't update item:
|
|
610
|
+
// }
|
|
611
|
+
// }
|
|
612
|
+
// if ( thisButtonObject.panelMessage ) {
|
|
613
|
+
// this.setState({
|
|
614
|
+
// panelMessage: thisButtonObject.panelMessage,
|
|
615
|
+
// });
|
|
616
|
+
// }
|
|
617
|
+
// }
|
|
618
|
+
// }
|
|
619
|
+
// private async completeThisQuickUpdate( itemId: string, thisButtonObject : IQuickButton ): Promise<void> {
|
|
620
|
+
// /**
|
|
621
|
+
// * https://github.com/mikezimm/drilldown7/issues/407
|
|
622
|
+
// * added useWeb update to solve this issue here...
|
|
623
|
+
// * will also look upstream as well
|
|
624
|
+
// */
|
|
625
|
+
// const { webUrl, listTitle, sourceUserInfo, quickCommands, bannerProps } = this.props;
|
|
626
|
+
// const useWeb = makeAbsoluteUrl(webUrl);
|
|
627
|
+
// const result = await updateReactListItem( bannerProps.fpsSpService, useWeb, listTitle, parseInt(itemId), thisButtonObject, sourceUserInfo, this.state.panelItem );
|
|
628
|
+
// //If success (result is error message and null by default )
|
|
629
|
+
// // if ( result === null && quickCommands.onUpdateReload === true ) {
|
|
630
|
+
// /**
|
|
631
|
+
// * Updated this logic based on returning resultInfo not null for errors:
|
|
632
|
+
// * https://github.com/mikezimm/fps-library-v2/issues/20
|
|
633
|
+
// */
|
|
634
|
+
// if ( quickCommands.successBanner > 0 && result.status === 'Success') {
|
|
635
|
+
// let updates = Object.keys(thisButtonObject.updateItem).map( k => {
|
|
636
|
+
// return k;
|
|
637
|
+
// });
|
|
638
|
+
// result.statusElement = <div style={{ marginTop: '5px'}}> { [
|
|
639
|
+
// <h3 key="h3Finished" style={{paddingTop: '10px'}}>Finished updating item [ {itemId} ]</h3>,
|
|
640
|
+
// <div key="bannerIncluding">Including: { updates.join(', ')} </div>
|
|
641
|
+
// ] }</div>;
|
|
642
|
+
// quickCommands.refreshCallback( result, false );
|
|
643
|
+
// //https://github.com/mikezimm/fps-library-v2/issues/20
|
|
644
|
+
// } else if ( result ) {
|
|
645
|
+
// quickCommands.refreshCallback( result, true );
|
|
646
|
+
// }
|
|
647
|
+
// this.setState({
|
|
648
|
+
// /**
|
|
649
|
+
// * Added 'as any' to commandResult: result, due to typescript error:
|
|
650
|
+
// * Types of property 'statusElement' are incompatible.
|
|
651
|
+
// Type 'IJsxElement' is not assignable to type 'Element'.
|
|
652
|
+
// Property 'key' is optional in type 'IJsxElement' but required in type 'Element'.ts(2322)
|
|
653
|
+
// */
|
|
654
|
+
// commandResult: result as any,
|
|
655
|
+
// commandError: result.status === 'Success' ? false : true,
|
|
656
|
+
// });
|
|
657
|
+
// if ( result ) {
|
|
658
|
+
// const delay = result.status !== 'Success' ? 10000 : quickCommands.successBanner;
|
|
659
|
+
// setTimeout(() => {
|
|
660
|
+
// this.setState({
|
|
661
|
+
// commandResult: null,
|
|
662
|
+
// commandError: false,
|
|
663
|
+
// });
|
|
664
|
+
// } , delay);
|
|
665
|
+
// }
|
|
666
|
+
// }
|
|
667
|
+
// /**
|
|
668
|
+
// * Close the dialog
|
|
669
|
+
// */
|
|
670
|
+
// private _closeDialog = () => {
|
|
671
|
+
// this.setState({
|
|
672
|
+
// myDialog: this.createBlankDialog(),
|
|
673
|
+
// });
|
|
674
|
+
// }
|
|
675
|
+
// private _renderSecurity = ( item: IAnySourceItemAny , fieldName: string, ) => {
|
|
676
|
+
// if ( check4This( 'fpsReactRender=true', false ) ) console.log('_renderSecurity: ', fieldName, item );
|
|
677
|
+
// const unique : boolean = item.HasUniqueRoleAssignments === true ? true : false;
|
|
678
|
+
// const itemIcon: string = item.HasUniqueRoleAssignments === true ? 'Shield' : item.ItemSharingInfo ? 'Share' : '';
|
|
679
|
+
// return ( item: any, index: number ) => {
|
|
680
|
+
// const unique = item.HasUniqueRoleAssignments === true ? true : false;
|
|
681
|
+
// const itemIcon = item.HasUniqueRoleAssignments === true ? 'Shield' : item.ItemSharingInfo ? 'Share' : '';
|
|
682
|
+
// if (check4This('fpsReactRender=true', false))
|
|
683
|
+
// console.log('_renderSecurity: ', fieldName, unique, itemIcon, item);
|
|
684
|
+
// return <Icon style={{ color: unique === true ? 'red' : 'gray' }} iconName={ itemIcon } />
|
|
685
|
+
// };
|
|
686
|
+
// }
|
|
687
|
+
// /***
|
|
688
|
+
// * .d8888. db db .d88b. db d8b db d8888b. .d8b. d8b db d88888b db
|
|
689
|
+
// * 88' YP 88 88 .8P Y8. 88 I8I 88 88 `8D d8' `8b 888o 88 88' 88
|
|
690
|
+
// * `8bo. 88ooo88 88 88 88 I8I 88 88oodD' 88ooo88 88V8o 88 88ooooo 88
|
|
691
|
+
// * `Y8b. 88~~~88 88 88 Y8 I8I 88 88~~~ 88~~~88 88 V8o88 88~~~~~ 88
|
|
692
|
+
// * db 8D 88 88 `8b d8' `8b d8'8b d8' 88 88 88 88 V888 88. 88booo.
|
|
693
|
+
// * `8888Y' YP YP `Y88P' `8b8' `8d8' 88 YP YP VP V8P Y88888P Y88888P
|
|
694
|
+
// *
|
|
695
|
+
// *
|
|
696
|
+
// */
|
|
697
|
+
// private async _onShowPanel (item: IAnySourceItemAny) {
|
|
698
|
+
// let e: any = event;
|
|
699
|
+
// // console.log('_onShowPanel: e',e);
|
|
700
|
+
// // console.log('_onShowPanel item clicked:',item);
|
|
701
|
+
// let isLink = e && e.srcElement && e.srcElement.href && e.srcElement.href.length > 0 ? true : false;
|
|
702
|
+
// /**
|
|
703
|
+
// * Added to solve https://github.com/mikezimm/drilldown7/issues/159
|
|
704
|
+
// * on /sites/ChinaSustainabilitySteeringCommittee/SitePages/Climate-Articles.aspx
|
|
705
|
+
// * Have never seen this error before. Tried same exact config to same list on another site and do not get the error.
|
|
706
|
+
// *
|
|
707
|
+
// */
|
|
708
|
+
// if ( e === undefined ) {
|
|
709
|
+
// return;
|
|
710
|
+
// } else if ( isLink === true ) {
|
|
711
|
+
// window.open(e.srcElement.href, '_blank');
|
|
712
|
+
// } else {
|
|
713
|
+
// let clickedAttachIcon = e?.target?.dataset?.iconName === 'Attach' ? true : false;
|
|
714
|
+
// if (clickedAttachIcon === true || item.length > 0 ) {
|
|
715
|
+
// let thisID = clickedAttachIcon === true ? findParentElementPropLikeThis(e.target, 'id', 'ButtonID', 5, 'begins') : item[0].Id;
|
|
716
|
+
// thisID = typeof thisID === 'string' ? thisID.replace('ButtonID','') : thisID;
|
|
717
|
+
// let panelItem : IDrillItemInfo = this._getItemFromId(this.props.items, 'Id', thisID );
|
|
718
|
+
// let lastPanelId = this.state.panelId;
|
|
719
|
+
// let clickedAttach = false;
|
|
720
|
+
// if ( e.srcElement.dataset && e.srcElement.dataset.iconName === 'Attach' ) {
|
|
721
|
+
// clickedAttach = true;
|
|
722
|
+
// }
|
|
723
|
+
// await this._createPanelAttachments(thisID, panelItem );
|
|
724
|
+
// let canShowAPanel = thisID === null || thisID === undefined || panelItem === null ? false : true;
|
|
725
|
+
// let showFullPanel = canShowAPanel === true && clickedAttach !== true ? true : false;
|
|
726
|
+
// // 2020-10-13: The last check in this row just didn't seem right... was && this.props.includeListLink === true ? true : false;
|
|
727
|
+
// let showAttachPanel = canShowAPanel === true && clickedAttach === true && this.props.includeAttach === true ? true : false;
|
|
728
|
+
// this.setState({
|
|
729
|
+
// showPanel: showFullPanel,
|
|
730
|
+
// showAttach: showAttachPanel ,
|
|
731
|
+
// clickedAttach: clickedAttach,
|
|
732
|
+
// panelId: thisID,
|
|
733
|
+
// panelItem: panelItem,
|
|
734
|
+
// lastPanelId: lastPanelId,
|
|
735
|
+
// panelAttachments: this.state.lastAttachId === thisID ? this.state.panelAttachments : [],
|
|
736
|
+
// });
|
|
737
|
+
// }
|
|
738
|
+
// }
|
|
739
|
+
// }
|
|
740
|
+
// private _getItemFromId( items: IDrillItemInfo[], key: string, val: any ) {
|
|
741
|
+
// let panelItem : IDrillItemInfo = null;
|
|
742
|
+
// let showIndex: any | false = doesObjectExistInArray(this.props.items, key, val, false);
|
|
743
|
+
// if (showIndex !== false ) {
|
|
744
|
+
// panelItem = this.props.items[showIndex];
|
|
745
|
+
// // console.log('showPanelPropsItem', panelItem );
|
|
746
|
+
// }
|
|
747
|
+
// return panelItem;
|
|
748
|
+
// }
|
|
749
|
+
// private _onClosePanel = (): void => {
|
|
750
|
+
// this.setState({
|
|
751
|
+
// showPanel: false,
|
|
752
|
+
// showAttach: false ,
|
|
753
|
+
// clickedAttach: false,
|
|
754
|
+
// });
|
|
755
|
+
// }
|
|
756
|
+
// /***
|
|
757
|
+
// * d8888b. .d8b. d8b db d88888b db d88888b .d88b. .d88b. d888888b d88888b d8888b.
|
|
758
|
+
// * 88 `8D d8' `8b 888o 88 88' 88 88' .8P Y8. .8P Y8. `~~88~~' 88' 88 `8D
|
|
759
|
+
// * 88oodD' 88ooo88 88V8o 88 88ooooo 88 88ooo 88 88 88 88 88 88ooooo 88oobY'
|
|
760
|
+
// * 88~~~ 88~~~88 88 V8o88 88~~~~~ 88 88~~~ 88 88 88 88 88 88~~~~~ 88`8b
|
|
761
|
+
// * 88 88 88 88 V888 88. 88booo. 88 `8b d8' `8b d8' 88 88. 88 `88.
|
|
762
|
+
// * 88 YP YP VP V8P Y88888P Y88888P YP `Y88P' `Y88P' YP Y88888P 88 YD
|
|
763
|
+
// *
|
|
764
|
+
// *
|
|
765
|
+
// */
|
|
766
|
+
// /**
|
|
767
|
+
// * This was copied from codepen example code to render a footer with buttons:
|
|
768
|
+
// * https://fabricweb.z5.web.core.windows.net/oufr/6.50.2/#/examples/panel
|
|
769
|
+
// *
|
|
770
|
+
// */
|
|
771
|
+
// private _onRenderFooterContent = (): JSX.Element => {
|
|
772
|
+
// return null;
|
|
773
|
+
// return (
|
|
774
|
+
// <div>
|
|
775
|
+
// <PrimaryButton onClick={this._onClosePanel} style={{ marginRight: '8px' }}>
|
|
776
|
+
// Save
|
|
777
|
+
// </PrimaryButton>
|
|
778
|
+
// <DefaultButton onClick={this._onClosePanel}>Cancel</DefaultButton>
|
|
779
|
+
// </div>
|
|
780
|
+
// );
|
|
781
|
+
// }
|
|
782
|
+
// /***
|
|
783
|
+
// * d888888b .d88b. d888b d888b db d88888b .d8888.
|
|
784
|
+
// * `~~88~~' .8P Y8. 88' Y8b 88' Y8b 88 88' 88' YP
|
|
785
|
+
// * 88 88 88 88 88 88 88ooooo `8bo.
|
|
786
|
+
// * 88 88 88 88 ooo 88 ooo 88 88~~~~~ `Y8b.
|
|
787
|
+
// * 88 `8b d8' 88. ~8~ 88. ~8~ 88booo. 88. db 8D
|
|
788
|
+
// * YP `Y88P' Y888P Y888P Y88888P Y88888P `8888Y'
|
|
789
|
+
// *
|
|
790
|
+
// *
|
|
791
|
+
// */
|
|
792
|
+
// private getPageToggles( ) {
|
|
793
|
+
// let togRefinerCounts = {
|
|
794
|
+
// //label: <span style={{ color: 'red', fontWeight: 900}}>Rails Off!</span>,
|
|
795
|
+
// label: <span>Panel width</span>,
|
|
796
|
+
// key: 'togggleWidth',
|
|
797
|
+
// _onChange: this.updatePanelWidth.bind(this),
|
|
798
|
+
// checked: this.state.panelWidth === PanelType.medium ? false : true,
|
|
799
|
+
// onText: 'Wide',
|
|
800
|
+
// offText: 'Medium',
|
|
801
|
+
// className: '',
|
|
802
|
+
// styles: '',
|
|
803
|
+
// };
|
|
804
|
+
// let theseToggles = [];
|
|
805
|
+
// theseToggles.push( togRefinerCounts ) ;
|
|
806
|
+
// let pageToggles : IContentsToggles = {
|
|
807
|
+
// toggles: theseToggles,
|
|
808
|
+
// childGap: 10,
|
|
809
|
+
// vertical: false,
|
|
810
|
+
// hAlign: 'end',
|
|
811
|
+
// vAlign: 'start',
|
|
812
|
+
// rootStyle: { width: 100 , paddingTop: 0, paddingRight: 0, }, //This defines the styles on each toggle
|
|
813
|
+
// };
|
|
814
|
+
// return pageToggles;
|
|
815
|
+
// }
|
|
816
|
+
// private updatePanelWidth() {
|
|
817
|
+
// this.setState({
|
|
818
|
+
// panelWidth: this.state.panelWidth === PanelType.medium ? PanelType.large : PanelType.medium,
|
|
819
|
+
// });
|
|
820
|
+
// }
|
|
821
|
+
// private _updateFirstLastVisible( firstVisible: number, lastVisible: number ) {
|
|
822
|
+
// this.setState({
|
|
823
|
+
// firstVisible: firstVisible,
|
|
824
|
+
// lastVisible: lastVisible,
|
|
825
|
+
// });
|
|
826
|
+
// }
|
|
827
|
+
// }
|
|
828
|
+
//# sourceMappingURL=reactListView_Original.js.map
|