@ui5/webcomponents-fiori 1.21.0 → 1.22.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/Bar.d.ts +6 -27
- package/dist/Bar.js +3 -14
- package/dist/Bar.js.map +1 -1
- package/dist/BarcodeScannerDialog.d.ts +2 -13
- package/dist/BarcodeScannerDialog.js +10 -12
- package/dist/BarcodeScannerDialog.js.map +1 -1
- package/dist/DynamicSideContent.d.ts +9 -35
- package/dist/DynamicSideContent.js +15 -7
- package/dist/DynamicSideContent.js.map +1 -1
- package/dist/FilterItem.d.ts +3 -14
- package/dist/FilterItem.js +1 -5
- package/dist/FilterItem.js.map +1 -1
- package/dist/FilterItemOption.d.ts +3 -11
- package/dist/FilterItemOption.js +1 -5
- package/dist/FilterItemOption.js.map +1 -1
- package/dist/FlexibleColumnLayout.d.ts +13 -51
- package/dist/FlexibleColumnLayout.js +28 -26
- package/dist/FlexibleColumnLayout.js.map +1 -1
- package/dist/IllustratedMessage.d.ts +9 -35
- package/dist/IllustratedMessage.js +1 -4
- package/dist/IllustratedMessage.js.map +1 -1
- package/dist/Interfaces.d.ts +28 -88
- package/dist/Interfaces.js +2 -113
- package/dist/Interfaces.js.map +1 -1
- package/dist/MediaGallery.d.ts +9 -26
- package/dist/MediaGallery.js +4 -8
- package/dist/MediaGallery.js.map +1 -1
- package/dist/MediaGalleryItem.d.ts +7 -22
- package/dist/MediaGalleryItem.js +2 -5
- package/dist/MediaGalleryItem.js.map +1 -1
- package/dist/NotificationAction.d.ts +7 -20
- package/dist/NotificationAction.js +3 -9
- package/dist/NotificationAction.js.map +1 -1
- package/dist/NotificationListGroupItem.d.ts +5 -27
- package/dist/NotificationListGroupItem.js +1 -16
- package/dist/NotificationListGroupItem.js.map +1 -1
- package/dist/NotificationListItem.d.ts +3 -27
- package/dist/NotificationListItem.js +2 -15
- package/dist/NotificationListItem.js.map +1 -1
- package/dist/NotificationListItemBase.d.ts +7 -32
- package/dist/NotificationListItemBase.js +15 -15
- package/dist/NotificationListItemBase.js.map +1 -1
- package/dist/Page.d.ts +7 -35
- package/dist/Page.js +2 -13
- package/dist/Page.js.map +1 -1
- package/dist/ProductSwitch.d.ts +3 -10
- package/dist/ProductSwitch.js +1 -5
- package/dist/ProductSwitch.js.map +1 -1
- package/dist/ProductSwitchItem.d.ts +9 -22
- package/dist/ProductSwitchItem.js +2 -7
- package/dist/ProductSwitchItem.js.map +1 -1
- package/dist/ShellBar.d.ts +30 -90
- package/dist/ShellBar.js +28 -41
- package/dist/ShellBar.js.map +1 -1
- package/dist/ShellBarItem.d.ts +9 -14
- package/dist/ShellBarItem.js +6 -6
- package/dist/ShellBarItem.js.map +1 -1
- package/dist/SideNavigation.d.ts +29 -17
- package/dist/SideNavigation.js +155 -9
- package/dist/SideNavigation.js.map +1 -1
- package/dist/SideNavigationItem.d.ts +4 -17
- package/dist/SideNavigationItem.js +1 -5
- package/dist/SideNavigationItem.js.map +1 -1
- package/dist/SideNavigationItemBase.d.ts +7 -36
- package/dist/SideNavigationItemBase.js +20 -12
- package/dist/SideNavigationItemBase.js.map +1 -1
- package/dist/SideNavigationSubItem.d.ts +1 -5
- package/dist/SideNavigationSubItem.js +1 -5
- package/dist/SideNavigationSubItem.js.map +1 -1
- package/dist/SortItem.d.ts +3 -11
- package/dist/SortItem.js +1 -5
- package/dist/SortItem.js.map +1 -1
- package/dist/Timeline.d.ts +5 -16
- package/dist/Timeline.js +1 -5
- package/dist/Timeline.js.map +1 -1
- package/dist/TimelineItem.d.ts +11 -34
- package/dist/TimelineItem.js +3 -15
- package/dist/TimelineItem.js.map +1 -1
- package/dist/UploadCollection.d.ts +11 -32
- package/dist/UploadCollection.js +7 -9
- package/dist/UploadCollection.js.map +1 -1
- package/dist/UploadCollectionItem.d.ts +16 -47
- package/dist/UploadCollectionItem.js +3 -10
- package/dist/UploadCollectionItem.js.map +1 -1
- package/dist/ViewSettingsDialog.d.ts +5 -28
- package/dist/ViewSettingsDialog.js +34 -18
- package/dist/ViewSettingsDialog.js.map +1 -1
- package/dist/Wizard.d.ts +15 -39
- package/dist/Wizard.js +23 -33
- package/dist/Wizard.js.map +1 -1
- package/dist/WizardStep.d.ts +8 -31
- package/dist/WizardStep.js +2 -5
- package/dist/WizardStep.js.map +1 -1
- package/dist/WizardTab.d.ts +20 -24
- package/dist/WizardTab.js +1 -5
- package/dist/WizardTab.js.map +1 -1
- package/dist/css/themes/Bar.css +1 -1
- package/dist/css/themes/FlexibleColumnLayout.css +1 -1
- package/dist/css/themes/MediaGallery.css +1 -1
- package/dist/css/themes/MediaGalleryItem.css +1 -1
- package/dist/css/themes/NotificationListGroupItem.css +1 -1
- package/dist/css/themes/NotificationListItem.css +1 -1
- package/dist/css/themes/NotificationListItemBase.css +1 -1
- package/dist/css/themes/NotificationOverflowActionsPopover.css +1 -1
- package/dist/css/themes/Page.css +1 -1
- package/dist/css/themes/ProductSwitchItem.css +1 -1
- package/dist/css/themes/ShellBar.css +1 -1
- package/dist/css/themes/SideNavigation.css +1 -1
- package/dist/css/themes/SideNavigationPopover.css +1 -1
- package/dist/css/themes/Timeline.css +1 -1
- package/dist/css/themes/TimelineItem.css +1 -1
- package/dist/css/themes/UploadCollection.css +1 -1
- package/dist/css/themes/UploadCollectionItem.css +1 -1
- package/dist/css/themes/ViewSettingsDialog.css +1 -1
- package/dist/css/themes/Wizard.css +1 -1
- package/dist/css/themes/WizardTab.css +1 -1
- package/dist/css/themes/sap_belize/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_belize_hcb/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_belize_hcw/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_dark_exp/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_hcb_exp/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_hcw_exp/parameters-bundle.css +1 -1
- package/dist/custom-elements-internal.json +6682 -0
- package/dist/custom-elements.json +4098 -1
- package/dist/generated/assets/themes/sap_belize/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_belize_hcb/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_belize_hcw/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_dark_exp/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_hcb_exp/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_hcw_exp/parameters-bundle.css.json +1 -1
- package/dist/generated/i18n/i18n-defaults.d.ts +2 -1
- package/dist/generated/i18n/i18n-defaults.js +2 -1
- package/dist/generated/i18n/i18n-defaults.js.map +1 -1
- package/dist/generated/templates/SideNavigationPopoverTemplate.lit.js +6 -2
- package/dist/generated/templates/SideNavigationPopoverTemplate.lit.js.map +1 -1
- package/dist/generated/templates/SideNavigationTemplate.lit.js +1 -1
- package/dist/generated/templates/SideNavigationTemplate.lit.js.map +1 -1
- package/dist/generated/themes/Bar.css.js +1 -1
- package/dist/generated/themes/Bar.css.js.map +1 -1
- package/dist/generated/themes/FlexibleColumnLayout.css.js +1 -1
- package/dist/generated/themes/FlexibleColumnLayout.css.js.map +1 -1
- package/dist/generated/themes/MediaGallery.css.js +1 -1
- package/dist/generated/themes/MediaGallery.css.js.map +1 -1
- package/dist/generated/themes/MediaGalleryItem.css.js +1 -1
- package/dist/generated/themes/MediaGalleryItem.css.js.map +1 -1
- package/dist/generated/themes/NotificationListGroupItem.css.js +1 -1
- package/dist/generated/themes/NotificationListGroupItem.css.js.map +1 -1
- package/dist/generated/themes/NotificationListItem.css.js +1 -1
- package/dist/generated/themes/NotificationListItem.css.js.map +1 -1
- package/dist/generated/themes/NotificationListItemBase.css.js +1 -1
- package/dist/generated/themes/NotificationListItemBase.css.js.map +1 -1
- package/dist/generated/themes/NotificationOverflowActionsPopover.css.js +1 -1
- package/dist/generated/themes/NotificationOverflowActionsPopover.css.js.map +1 -1
- package/dist/generated/themes/Page.css.js +1 -1
- package/dist/generated/themes/Page.css.js.map +1 -1
- package/dist/generated/themes/ProductSwitchItem.css.js +1 -1
- package/dist/generated/themes/ProductSwitchItem.css.js.map +1 -1
- package/dist/generated/themes/ShellBar.css.js +1 -1
- package/dist/generated/themes/ShellBar.css.js.map +1 -1
- package/dist/generated/themes/SideNavigation.css.js +1 -1
- package/dist/generated/themes/SideNavigation.css.js.map +1 -1
- package/dist/generated/themes/SideNavigationPopover.css.js +1 -1
- package/dist/generated/themes/SideNavigationPopover.css.js.map +1 -1
- package/dist/generated/themes/Timeline.css.js +1 -1
- package/dist/generated/themes/Timeline.css.js.map +1 -1
- package/dist/generated/themes/TimelineItem.css.js +1 -1
- package/dist/generated/themes/TimelineItem.css.js.map +1 -1
- package/dist/generated/themes/UploadCollection.css.js +1 -1
- package/dist/generated/themes/UploadCollection.css.js.map +1 -1
- package/dist/generated/themes/UploadCollectionItem.css.js +1 -1
- package/dist/generated/themes/UploadCollectionItem.css.js.map +1 -1
- package/dist/generated/themes/ViewSettingsDialog.css.js +1 -1
- package/dist/generated/themes/ViewSettingsDialog.css.js.map +1 -1
- package/dist/generated/themes/Wizard.css.js +1 -1
- package/dist/generated/themes/Wizard.css.js.map +1 -1
- package/dist/generated/themes/WizardTab.css.js +1 -1
- package/dist/generated/themes/WizardTab.css.js.map +1 -1
- package/dist/generated/themes/sap_belize/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_belize/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js.map +1 -1
- package/dist/types/BarDesign.d.ts +0 -8
- package/dist/types/BarDesign.js +0 -8
- package/dist/types/BarDesign.js.map +1 -1
- package/dist/types/FCLLayout.d.ts +0 -13
- package/dist/types/FCLLayout.js +0 -13
- package/dist/types/FCLLayout.js.map +1 -1
- package/dist/types/IllustrationMessageSize.d.ts +0 -9
- package/dist/types/IllustrationMessageSize.js +0 -9
- package/dist/types/IllustrationMessageSize.js.map +1 -1
- package/dist/types/IllustrationMessageType.d.ts +0 -107
- package/dist/types/IllustrationMessageType.js +0 -107
- package/dist/types/IllustrationMessageType.js.map +1 -1
- package/dist/types/MediaGalleryItemLayout.d.ts +0 -6
- package/dist/types/MediaGalleryItemLayout.js +0 -6
- package/dist/types/MediaGalleryItemLayout.js.map +1 -1
- package/dist/types/MediaGalleryLayout.d.ts +0 -7
- package/dist/types/MediaGalleryLayout.js +0 -7
- package/dist/types/MediaGalleryLayout.js.map +1 -1
- package/dist/types/MediaGalleryMenuHorizontalAlign.d.ts +0 -6
- package/dist/types/MediaGalleryMenuHorizontalAlign.js +0 -6
- package/dist/types/MediaGalleryMenuHorizontalAlign.js.map +1 -1
- package/dist/types/MediaGalleryMenuVerticalAlign.d.ts +0 -6
- package/dist/types/MediaGalleryMenuVerticalAlign.js +0 -6
- package/dist/types/MediaGalleryMenuVerticalAlign.js.map +1 -1
- package/dist/types/PageBackgroundDesign.d.ts +0 -7
- package/dist/types/PageBackgroundDesign.js +0 -7
- package/dist/types/PageBackgroundDesign.js.map +1 -1
- package/dist/types/SideContentFallDown.d.ts +0 -8
- package/dist/types/SideContentFallDown.js +0 -8
- package/dist/types/SideContentFallDown.js.map +1 -1
- package/dist/types/SideContentPosition.d.ts +0 -6
- package/dist/types/SideContentPosition.js +0 -6
- package/dist/types/SideContentPosition.js.map +1 -1
- package/dist/types/SideContentVisibility.d.ts +0 -9
- package/dist/types/SideContentVisibility.js +0 -9
- package/dist/types/SideContentVisibility.js.map +1 -1
- package/dist/types/TimelineLayout.d.ts +0 -6
- package/dist/types/TimelineLayout.js +0 -6
- package/dist/types/TimelineLayout.js.map +1 -1
- package/dist/types/UploadCollectionDnDMode.d.ts +0 -7
- package/dist/types/UploadCollectionDnDMode.js +0 -7
- package/dist/types/UploadCollectionDnDMode.js.map +1 -1
- package/dist/types/UploadState.d.ts +0 -8
- package/dist/types/UploadState.js +0 -8
- package/dist/types/UploadState.js.map +1 -1
- package/dist/types/ViewSettingsDialogMode.d.ts +0 -6
- package/dist/types/ViewSettingsDialogMode.js +0 -6
- package/dist/types/ViewSettingsDialogMode.js.map +1 -1
- package/dist/types/WizardContentLayout.d.ts +0 -6
- package/dist/types/WizardContentLayout.js +0 -6
- package/dist/types/WizardContentLayout.js.map +1 -1
- package/package.json +7 -7
- package/src/SideNavigation.hbs +21 -0
- package/src/SideNavigationPopover.hbs +61 -28
- package/src/i18n/messagebundle.properties +3 -0
- package/src/themes/SideNavigation.css +11 -1
- package/dist/api.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationListGroupItem.js","sourceRoot":"","sources":["../src/NotificationListGroupItem.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,QAAQ,MAAM,2CAA2C,CAAC;AACjE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,IAAI,MAAM,iCAAiC,CAAC;AACnD,OAAO,MAAM,MAAM,mCAAmC,CAAC;AACvD,OAAO,aAAa,MAAM,0CAA0C,CAAC;AACrE,OAAO,IAAI,MAAM,iCAAiC,CAAC;AACnD,OAAO,OAAO,MAAM,oCAAoC,CAAC;AACzD,OAAO,wBAAwB,MAAM,+BAA+B,CAAC;AAGrE,QAAQ;AACR,OAAO,yDAAyD,CAAC;AACjE,OAAO,2CAA2C,CAAC;AACnD,OAAO,0CAA0C,CAAC;AAElD,QAAQ;AACR,OAAO,EACN,gCAAgC,EAChC,wCAAwC,EACxC,2BAA2B,EAC3B,6BAA6B,EAC7B,wCAAwC,EACxC,0CAA0C,EAC1C,uCAAuC,EACvC,wCAAwC,EACxC,4CAA4C,EAC5C,sDAAsD,EACtD,oDAAoD,GACpD,MAAM,mCAAmC,CAAC;AAE3C,YAAY;AACZ,OAAO,iCAAiC,MAAM,gEAAgE,CAAC;AAE/G,SAAS;AACT,OAAO,4BAA4B,MAAM,qDAAqD,CAAC;AAQ/F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAsBH,IAAM,yBAAyB,iCAA/B,MAAM,yBAA0B,SAAQ,wBAAwB;IAiC/D,iBAAiB;QAChB,IAAI,IAAI,CAAC,IAAI,EAAE;YACd,IAAI,CAAC,uBAAuB,EAAE,CAAC;SAC/B;IACF,C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AI,EAAE,OAAO,EAAE,CAAC;4DACR;AAUpB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;8DACN;AAYtB;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;wDACV;AA/B9B,yBAAyB;IArB9B,aAAa,CAAC;QACd,GAAG,EAAE,2BAA2B;QAChC,aAAa,EAAE,IAAI;QACnB,MAAM,EAAE,4BAA4B;QACpC,QAAQ,EAAE,iCAAiC;QAC3C,YAAY,EAAE;YACb,IAAI;YACJ,MAAM;YACN,IAAI;YACJ,aAAa;YACb,OAAO;SACP;KACD,CAAC;IAEF;;;;;OAKG;;IACF,KAAK,CAAC,QAAQ,CAAC;GACV,yBAAyB,CAkI9B;AAED,yBAAyB,CAAC,MAAM,EAAE,CAAC;AAEnC,eAAe,yBAAyB,CAAC","sourcesContent":["import Priority from \"@ui5/webcomponents/dist/types/Priority.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport List from \"@ui5/webcomponents/dist/List.js\";\nimport Button from \"@ui5/webcomponents/dist/Button.js\";\nimport BusyIndicator from \"@ui5/webcomponents/dist/BusyIndicator.js\";\nimport Icon from \"@ui5/webcomponents/dist/Icon.js\";\nimport Popover from \"@ui5/webcomponents/dist/Popover.js\";\nimport NotificationListItemBase from \"./NotificationListItemBase.js\";\nimport type NotificationListItem from \"./NotificationListItem.js\";\n\n// Icons\nimport \"@ui5/webcomponents-icons/dist/navigation-right-arrow.js\";\nimport \"@ui5/webcomponents-icons/dist/overflow.js\";\nimport \"@ui5/webcomponents-icons/dist/decline.js\";\n\n// Texts\nimport {\n\tNOTIFICATION_LIST_GROUP_ITEM_TXT,\n\tNOTIFICATION_LIST_GROUP_ITEM_COUNTER_TXT,\n\tNOTIFICATION_LIST_ITEM_READ,\n\tNOTIFICATION_LIST_ITEM_UNREAD,\n\tNOTIFICATION_LIST_ITEM_HIGH_PRIORITY_TXT,\n\tNOTIFICATION_LIST_ITEM_MEDIUM_PRIORITY_TXT,\n\tNOTIFICATION_LIST_ITEM_LOW_PRIORITY_TXT,\n\tNOTIFICATION_LIST_ITEM_OVERLOW_BTN_TITLE,\n\tNOTIFICATION_LIST_GROUP_ITEM_CLOSE_BTN_TITLE,\n\tNOTIFICATION_LIST_GROUP_ITEM_TOGGLE_BTN_COLLAPSE_TITLE,\n\tNOTIFICATION_LIST_GROUP_ITEM_TOGGLE_BTN_EXPAND_TITLE,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Templates\nimport NotificationListGroupItemTemplate from \"./generated/templates/NotificationListGroupItemTemplate.lit.js\";\n\n// Styles\nimport NotificationListGroupItemCss from \"./generated/themes/NotificationListGroupItem.css.js\";\n\nimport type { NotificationListItemBaseCloseEventDetail as NotificationListGroupItemCloseEventDetail } from \"./NotificationListItemBase.js\";\n\ntype NotificationListGroupItemToggleEventDetail = {\n\titem: NotificationListGroupItem,\n};\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n * The <code>ui5-li-notification-group</code> is a special type of list item,\n * that unlike others can group items within self, usually <code>ui5-li-notification</code> items.\n * <br>\n *\n * The component consists of:\n * <ul>\n * <li><code>Toggle</code> button to expand and collapse the group</li>\n * <li><code>Priority</code> icon to display the priority of the group</li>\n * <li><code>TitleText</code> to entitle the group</li>\n * <li>Custom actions - with the use of <code>ui5-notification-action</code></li>\n * <li>Items of the group</li>\n * </ul>\n *\n * <h3>Usage</h3>\n * The component can be used in a standard <code>ui5-list</code>.\n *\n * <h3>CSS Shadow Parts</h3>\n *\n * <ui5-link target=\"_blank\" href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/::part\">CSS Shadow Parts</ui5-link> allow developers to style elements inside the Shadow DOM.\n * <br>\n * The <code>ui5-li-notification-group</code> exposes the following CSS Shadow Parts:\n * <ul>\n * <li>title-text - Used to style the titleText of the notification list group item</li>\n * </ul>\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents/dist/NotificationListGroupItem.js\";</code>\n * <br>\n * <code>import \"@ui5/webcomponents/dist/NotificationAction.js\";</code> (optional)\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.fiori.NotificationListGroupItem\n * @extends sap.ui.webc.fiori.NotificationListItemBase\n * @tagname ui5-li-notification-group\n * @since 1.0.0-rc.8\n * @appenddocs sap.ui.webc.fiori.NotificationAction\n * @implements sap.ui.webc.main.IListItem\n * @public\n */\n@customElement({\n\ttag: \"ui5-li-notification-group\",\n\tlanguageAware: true,\n\tstyles: NotificationListGroupItemCss,\n\ttemplate: NotificationListGroupItemTemplate,\n\tdependencies: [\n\t\tList,\n\t\tButton,\n\t\tIcon,\n\t\tBusyIndicator,\n\t\tPopover,\n\t],\n})\n\n/**\n * Fired when the <code>ui5-li-notification-group</code> is expanded/collapsed by user interaction.\n *\n * @public\n * @event sap.ui.webc.fiori.NotificationListGroupItem#toggle\n */\n@event(\"toggle\")\nclass NotificationListGroupItem extends NotificationListItemBase {\n\t/**\n\t * Defines if the group is collapsed or expanded.\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @name sap.ui.webc.fiori.NotificationListGroupItem.prototype.collapsed\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tcollapsed!: boolean;\n\n\t/**\n\t * Defines if the items <code>counter</code> would be displayed.\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @name sap.ui.webc.fiori.NotificationListGroupItem.prototype.showCounter\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tshowCounter!: boolean;\n\n\t/**\n\t * Defines the items of the <code>ui5-li-notification-group</code>,\n\t * usually <code>ui5-li-notification</code> items.\n\t *\n\t * @type {sap.ui.webc.fiori.INotificationListItem[]}\n\t * @slot items\n\t * @name sap.ui.webc.fiori.NotificationListGroupItem.prototype.default\n\t * @public\n\t */\n\t@slot({ type: HTMLElement, \"default\": true })\n\titems!: Array<NotificationListItem>\n\n\tonBeforeRendering() {\n\t\tif (this.busy) {\n\t\t\tthis.clearChildBusyIndicator();\n\t\t}\n\t}\n\n\t/**\n\t * Clears child items busy state to show a single busy over the entire group,\n\t * instead of multiple BusyIndicator instances\n\t */\n\tclearChildBusyIndicator() {\n\t\tthis.items.forEach(item => {\n\t\t\titem.busy = false;\n\t\t});\n\t}\n\n\tget itemsCount() {\n\t\treturn this.items.length;\n\t}\n\n\tget overflowBtnAccessibleName() {\n\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_OVERLOW_BTN_TITLE);\n\t}\n\n\tget closeBtnAccessibleName() {\n\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_GROUP_ITEM_CLOSE_BTN_TITLE);\n\t}\n\n\tget toggleBtnAccessibleName() {\n\t\tif (this.collapsed) {\n\t\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_GROUP_ITEM_TOGGLE_BTN_EXPAND_TITLE);\n\t\t}\n\n\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_GROUP_ITEM_TOGGLE_BTN_COLLAPSE_TITLE);\n\t}\n\n\tget priorityText() {\n\t\tif (this.priority === Priority.High) {\n\t\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_HIGH_PRIORITY_TXT);\n\t\t}\n\n\t\tif (this.priority === Priority.Medium) {\n\t\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_MEDIUM_PRIORITY_TXT);\n\t\t}\n\n\t\tif (this.priority === Priority.Low) {\n\t\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_LOW_PRIORITY_TXT);\n\t\t}\n\n\t\treturn \"\";\n\t}\n\n\tget accInvisibleText() {\n\t\treturn `${this.groupText} ${this.readText} ${this.priorityText} ${this.counterText}`;\n\t}\n\n\tget readText() {\n\t\tif (this.read) {\n\t\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_READ);\n\t\t}\n\n\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_UNREAD);\n\t}\n\n\tget groupText() {\n\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_GROUP_ITEM_TXT);\n\t}\n\n\tget counterText() {\n\t\tconst text = NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_GROUP_ITEM_COUNTER_TXT);\n\t\treturn this.showCounter ? `${text} ${this.itemsCount}` : \"\";\n\t}\n\n\tget ariaLabelledBy() {\n\t\tconst id = this._id;\n\t\tconst ids = [];\n\n\t\tif (this.hasTitleText) {\n\t\t\tids.push(`${id}-title-text`);\n\t\t}\n\n\t\tids.push(`${id}-invisibleText`);\n\t\treturn ids.join(\" \");\n\t}\n\n\tget _ariaExpanded() {\n\t\treturn !this.collapsed;\n\t}\n\n\t/**\n\t * Event handlers\n\t *\n\t */\n\t_onBtnToggleClick() {\n\t\tthis.collapsed = !this.collapsed;\n\t\tthis.fireEvent<NotificationListGroupItemToggleEventDetail>(\"toggle\", { item: this });\n\t}\n}\n\nNotificationListGroupItem.define();\n\nexport default NotificationListGroupItem;\nexport type {\n\tNotificationListGroupItemToggleEventDetail,\n\tNotificationListGroupItemCloseEventDetail,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"NotificationListGroupItem.js","sourceRoot":"","sources":["../src/NotificationListGroupItem.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,QAAQ,MAAM,2CAA2C,CAAC;AACjE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,KAAK,MAAM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YACJ,MAAM;YACN,IAAI;YACJ,aAAa;YACb,OAAO;SACP;KACD,CAAC;IAEF;;;;OAIG;;IACF,KAAK,CAAC,QAAQ,CAAC;GACV,yBAAyB,CA2H9B;AAED,yBAAyB,CAAC,MAAM,EAAE,CAAC;AAEnC,eAAe,yBAAyB,CAAC","sourcesContent":["import Priority from \"@ui5/webcomponents/dist/types/Priority.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport List from \"@ui5/webcomponents/dist/List.js\";\nimport Button from \"@ui5/webcomponents/dist/Button.js\";\nimport BusyIndicator from \"@ui5/webcomponents/dist/BusyIndicator.js\";\nimport Icon from \"@ui5/webcomponents/dist/Icon.js\";\nimport Popover from \"@ui5/webcomponents/dist/Popover.js\";\nimport NotificationListItemBase from \"./NotificationListItemBase.js\";\nimport type { NotificationListItemBaseCloseEventDetail as NotificationListGroupItemCloseEventDetail } from \"./NotificationListItemBase.js\";\n\n// Icons\nimport \"@ui5/webcomponents-icons/dist/navigation-right-arrow.js\";\nimport \"@ui5/webcomponents-icons/dist/overflow.js\";\nimport \"@ui5/webcomponents-icons/dist/decline.js\";\n\n// Texts\nimport {\n\tNOTIFICATION_LIST_GROUP_ITEM_TXT,\n\tNOTIFICATION_LIST_GROUP_ITEM_COUNTER_TXT,\n\tNOTIFICATION_LIST_ITEM_READ,\n\tNOTIFICATION_LIST_ITEM_UNREAD,\n\tNOTIFICATION_LIST_ITEM_HIGH_PRIORITY_TXT,\n\tNOTIFICATION_LIST_ITEM_MEDIUM_PRIORITY_TXT,\n\tNOTIFICATION_LIST_ITEM_LOW_PRIORITY_TXT,\n\tNOTIFICATION_LIST_ITEM_OVERLOW_BTN_TITLE,\n\tNOTIFICATION_LIST_GROUP_ITEM_CLOSE_BTN_TITLE,\n\tNOTIFICATION_LIST_GROUP_ITEM_TOGGLE_BTN_COLLAPSE_TITLE,\n\tNOTIFICATION_LIST_GROUP_ITEM_TOGGLE_BTN_EXPAND_TITLE,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Templates\nimport NotificationListGroupItemTemplate from \"./generated/templates/NotificationListGroupItemTemplate.lit.js\";\n\n// Styles\nimport NotificationListGroupItemCss from \"./generated/themes/NotificationListGroupItem.css.js\";\n\ntype NotificationListGroupItemToggleEventDetail = {\n\titem: NotificationListGroupItem,\n};\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n * The <code>ui5-li-notification-group</code> is a special type of list item,\n * that unlike others can group items within self, usually <code>ui5-li-notification</code> items.\n * <br>\n *\n * The component consists of:\n * <ul>\n * <li><code>Toggle</code> button to expand and collapse the group</li>\n * <li><code>Priority</code> icon to display the priority of the group</li>\n * <li><code>TitleText</code> to entitle the group</li>\n * <li>Custom actions - with the use of <code>ui5-notification-action</code></li>\n * <li>Items of the group</li>\n * </ul>\n *\n * <h3>Usage</h3>\n * The component can be used in a standard <code>ui5-list</code>.\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents/dist/NotificationListGroupItem.js\";</code>\n * <br>\n * <code>import \"@ui5/webcomponents/dist/NotificationAction.js\";</code> (optional)\n * @constructor\n * @extends NotificationListItemBase\n * @since 1.0.0-rc.8\n * @public\n */\n@customElement({\n\ttag: \"ui5-li-notification-group\",\n\tlanguageAware: true,\n\tstyles: NotificationListGroupItemCss,\n\ttemplate: NotificationListGroupItemTemplate,\n\tdependencies: [\n\t\tList,\n\t\tButton,\n\t\tIcon,\n\t\tBusyIndicator,\n\t\tPopover,\n\t],\n})\n\n/**\n * Fired when the <code>ui5-li-notification-group</code> is expanded/collapsed by user interaction.\n *\n * @public\n */\n@event(\"toggle\")\nclass NotificationListGroupItem extends NotificationListItemBase {\n\t/**\n\t * Defines if the group is collapsed or expanded.\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tcollapsed!: boolean;\n\n\t/**\n\t * Defines if the items <code>counter</code> would be displayed.\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tshowCounter!: boolean;\n\n\t/**\n\t * Defines the items of the <code>ui5-li-notification-group</code>,\n\t * usually <code>ui5-li-notification</code> items.\n\t *\n\t * @public\n\t */\n\t@slot({ type: HTMLElement, \"default\": true })\n\titems!: Array<NotificationListItemBase>\n\n\tonBeforeRendering() {\n\t\tif (this.busy) {\n\t\t\tthis.clearChildBusyIndicator();\n\t\t}\n\t}\n\n\t/**\n\t * Clears child items busy state to show a single busy over the entire group,\n\t * instead of multiple BusyIndicator instances\n\t */\n\tclearChildBusyIndicator() {\n\t\tthis.items.forEach(item => {\n\t\t\titem.busy = false;\n\t\t});\n\t}\n\n\tget itemsCount() {\n\t\treturn this.items.length;\n\t}\n\n\tget overflowBtnAccessibleName() {\n\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_OVERLOW_BTN_TITLE);\n\t}\n\n\tget closeBtnAccessibleName() {\n\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_GROUP_ITEM_CLOSE_BTN_TITLE);\n\t}\n\n\tget toggleBtnAccessibleName() {\n\t\tif (this.collapsed) {\n\t\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_GROUP_ITEM_TOGGLE_BTN_EXPAND_TITLE);\n\t\t}\n\n\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_GROUP_ITEM_TOGGLE_BTN_COLLAPSE_TITLE);\n\t}\n\n\tget priorityText() {\n\t\tif (this.priority === Priority.High) {\n\t\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_HIGH_PRIORITY_TXT);\n\t\t}\n\n\t\tif (this.priority === Priority.Medium) {\n\t\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_MEDIUM_PRIORITY_TXT);\n\t\t}\n\n\t\tif (this.priority === Priority.Low) {\n\t\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_LOW_PRIORITY_TXT);\n\t\t}\n\n\t\treturn \"\";\n\t}\n\n\tget accInvisibleText() {\n\t\treturn `${this.groupText} ${this.readText} ${this.priorityText} ${this.counterText}`;\n\t}\n\n\tget readText() {\n\t\tif (this.read) {\n\t\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_READ);\n\t\t}\n\n\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_UNREAD);\n\t}\n\n\tget groupText() {\n\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_GROUP_ITEM_TXT);\n\t}\n\n\tget counterText() {\n\t\tconst text = NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_GROUP_ITEM_COUNTER_TXT);\n\t\treturn this.showCounter ? `${text} ${this.itemsCount}` : \"\";\n\t}\n\n\tget ariaLabelledBy() {\n\t\tconst id = this._id;\n\t\tconst ids = [];\n\n\t\tif (this.hasTitleText) {\n\t\t\tids.push(`${id}-title-text`);\n\t\t}\n\n\t\tids.push(`${id}-invisibleText`);\n\t\treturn ids.join(\" \");\n\t}\n\n\tget _ariaExpanded() {\n\t\treturn !this.collapsed;\n\t}\n\n\t/**\n\t * Event handlers\n\t *\n\t */\n\t_onBtnToggleClick() {\n\t\tthis.collapsed = !this.collapsed;\n\t\tthis.fireEvent<NotificationListGroupItemToggleEventDetail>(\"toggle\", { item: this });\n\t}\n}\n\nNotificationListGroupItem.define();\n\nexport default NotificationListGroupItem;\nexport type {\n\tNotificationListGroupItemToggleEventDetail,\n\tNotificationListGroupItemCloseEventDetail,\n};\n"]}
|
|
@@ -29,29 +29,16 @@ type NotificationListItemPressEventDetail = {
|
|
|
29
29
|
* <h3>Usage</h3>
|
|
30
30
|
* The component can be used in a standard <code>ui5-list</code>.
|
|
31
31
|
*
|
|
32
|
-
* <h3>CSS Shadow Parts</h3>
|
|
33
|
-
*
|
|
34
|
-
* <ui5-link target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/CSS/::part">CSS Shadow Parts</ui5-link> allow developers to style elements inside the Shadow DOM.
|
|
35
|
-
* <br>
|
|
36
|
-
* The <code>ui5-li-notification</code> exposes the following CSS Shadow Parts:
|
|
37
|
-
* <ul>
|
|
38
|
-
* <li>title-text - Used to style the titleText of the notification list item</li>
|
|
39
|
-
* </ul>
|
|
40
|
-
*
|
|
41
32
|
* <h3>ES6 Module Import</h3>
|
|
42
33
|
*
|
|
43
34
|
* <code>import "@ui5/webcomponents/dist/NotificationListItem.js";</code>
|
|
44
35
|
* <br>
|
|
45
36
|
* <code>import "@ui5/webcomponents/dist/NotificationAction.js";</code> (optional)
|
|
46
37
|
* @constructor
|
|
47
|
-
* @
|
|
48
|
-
* @alias sap.ui.webc.fiori.NotificationListItem
|
|
49
|
-
* @extends sap.ui.webc.fiori.NotificationListItemBase
|
|
50
|
-
* @tagname ui5-li-notification
|
|
51
|
-
* @appenddocs sap.ui.webc.fiori.NotificationAction
|
|
38
|
+
* @extends NotificationListItemBase
|
|
52
39
|
* @since 1.0.0-rc.8
|
|
53
|
-
* @implements sap.ui.webc.fiori.INotificationListItem, sap.ui.webc.main.IListItem
|
|
54
40
|
* @public
|
|
41
|
+
* @csspart title-text - Used to style the titleText of the notification list item
|
|
55
42
|
*/
|
|
56
43
|
declare class NotificationListItem extends NotificationListItemBase {
|
|
57
44
|
/**
|
|
@@ -61,10 +48,8 @@ declare class NotificationListItem extends NotificationListItemBase {
|
|
|
61
48
|
* <br><br>
|
|
62
49
|
* <b>Note:</b> by default the <code>titleText</code> and <code>description</code>,
|
|
63
50
|
* and a <code>ShowMore/Less</code> button would be displayed.
|
|
64
|
-
* @
|
|
65
|
-
* @defaultvalue "None"
|
|
51
|
+
* @default "None"
|
|
66
52
|
* @public
|
|
67
|
-
* @name sap.ui.webc.fiori.NotificationListItem.prototype.wrappingType
|
|
68
53
|
* @since 1.0.0-rc.15
|
|
69
54
|
*/
|
|
70
55
|
wrappingType: `${WrappingType}`;
|
|
@@ -89,18 +74,12 @@ declare class NotificationListItem extends NotificationListItemBase {
|
|
|
89
74
|
* we recommend using avatars with 2rem X 2rem in size (32px X 32px). In case you are using the <code>ui5-avatar</code>
|
|
90
75
|
* you can set its <code>size</code> property to <code>XS</code> to get the required size - <code><ui5-avatar size="XS"></ui5-avatar></code>.
|
|
91
76
|
*
|
|
92
|
-
* @type {sap.ui.webc.main.IAvatar}
|
|
93
|
-
* @slot
|
|
94
77
|
* @public
|
|
95
|
-
* @name sap.ui.webc.fiori.NotificationListItem.prototype.avatar
|
|
96
78
|
*/
|
|
97
79
|
avatar: Array<HTMLElement>;
|
|
98
80
|
/**
|
|
99
81
|
* Defines the elements, displayed in the footer of the of the component.
|
|
100
|
-
* @type {HTMLElement[]}
|
|
101
|
-
* @slot
|
|
102
82
|
* @public
|
|
103
|
-
* @name sap.ui.webc.fiori.NotificationListItem.prototype.footnotes
|
|
104
83
|
*/
|
|
105
84
|
footnotes: Array<HTMLElement>;
|
|
106
85
|
/**
|
|
@@ -110,10 +89,7 @@ declare class NotificationListItem extends NotificationListItemBase {
|
|
|
110
89
|
* <br><br>
|
|
111
90
|
* <b>Note:</b> Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design.
|
|
112
91
|
*
|
|
113
|
-
* @type {Node[]}
|
|
114
|
-
* @slot description
|
|
115
92
|
* @public
|
|
116
|
-
* @name sap.ui.webc.fiori.NotificationListItem.prototype.default
|
|
117
93
|
*/
|
|
118
94
|
description: Array<Node>;
|
|
119
95
|
_titleTextOverflowHeight: number;
|
|
@@ -51,29 +51,16 @@ import NotificationListItemCss from "./generated/themes/NotificationListItem.css
|
|
|
51
51
|
* <h3>Usage</h3>
|
|
52
52
|
* The component can be used in a standard <code>ui5-list</code>.
|
|
53
53
|
*
|
|
54
|
-
* <h3>CSS Shadow Parts</h3>
|
|
55
|
-
*
|
|
56
|
-
* <ui5-link target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/CSS/::part">CSS Shadow Parts</ui5-link> allow developers to style elements inside the Shadow DOM.
|
|
57
|
-
* <br>
|
|
58
|
-
* The <code>ui5-li-notification</code> exposes the following CSS Shadow Parts:
|
|
59
|
-
* <ul>
|
|
60
|
-
* <li>title-text - Used to style the titleText of the notification list item</li>
|
|
61
|
-
* </ul>
|
|
62
|
-
*
|
|
63
54
|
* <h3>ES6 Module Import</h3>
|
|
64
55
|
*
|
|
65
56
|
* <code>import "@ui5/webcomponents/dist/NotificationListItem.js";</code>
|
|
66
57
|
* <br>
|
|
67
58
|
* <code>import "@ui5/webcomponents/dist/NotificationAction.js";</code> (optional)
|
|
68
59
|
* @constructor
|
|
69
|
-
* @
|
|
70
|
-
* @alias sap.ui.webc.fiori.NotificationListItem
|
|
71
|
-
* @extends sap.ui.webc.fiori.NotificationListItemBase
|
|
72
|
-
* @tagname ui5-li-notification
|
|
73
|
-
* @appenddocs sap.ui.webc.fiori.NotificationAction
|
|
60
|
+
* @extends NotificationListItemBase
|
|
74
61
|
* @since 1.0.0-rc.8
|
|
75
|
-
* @implements sap.ui.webc.fiori.INotificationListItem, sap.ui.webc.main.IListItem
|
|
76
62
|
* @public
|
|
63
|
+
* @csspart title-text - Used to style the titleText of the notification list item
|
|
77
64
|
*/
|
|
78
65
|
let NotificationListItem = NotificationListItem_1 = class NotificationListItem extends NotificationListItemBase {
|
|
79
66
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationListItem.js","sourceRoot":"","sources":["../src/NotificationListItem.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC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kBAAkB,IAAI,IAAI,CAAC,oBAAoB,EAAE;YACzD,IAAI,CAAC,wBAAwB,GAAG,IAAI,CAAC,eAAe,CAAC;YACrD,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;YACrE,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;YACtB,OAAO;SACP;QAED,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;IACxB,CAAC;CACD,CAAA;AApRA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,IAAI,EAAE,CAAC;0DACjC;AAQjC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;8DACD;AAO3B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;uDACR;AAkBpB;IADC,IAAI,EAAE;oDACqB;AAU5B;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC;uDACpB;AAe/B;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;yDACZ;AAzErB,oBAAoB;IAfzB,aAAa,CAAC;QACd,GAAG,EAAE,qBAAqB;QAC1B,aAAa,EAAE,IAAI;QACnB,MAAM,EAAE,uBAAuB;QAC/B,QAAQ,EAAE,4BAA4B;QACtC,YAAY,EAAE;YACb,MAAM;YACN,IAAI;YACJ,aAAa;YACb,IAAI;YACJ,OAAO;SACP;KACD,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC;GACV,oBAAoB,CAmSzB;AAED,oBAAoB,CAAC,MAAM,EAAE,CAAC;AAE9B,eAAe,oBAAoB,CAAC","sourcesContent":["import { isSpace, isEnter } from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport ResizeHandler from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport type { ResizeObserverCallback } from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport { getEventMark } from \"@ui5/webcomponents-base/dist/MarkedEvents.js\";\nimport Priority from \"@ui5/webcomponents/dist/types/Priority.js\";\nimport Button from \"@ui5/webcomponents/dist/Button.js\";\nimport BusyIndicator from \"@ui5/webcomponents/dist/BusyIndicator.js\";\nimport Link from \"@ui5/webcomponents/dist/Link.js\";\nimport Icon from \"@ui5/webcomponents/dist/Icon.js\";\nimport Popover from \"@ui5/webcomponents/dist/Popover.js\";\nimport WrappingType from \"@ui5/webcomponents/dist/types/WrappingType.js\";\nimport NotificationListItemBase from \"./NotificationListItemBase.js\";\n\n// Icons\nimport \"@ui5/webcomponents-icons/dist/overflow.js\";\nimport \"@ui5/webcomponents-icons/dist/decline.js\";\n\n// Texts\nimport {\n\tNOTIFICATION_LIST_ITEM_TXT,\n\tNOTIFICATION_LIST_ITEM_READ,\n\tNOTIFICATION_LIST_ITEM_UNREAD,\n\tNOTIFICATION_LIST_ITEM_SHOW_MORE,\n\tNOTIFICATION_LIST_ITEM_SHOW_LESS,\n\tNOTIFICATION_LIST_ITEM_HIGH_PRIORITY_TXT,\n\tNOTIFICATION_LIST_ITEM_MEDIUM_PRIORITY_TXT,\n\tNOTIFICATION_LIST_ITEM_LOW_PRIORITY_TXT,\n\tNOTIFICATION_LIST_ITEM_OVERLOW_BTN_TITLE,\n\tNOTIFICATION_LIST_ITEM_CLOSE_BTN_TITLE,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Templates\nimport NotificationListItemTemplate from \"./generated/templates/NotificationListItemTemplate.lit.js\";\n\n// Styles\nimport NotificationListItemCss from \"./generated/themes/NotificationListItem.css.js\";\n\nimport type { NotificationListItemBaseCloseEventDetail as NotificationListItemCloseEventDetail } from \"./NotificationListItemBase.js\";\n\ntype NotificationListItemPressEventDetail = {\n\titem: NotificationListItem,\n};\n\ntype Footnote = Record<string, any>;\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n * The <code>ui5-li-notification</code> is a type of list item, meant to display notifications.\n * <br>\n *\n * The component has a rich set of various properties that allows the user to set <code>avatar</code>, <code>titleText</code>, descriptive <code>content</code>\n * and <code>footnotes</code> to fully describe a notification.\n * <br>\n *\n * The user can:\n * <ul>\n * <li>display a <code>Close</code> button</li>\n * <li>can control whether the <code>titleText</code> and <code>description</code> should wrap or truncate\n * and display a <code>ShowMore</code> button to switch between less and more information</li>\n * <li>add custom actions by using the <code>ui5-notification-action</code> component</li>\n * </ul>\n *\n * <h3>Usage</h3>\n * The component can be used in a standard <code>ui5-list</code>.\n *\n * <h3>CSS Shadow Parts</h3>\n *\n * <ui5-link target=\"_blank\" href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/::part\">CSS Shadow Parts</ui5-link> allow developers to style elements inside the Shadow DOM.\n * <br>\n * The <code>ui5-li-notification</code> exposes the following CSS Shadow Parts:\n * <ul>\n * <li>title-text - Used to style the titleText of the notification list item</li>\n * </ul>\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents/dist/NotificationListItem.js\";</code>\n * <br>\n * <code>import \"@ui5/webcomponents/dist/NotificationAction.js\";</code> (optional)\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.fiori.NotificationListItem\n * @extends sap.ui.webc.fiori.NotificationListItemBase\n * @tagname ui5-li-notification\n * @appenddocs sap.ui.webc.fiori.NotificationAction\n * @since 1.0.0-rc.8\n * @implements sap.ui.webc.fiori.INotificationListItem, sap.ui.webc.main.IListItem\n * @public\n */\n@customElement({\n\ttag: \"ui5-li-notification\",\n\tlanguageAware: true,\n\tstyles: NotificationListItemCss,\n\ttemplate: NotificationListItemTemplate,\n\tdependencies: [\n\t\tButton,\n\t\tIcon,\n\t\tBusyIndicator,\n\t\tLink,\n\t\tPopover,\n\t],\n})\n\n@event(\"_press\")\nclass NotificationListItem extends NotificationListItemBase {\n\t/**\n\t* Defines if the <code>titleText</code> and <code>description</code> should wrap,\n\t* they truncate by default.\n\t*\n\t* <br><br>\n\t* <b>Note:</b> by default the <code>titleText</code> and <code>description</code>,\n\t* and a <code>ShowMore/Less</code> button would be displayed.\n\t* @type {sap.ui.webc.main.types.WrappingType}\n\t* @defaultvalue \"None\"\n\t* @public\n\t* @name sap.ui.webc.fiori.NotificationListItem.prototype.wrappingType\n\t* @since 1.0.0-rc.15\n\t*/\n\t@property({ type: WrappingType, defaultValue: WrappingType.None })\n\twrappingType!: `${WrappingType}`;\n\n\t/**\n\t* Defines the state of the <code>titleText</code> and <code>description</code>,\n\t* if less or more information is displayed.\n\t* @private\n\t*/\n\t@property({ type: Boolean })\n\t_showMorePressed!: boolean;\n\n\t/**\n\t* Defines the visibility of the <code>showMore</code> button.\n\t* @private\n\t*/\n\t@property({ type: Boolean })\n\t_showMore!: boolean;\n\n\t/**\n\t* Defines the avatar, displayed in the <code>ui5-li-notification</code>.\n\t*\n\t* <br><br>\n\t* <b>Note:</b> Consider using the <code>ui5-avatar</code> to display icons, initials or images.\n\t* <br>\n\t* <b>Note:</b>In order to be complaint with the UX guidlines and for best experience,\n\t* we recommend using avatars with 2rem X 2rem in size (32px X 32px). In case you are using the <code>ui5-avatar</code>\n\t* you can set its <code>size</code> property to <code>XS</code> to get the required size - <code><ui5-avatar size=\"XS\"></ui5-avatar></code>.\n\t*\n\t* @type {sap.ui.webc.main.IAvatar}\n\t* @slot\n\t* @public\n\t* @name sap.ui.webc.fiori.NotificationListItem.prototype.avatar\n\t*/\n\t@slot()\n\tavatar!: Array<HTMLElement>;\n\n\t/**\n\t* Defines the elements, displayed in the footer of the of the component.\n\t* @type {HTMLElement[]}\n\t* @slot\n\t* @public\n\t* @name sap.ui.webc.fiori.NotificationListItem.prototype.footnotes\n\t*/\n\t@slot({ type: HTMLElement, individualSlots: true })\n\tfootnotes!: Array<HTMLElement>;\n\n\t/**\n\t* Defines the content of the <code>ui5-li-notification</code>,\n\t* usually a description of the notification.\n\t*\n\t* <br><br>\n\t* <b>Note:</b> Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design.\n\t*\n\t* @type {Node[]}\n\t* @slot description\n\t* @public\n\t* @name sap.ui.webc.fiori.NotificationListItem.prototype.default\n\t*/\n\t@slot({ type: Node, \"default\": true })\n\tdescription!: Array<Node>;\n\n\t_titleTextOverflowHeight: number;\n\t_descOverflowHeight: number;\n\t_onResizeBound: ResizeObserverCallback;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\t// the titleText overflow height\n\t\tthis._titleTextOverflowHeight = 0;\n\n\t\t// the description overflow height\n\t\tthis._descOverflowHeight = 0;\n\n\t\t// the resize handler\n\t\tthis._onResizeBound = this.onResize.bind(this);\n\t}\n\n\tonEnterDOM() {\n\t\tResizeHandler.register(this, this._onResizeBound);\n\t}\n\n\tonExitDOM() {\n\t\tResizeHandler.deregister(this, this._onResizeBound);\n\t}\n\n\tget hasDesc() {\n\t\treturn !!this.description.length;\n\t}\n\n\tget hasFootNotes() {\n\t\treturn !!this.footnotes.length;\n\t}\n\n\tget showMoreText() {\n\t\tif (this._showMorePressed) {\n\t\t\treturn NotificationListItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_SHOW_LESS);\n\t\t}\n\n\t\treturn NotificationListItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_SHOW_MORE);\n\t}\n\n\tget overflowBtnAccessibleName() {\n\t\treturn NotificationListItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_OVERLOW_BTN_TITLE);\n\t}\n\n\tget closeBtnAccessibleName() {\n\t\treturn NotificationListItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_CLOSE_BTN_TITLE);\n\t}\n\n\tget hideShowMore() {\n\t\tif (this.wrappingType === WrappingType.None && this._showMore) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tget descriptionDOM() {\n\t\treturn this.shadowRoot!.querySelector<HTMLElement>(\".ui5-nli-description\");\n\t}\n\n\tget titleTextDOM() {\n\t\treturn this.shadowRoot!.querySelector<HTMLElement>(\".ui5-nli-title-text\");\n\t}\n\n\tget titleTextHeight() {\n\t\treturn (this.titleTextDOM as HTMLElement).offsetHeight;\n\t}\n\n\tget descriptionHeight() {\n\t\treturn (this.descriptionDOM as HTMLElement).offsetHeight;\n\t}\n\n\tget titleTextOverflows() {\n\t\tconst titleText = this.titleTextDOM;\n\n\t\tif (!titleText) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn titleText.offsetHeight < titleText.scrollHeight;\n\t}\n\n\tget descriptionOverflows() {\n\t\tconst description = this.descriptionDOM;\n\n\t\tif (!description) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn description.offsetHeight < description.scrollHeight;\n\t}\n\n\tget footerItems() {\n\t\treturn this.footnotes.map((el, idx, arr) => {\n\t\t\treturn {\n\t\t\t\tslotName: (el as Footnote)._individualSlot,\n\t\t\t\tshowDivider: idx !== arr.length - 1,\n\t\t\t};\n\t\t});\n\t}\n\n\tget ariaLabelledBy() {\n\t\tconst id = this._id;\n\t\tconst ids = [];\n\n\t\tif (this.hasTitleText) {\n\t\t\tids.push(`${id}-title-text`);\n\t\t}\n\t\tif (this.hasDesc) {\n\t\t\tids.push(`${id}-description`);\n\t\t}\n\n\t\tif (this.hasFootNotes) {\n\t\t\tids.push(`${id}-footer`);\n\t\t}\n\n\t\tids.push(`${id}-invisibleText`);\n\n\t\treturn ids.join(\" \");\n\t}\n\n\tget priorityText() {\n\t\tif (this.priority === Priority.High) {\n\t\t\treturn NotificationListItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_HIGH_PRIORITY_TXT);\n\t\t}\n\n\t\tif (this.priority === Priority.Medium) {\n\t\t\treturn NotificationListItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_MEDIUM_PRIORITY_TXT);\n\t\t}\n\n\t\tif (this.priority === Priority.Low) {\n\t\t\treturn NotificationListItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_LOW_PRIORITY_TXT);\n\t\t}\n\n\t\treturn \"\";\n\t}\n\n\tget accInvisibleText() {\n\t\tconst notificationText = NotificationListItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_TXT);\n\t\tconst readText = this.read ? NotificationListItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_READ) : NotificationListItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_UNREAD);\n\t\tconst priorityText = this.priorityText;\n\n\t\treturn `${notificationText} ${readText} ${priorityText}`;\n\t}\n\n\t/**\n\t * Event handlers\n\t */\n\t_onclick(e: MouseEvent) {\n\t\tthis.fireItemPress(e);\n\t}\n\n\t_onShowMoreClick(e: MouseEvent) {\n\t\te.preventDefault();\n\t\tthis._showMorePressed = !this._showMorePressed;\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tsuper._onkeydown(e);\n\n\t\tif (isEnter(e)) {\n\t\t\tthis.fireItemPress(e);\n\t\t}\n\t}\n\n\t_onkeyup(e: KeyboardEvent) {\n\t\tsuper._onkeyup(e);\n\n\t\tconst space = isSpace(e);\n\n\t\tif (space && getEventMark(e) === \"link\") {\n\t\t\tthis._onShowMoreClick(e as unknown as MouseEvent);\n\t\t\treturn;\n\t\t}\n\n\t\tif (space) {\n\t\t\tthis.fireItemPress(e);\n\t\t}\n\t}\n\n\t/**\n\t * Private\n\t */\n\tfireItemPress(e: Event) {\n\t\tif (getEventMark(e) === \"button\" || getEventMark(e) === \"link\") {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.fireEvent<NotificationListItemPressEventDetail>(\"_press\", { item: this });\n\t}\n\n\tonResize() {\n\t\tif (this.wrappingType === WrappingType.Normal) {\n\t\t\tthis._showMore = false;\n\t\t\treturn;\n\t\t}\n\n\t\tconst titleTextWouldOverflow = this.titleTextHeight > this._titleTextOverflowHeight;\n\t\tconst descWouldOverflow = this.hasDesc && this.descriptionHeight > this._descOverflowHeight;\n\t\tconst overflows = titleTextWouldOverflow || descWouldOverflow;\n\n\t\tif (this._showMorePressed && overflows) {\n\t\t\tthis._showMore = true;\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.titleTextOverflows || this.descriptionOverflows) {\n\t\t\tthis._titleTextOverflowHeight = this.titleTextHeight;\n\t\t\tthis._descOverflowHeight = this.hasDesc ? this.descriptionHeight : 0;\n\t\t\tthis._showMore = true;\n\t\t\treturn;\n\t\t}\n\n\t\tthis._showMore = false;\n\t}\n}\n\nNotificationListItem.define();\n\nexport default NotificationListItem;\nexport type {\n\tNotificationListItemPressEventDetail,\n\tNotificationListItemCloseEventDetail,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"NotificationListItem.js","sourceRoot":"","sources":["../src/NotificationListItem.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,aAAa,MAAM,wDAAwD,CAAC;AAEnF,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,QAAQ,MAAM,2CAA2C,CAAC;AACjE,OAAO,MAAM,MAAM,mCAAmC,CAAC;AACvD,OAAO,aAAa,MAAM,0CAA0C,CAAC;AACrE,OAAO,IAAI,MAAM,iCAAiC,CAAC;AACnD,OAAO,IAAI,MAAM,iCAAiC,CAAC;AACnD,OAAO,OAAO,MAAM,oCAAoC,CAAC;AACzD,OAAO,YAAY,MAAM,+CAA+C,CAAC;AACzE,OAAO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,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;8DACD;AAO3B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;uDACR;AAepB;IADC,IAAI,EAAE;oDACqB;AAO5B;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC;uDACpB;AAY/B;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;yDACZ;AA9DrB,oBAAoB;IAfzB,aAAa,CAAC;QACd,GAAG,EAAE,qBAAqB;QAC1B,aAAa,EAAE,IAAI;QACnB,MAAM,EAAE,uBAAuB;QAC/B,QAAQ,EAAE,4BAA4B;QACtC,YAAY,EAAE;YACb,MAAM;YACN,IAAI;YACJ,aAAa;YACb,IAAI;YACJ,OAAO;SACP;KACD,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC;GACV,oBAAoB,CAwRzB;AAED,oBAAoB,CAAC,MAAM,EAAE,CAAC;AAE9B,eAAe,oBAAoB,CAAC","sourcesContent":["import { isSpace, isEnter } from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport ResizeHandler from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport type { ResizeObserverCallback } from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport { getEventMark } from \"@ui5/webcomponents-base/dist/MarkedEvents.js\";\nimport Priority from \"@ui5/webcomponents/dist/types/Priority.js\";\nimport Button from \"@ui5/webcomponents/dist/Button.js\";\nimport BusyIndicator from \"@ui5/webcomponents/dist/BusyIndicator.js\";\nimport Link from \"@ui5/webcomponents/dist/Link.js\";\nimport Icon from \"@ui5/webcomponents/dist/Icon.js\";\nimport Popover from \"@ui5/webcomponents/dist/Popover.js\";\nimport WrappingType from \"@ui5/webcomponents/dist/types/WrappingType.js\";\nimport NotificationListItemBase from \"./NotificationListItemBase.js\";\n\n// Icons\nimport \"@ui5/webcomponents-icons/dist/overflow.js\";\nimport \"@ui5/webcomponents-icons/dist/decline.js\";\n\n// Texts\nimport {\n\tNOTIFICATION_LIST_ITEM_TXT,\n\tNOTIFICATION_LIST_ITEM_READ,\n\tNOTIFICATION_LIST_ITEM_UNREAD,\n\tNOTIFICATION_LIST_ITEM_SHOW_MORE,\n\tNOTIFICATION_LIST_ITEM_SHOW_LESS,\n\tNOTIFICATION_LIST_ITEM_HIGH_PRIORITY_TXT,\n\tNOTIFICATION_LIST_ITEM_MEDIUM_PRIORITY_TXT,\n\tNOTIFICATION_LIST_ITEM_LOW_PRIORITY_TXT,\n\tNOTIFICATION_LIST_ITEM_OVERLOW_BTN_TITLE,\n\tNOTIFICATION_LIST_ITEM_CLOSE_BTN_TITLE,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Templates\nimport NotificationListItemTemplate from \"./generated/templates/NotificationListItemTemplate.lit.js\";\n\n// Styles\nimport NotificationListItemCss from \"./generated/themes/NotificationListItem.css.js\";\n\nimport type { NotificationListItemBaseCloseEventDetail as NotificationListItemCloseEventDetail } from \"./NotificationListItemBase.js\";\n\ntype NotificationListItemPressEventDetail = {\n\titem: NotificationListItem,\n};\n\ntype Footnote = Record<string, any>;\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n * The <code>ui5-li-notification</code> is a type of list item, meant to display notifications.\n * <br>\n *\n * The component has a rich set of various properties that allows the user to set <code>avatar</code>, <code>titleText</code>, descriptive <code>content</code>\n * and <code>footnotes</code> to fully describe a notification.\n * <br>\n *\n * The user can:\n * <ul>\n * <li>display a <code>Close</code> button</li>\n * <li>can control whether the <code>titleText</code> and <code>description</code> should wrap or truncate\n * and display a <code>ShowMore</code> button to switch between less and more information</li>\n * <li>add custom actions by using the <code>ui5-notification-action</code> component</li>\n * </ul>\n *\n * <h3>Usage</h3>\n * The component can be used in a standard <code>ui5-list</code>.\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents/dist/NotificationListItem.js\";</code>\n * <br>\n * <code>import \"@ui5/webcomponents/dist/NotificationAction.js\";</code> (optional)\n * @constructor\n * @extends NotificationListItemBase\n * @since 1.0.0-rc.8\n * @public\n * @csspart title-text - Used to style the titleText of the notification list item\n */\n@customElement({\n\ttag: \"ui5-li-notification\",\n\tlanguageAware: true,\n\tstyles: NotificationListItemCss,\n\ttemplate: NotificationListItemTemplate,\n\tdependencies: [\n\t\tButton,\n\t\tIcon,\n\t\tBusyIndicator,\n\t\tLink,\n\t\tPopover,\n\t],\n})\n\n@event(\"_press\")\nclass NotificationListItem extends NotificationListItemBase {\n\t/**\n\t* Defines if the <code>titleText</code> and <code>description</code> should wrap,\n\t* they truncate by default.\n\t*\n\t* <br><br>\n\t* <b>Note:</b> by default the <code>titleText</code> and <code>description</code>,\n\t* and a <code>ShowMore/Less</code> button would be displayed.\n\t* @default \"None\"\n\t* @public\n\t* @since 1.0.0-rc.15\n\t*/\n\t@property({ type: WrappingType, defaultValue: WrappingType.None })\n\twrappingType!: `${WrappingType}`;\n\n\t/**\n\t* Defines the state of the <code>titleText</code> and <code>description</code>,\n\t* if less or more information is displayed.\n\t* @private\n\t*/\n\t@property({ type: Boolean })\n\t_showMorePressed!: boolean;\n\n\t/**\n\t* Defines the visibility of the <code>showMore</code> button.\n\t* @private\n\t*/\n\t@property({ type: Boolean })\n\t_showMore!: boolean;\n\n\t/**\n\t* Defines the avatar, displayed in the <code>ui5-li-notification</code>.\n\t*\n\t* <br><br>\n\t* <b>Note:</b> Consider using the <code>ui5-avatar</code> to display icons, initials or images.\n\t* <br>\n\t* <b>Note:</b>In order to be complaint with the UX guidlines and for best experience,\n\t* we recommend using avatars with 2rem X 2rem in size (32px X 32px). In case you are using the <code>ui5-avatar</code>\n\t* you can set its <code>size</code> property to <code>XS</code> to get the required size - <code><ui5-avatar size=\"XS\"></ui5-avatar></code>.\n\t*\n\t* @public\n\t*/\n\t@slot()\n\tavatar!: Array<HTMLElement>;\n\n\t/**\n\t* Defines the elements, displayed in the footer of the of the component.\n\t* @public\n\t*/\n\t@slot({ type: HTMLElement, individualSlots: true })\n\tfootnotes!: Array<HTMLElement>;\n\n\t/**\n\t* Defines the content of the <code>ui5-li-notification</code>,\n\t* usually a description of the notification.\n\t*\n\t* <br><br>\n\t* <b>Note:</b> Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design.\n\t*\n\t* @public\n\t*/\n\t@slot({ type: Node, \"default\": true })\n\tdescription!: Array<Node>;\n\n\t_titleTextOverflowHeight: number;\n\t_descOverflowHeight: number;\n\t_onResizeBound: ResizeObserverCallback;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\t// the titleText overflow height\n\t\tthis._titleTextOverflowHeight = 0;\n\n\t\t// the description overflow height\n\t\tthis._descOverflowHeight = 0;\n\n\t\t// the resize handler\n\t\tthis._onResizeBound = this.onResize.bind(this);\n\t}\n\n\tonEnterDOM() {\n\t\tResizeHandler.register(this, this._onResizeBound);\n\t}\n\n\tonExitDOM() {\n\t\tResizeHandler.deregister(this, this._onResizeBound);\n\t}\n\n\tget hasDesc() {\n\t\treturn !!this.description.length;\n\t}\n\n\tget hasFootNotes() {\n\t\treturn !!this.footnotes.length;\n\t}\n\n\tget showMoreText() {\n\t\tif (this._showMorePressed) {\n\t\t\treturn NotificationListItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_SHOW_LESS);\n\t\t}\n\n\t\treturn NotificationListItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_SHOW_MORE);\n\t}\n\n\tget overflowBtnAccessibleName() {\n\t\treturn NotificationListItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_OVERLOW_BTN_TITLE);\n\t}\n\n\tget closeBtnAccessibleName() {\n\t\treturn NotificationListItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_CLOSE_BTN_TITLE);\n\t}\n\n\tget hideShowMore() {\n\t\tif (this.wrappingType === WrappingType.None && this._showMore) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tget descriptionDOM() {\n\t\treturn this.shadowRoot!.querySelector<HTMLElement>(\".ui5-nli-description\");\n\t}\n\n\tget titleTextDOM() {\n\t\treturn this.shadowRoot!.querySelector<HTMLElement>(\".ui5-nli-title-text\");\n\t}\n\n\tget titleTextHeight() {\n\t\treturn (this.titleTextDOM as HTMLElement).offsetHeight;\n\t}\n\n\tget descriptionHeight() {\n\t\treturn (this.descriptionDOM as HTMLElement).offsetHeight;\n\t}\n\n\tget titleTextOverflows() {\n\t\tconst titleText = this.titleTextDOM;\n\n\t\tif (!titleText) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn titleText.offsetHeight < titleText.scrollHeight;\n\t}\n\n\tget descriptionOverflows() {\n\t\tconst description = this.descriptionDOM;\n\n\t\tif (!description) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn description.offsetHeight < description.scrollHeight;\n\t}\n\n\tget footerItems() {\n\t\treturn this.footnotes.map((el, idx, arr) => {\n\t\t\treturn {\n\t\t\t\tslotName: (el as Footnote)._individualSlot,\n\t\t\t\tshowDivider: idx !== arr.length - 1,\n\t\t\t};\n\t\t});\n\t}\n\n\tget ariaLabelledBy() {\n\t\tconst id = this._id;\n\t\tconst ids = [];\n\n\t\tif (this.hasTitleText) {\n\t\t\tids.push(`${id}-title-text`);\n\t\t}\n\t\tif (this.hasDesc) {\n\t\t\tids.push(`${id}-description`);\n\t\t}\n\n\t\tif (this.hasFootNotes) {\n\t\t\tids.push(`${id}-footer`);\n\t\t}\n\n\t\tids.push(`${id}-invisibleText`);\n\n\t\treturn ids.join(\" \");\n\t}\n\n\tget priorityText() {\n\t\tif (this.priority === Priority.High) {\n\t\t\treturn NotificationListItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_HIGH_PRIORITY_TXT);\n\t\t}\n\n\t\tif (this.priority === Priority.Medium) {\n\t\t\treturn NotificationListItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_MEDIUM_PRIORITY_TXT);\n\t\t}\n\n\t\tif (this.priority === Priority.Low) {\n\t\t\treturn NotificationListItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_LOW_PRIORITY_TXT);\n\t\t}\n\n\t\treturn \"\";\n\t}\n\n\tget accInvisibleText() {\n\t\tconst notificationText = NotificationListItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_TXT);\n\t\tconst readText = this.read ? NotificationListItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_READ) : NotificationListItem.i18nFioriBundle.getText(NOTIFICATION_LIST_ITEM_UNREAD);\n\t\tconst priorityText = this.priorityText;\n\n\t\treturn `${notificationText} ${readText} ${priorityText}`;\n\t}\n\n\t/**\n\t * Event handlers\n\t */\n\t_onclick(e: MouseEvent) {\n\t\tthis.fireItemPress(e);\n\t}\n\n\t_onShowMoreClick(e: MouseEvent) {\n\t\te.preventDefault();\n\t\tthis._showMorePressed = !this._showMorePressed;\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tsuper._onkeydown(e);\n\n\t\tif (isEnter(e)) {\n\t\t\tthis.fireItemPress(e);\n\t\t}\n\t}\n\n\t_onkeyup(e: KeyboardEvent) {\n\t\tsuper._onkeyup(e);\n\n\t\tconst space = isSpace(e);\n\n\t\tif (space && getEventMark(e) === \"link\") {\n\t\t\tthis._onShowMoreClick(e as unknown as MouseEvent);\n\t\t\treturn;\n\t\t}\n\n\t\tif (space) {\n\t\t\tthis.fireItemPress(e);\n\t\t}\n\t}\n\n\t/**\n\t * Private\n\t */\n\tfireItemPress(e: Event) {\n\t\tif (getEventMark(e) === \"button\" || getEventMark(e) === \"link\") {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.fireEvent<NotificationListItemPressEventDetail>(\"_press\", { item: this });\n\t}\n\n\tonResize() {\n\t\tif (this.wrappingType === WrappingType.Normal) {\n\t\t\tthis._showMore = false;\n\t\t\treturn;\n\t\t}\n\n\t\tconst titleTextWouldOverflow = this.titleTextHeight > this._titleTextOverflowHeight;\n\t\tconst descWouldOverflow = this.hasDesc && this.descriptionHeight > this._descOverflowHeight;\n\t\tconst overflows = titleTextWouldOverflow || descWouldOverflow;\n\n\t\tif (this._showMorePressed && overflows) {\n\t\t\tthis._showMore = true;\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.titleTextOverflows || this.descriptionOverflows) {\n\t\t\tthis._titleTextOverflowHeight = this.titleTextHeight;\n\t\t\tthis._descOverflowHeight = this.hasDesc ? this.descriptionHeight : 0;\n\t\t\tthis._showMore = true;\n\t\t\treturn;\n\t\t}\n\n\t\tthis._showMore = false;\n\t}\n}\n\nNotificationListItem.define();\n\nexport default NotificationListItem;\nexport type {\n\tNotificationListItemPressEventDetail,\n\tNotificationListItemCloseEventDetail,\n};\n"]}
|
|
@@ -16,45 +16,29 @@ type NotificationListItemBaseCloseEventDetail = {
|
|
|
16
16
|
*
|
|
17
17
|
* The base class of the <code>NotificationListItem</code> and <code>NotificationListGroupItem</code>.
|
|
18
18
|
*
|
|
19
|
-
* @abstract
|
|
20
19
|
* @constructor
|
|
21
|
-
* @
|
|
22
|
-
* @alias sap.ui.webc.fiori.NotificationListItemBase
|
|
23
|
-
* @extends sap.ui.webc.main.ListItemBase
|
|
20
|
+
* @extends ListItemBase
|
|
24
21
|
* @since 1.0.0-rc.8
|
|
25
22
|
* @public
|
|
26
23
|
*/
|
|
27
|
-
/**
|
|
28
|
-
* Fired when the <code>Close</code> button is pressed.
|
|
29
|
-
*
|
|
30
|
-
* @event sap.ui.webc.fiori.NotificationListItemBase#close
|
|
31
|
-
* @param {HTMLElement} item the closed item.
|
|
32
|
-
* @public
|
|
33
|
-
*/
|
|
34
24
|
declare class NotificationListItemBase extends ListItemBase {
|
|
35
25
|
/**
|
|
36
26
|
* Defines the <code>titleText</code> of the item.
|
|
37
|
-
* @
|
|
38
|
-
* @defaultvalue ""
|
|
27
|
+
* @default ""
|
|
39
28
|
* @public
|
|
40
|
-
* @name sap.ui.webc.fiori.NotificationListItemBase.prototype.titleText
|
|
41
29
|
*/
|
|
42
30
|
titleText: string;
|
|
43
31
|
/**
|
|
44
32
|
* Defines the <code>priority</code> of the item.
|
|
45
33
|
*
|
|
46
|
-
* @
|
|
47
|
-
* @defaultvalue "None"
|
|
34
|
+
* @default "None"
|
|
48
35
|
* @public
|
|
49
|
-
* @name sap.ui.webc.fiori.NotificationListItemBase.prototype.priority
|
|
50
36
|
*/
|
|
51
37
|
priority: `${Priority}`;
|
|
52
38
|
/**
|
|
53
39
|
* Defines if the <code>close</code> button would be displayed.
|
|
54
|
-
* @
|
|
55
|
-
* @defaultvalue false
|
|
40
|
+
* @default false
|
|
56
41
|
* @public
|
|
57
|
-
* @name sap.ui.webc.fiori.NotificationListItemBase.prototype.showClose
|
|
58
42
|
*/
|
|
59
43
|
showClose: boolean;
|
|
60
44
|
/**
|
|
@@ -62,28 +46,22 @@ declare class NotificationListItemBase extends ListItemBase {
|
|
|
62
46
|
* <br><br>
|
|
63
47
|
* <b>Note:</b> if set to <code>false</code> the <code>titleText</code> has bold font,
|
|
64
48
|
* if set to true - it has a normal font.
|
|
65
|
-
* @
|
|
66
|
-
* @defaultvalue false
|
|
49
|
+
* @default false
|
|
67
50
|
* @public
|
|
68
|
-
* @name sap.ui.webc.fiori.NotificationListItemBase.prototype.read
|
|
69
51
|
*/
|
|
70
52
|
read: boolean;
|
|
71
53
|
/**
|
|
72
54
|
* Defines if a busy indicator would be displayed over the item.
|
|
73
|
-
* @
|
|
74
|
-
* @defaultvalue false
|
|
55
|
+
* @default false
|
|
75
56
|
* @public
|
|
76
|
-
* @name sap.ui.webc.fiori.NotificationListItemBase.prototype.busy
|
|
77
57
|
* @since 1.0.0-rc.8
|
|
78
58
|
*/
|
|
79
59
|
busy: boolean;
|
|
80
60
|
/**
|
|
81
61
|
* Defines the delay in milliseconds, after which the busy indicator will show up for this component.
|
|
82
62
|
*
|
|
83
|
-
* @
|
|
84
|
-
* @defaultValue 1000
|
|
63
|
+
* @default 1000
|
|
85
64
|
* @public
|
|
86
|
-
* @name sap.ui.webc.fiori.NotificationListItemBase.prototype.busyDelay
|
|
87
65
|
*/
|
|
88
66
|
busyDelay: number;
|
|
89
67
|
/**
|
|
@@ -91,10 +69,7 @@ declare class NotificationListItemBase extends ListItemBase {
|
|
|
91
69
|
* <br><br>
|
|
92
70
|
* <b>Note:</b> use the <code>ui5-notification-action</code> component.
|
|
93
71
|
*
|
|
94
|
-
* @type {sap.ui.webc.fiori.INotificationAction[]}
|
|
95
|
-
* @slot
|
|
96
72
|
* @public
|
|
97
|
-
* @name sap.ui.webc.fiori.NotificationListItemBase.prototype.actions
|
|
98
73
|
*/
|
|
99
74
|
actions: Array<NotificationAction>;
|
|
100
75
|
static i18nFioriBundle: I18nBundle;
|
|
@@ -39,21 +39,11 @@ const ICON_PER_PRIORITY = {
|
|
|
39
39
|
*
|
|
40
40
|
* The base class of the <code>NotificationListItem</code> and <code>NotificationListGroupItem</code>.
|
|
41
41
|
*
|
|
42
|
-
* @abstract
|
|
43
42
|
* @constructor
|
|
44
|
-
* @
|
|
45
|
-
* @alias sap.ui.webc.fiori.NotificationListItemBase
|
|
46
|
-
* @extends sap.ui.webc.main.ListItemBase
|
|
43
|
+
* @extends ListItemBase
|
|
47
44
|
* @since 1.0.0-rc.8
|
|
48
45
|
* @public
|
|
49
46
|
*/
|
|
50
|
-
/**
|
|
51
|
-
* Fired when the <code>Close</code> button is pressed.
|
|
52
|
-
*
|
|
53
|
-
* @event sap.ui.webc.fiori.NotificationListItemBase#close
|
|
54
|
-
* @param {HTMLElement} item the closed item.
|
|
55
|
-
* @public
|
|
56
|
-
*/
|
|
57
47
|
let NotificationListItemBase = NotificationListItemBase_1 = class NotificationListItemBase extends ListItemBase {
|
|
58
48
|
get hasTitleText() {
|
|
59
49
|
return !!this.titleText.length;
|
|
@@ -160,14 +150,24 @@ __decorate([
|
|
|
160
150
|
slot()
|
|
161
151
|
], NotificationListItemBase.prototype, "actions", void 0);
|
|
162
152
|
NotificationListItemBase = NotificationListItemBase_1 = __decorate([
|
|
153
|
+
customElement({
|
|
154
|
+
staticAreaStyles: NotificationOverflowActionsPopoverCss,
|
|
155
|
+
staticAreaTemplate: NotificationOverflowActionsPopoverTemplate,
|
|
156
|
+
})
|
|
157
|
+
/**
|
|
158
|
+
* Fired when the <code>Close</code> button is pressed.
|
|
159
|
+
*
|
|
160
|
+
* @param {HTMLElement} item the closed item.
|
|
161
|
+
* @public
|
|
162
|
+
*/
|
|
163
|
+
,
|
|
163
164
|
event("close", {
|
|
164
165
|
detail: {
|
|
166
|
+
/**
|
|
167
|
+
* @public
|
|
168
|
+
*/
|
|
165
169
|
item: HTMLElement,
|
|
166
170
|
},
|
|
167
|
-
}),
|
|
168
|
-
customElement({
|
|
169
|
-
staticAreaStyles: NotificationOverflowActionsPopoverCss,
|
|
170
|
-
staticAreaTemplate: NotificationOverflowActionsPopoverTemplate,
|
|
171
171
|
})
|
|
172
172
|
], NotificationListItemBase);
|
|
173
173
|
export default NotificationListItemBase;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationListItemBase.js","sourceRoot":"","sources":["../src/NotificationListItemBase.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAC/D,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,YAAY,MA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,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;2DAClC;AAanB;IADC,IAAI,EAAE;yDAC4B;AA9E9B,wBAAwB;IAT7B,KAAK,CAAC,OAAO,EAAE;QACd,MAAM,EAAE;YACR,IAAI,EAAE,WAAW;SACjB;KACD,CAAC;IACD,aAAa,CAAC;QACd,gBAAgB,EAAE,qCAAqC;QACvD,kBAAkB,EAAE,0CAA0C;KAC9D,CAAC;GACI,wBAAwB,CAyL7B;AAED,eAAe,wBAAwB,CAAC","sourcesContent":["import customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport { isSpace } from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport { getEventMark } from \"@ui5/webcomponents-base/dist/MarkedEvents.js\";\nimport ListItemBase from \"@ui5/webcomponents/dist/ListItemBase.js\";\nimport Integer from \"@ui5/webcomponents-base/dist/types/Integer.js\";\nimport Priority from \"@ui5/webcomponents/dist/types/Priority.js\";\nimport type Popover from \"@ui5/webcomponents/dist/Popover.js\";\nimport type NotificationAction from \"./NotificationAction.js\";\n\n// Icons\nimport \"@ui5/webcomponents-icons/dist/decline.js\";\nimport \"@ui5/webcomponents-icons/dist/message-success.js\";\nimport \"@ui5/webcomponents-icons/dist/message-error.js\";\nimport \"@ui5/webcomponents-icons/dist/message-warning.js\";\nimport \"@ui5/webcomponents-icons/dist/overflow.js\";\n\n// Templates\nimport NotificationOverflowActionsPopoverTemplate from \"./generated/templates/NotificationOverflowActionsPopoverTemplate.lit.js\";\n\n// Styles\nimport NotificationOverflowActionsPopoverCss from \"./generated/themes/NotificationOverflowActionsPopover.css.js\";\n\n/**\n * Defines the icons corresponding to the notification's priority.\n */\nconst ICON_PER_PRIORITY = {\n\t[Priority.High]: \"message-error\",\n\t[Priority.Medium]: \"message-warning\",\n\t[Priority.Low]: \"message-success\",\n\t[Priority.None]: \"\",\n};\n\ntype NotificationListItemBaseCloseEventDetail = {\n\titem: HTMLElement,\n};\n\n/**\n * @class\n *\n * The base class of the <code>NotificationListItem</code> and <code>NotificationListGroupItem</code>.\n *\n * @abstract\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.fiori.NotificationListItemBase\n * @extends sap.ui.webc.main.ListItemBase\n * @since 1.0.0-rc.8\n * @public\n */\n\n/**\n * Fired when the <code>Close</code> button is pressed.\n *\n * @event sap.ui.webc.fiori.NotificationListItemBase#close\n * @param {HTMLElement} item the closed item.\n * @public\n */\n@event(\"close\", {\n\t detail: {\n\t\titem: HTMLElement,\n\t},\n})\n@customElement({\n\tstaticAreaStyles: NotificationOverflowActionsPopoverCss,\n\tstaticAreaTemplate: NotificationOverflowActionsPopoverTemplate,\n})\nclass NotificationListItemBase extends ListItemBase {\n\t/**\n\t * Defines the <code>titleText</code> of the item.\n\t * @type {string}\n\t * @defaultvalue \"\"\n\t * @public\n\t * @name sap.ui.webc.fiori.NotificationListItemBase.prototype.titleText\n\t */\n\t@property()\n\ttitleText!: string;\n\n\t/**\n\t * Defines the <code>priority</code> of the item.\n\t *\n\t * @type {sap.ui.webc.main.types.Priority}\n\t * @defaultvalue \"None\"\n\t * @public\n\t * @name sap.ui.webc.fiori.NotificationListItemBase.prototype.priority\n\t */\n\t@property({ type: Priority, defaultValue: Priority.None })\n\tpriority!: `${Priority}`;\n\n\t/**\n\t * Defines if the <code>close</code> button would be displayed.\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @public\n\t * @name sap.ui.webc.fiori.NotificationListItemBase.prototype.showClose\n\t */\n\t@property({ type: Boolean })\n\tshowClose!: boolean;\n\n\t/**\n\t * Defines if the <code>notification</code> is new or has been already read.\n\t * <br><br>\n\t * <b>Note:</b> if set to <code>false</code> the <code>titleText</code> has bold font,\n\t * if set to true - it has a normal font.\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @public\n\t * @name sap.ui.webc.fiori.NotificationListItemBase.prototype.read\n\t */\n\t@property({ type: Boolean })\n\tread!: boolean;\n\n\t/**\n\t * Defines if a busy indicator would be displayed over the item.\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @public\n\t * @name sap.ui.webc.fiori.NotificationListItemBase.prototype.busy\n\t * @since 1.0.0-rc.8\n\t */\n\t@property({ type: Boolean })\n\tbusy!: boolean;\n\n\t/**\n\t * Defines the delay in milliseconds, after which the busy indicator will show up for this component.\n\t *\n\t * @type {sap.ui.webc.base.types.Integer}\n\t * @defaultValue 1000\n\t * @public\n\t * @name sap.ui.webc.fiori.NotificationListItemBase.prototype.busyDelay\n\t */\n\t@property({ validator: Integer, defaultValue: 1000 })\n\tbusyDelay!: number;\n\n\t/**\n\t * Defines the actions, displayed in the top-right area.\n\t * <br><br>\n\t * <b>Note:</b> use the <code>ui5-notification-action</code> component.\n\t *\n\t * @type {sap.ui.webc.fiori.INotificationAction[]}\n\t * @slot\n\t * @public\n\t * @name sap.ui.webc.fiori.NotificationListItemBase.prototype.actions\n\t */\n\t@slot()\n\tactions!: Array<NotificationAction>\n\n\tstatic i18nFioriBundle: I18nBundle;\n\n\tget hasTitleText() {\n\t\treturn !!this.titleText.length;\n\t}\n\n\tget hasPriority() {\n\t\treturn this.priority !== Priority.None;\n\t}\n\n\tget priorityIcon() {\n\t\treturn ICON_PER_PRIORITY[this.priority];\n\t}\n\n\tget overflowButtonDOM() {\n\t\treturn this.shadowRoot!.querySelector<HTMLElement>(\".ui5-nli-overflow-btn\")!;\n\t}\n\n\tget showOverflow() {\n\t\treturn !!this.overflowActions.length;\n\t}\n\n\tget overflowActions() {\n\t\tif (this.actions.length <= 1) {\n\t\t\treturn [];\n\t\t}\n\n\t\treturn this.actionsInfo;\n\t}\n\n\tget standardActions() {\n\t\tif (this.actions.length > 1) {\n\t\t\treturn [];\n\t\t}\n\n\t\treturn this.actionsInfo;\n\t}\n\n\tget actionsInfo() {\n\t\treturn this.actions.map(action => {\n\t\t\treturn {\n\t\t\t\ticon: action.icon,\n\t\t\t\ttext: action.text,\n\t\t\t\tpress: this._onCustomActionClick.bind(this),\n\t\t\t\trefItemid: action._id,\n\t\t\t\tdisabled: action.disabled ? true : undefined,\n\t\t\t\tdesign: action.design,\n\t\t\t};\n\t\t});\n\t}\n\n\t/**\n\t * Event handlers\n\t */\n\t_onBtnCloseClick() {\n\t\tthis.fireEvent<NotificationListItemBaseCloseEventDetail>(\"close\", { item: this });\n\t}\n\n\t_onBtnOverflowClick() {\n\t\tthis.openOverflow();\n\t}\n\n\t_onCustomActionClick(e: MouseEvent) {\n\t\tconst refItemId = (e.target as Element).getAttribute(\"data-ui5-external-action-item-id\");\n\n\t\tif (refItemId) {\n\t\t\tthis.getActionByID(refItemId)!.fireClickEvent(e);\n\t\t\tthis.closeOverflow();\n\t\t}\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tsuper._onkeydown(e);\n\n\t\tif (getEventMark(e) === \"button\") {\n\t\t\treturn;\n\t\t}\n\n\t\tif (isSpace(e)) {\n\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\tgetActionByID(id: string) {\n\t\treturn this.actions.find(action => action._id === id);\n\t}\n\n\tasync openOverflow() {\n\t\tconst overflowPopover = await this.getOverflowPopover();\n\t\toverflowPopover.showAt(this.overflowButtonDOM);\n\t}\n\n\tasync closeOverflow() {\n\t\tconst overflowPopover = await this.getOverflowPopover();\n\t\toverflowPopover.close();\n\t}\n\n\tasync getOverflowPopover() {\n\t\tconst staticAreaItem = await this.getStaticAreaItemDomRef();\n\t\treturn staticAreaItem!.querySelector<Popover>(\".ui5-notification-overflow-popover\")!;\n\t}\n\n\tstatic async onDefine() {\n\t\tNotificationListItemBase.i18nFioriBundle = await getI18nBundle(\"@ui5/webcomponents-fiori\");\n\t}\n}\n\nexport default NotificationListItemBase;\nexport type {\n\tNotificationListItemBaseCloseEventDetail,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"NotificationListItemBase.js","sourceRoot":"","sources":["../src/NotificationListItemBase.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAC/D,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,YAAY,MAAM,yCAAyC,CAAC;AACnE,OAAO,OAAO,MAAM,+CAA+C,CAAC;AACpE,OAAO,QAAQ,MAAM,2CAA2C,CAAC;AAIjE,QAAQ;AACR,OAAO,0CAA0C,CAAC;AAClD,OAAO,kDAAkD,CAAC;AAC1D,OAAO,gDAAgD,CAAC;AACxD,OAAO,kDAAkD,CAAC;AAC1D,OAAO,2CAA2C,CAAC;AAEnD,YAAY;AACZ,OAAO,0CAA0C,MAAM,yEAAyE,CAAC;AAEjI,SAAS;AACT,OAAO,qCAAqC,MAAM,8DAA8D,CAAC;AAEjH;;GAEG;AACH,MAAM,iBAAiB,GAAG;IACzB,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,eAAe;IAChC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,iBAAiB;IACpC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,iBAAiB;IACjC,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE;CACnB,CAAC;AAMF;;;;;;;;;GASG;AAoBH,IAAM,wBAAwB,gCAA9B,MAAM,wBAAyB,SAAQ,YAAY;IAmElD,IAAI,YAAY;QACf,OAAO,CAAC,CAAC,IAAI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C,KAAK,CAAC,QAAQ;QACpB,0BAAwB,CAAC,eAAe,GAAG,MAAM,aAAa,CAAC,0BAA0B,CAAC,CAAC;IAC5F,CAAC;CACD,CAAA;AAnKA;IADC,QAAQ,EAAE;2DACQ;AASnB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;0DACjC;AAQzB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;2DACR;AAWpB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;sDACb;AASf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;sDACb;AASf;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;2DAClC;AAUnB;IADC,IAAI,EAAE;yDAC4B;AA/D9B,wBAAwB;IAnB7B,aAAa,CAAC;QACd,gBAAgB,EAAE,qCAAqC;QACvD,kBAAkB,EAAE,0CAA0C;KAC9D,CAAC;IAEF;;;;;OAKG;;IACF,KAAK,CAAC,OAAO,EAAE;QACd,MAAM,EAAE;YACR;;eAEG;YACH,IAAI,EAAE,WAAW;SACjB;KACD,CAAC;GACI,wBAAwB,CA0K7B;AAED,eAAe,wBAAwB,CAAC","sourcesContent":["import customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport { isSpace } from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport { getEventMark } from \"@ui5/webcomponents-base/dist/MarkedEvents.js\";\nimport ListItemBase from \"@ui5/webcomponents/dist/ListItemBase.js\";\nimport Integer from \"@ui5/webcomponents-base/dist/types/Integer.js\";\nimport Priority from \"@ui5/webcomponents/dist/types/Priority.js\";\nimport type Popover from \"@ui5/webcomponents/dist/Popover.js\";\nimport type NotificationAction from \"./NotificationAction.js\";\n\n// Icons\nimport \"@ui5/webcomponents-icons/dist/decline.js\";\nimport \"@ui5/webcomponents-icons/dist/message-success.js\";\nimport \"@ui5/webcomponents-icons/dist/message-error.js\";\nimport \"@ui5/webcomponents-icons/dist/message-warning.js\";\nimport \"@ui5/webcomponents-icons/dist/overflow.js\";\n\n// Templates\nimport NotificationOverflowActionsPopoverTemplate from \"./generated/templates/NotificationOverflowActionsPopoverTemplate.lit.js\";\n\n// Styles\nimport NotificationOverflowActionsPopoverCss from \"./generated/themes/NotificationOverflowActionsPopover.css.js\";\n\n/**\n * Defines the icons corresponding to the notification's priority.\n */\nconst ICON_PER_PRIORITY = {\n\t[Priority.High]: \"message-error\",\n\t[Priority.Medium]: \"message-warning\",\n\t[Priority.Low]: \"message-success\",\n\t[Priority.None]: \"\",\n};\n\ntype NotificationListItemBaseCloseEventDetail = {\n\titem: HTMLElement,\n};\n\n/**\n * @class\n *\n * The base class of the <code>NotificationListItem</code> and <code>NotificationListGroupItem</code>.\n *\n * @constructor\n * @extends ListItemBase\n * @since 1.0.0-rc.8\n * @public\n */\n@customElement({\n\tstaticAreaStyles: NotificationOverflowActionsPopoverCss,\n\tstaticAreaTemplate: NotificationOverflowActionsPopoverTemplate,\n})\n\n/**\n * Fired when the <code>Close</code> button is pressed.\n *\n * @param {HTMLElement} item the closed item.\n * @public\n */\n@event(\"close\", {\n\t detail: {\n\t\t/**\n\t\t * @public\n\t\t */\n\t\titem: HTMLElement,\n\t},\n})\nclass NotificationListItemBase extends ListItemBase {\n\t/**\n\t * Defines the <code>titleText</code> of the item.\n\t * @default \"\"\n\t * @public\n\t */\n\t@property()\n\ttitleText!: string;\n\n\t/**\n\t * Defines the <code>priority</code> of the item.\n\t *\n\t * @default \"None\"\n\t * @public\n\t */\n\t@property({ type: Priority, defaultValue: Priority.None })\n\tpriority!: `${Priority}`;\n\n\t/**\n\t * Defines if the <code>close</code> button would be displayed.\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tshowClose!: boolean;\n\n\t/**\n\t * Defines if the <code>notification</code> is new or has been already read.\n\t * <br><br>\n\t * <b>Note:</b> if set to <code>false</code> the <code>titleText</code> has bold font,\n\t * if set to true - it has a normal font.\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tread!: boolean;\n\n\t/**\n\t * Defines if a busy indicator would be displayed over the item.\n\t * @default false\n\t * @public\n\t * @since 1.0.0-rc.8\n\t */\n\t@property({ type: Boolean })\n\tbusy!: boolean;\n\n\t/**\n\t * Defines the delay in milliseconds, after which the busy indicator will show up for this component.\n\t *\n\t * @default 1000\n\t * @public\n\t */\n\t@property({ validator: Integer, defaultValue: 1000 })\n\tbusyDelay!: number;\n\n\t/**\n\t * Defines the actions, displayed in the top-right area.\n\t * <br><br>\n\t * <b>Note:</b> use the <code>ui5-notification-action</code> component.\n\t *\n\t * @public\n\t */\n\t@slot()\n\tactions!: Array<NotificationAction>\n\n\tstatic i18nFioriBundle: I18nBundle;\n\n\tget hasTitleText() {\n\t\treturn !!this.titleText.length;\n\t}\n\n\tget hasPriority() {\n\t\treturn this.priority !== Priority.None;\n\t}\n\n\tget priorityIcon() {\n\t\treturn ICON_PER_PRIORITY[this.priority];\n\t}\n\n\tget overflowButtonDOM() {\n\t\treturn this.shadowRoot!.querySelector<HTMLElement>(\".ui5-nli-overflow-btn\")!;\n\t}\n\n\tget showOverflow() {\n\t\treturn !!this.overflowActions.length;\n\t}\n\n\tget overflowActions() {\n\t\tif (this.actions.length <= 1) {\n\t\t\treturn [];\n\t\t}\n\n\t\treturn this.actionsInfo;\n\t}\n\n\tget standardActions() {\n\t\tif (this.actions.length > 1) {\n\t\t\treturn [];\n\t\t}\n\n\t\treturn this.actionsInfo;\n\t}\n\n\tget actionsInfo() {\n\t\treturn this.actions.map(action => {\n\t\t\treturn {\n\t\t\t\ticon: action.icon,\n\t\t\t\ttext: action.text,\n\t\t\t\tpress: this._onCustomActionClick.bind(this),\n\t\t\t\trefItemid: action._id,\n\t\t\t\tdisabled: action.disabled ? true : undefined,\n\t\t\t\tdesign: action.design,\n\t\t\t};\n\t\t});\n\t}\n\n\t/**\n\t * Event handlers\n\t */\n\t_onBtnCloseClick() {\n\t\tthis.fireEvent<NotificationListItemBaseCloseEventDetail>(\"close\", { item: this });\n\t}\n\n\t_onBtnOverflowClick() {\n\t\tthis.openOverflow();\n\t}\n\n\t_onCustomActionClick(e: MouseEvent) {\n\t\tconst refItemId = (e.target as Element).getAttribute(\"data-ui5-external-action-item-id\");\n\n\t\tif (refItemId) {\n\t\t\tthis.getActionByID(refItemId)!.fireClickEvent(e);\n\t\t\tthis.closeOverflow();\n\t\t}\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tsuper._onkeydown(e);\n\n\t\tif (getEventMark(e) === \"button\") {\n\t\t\treturn;\n\t\t}\n\n\t\tif (isSpace(e)) {\n\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\tgetActionByID(id: string) {\n\t\treturn this.actions.find(action => action._id === id);\n\t}\n\n\tasync openOverflow() {\n\t\tconst overflowPopover = await this.getOverflowPopover();\n\t\toverflowPopover.showAt(this.overflowButtonDOM);\n\t}\n\n\tasync closeOverflow() {\n\t\tconst overflowPopover = await this.getOverflowPopover();\n\t\toverflowPopover.close();\n\t}\n\n\tasync getOverflowPopover() {\n\t\tconst staticAreaItem = await this.getStaticAreaItemDomRef();\n\t\treturn staticAreaItem!.querySelector<Popover>(\".ui5-notification-overflow-popover\")!;\n\t}\n\n\tstatic async onDefine() {\n\t\tNotificationListItemBase.i18nFioriBundle = await getI18nBundle(\"@ui5/webcomponents-fiori\");\n\t}\n}\n\nexport default NotificationListItemBase;\nexport type {\n\tNotificationListItemBaseCloseEventDetail,\n};\n"]}
|
package/dist/Page.d.ts
CHANGED
|
@@ -22,26 +22,15 @@ import PageBackgroundDesign from "./types/PageBackgroundDesign.js";
|
|
|
22
22
|
* that there is enough space for the <code>ui5-page</code> to be rendered.
|
|
23
23
|
* <b>Note:</b> In order for the <code>ui5-page</code> to be displayed, the parent element should have fixed height.
|
|
24
24
|
*
|
|
25
|
-
* <h3>CSS Shadow Parts</h3>
|
|
26
|
-
*
|
|
27
|
-
* <ui5-link target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/CSS/::part">CSS Shadow Parts</ui5-link> allow developers to style elements inside the Shadow DOM.
|
|
28
|
-
* <br>
|
|
29
|
-
* The <code>ui5-page</code> exposes the following CSS Shadow Parts:
|
|
30
|
-
* <ul>
|
|
31
|
-
* <li>content - Used to style the content section of the component</li>
|
|
32
|
-
* </ul>
|
|
33
|
-
*
|
|
34
25
|
* <h3>ES6 Module Import</h3>
|
|
35
26
|
*
|
|
36
27
|
* <code>import "@ui5/webcomponents-fiori/dist/Page.js";</code>
|
|
37
28
|
*
|
|
38
29
|
* @constructor
|
|
39
|
-
* @
|
|
40
|
-
* @alias sap.ui.webc.fiori.Page
|
|
41
|
-
* @extends sap.ui.webc.base.UI5Element
|
|
42
|
-
* @tagname ui5-page
|
|
30
|
+
* @extends UI5Element
|
|
43
31
|
* @since 1.0.0-rc.12
|
|
44
32
|
* @public
|
|
33
|
+
* @csspart content - Used to style the content section of the component
|
|
45
34
|
*/
|
|
46
35
|
declare class Page extends UI5Element {
|
|
47
36
|
/**
|
|
@@ -50,9 +39,7 @@ declare class Page extends UI5Element {
|
|
|
50
39
|
* <b>Note:</b> When a ui5-list is placed inside the page, we recommend using “List” to ensure better color contrast.
|
|
51
40
|
* <br><br>
|
|
52
41
|
*
|
|
53
|
-
* @
|
|
54
|
-
* @name sap.ui.webc.fiori.Page.prototype.backgroundDesign
|
|
55
|
-
* @defaultvalue "Solid"
|
|
42
|
+
* @default "Solid"
|
|
56
43
|
* @public
|
|
57
44
|
*/
|
|
58
45
|
backgroundDesign: `${PageBackgroundDesign}`;
|
|
@@ -60,9 +47,7 @@ declare class Page extends UI5Element {
|
|
|
60
47
|
* Disables vertical scrolling of page content.
|
|
61
48
|
* If set to true, there will be no vertical scrolling at all.
|
|
62
49
|
*
|
|
63
|
-
* @
|
|
64
|
-
* @name sap.ui.webc.fiori.Page.prototype.disableScrolling
|
|
65
|
-
* @defaultvalue false
|
|
50
|
+
* @default false
|
|
66
51
|
* @public
|
|
67
52
|
*/
|
|
68
53
|
disableScrolling: boolean;
|
|
@@ -70,25 +55,21 @@ declare class Page extends UI5Element {
|
|
|
70
55
|
* Defines if the footer should float over the content.
|
|
71
56
|
* <br><br>
|
|
72
57
|
* <b>Note:</b> When set to true the footer floats over the content with a slight offset from the bottom, otherwise it is fixed at the very bottom of the page.
|
|
73
|
-
*
|
|
74
|
-
* @
|
|
75
|
-
* @defaultvalue true
|
|
58
|
+
*
|
|
59
|
+
* @default true
|
|
76
60
|
* @public
|
|
77
61
|
*/
|
|
78
62
|
floatingFooter: boolean;
|
|
79
63
|
/**
|
|
80
64
|
* Defines the footer visibility.
|
|
81
65
|
*
|
|
82
|
-
* @
|
|
83
|
-
* @name sap.ui.webc.fiori.Page.prototype.hideFooter
|
|
84
|
-
* @defaultvalue false
|
|
66
|
+
* @default false
|
|
85
67
|
* @public
|
|
86
68
|
*/
|
|
87
69
|
hideFooter: boolean;
|
|
88
70
|
/**
|
|
89
71
|
* Defines the current media query size.
|
|
90
72
|
*
|
|
91
|
-
* @type {string}
|
|
92
73
|
* @private
|
|
93
74
|
* @since 1.0.0-rc.15
|
|
94
75
|
*/
|
|
@@ -96,27 +77,18 @@ declare class Page extends UI5Element {
|
|
|
96
77
|
/**
|
|
97
78
|
* Defines the header HTML Element.
|
|
98
79
|
*
|
|
99
|
-
* @type {sap.ui.webc.fiori.IBar}
|
|
100
|
-
* @name sap.ui.webc.fiori.Page.prototype.header
|
|
101
|
-
* @slot
|
|
102
80
|
* @public
|
|
103
81
|
*/
|
|
104
82
|
header: Array<HTMLElement>;
|
|
105
83
|
/**
|
|
106
84
|
* Defines the content HTML Element.
|
|
107
85
|
*
|
|
108
|
-
* @type {HTMLElement[]}
|
|
109
|
-
* @name sap.ui.webc.fiori.Page.prototype.default
|
|
110
|
-
* @slot content
|
|
111
86
|
* @public
|
|
112
87
|
*/
|
|
113
88
|
content: Array<HTMLElement>;
|
|
114
89
|
/**
|
|
115
90
|
* Defines the footer HTML Element.
|
|
116
91
|
*
|
|
117
|
-
* @type {sap.ui.webc.fiori.IBar}
|
|
118
|
-
* @name sap.ui.webc.fiori.Page.prototype.footer
|
|
119
|
-
* @slot
|
|
120
92
|
* @public
|
|
121
93
|
*/
|
|
122
94
|
footer: Array<HTMLElement>;
|
package/dist/Page.js
CHANGED
|
@@ -38,26 +38,15 @@ import PageCss from "./generated/themes/Page.css.js";
|
|
|
38
38
|
* that there is enough space for the <code>ui5-page</code> to be rendered.
|
|
39
39
|
* <b>Note:</b> In order for the <code>ui5-page</code> to be displayed, the parent element should have fixed height.
|
|
40
40
|
*
|
|
41
|
-
* <h3>CSS Shadow Parts</h3>
|
|
42
|
-
*
|
|
43
|
-
* <ui5-link target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/CSS/::part">CSS Shadow Parts</ui5-link> allow developers to style elements inside the Shadow DOM.
|
|
44
|
-
* <br>
|
|
45
|
-
* The <code>ui5-page</code> exposes the following CSS Shadow Parts:
|
|
46
|
-
* <ul>
|
|
47
|
-
* <li>content - Used to style the content section of the component</li>
|
|
48
|
-
* </ul>
|
|
49
|
-
*
|
|
50
41
|
* <h3>ES6 Module Import</h3>
|
|
51
42
|
*
|
|
52
43
|
* <code>import "@ui5/webcomponents-fiori/dist/Page.js";</code>
|
|
53
44
|
*
|
|
54
45
|
* @constructor
|
|
55
|
-
* @
|
|
56
|
-
* @alias sap.ui.webc.fiori.Page
|
|
57
|
-
* @extends sap.ui.webc.base.UI5Element
|
|
58
|
-
* @tagname ui5-page
|
|
46
|
+
* @extends UI5Element
|
|
59
47
|
* @since 1.0.0-rc.12
|
|
60
48
|
* @public
|
|
49
|
+
* @csspart content - Used to style the content section of the component
|
|
61
50
|
*/
|
|
62
51
|
let Page = class Page extends UI5Element {
|
|
63
52
|
constructor() {
|