@danske/sapphire-angular 1.23.0 → 1.24.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/esm2020/lib/menu/public_api.mjs +4 -1
- package/esm2020/lib/menu/src/menu-icon.component.mjs +23 -0
- package/esm2020/lib/menu/src/menu-item.component.mjs +3 -3
- package/esm2020/lib/menu/src/menu-primary-text.component.mjs +18 -0
- package/esm2020/lib/menu/src/menu-secondary-text.component.mjs +23 -0
- package/esm2020/lib/menu/src/menu.module.mjs +16 -1
- package/fesm2015/danske-sapphire-angular.mjs +69 -3
- package/fesm2015/danske-sapphire-angular.mjs.map +1 -1
- package/fesm2020/danske-sapphire-angular.mjs +69 -3
- package/fesm2020/danske-sapphire-angular.mjs.map +1 -1
- package/lib/menu/public_api.d.ts +3 -0
- package/lib/menu/src/menu-icon.component.d.ts +9 -0
- package/lib/menu/src/menu-item.component.d.ts +1 -1
- package/lib/menu/src/menu-primary-text.component.d.ts +9 -0
- package/lib/menu/src/menu-secondary-text.component.d.ts +9 -0
- package/lib/menu/src/menu.module.d.ts +9 -6
- package/package.json +2 -2
|
@@ -1287,7 +1287,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImpor
|
|
|
1287
1287
|
class MenuItemComponent {
|
|
1288
1288
|
}
|
|
1289
1289
|
MenuItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: MenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1290
|
-
MenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: MenuItemComponent, selector: "sp-menu-item", inputs: { disabled: "disabled", danger: "danger" }, host: { properties: { "class.sapphire-listbox__item": "true", "class.is-disabled": "this.disabled", "class.sapphire-listbox__item--danger": "this.danger" } }, hostDirectives: [{ directive: i1$2.CdkMenuItem, inputs: ["cdkMenuItemDisabled", "disabled", "cdkMenuitemTypeaheadLabel", "typeaheadLabel"], outputs: ["cdkMenuItemTriggered", "triggered"] }, { directive: UseComponentStyles }], ngImport: i0, template: "<div class=\"sapphire-listbox__content\" _spUseComponentStyles>\n <div class=\"sapphire-listbox__text-container\" _spUseComponentStyles>\n <div class=\"sapphire-listbox__primary-text\" _spUseComponentStyles>\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: UseComponentStyles, selector: "[_spUseComponentStyles]" }] });
|
|
1290
|
+
MenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: MenuItemComponent, selector: "sp-menu-item", inputs: { disabled: "disabled", danger: "danger" }, host: { properties: { "class.sapphire-listbox__item": "true", "class.is-disabled": "this.disabled", "class.sapphire-listbox__item--danger": "this.danger" } }, hostDirectives: [{ directive: i1$2.CdkMenuItem, inputs: ["cdkMenuItemDisabled", "disabled", "cdkMenuitemTypeaheadLabel", "typeaheadLabel"], outputs: ["cdkMenuItemTriggered", "triggered"] }, { directive: UseComponentStyles }], ngImport: i0, template: "<div class=\"sapphire-listbox__content\" _spUseComponentStyles>\n <ng-content select=\"sp-menu-icon\"></ng-content>\n <div class=\"sapphire-listbox__text-container\" _spUseComponentStyles>\n <div class=\"sapphire-listbox__primary-text\" _spUseComponentStyles>\n <ng-content select=\"sp-menu-primary-text\"></ng-content>\n <!-- If nothing matches other ng-content selectors then render it as primary text -->\n <ng-content></ng-content>\n </div>\n <ng-content select=\"sp-menu-secondary-text\"></ng-content>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: UseComponentStyles, selector: "[_spUseComponentStyles]" }] });
|
|
1291
1291
|
__decorate([
|
|
1292
1292
|
CoerceBoolean
|
|
1293
1293
|
], MenuItemComponent.prototype, "disabled", void 0);
|
|
@@ -1308,7 +1308,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImpor
|
|
|
1308
1308
|
UseComponentStyles,
|
|
1309
1309
|
], host: {
|
|
1310
1310
|
'[class.sapphire-listbox__item]': 'true',
|
|
1311
|
-
}, template: "<div class=\"sapphire-listbox__content\" _spUseComponentStyles>\n <div class=\"sapphire-listbox__text-container\" _spUseComponentStyles>\n <div class=\"sapphire-listbox__primary-text\" _spUseComponentStyles>\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n" }]
|
|
1311
|
+
}, template: "<div class=\"sapphire-listbox__content\" _spUseComponentStyles>\n <ng-content select=\"sp-menu-icon\"></ng-content>\n <div class=\"sapphire-listbox__text-container\" _spUseComponentStyles>\n <div class=\"sapphire-listbox__primary-text\" _spUseComponentStyles>\n <ng-content select=\"sp-menu-primary-text\"></ng-content>\n <!-- If nothing matches other ng-content selectors then render it as primary text -->\n <ng-content></ng-content>\n </div>\n <ng-content select=\"sp-menu-secondary-text\"></ng-content>\n </div>\n</div>\n" }]
|
|
1312
1312
|
}], propDecorators: { disabled: [{
|
|
1313
1313
|
type: HostBinding,
|
|
1314
1314
|
args: ['class.is-disabled']
|
|
@@ -1545,14 +1545,74 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImpor
|
|
|
1545
1545
|
args: [CdkMenuItem]
|
|
1546
1546
|
}] } });
|
|
1547
1547
|
|
|
1548
|
+
/**
|
|
1549
|
+
* Icon container of a listbox option.
|
|
1550
|
+
*/
|
|
1551
|
+
class MenuIconComponent {
|
|
1552
|
+
}
|
|
1553
|
+
MenuIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: MenuIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1554
|
+
MenuIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: MenuIconComponent, selector: "sp-menu-item-icon", host: { classAttribute: "sapphire-listbox__icon" }, hostDirectives: [{ directive: UseComponentStyles }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
1555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: MenuIconComponent, decorators: [{
|
|
1556
|
+
type: Component,
|
|
1557
|
+
args: [{
|
|
1558
|
+
selector: 'sp-menu-item-icon',
|
|
1559
|
+
template: '<ng-content></ng-content>',
|
|
1560
|
+
host: {
|
|
1561
|
+
class: 'sapphire-listbox__icon',
|
|
1562
|
+
},
|
|
1563
|
+
hostDirectives: [UseComponentStyles],
|
|
1564
|
+
}]
|
|
1565
|
+
}] });
|
|
1566
|
+
|
|
1567
|
+
/**
|
|
1568
|
+
* Primary text of a listbox option. Useful when the option contains other parts
|
|
1569
|
+
* like secondary text or icon.
|
|
1570
|
+
*/
|
|
1571
|
+
class MenuPrimaryTextComponent {
|
|
1572
|
+
}
|
|
1573
|
+
MenuPrimaryTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: MenuPrimaryTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1574
|
+
MenuPrimaryTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: MenuPrimaryTextComponent, selector: "sp-menu-primary-text", ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
1575
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: MenuPrimaryTextComponent, decorators: [{
|
|
1576
|
+
type: Component,
|
|
1577
|
+
args: [{
|
|
1578
|
+
selector: 'sp-menu-primary-text',
|
|
1579
|
+
template: '<ng-content></ng-content>',
|
|
1580
|
+
}]
|
|
1581
|
+
}] });
|
|
1582
|
+
|
|
1583
|
+
/**
|
|
1584
|
+
* Secondary text of a listbox option.
|
|
1585
|
+
*/
|
|
1586
|
+
class MenuSecondaryTextComponent {
|
|
1587
|
+
}
|
|
1588
|
+
MenuSecondaryTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: MenuSecondaryTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1589
|
+
MenuSecondaryTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: MenuSecondaryTextComponent, selector: "sp-menu-secondary-text", host: { classAttribute: "sapphire-listbox__secondary-text" }, hostDirectives: [{ directive: UseComponentStyles }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
1590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: MenuSecondaryTextComponent, decorators: [{
|
|
1591
|
+
type: Component,
|
|
1592
|
+
args: [{
|
|
1593
|
+
selector: 'sp-menu-secondary-text',
|
|
1594
|
+
template: '<ng-content></ng-content>',
|
|
1595
|
+
host: {
|
|
1596
|
+
class: 'sapphire-listbox__secondary-text',
|
|
1597
|
+
},
|
|
1598
|
+
hostDirectives: [UseComponentStyles],
|
|
1599
|
+
}]
|
|
1600
|
+
}] });
|
|
1601
|
+
|
|
1548
1602
|
class SapphireMenuModule {
|
|
1549
1603
|
}
|
|
1550
1604
|
SapphireMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: SapphireMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1551
1605
|
SapphireMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.0", ngImport: i0, type: SapphireMenuModule, declarations: [MenuComponent,
|
|
1552
1606
|
MenuItemComponent,
|
|
1607
|
+
MenuIconComponent,
|
|
1608
|
+
MenuPrimaryTextComponent,
|
|
1609
|
+
MenuSecondaryTextComponent,
|
|
1553
1610
|
MenuSectionComponent,
|
|
1554
1611
|
MenuTriggerDirective], imports: [CommonModule, CdkMenuModule, UseComponentStyles], exports: [MenuComponent,
|
|
1555
1612
|
MenuItemComponent,
|
|
1613
|
+
MenuIconComponent,
|
|
1614
|
+
MenuPrimaryTextComponent,
|
|
1615
|
+
MenuSecondaryTextComponent,
|
|
1556
1616
|
MenuSectionComponent,
|
|
1557
1617
|
MenuTriggerDirective] });
|
|
1558
1618
|
SapphireMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: SapphireMenuModule, imports: [CommonModule, CdkMenuModule] });
|
|
@@ -1562,6 +1622,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImpor
|
|
|
1562
1622
|
declarations: [
|
|
1563
1623
|
MenuComponent,
|
|
1564
1624
|
MenuItemComponent,
|
|
1625
|
+
MenuIconComponent,
|
|
1626
|
+
MenuPrimaryTextComponent,
|
|
1627
|
+
MenuSecondaryTextComponent,
|
|
1565
1628
|
MenuSectionComponent,
|
|
1566
1629
|
MenuTriggerDirective,
|
|
1567
1630
|
],
|
|
@@ -1569,6 +1632,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImpor
|
|
|
1569
1632
|
exports: [
|
|
1570
1633
|
MenuComponent,
|
|
1571
1634
|
MenuItemComponent,
|
|
1635
|
+
MenuIconComponent,
|
|
1636
|
+
MenuPrimaryTextComponent,
|
|
1637
|
+
MenuSecondaryTextComponent,
|
|
1572
1638
|
MenuSectionComponent,
|
|
1573
1639
|
MenuTriggerDirective,
|
|
1574
1640
|
],
|
|
@@ -8134,5 +8200,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImpor
|
|
|
8134
8200
|
* Generated bundle index. Do not edit.
|
|
8135
8201
|
*/
|
|
8136
8202
|
|
|
8137
|
-
export { BadgeComponent, BasicSelectComponent, BasicSingleSelectDirective, ButtonComponent, ButtonGroupComponent, ButtonIconDirective, CheckboxChange, CheckboxComponent, ConfirmationDialogComponent, ContextualHelpComponent, ContextualHelpContentDirective, ContextualHelpFooterDirective, ContextualHelpHeaderDirective, DEFAULT_BREAKPOINTS, DangerDialogComponent, DialogCloseButtonDirective, DialogComponent, DialogContentDirective, DialogFooterComponent, DialogFooterDirective, DialogHeaderComponent, DialogHeaderDirective, DialogTriggerDirective, FieldComponent, FieldControl, FieldErrorDirective, FieldLabelDirective, FieldNoteDirective, FieldNoteSuffixDirective, FocusedDirective, HeadingComponent, ICON_SIZE_PROVIDER, IconButtonComponent, IconComponent, InlinePanelComponent, LabelComponent, LinkComponent, ListboxChild, ListboxComponent, ListboxInputDirective, MenuComponent, MenuItemComponent, MenuSectionComponent, MenuTriggerDirective, ModalCloseButtonDirective, ModalService, MultiSelectDirective, NotificationBadgeComponent, OptionComponent, OptionIconDirective, OptionPrimaryTextDirective, OptionSecondaryTextDirective, POPOVER_TRIGGER, PaginationComponent, PanelBackButtonDirective, PanelCloseButtonDirective, PanelComponent, PanelContentComponent, PanelFooterComponent, PanelFooterDirective, PanelHeaderComponent, PanelHeaderDirective, PanelTriggerDirective, ParagraphComponent, PopoverCloseButtonDirective, PopoverComponent, PopoverTitleDirective, PopoverTriggerDirective, PressedDirective, RadioComponent, RadioGroupComponent, SapphireBadgeModule, SapphireButtonModule, SapphireCheckboxModule, SapphireCheckboxRequiredValidator, SapphireContextualHelpModule, SapphireCoreModule, SapphireFieldModule, SapphireIconModule, SapphireLinkModule, SapphireListboxModule, SapphireMenuModule, SapphireModalModule, SapphireNotificationBadgeModule, SapphireOverlayContainer, SapphirePaginationChange, SapphirePaginationModule, SapphirePopoverModule, SapphireRadioChange, SapphireRadioModule, SapphireSegmentedTabsModule, SapphireSelectModule, SapphireSkeletonModule, SapphireSurfaceModule, SapphireSwitchChange, SapphireSwitchModule, SapphireSwitchRequiredValidator, SapphireTableModule, SapphireTextFieldModule, SapphireThemeModule, SapphireToggleButtonRequiredValidator, SapphireTooltipModule, SapphireTypographyModule, ScrollMonitorDirective, SearchableSelectDirective, SectionDirective, SegmentedTabComponent, SegmentedTabContentDirective, SegmentedTabLabelDirective, SegmentedTabsComponent, SelectComponent, SelectionTextDirective, SingleSelectDirective, SkeletonBlockDirective, SkeletonCircleDirective, SkeletonComponent, SkeletonTextDirective, SurfaceComponent, SwitchComponent, TableBodyDirective, TableCellDirective, TableComponent, TableDirective, TableHeadCellComponent, TableHeadDirective, TableRowDirective, TableSortDirective, TableSortHeaderDirective, TextFieldComponent, TextFieldInputDirective, TextFieldPostfixDirective, TextFieldPrefixDirective, TextFieldTextareaAutosizeDirective, ThemeBaseDirective, ThemeCheckDirective, ThemeDefault, ThemeDefaultDark, ThemeRootDirective, ToggleButtonComponent, TooltipComponent, TooltipDirective, TruncatedWithTooltipDirective, UseComponentStyles, UseComponentStylesOnHost, ViewEncapsulationProvider };
|
|
8203
|
+
export { BadgeComponent, BasicSelectComponent, BasicSingleSelectDirective, ButtonComponent, ButtonGroupComponent, ButtonIconDirective, CheckboxChange, CheckboxComponent, ConfirmationDialogComponent, ContextualHelpComponent, ContextualHelpContentDirective, ContextualHelpFooterDirective, ContextualHelpHeaderDirective, DEFAULT_BREAKPOINTS, DangerDialogComponent, DialogCloseButtonDirective, DialogComponent, DialogContentDirective, DialogFooterComponent, DialogFooterDirective, DialogHeaderComponent, DialogHeaderDirective, DialogTriggerDirective, FieldComponent, FieldControl, FieldErrorDirective, FieldLabelDirective, FieldNoteDirective, FieldNoteSuffixDirective, FocusedDirective, HeadingComponent, ICON_SIZE_PROVIDER, IconButtonComponent, IconComponent, InlinePanelComponent, LabelComponent, LinkComponent, ListboxChild, ListboxComponent, ListboxInputDirective, MenuComponent, MenuIconComponent, MenuItemComponent, MenuPrimaryTextComponent, MenuSecondaryTextComponent, MenuSectionComponent, MenuTriggerDirective, ModalCloseButtonDirective, ModalService, MultiSelectDirective, NotificationBadgeComponent, OptionComponent, OptionIconDirective, OptionPrimaryTextDirective, OptionSecondaryTextDirective, POPOVER_TRIGGER, PaginationComponent, PanelBackButtonDirective, PanelCloseButtonDirective, PanelComponent, PanelContentComponent, PanelFooterComponent, PanelFooterDirective, PanelHeaderComponent, PanelHeaderDirective, PanelTriggerDirective, ParagraphComponent, PopoverCloseButtonDirective, PopoverComponent, PopoverTitleDirective, PopoverTriggerDirective, PressedDirective, RadioComponent, RadioGroupComponent, SapphireBadgeModule, SapphireButtonModule, SapphireCheckboxModule, SapphireCheckboxRequiredValidator, SapphireContextualHelpModule, SapphireCoreModule, SapphireFieldModule, SapphireIconModule, SapphireLinkModule, SapphireListboxModule, SapphireMenuModule, SapphireModalModule, SapphireNotificationBadgeModule, SapphireOverlayContainer, SapphirePaginationChange, SapphirePaginationModule, SapphirePopoverModule, SapphireRadioChange, SapphireRadioModule, SapphireSegmentedTabsModule, SapphireSelectModule, SapphireSkeletonModule, SapphireSurfaceModule, SapphireSwitchChange, SapphireSwitchModule, SapphireSwitchRequiredValidator, SapphireTableModule, SapphireTextFieldModule, SapphireThemeModule, SapphireToggleButtonRequiredValidator, SapphireTooltipModule, SapphireTypographyModule, ScrollMonitorDirective, SearchableSelectDirective, SectionDirective, SegmentedTabComponent, SegmentedTabContentDirective, SegmentedTabLabelDirective, SegmentedTabsComponent, SelectComponent, SelectionTextDirective, SingleSelectDirective, SkeletonBlockDirective, SkeletonCircleDirective, SkeletonComponent, SkeletonTextDirective, SurfaceComponent, SwitchComponent, TableBodyDirective, TableCellDirective, TableComponent, TableDirective, TableHeadCellComponent, TableHeadDirective, TableRowDirective, TableSortDirective, TableSortHeaderDirective, TextFieldComponent, TextFieldInputDirective, TextFieldPostfixDirective, TextFieldPrefixDirective, TextFieldTextareaAutosizeDirective, ThemeBaseDirective, ThemeCheckDirective, ThemeDefault, ThemeDefaultDark, ThemeRootDirective, ToggleButtonComponent, TooltipComponent, TooltipDirective, TruncatedWithTooltipDirective, UseComponentStyles, UseComponentStylesOnHost, ViewEncapsulationProvider };
|
|
8138
8204
|
//# sourceMappingURL=danske-sapphire-angular.mjs.map
|