@softheon/armature 17.27.2 → 17.28.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.
@@ -18,3 +18,4 @@ export * from './confirm-address/sof-confirm-address/compare-address-pipe/compar
18
18
  export * from './sof-callout/sof-callout.component';
19
19
  export * from './sof-context/sof-context.component';
20
20
  export * from './sof-bottom-sheet/sof-bottom-sheet.component';
21
+ export * from './sof-chip/sof-chip.component';
@@ -5,9 +5,6 @@ import * as i0 from "@angular/core";
5
5
  * @note If you need to include some custom HTML you can inject an -
6
6
  *
7
7
  * `<ng-container callout-custom-content>`
8
- *
9
- * @note This component is standalone,
10
- * and must be included in the `imports` array of your module.
11
8
  */
12
9
  export declare class SofCalloutComponent {
13
10
  /** The callout id */
@@ -0,0 +1,55 @@
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * The sof-chip component
5
+ */
6
+ export declare class SofChipComponent implements OnChanges {
7
+ /**
8
+ * The chip's label
9
+ * @required
10
+ * @note Can be a translation key
11
+ */
12
+ label: string;
13
+ /**
14
+ * Can the chip be removed
15
+ * @optional
16
+ * @default true
17
+ */
18
+ canRemove?: boolean;
19
+ /**
20
+ * Theme for the chip
21
+ * @optional
22
+ * @default 'neutral'
23
+ */
24
+ theme?: "neutral" | "info";
25
+ /**
26
+ * Icon class for the chip
27
+ * @optional if omitted no icon will be shown
28
+ * @note should be using the 'ph-bold' icon type
29
+ * @see [Phosphor Icons/bold]({@link https://phosphoricons.com/?weight=%22bold%22})
30
+ */
31
+ iconClass?: string;
32
+ /**
33
+ * The id for the remove button
34
+ * @optional needed if canRemove is true
35
+ * @note Can simply be the index of the <Chip> array
36
+ */
37
+ removeButtonId?: string | number;
38
+ /** Event to emit the chip's label for removal */
39
+ removeEvent?: EventEmitter<string>;
40
+ /** If canRemove is null|undefined onChanges, set to true */
41
+ ngOnChanges(changes: SimpleChanges): void;
42
+ /** Emit the chip's label for removal */
43
+ onRemove(): void;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<SofChipComponent, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<SofChipComponent, "sof-chip", never, { "label": { "alias": "label"; "required": true; }; "canRemove": { "alias": "canRemove"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "removeButtonId": { "alias": "removeButtonId"; "required": false; }; }, { "removeEvent": "removeEvent"; }, never, never, true, never>;
46
+ }
47
+ /**
48
+ * The Chip interface
49
+ * @description Use to display chips from an Array&lt;Chip&gt;.
50
+ */
51
+ export interface Chip {
52
+ label: string;
53
+ iconClass?: string;
54
+ canRemove?: boolean;
55
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softheon/armature",
3
- "version": "17.27.2",
3
+ "version": "17.28.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.5.0"
6
6
  },