@ndwnu/design-system 3.0.1 → 5.0.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/assets/images/dashboard-card-icons/contact.png +0 -0
- package/assets/images/dashboard-card-icons/faq.png +0 -0
- package/assets/images/dashboard-card-icons/manual.png +0 -0
- package/components/alert/alert.component.d.ts +2 -5
- package/components/alert/alert.model.d.ts +0 -1
- package/components/banner/banner.component.d.ts +38 -0
- package/components/banner/banner.model.d.ts +4 -0
- package/components/banner/index.d.ts +2 -0
- package/components/breadcrumb-group/breadcrumb-group.component.d.ts +1 -1
- package/components/card/index.d.ts +2 -2
- package/components/collapsible/collapsible.component.d.ts +0 -1
- package/components/dashboard-card/dashboard-card.component.d.ts +22 -0
- package/components/dashboard-card/index.d.ts +1 -0
- package/components/dropdown/dropdown.component.d.ts +4 -4
- package/components/form-field/autosuggest/autosuggest-add-option/autosuggest-add-option.component.d.ts +8 -0
- package/components/form-field/autosuggest/autosuggest-add-option/index.d.ts +1 -0
- package/components/form-field/autosuggest/autosuggest-option/autosuggest-option.component.d.ts +19 -0
- package/components/form-field/autosuggest/autosuggest-option/autosuggest-option.model.d.ts +2 -0
- package/components/form-field/autosuggest/autosuggest-option/base-autosuggest-option.component.d.ts +27 -0
- package/components/form-field/autosuggest/autosuggest-option/index.d.ts +2 -0
- package/components/form-field/autosuggest/autosuggest-panel/autosuggest-panel.component.d.ts +39 -0
- package/components/form-field/autosuggest/autosuggest.directive.d.ts +72 -0
- package/components/form-field/autosuggest/index.d.ts +5 -0
- package/components/form-field/autosuggest/match-bold.pipe.d.ts +7 -0
- package/components/form-field/checkbox/checkbox.component.d.ts +0 -3
- package/components/form-field/clear-search-button/clear-search-button.component.d.ts +15 -0
- package/components/form-field/file-upload/file-upload.component.d.ts +4 -11
- package/components/form-field/form-field.component.d.ts +19 -23
- package/components/form-field/form-field.constant.d.ts +1 -0
- package/components/form-field/index.d.ts +3 -0
- package/components/form-field/input/input.directive.d.ts +0 -1
- package/components/form-field/input-button/index.d.ts +1 -0
- package/components/form-field/input-button/input-button.component.d.ts +12 -0
- package/components/form-field/input-icon/index.d.ts +1 -0
- package/components/form-field/input-icon/input-icon.component.d.ts +5 -0
- package/components/form-field/picker-button/picker-button.component.d.ts +14 -0
- package/components/form-field/radio-button/radio-button.component.d.ts +0 -2
- package/components/form-field/radio-group/radio-group.component.d.ts +0 -1
- package/components/icon/icon.component.d.ts +1 -0
- package/components/index.d.ts +7 -2
- package/components/layout/index.d.ts +1 -0
- package/components/layout/layout.component.d.ts +11 -0
- package/components/layout-banners/index.d.ts +1 -0
- package/components/layout-banners/layout-banners.component.d.ts +5 -0
- package/components/loader/index.d.ts +1 -0
- package/components/loader/loader.component.d.ts +5 -0
- package/components/main-navigation/main-navigation.component.d.ts +8 -6
- package/components/main-navigation/main-navigation.imports.d.ts +1 -1
- package/components/main-navigation/main-navigation.model.d.ts +1 -0
- package/components/main-navigation-menu/main-navigation-menu.component.d.ts +2 -2
- package/components/modal/index.d.ts +0 -1
- package/components/modal/modal-header/modal-header.component.d.ts +1 -1
- package/components/modal/modal-ref.d.ts +3 -0
- package/components/modal/modal.component.d.ts +0 -3
- package/components/modal/modal.service.d.ts +13 -11
- package/components/pill/pill.component.d.ts +1 -3
- package/components/tab/tab.component.d.ts +0 -3
- package/components/tab-group/tab-group.component.d.ts +1 -2
- package/components/tag/index.d.ts +1 -0
- package/components/tag/tag.component.d.ts +18 -0
- package/core/{styles/ndw-styles.scss → style/styles.css} +495 -219
- package/core/{styles/nwb-styles.scss → style/styles.scss} +526 -218
- package/esm2022/components/accordion/accordion.component.mjs +8 -8
- package/esm2022/components/accordion/accordion.service.mjs +3 -3
- package/esm2022/components/alert/alert.component.mjs +12 -29
- package/esm2022/components/alert/alert.model.mjs +1 -1
- package/esm2022/components/badge/badge.component.mjs +6 -6
- package/esm2022/components/banner/banner.component.mjs +61 -0
- package/esm2022/components/banner/banner.model.mjs +6 -0
- package/esm2022/components/banner/index.mjs +3 -0
- package/esm2022/components/breadcrumb/breadcrumb.component.mjs +6 -6
- package/esm2022/components/breadcrumb-group/breadcrumb-group.component.mjs +10 -10
- package/esm2022/components/button/button.directive.mjs +3 -3
- package/esm2022/components/card/card-content/card-content.component.mjs +6 -6
- package/esm2022/components/card/card-footer/card-footer.component.mjs +6 -6
- package/esm2022/components/card/card-header/card-header.component.mjs +6 -7
- package/esm2022/components/card/card.component.mjs +6 -6
- package/esm2022/components/collapsible/collapsible.component.mjs +9 -14
- package/esm2022/components/dashboard-card/dashboard-card.component.mjs +32 -0
- package/esm2022/components/dashboard-card/index.mjs +2 -0
- package/esm2022/components/dropdown/dropdown.component.mjs +11 -18
- package/esm2022/components/form-field/autosuggest/autosuggest-add-option/autosuggest-add-option.component.mjs +29 -0
- package/esm2022/components/form-field/autosuggest/autosuggest-add-option/index.mjs +2 -0
- package/esm2022/components/form-field/autosuggest/autosuggest-option/autosuggest-option.component.mjs +45 -0
- package/esm2022/components/form-field/autosuggest/autosuggest-option/autosuggest-option.model.mjs +2 -0
- package/esm2022/components/form-field/autosuggest/autosuggest-option/base-autosuggest-option.component.mjs +85 -0
- package/esm2022/components/form-field/autosuggest/autosuggest-option/index.mjs +3 -0
- package/esm2022/components/form-field/autosuggest/autosuggest-panel/autosuggest-panel.component.mjs +82 -0
- package/esm2022/components/form-field/autosuggest/autosuggest.directive.mjs +411 -0
- package/esm2022/components/form-field/autosuggest/index.mjs +6 -0
- package/esm2022/components/form-field/autosuggest/match-bold.pipe.mjs +21 -0
- package/esm2022/components/form-field/checkbox/checkbox.component.mjs +13 -27
- package/esm2022/components/form-field/checkbox-group/checkbox-group.component.mjs +6 -6
- package/esm2022/components/form-field/clear-search-button/clear-search-button.component.mjs +37 -0
- package/esm2022/components/form-field/error/error.component.mjs +6 -6
- package/esm2022/components/form-field/file-upload/file-upload.component.mjs +48 -93
- package/esm2022/components/form-field/form-field.component.mjs +25 -76
- package/esm2022/components/form-field/form-field.constant.mjs +2 -0
- package/esm2022/components/form-field/index.mjs +4 -1
- package/esm2022/components/form-field/info/info.component.mjs +6 -6
- package/esm2022/components/form-field/input/input.directive.mjs +5 -11
- package/esm2022/components/form-field/input-button/index.mjs +2 -0
- package/esm2022/components/form-field/input-button/input-button.component.mjs +23 -0
- package/esm2022/components/form-field/input-icon/index.mjs +2 -0
- package/esm2022/components/form-field/input-icon/input-icon.component.mjs +12 -0
- package/esm2022/components/form-field/month-input/month-input.component.mjs +8 -9
- package/esm2022/components/form-field/option-group/option-group.component.mjs +6 -6
- package/esm2022/components/form-field/option-group/option.component.mjs +5 -6
- package/esm2022/components/form-field/picker-button/picker-button.component.mjs +45 -0
- package/esm2022/components/form-field/radio-button/radio-button.component.mjs +12 -22
- package/esm2022/components/form-field/radio-group/radio-group.component.mjs +11 -13
- package/esm2022/components/form-field/success/success.component.mjs +6 -6
- package/esm2022/components/form-field/textarea/auto-grow.directive.mjs +3 -3
- package/esm2022/components/icon/action-icon/action-icon.component.mjs +5 -5
- package/esm2022/components/icon/icon.component.mjs +15 -10
- package/esm2022/components/index.mjs +8 -3
- package/esm2022/components/layout/index.mjs +2 -0
- package/esm2022/components/layout/layout.component.mjs +20 -0
- package/esm2022/components/layout-banners/index.mjs +2 -0
- package/esm2022/components/layout-banners/layout-banners.component.mjs +11 -0
- package/esm2022/components/loader/index.mjs +2 -0
- package/esm2022/components/loader/loader.component.mjs +11 -0
- package/esm2022/components/main-navigation/main-navigation.component.mjs +52 -48
- package/esm2022/components/main-navigation/main-navigation.model.mjs +1 -1
- package/esm2022/components/main-navigation-menu/main-navigation-menu.component.mjs +9 -9
- package/esm2022/components/modal/index.mjs +1 -4
- package/esm2022/components/modal/modal-content/modal-content.component.mjs +6 -6
- package/esm2022/components/modal/modal-footer/modal-footer.component.mjs +6 -6
- package/esm2022/components/modal/modal-header/modal-header.component.mjs +9 -11
- package/esm2022/components/modal/modal-ref.mjs +4 -0
- package/esm2022/components/modal/modal.component.mjs +10 -23
- package/esm2022/components/modal/modal.service.mjs +20 -41
- package/esm2022/components/multi-select/multi-select.component.mjs +10 -12
- package/esm2022/components/pill/pill.component.mjs +12 -20
- package/esm2022/components/popover/popover-trigger.directive.mjs +9 -9
- package/esm2022/components/router-breadcrumbs/router-breadcrumbs.component.mjs +6 -6
- package/esm2022/components/tab/tab.component.mjs +13 -29
- package/esm2022/components/tab-group/tab-group.component.mjs +10 -12
- package/esm2022/components/tag/index.mjs +2 -0
- package/esm2022/components/tag/tag.component.mjs +29 -0
- package/esm2022/components/toast/toast.component.mjs +6 -6
- package/esm2022/components/toast/toast.service.mjs +4 -4
- package/esm2022/components/tooltip/tooltip.component.mjs +7 -7
- package/esm2022/components/tooltip/tooltip.directive.mjs +10 -16
- package/esm2022/models/aria.model.mjs +2 -0
- package/esm2022/models/index.mjs +2 -0
- package/fesm2022/ndwnu-design-system.mjs +1279 -660
- package/fesm2022/ndwnu-design-system.mjs.map +1 -1
- package/models/aria.model.d.ts +1 -0
- package/models/index.d.ts +1 -0
- package/package.json +1 -1
- package/components/modal/modal-trigger.directive.d.ts +0 -16
- package/components/removable-pill/index.d.ts +0 -1
- package/components/removable-pill/removable-pill.component.d.ts +0 -14
- package/esm2022/components/modal/modal-trigger.directive.mjs +0 -46
- package/esm2022/components/removable-pill/index.mjs +0 -2
- package/esm2022/components/removable-pill/removable-pill.component.mjs +0 -23
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AriaLive = 'polite' | 'assertive' | 'off';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './aria.model';
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { OnChanges, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import { CardComponent } from '../card';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ModalTriggerDirective implements OnChanges, OnDestroy, OnInit {
|
|
5
|
-
private modalService;
|
|
6
|
-
private viewContainerRef;
|
|
7
|
-
ndwModalTrigger: import("@angular/core").InputSignal<TemplateRef<CardComponent>>;
|
|
8
|
-
isOpen: import("@angular/core").ModelSignal<boolean>;
|
|
9
|
-
onClick(): void;
|
|
10
|
-
ngOnChanges(): void;
|
|
11
|
-
ngOnInit(): void;
|
|
12
|
-
ngOnDestroy(): void;
|
|
13
|
-
private open;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ModalTriggerDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ModalTriggerDirective, "[ndwModalTrigger]", never, { "ndwModalTrigger": { "alias": "ndwModalTrigger"; "required": true; "isSignal": true; }; "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; }, { "isOpen": "isOpenChange"; }, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './removable-pill.component';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class RemovablePillComponent {
|
|
3
|
-
/**
|
|
4
|
-
* Disables the pill
|
|
5
|
-
*/
|
|
6
|
-
disabled: import("@angular/core").InputSignal<boolean>;
|
|
7
|
-
/**
|
|
8
|
-
* Aria label for the remove button
|
|
9
|
-
*/
|
|
10
|
-
removeAriaLabel: import("@angular/core").InputSignal<string>;
|
|
11
|
-
onClick: import("@angular/core").OutputEmitterRef<Event>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RemovablePillComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RemovablePillComponent, "ndw-removable-pill", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "removeAriaLabel": { "alias": "removeAriaLabel"; "required": false; "isSignal": true; }; }, { "onClick": "onClick"; }, never, ["*"], true, never>;
|
|
14
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Directive, HostListener, ViewContainerRef, inject, input, model, } from '@angular/core';
|
|
2
|
-
import { ModalService } from './modal.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class ModalTriggerDirective {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.modalService = inject(ModalService);
|
|
7
|
-
this.viewContainerRef = inject(ViewContainerRef);
|
|
8
|
-
this.ndwModalTrigger = input.required();
|
|
9
|
-
this.isOpen = model(false);
|
|
10
|
-
}
|
|
11
|
-
onClick() {
|
|
12
|
-
this.open();
|
|
13
|
-
}
|
|
14
|
-
ngOnChanges() {
|
|
15
|
-
if (this.isOpen()) {
|
|
16
|
-
this.open();
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
this.modalService.detach();
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
ngOnInit() {
|
|
23
|
-
this.modalService.isOpen$.subscribe((isOpen) => {
|
|
24
|
-
this.isOpen.set(isOpen);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
ngOnDestroy() {
|
|
28
|
-
this.modalService.dispose();
|
|
29
|
-
}
|
|
30
|
-
open() {
|
|
31
|
-
this.modalService.open(this.ndwModalTrigger(), this.viewContainerRef);
|
|
32
|
-
}
|
|
33
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: ModalTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
34
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.0.3", type: ModalTriggerDirective, isStandalone: true, selector: "[ndwModalTrigger]", inputs: { ndwModalTrigger: { classPropertyName: "ndwModalTrigger", publicName: "ndwModalTrigger", isSignal: true, isRequired: true, transformFunction: null }, isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isOpen: "isOpenChange" }, host: { listeners: { "click": "onClick($event)" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
35
|
-
}
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: ModalTriggerDirective, decorators: [{
|
|
37
|
-
type: Directive,
|
|
38
|
-
args: [{
|
|
39
|
-
selector: '[ndwModalTrigger]',
|
|
40
|
-
standalone: true,
|
|
41
|
-
}]
|
|
42
|
-
}], propDecorators: { onClick: [{
|
|
43
|
-
type: HostListener,
|
|
44
|
-
args: ['click', ['$event']]
|
|
45
|
-
}] } });
|
|
46
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtdHJpZ2dlci5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZHcvc3JjL2NvbXBvbmVudHMvbW9kYWwvbW9kYWwtdHJpZ2dlci5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxZQUFZLEVBS1osZ0JBQWdCLEVBQ2hCLE1BQU0sRUFDTixLQUFLLEVBQ0wsS0FBSyxHQUNOLE1BQU0sZUFBZSxDQUFDO0FBSXZCLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7QUFNL0MsTUFBTSxPQUFPLHFCQUFxQjtJQUpsQztRQUtVLGlCQUFZLEdBQUcsTUFBTSxDQUFDLFlBQVksQ0FBQyxDQUFDO1FBQ3BDLHFCQUFnQixHQUFHLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO1FBRTdDLG9CQUFlLEdBQUcsS0FBSyxDQUFDLFFBQVEsRUFBOEIsQ0FBQztRQUUvRCxXQUFNLEdBQUcsS0FBSyxDQUFDLEtBQUssQ0FBQyxDQUFDO0tBNEI5QjtJQXpCUSxPQUFPO1FBQ1osSUFBSSxDQUFDLElBQUksRUFBRSxDQUFDO0lBQ2QsQ0FBQztJQUVNLFdBQVc7UUFDaEIsSUFBSSxJQU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BlbikgPT4ge1xuICAgICAgdGhpcy5pc09wZW4uc2V0KGlzT3Blbik7XG4gICAgfSk7XG4gIH1cblxuICBwdWJsaWMgbmdPbkRlc3Ryb3koKTogdm9pZCB7XG4gICAgdGhpcy5tb2RhbFNlcnZpY2UuZGlzcG9zZSgpO1xuICB9XG5cbiAgcHJpdmF0ZSBvcGVuKCk6IHZvaWQge1xuICAgIHRoaXMubW9kYWxTZXJ2aWNlLm9wZW4odGhpcy5uZHdNb2RhbFRyaWdnZXIoKSwgdGhpcy52aWV3Q29udGFpbmVyUmVmKTtcbiAgfVxufVxuIl19
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './removable-pill.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZHcvc3JjL2NvbXBvbmVudHMvcmVtb3ZhYmxlLXBpbGwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw0QkFBNEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vcmVtb3ZhYmxlLXBpbGwuY29tcG9uZW50JztcbiJdfQ==
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Component, input, output } from '@angular/core';
|
|
2
|
-
import { IconComponent } from '../icon';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class RemovablePillComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
/**
|
|
7
|
-
* Disables the pill
|
|
8
|
-
*/
|
|
9
|
-
this.disabled = input(false);
|
|
10
|
-
/**
|
|
11
|
-
* Aria label for the remove button
|
|
12
|
-
*/
|
|
13
|
-
this.removeAriaLabel = input('Verwijder');
|
|
14
|
-
this.onClick = output();
|
|
15
|
-
}
|
|
16
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: RemovablePillComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.3", type: RemovablePillComponent, isStandalone: true, selector: "ndw-removable-pill", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, removeAriaLabel: { classPropertyName: "removeAriaLabel", publicName: "removeAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClick: "onClick" }, ngImport: i0, template: "<div class=\"ndw-removable-pill\" [class.ndw-removable-pill--disabled]=\"disabled()\">\n <ng-content />\n\n <button\n type=\"button\"\n class=\"ndw-removable-pill__button\"\n [attr.aria-label]=\"removeAriaLabel()\"\n [disabled]=\"disabled()\"\n (click)=\"onClick.emit($event)\"\n >\n <ndw-icon>close</ndw-icon>\n </button>\n</div>\n", styles: [".ndw-removable-pill{position:relative;overflow:hidden;display:inline-grid;grid-template-columns:auto 1fr;align-items:center;height:1.5rem;padding:0 var(--ndw-spacing-2xs) 0 var(--ndw-spacing-xs);border:var(--ndw-border-size-sm) solid var(--ndw-color-primary);border-radius:45px;outline:none;color:var(--ndw-color-primary);background-color:var(--ndw-color-primary-050);font-size:var(--ndw-font-size-sm);cursor:pointer;transition:var(--ndw-animation-speed-fast) ease-out}.ndw-removable-pill:hover{border:var(--ndw-border-size-sm) solid var(--ndw-color-primary);background-color:var(--ndw-color-primary);color:var(--ndw-color-white)}.ndw-removable-pill:active,.ndw-removable-pill:focus-within{border:var(--ndw-border-size-sm) solid var(--ndw-color-link-400);background-color:var(--ndw-color-primary-600);color:var(--ndw-color-white)}.ndw-removable-pill--disabled{border:var(--ndw-border-size-sm) solid var(--ndw-color-grey-400);background-color:var(--ndw-color-grey-100);color:var(--ndw-color-grey-400);pointer-events:none}.ndw-removable-pill__button{border:0;padding:0;background-color:transparent;color:inherit}.ndw-removable-pill__button:focus{outline:none}.ndw-removable-pill__button:after{content:\"\";position:absolute;inset:0}.ndw-removable-pill ndw-icon{display:grid;width:var(--ndw-spacing-md);font-size:var(--ndw-font-size-sm)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ndw-icon", inputs: ["size"] }] }); }
|
|
18
|
-
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: RemovablePillComponent, decorators: [{
|
|
20
|
-
type: Component,
|
|
21
|
-
args: [{ selector: 'ndw-removable-pill', standalone: true, imports: [IconComponent], template: "<div class=\"ndw-removable-pill\" [class.ndw-removable-pill--disabled]=\"disabled()\">\n <ng-content />\n\n <button\n type=\"button\"\n class=\"ndw-removable-pill__button\"\n [attr.aria-label]=\"removeAriaLabel()\"\n [disabled]=\"disabled()\"\n (click)=\"onClick.emit($event)\"\n >\n <ndw-icon>close</ndw-icon>\n </button>\n</div>\n", styles: [".ndw-removable-pill{position:relative;overflow:hidden;display:inline-grid;grid-template-columns:auto 1fr;align-items:center;height:1.5rem;padding:0 var(--ndw-spacing-2xs) 0 var(--ndw-spacing-xs);border:var(--ndw-border-size-sm) solid var(--ndw-color-primary);border-radius:45px;outline:none;color:var(--ndw-color-primary);background-color:var(--ndw-color-primary-050);font-size:var(--ndw-font-size-sm);cursor:pointer;transition:var(--ndw-animation-speed-fast) ease-out}.ndw-removable-pill:hover{border:var(--ndw-border-size-sm) solid var(--ndw-color-primary);background-color:var(--ndw-color-primary);color:var(--ndw-color-white)}.ndw-removable-pill:active,.ndw-removable-pill:focus-within{border:var(--ndw-border-size-sm) solid var(--ndw-color-link-400);background-color:var(--ndw-color-primary-600);color:var(--ndw-color-white)}.ndw-removable-pill--disabled{border:var(--ndw-border-size-sm) solid var(--ndw-color-grey-400);background-color:var(--ndw-color-grey-100);color:var(--ndw-color-grey-400);pointer-events:none}.ndw-removable-pill__button{border:0;padding:0;background-color:transparent;color:inherit}.ndw-removable-pill__button:focus{outline:none}.ndw-removable-pill__button:after{content:\"\";position:absolute;inset:0}.ndw-removable-pill ndw-icon{display:grid;width:var(--ndw-spacing-md);font-size:var(--ndw-font-size-sm)}\n"] }]
|
|
22
|
-
}] });
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVtb3ZhYmxlLXBpbGwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmR3L3NyYy9jb21wb25lbnRzL3JlbW92YWJsZS1waWxsL3JlbW92YWJsZS1waWxsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25kdy9zcmMvY29tcG9uZW50cy9yZW1vdmFibGUtcGlsbC9yZW1vdmFibGUtcGlsbC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekQsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLFNBQVMsQ0FBQzs7QUFTeEMsTUFBTSxPQUFPLHNCQUFzQjtJQVBuQztRQVFFOztXQUVHO1FBQ0ksYUFBUSxHQUFHLEtBQUssQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUUvQjs7V0FFRztRQUNJLG9CQUFlLEdBQUcsS0FBSyxDQUFDLFdBQVcsQ0FBQyxDQUFDO1FBRXJDLFlBQU8sR0FBRyxNQUFNLEVBQVMsQ0FBQztLQUNsQzs4R0FaWSxzQkFBc0I7a0dBQXRCLHNCQUFzQixrWkNWbkMsb1dBYUEsazNDRE5ZLGFBQWE7OzJGQUdaLHNCQUFzQjtrQkFQbEMsU0FBUzsrQkFDRSxvQkFBb0IsY0FDbEIsSUFBSSxXQUVQLENBQUMsYUFBYSxDQUFDI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