@pitchfork-ui/elements-angular 0.1.0 → 0.2.1
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { NgZone, EventEmitter, ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
3
|
-
import { PfAccordionCustomEvent, Components, PfAccordionItemCustomEvent, PfAlertCustomEvent, PfButtonGroupCustomEvent, PfButtonGroupItemCustomEvent, PfCalendarCustomEvent, PfCarouselCustomEvent, PfCheckboxCustomEvent, PfCodeSnippetCustomEvent, PfCollapsibleCustomEvent, PfComboboxCustomEvent, PfCommandItemCustomEvent, PfCommandPaletteCustomEvent, PfContextMenuCustomEvent, PfDatePickerCustomEvent, PfDateRangePickerCustomEvent, PfDropdownCustomEvent, PfFileUploaderCustomEvent, PfInlineCtaCustomEvent, PfInputCustomEvent, PfMenuItemCustomEvent, PfModalCustomEvent, PfMultiSelectCustomEvent, PfNavSectionCustomEvent, PfNotificationCustomEvent, PfNumberInputCustomEvent, PfOptionCustomEvent, PfPaginationCustomEvent, PfPopoverCustomEvent, PfRadioButtonCustomEvent, PfRadioGroupCustomEvent, PfResizableCustomEvent, PfRichTextEditorCustomEvent, PfSelectCustomEvent, PfSlideoutMenuCustomEvent, PfSliderCustomEvent, PfSwitchCustomEvent, PfTabCustomEvent, PfTableCustomEvent, SortState, PfTableCellCustomEvent, PfTabsCustomEvent, PfTagCustomEvent, PfTagInputCustomEvent, PfTextareaCustomEvent, PfTimePickerCustomEvent, PfToasterCustomEvent, PfTreeItemCustomEvent, PfTreeViewCustomEvent } from '@pitchfork-ui/elements/components';
|
|
3
|
+
import { PfAccordionCustomEvent, Components, PfAccordionItemCustomEvent, PfAlertCustomEvent, PfButtonGroupCustomEvent, PfButtonGroupItemCustomEvent, PfCalendarCustomEvent, PfCarouselCustomEvent, PfCheckboxCustomEvent, PfCodeSnippetCustomEvent, PfCollapsibleCustomEvent, PfComboboxCustomEvent, PfCommandItemCustomEvent, PfCommandPaletteCustomEvent, PfContextMenuCustomEvent, PfDatePickerCustomEvent, PfDateRangePickerCustomEvent, PfDropdownCustomEvent, PfFileUploaderCustomEvent, PfInlineCtaCustomEvent, PfInputCustomEvent, PfMenuItemCustomEvent, PfModalCustomEvent, PfMultiSelectCustomEvent, PfNavItemCustomEvent, PfNavSectionCustomEvent, PfNotificationCustomEvent, PfNumberInputCustomEvent, PfOptionCustomEvent, PfPaginationCustomEvent, PfPopoverCustomEvent, PfRadioButtonCustomEvent, PfRadioGroupCustomEvent, PfResizableCustomEvent, PfRichTextEditorCustomEvent, PfSelectCustomEvent, PfSlideoutMenuCustomEvent, PfSliderCustomEvent, PfSwitchCustomEvent, PfTabCustomEvent, PfTableCustomEvent, SortState, PfTableCellCustomEvent, PfTabsCustomEvent, PfTagCustomEvent, PfTagInputCustomEvent, PfTextareaCustomEvent, PfTimePickerCustomEvent, PfToasterCustomEvent, PfTreeItemCustomEvent, PfTreeViewCustomEvent } from '@pitchfork-ui/elements/components';
|
|
4
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
5
5
|
|
|
6
6
|
declare class PfAccordion {
|
|
@@ -811,11 +811,28 @@ declare interface PfMultiSelect extends Components.PfMultiSelect {
|
|
|
811
811
|
declare class PfNavItem {
|
|
812
812
|
protected z: NgZone;
|
|
813
813
|
protected el: HTMLPfNavItemElement;
|
|
814
|
+
pfNavStructure: EventEmitter<PfNavItemCustomEvent<void>>;
|
|
814
815
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
815
816
|
static ɵfac: i0.ɵɵFactoryDeclaration<PfNavItem, never>;
|
|
816
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PfNavItem, "pf-nav-item", never, { "current": { "alias": "current"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "href": { "alias": "href"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "rel": { "alias": "rel"; "required": false; }; "target": { "alias": "target"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
817
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PfNavItem, "pf-nav-item", never, { "current": { "alias": "current"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "href": { "alias": "href"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "rel": { "alias": "rel"; "required": false; }; "target": { "alias": "target"; "required": false; }; }, { "pfNavStructure": "pfNavStructure"; }, never, ["*"], true, never>;
|
|
817
818
|
}
|
|
818
819
|
declare interface PfNavItem extends Components.PfNavItem {
|
|
820
|
+
/**
|
|
821
|
+
* Tells the group the ask changed, so it can resolve again.
|
|
822
|
+
|
|
823
|
+
The same event `pf-nav-section` emits when its items move, because the
|
|
824
|
+
groups do the same thing with both: re-read every item and resolve the
|
|
825
|
+
one current page. Without this a navigation resolves at load and never
|
|
826
|
+
again for a consumer who marks items through the *property*, which is
|
|
827
|
+
every framework consumer — the generated bindings set props as
|
|
828
|
+
properties, so there is no attribute change and no `slotchange` either.
|
|
829
|
+
The symptom is a navigation whose highlight never moves while the router
|
|
830
|
+
works perfectly, which is what porting `apps/demo` ran into.
|
|
831
|
+
|
|
832
|
+
`current` only. Watching `currentPage` would loop, since that is what the
|
|
833
|
+
group writes back.
|
|
834
|
+
*/
|
|
835
|
+
pfNavStructure: EventEmitter<PfNavItemCustomEvent<void>>;
|
|
819
836
|
}
|
|
820
837
|
declare class PfNavSection {
|
|
821
838
|
protected z: NgZone;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pitchfork-ui/elements-angular",
|
|
3
|
-
"version": "0.1
|
|
4
|
-
"description": "Angular bindings for @pitchfork-ui/elements
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "Angular bindings for @pitchfork-ui/elements — standalone components and ControlValueAccessor directives generated from the Pitchfork UI custom elements.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Leland Rangel",
|
|
7
7
|
"homepage": "https://lelandrangel.com/pitchfork-ui/",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"test": "vitest run"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@pitchfork-ui/elements": "^0.1
|
|
30
|
+
"@pitchfork-ui/elements": "^0.2.1",
|
|
31
31
|
"tslib": "^2.3.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|