@indice/ng-components 0.2.167-beta.37 → 0.2.167-beta.39
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/_styles.css +1 -0
- package/esm2020/lib/controls/drop-down-menu/drop-down-menu.component.mjs +1 -1
- package/esm2020/lib/controls/toggle-buttons-list/toggle-buttons-list.component.mjs +32 -0
- package/esm2020/lib/ng-components.module.mjs +10 -5
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/indice-ng-components.mjs +37 -5
- package/fesm2015/indice-ng-components.mjs.map +1 -1
- package/fesm2020/indice-ng-components.mjs +37 -5
- package/fesm2020/indice-ng-components.mjs.map +1 -1
- package/lib/controls/drop-down-menu/drop-down-menu.component.d.ts +1 -1
- package/lib/controls/toggle-buttons-list/toggle-buttons-list.component.d.ts +14 -0
- package/lib/ng-components.module.d.ts +6 -5
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -2479,6 +2479,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
2479
2479
|
type: Output
|
|
2480
2480
|
}] } });
|
|
2481
2481
|
|
|
2482
|
+
class ToggleButtonsListComponent {
|
|
2483
|
+
constructor() {
|
|
2484
|
+
this.icon = undefined;
|
|
2485
|
+
this.valueChange = new EventEmitter(undefined);
|
|
2486
|
+
}
|
|
2487
|
+
ngOnInit() {
|
|
2488
|
+
}
|
|
2489
|
+
selectOption(optionValue) {
|
|
2490
|
+
console.debug('selectOption ', optionValue);
|
|
2491
|
+
this.value = optionValue;
|
|
2492
|
+
this.valueChange.emit(optionValue);
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
ToggleButtonsListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ToggleButtonsListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2496
|
+
ToggleButtonsListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ToggleButtonsListComponent, selector: "lib-toggle-buttons-list", inputs: { icon: "icon", options: "options", value: "value" }, outputs: { valueChange: "valueChange" }, ngImport: i0, template: "<div class=\"relative items-center inline-flex\">\n <div class=\"flex-none mr-2\" *ngIf=\"icon\">\n <i [class]=\"icon\"></i>\n </div>\n <div class=\"block lg:hidden z-10\">\n <lib-drop-down-menu class=\"w-full mw-40\" [(selected)]=\"value\" (selectedChange)=\"selectOption($event)\" [options]=\"options\"></lib-drop-down-menu>\n </div>\n <div class=\"hidden lg:block\">\n <ng-template ngFor let-option [ngForOf]=\"options\" let-i=\"index\">\n <!-- [tooltip]=\"option.description\" -->\n <button type=\"button\"\n [disabled]=\"option.value === value\"\n [class.bg-gray-100]=\"option.value === value\"\n class=\"relative disabled:bg-gray-100 inline-flex items-center p-2 first:border-l first:rounded-l-sm last:rounded-r-sm border-t border-b border-r border-gray-300 bg-white text-xs text-gray-700 hover:bg-gray-50 focus:z-10 focus:outline-none\"\n (click)=\"selectOption(option.value)\">\n <div class=\"flex-none mr-2\" *ngIf=\"option.icon\">\n <i [class]=\"option.icon\"></i>\n </div>\n <span class=\"mr-2 block overflow-ellipsis overflow-hidden\">{{option.text}}</span>\n <span *ngIf=\"option.data && option.data.count>=0\"\n class=\"ml-1.5 rounded py-0.5 px-1.5 bg-gray-200 text-xs text-gray-700 tabular-nums\">{{option.data.count}}\n </span>\n </button>\n </ng-template>\n </div>\n</div>", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DropDownMenuComponent, selector: "lib-drop-down-menu", inputs: ["options", "selected", "multiple", "placeholder", "show-icons"], outputs: ["selectedChange", "selectedChanged"] }] });
|
|
2497
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ToggleButtonsListComponent, decorators: [{
|
|
2498
|
+
type: Component,
|
|
2499
|
+
args: [{ selector: 'lib-toggle-buttons-list', template: "<div class=\"relative items-center inline-flex\">\n <div class=\"flex-none mr-2\" *ngIf=\"icon\">\n <i [class]=\"icon\"></i>\n </div>\n <div class=\"block lg:hidden z-10\">\n <lib-drop-down-menu class=\"w-full mw-40\" [(selected)]=\"value\" (selectedChange)=\"selectOption($event)\" [options]=\"options\"></lib-drop-down-menu>\n </div>\n <div class=\"hidden lg:block\">\n <ng-template ngFor let-option [ngForOf]=\"options\" let-i=\"index\">\n <!-- [tooltip]=\"option.description\" -->\n <button type=\"button\"\n [disabled]=\"option.value === value\"\n [class.bg-gray-100]=\"option.value === value\"\n class=\"relative disabled:bg-gray-100 inline-flex items-center p-2 first:border-l first:rounded-l-sm last:rounded-r-sm border-t border-b border-r border-gray-300 bg-white text-xs text-gray-700 hover:bg-gray-50 focus:z-10 focus:outline-none\"\n (click)=\"selectOption(option.value)\">\n <div class=\"flex-none mr-2\" *ngIf=\"option.icon\">\n <i [class]=\"option.icon\"></i>\n </div>\n <span class=\"mr-2 block overflow-ellipsis overflow-hidden\">{{option.text}}</span>\n <span *ngIf=\"option.data && option.data.count>=0\"\n class=\"ml-1.5 rounded py-0.5 px-1.5 bg-gray-200 text-xs text-gray-700 tabular-nums\">{{option.data.count}}\n </span>\n </button>\n </ng-template>\n </div>\n</div>" }]
|
|
2500
|
+
}], ctorParameters: function () { return []; }, propDecorators: { icon: [{
|
|
2501
|
+
type: Input
|
|
2502
|
+
}], options: [{
|
|
2503
|
+
type: Input
|
|
2504
|
+
}], value: [{
|
|
2505
|
+
type: Input
|
|
2506
|
+
}], valueChange: [{
|
|
2507
|
+
type: Output
|
|
2508
|
+
}] } });
|
|
2509
|
+
|
|
2482
2510
|
class DynamicComponentHostDirective {
|
|
2483
2511
|
constructor(viewContainerRef) {
|
|
2484
2512
|
this.viewContainerRef = viewContainerRef;
|
|
@@ -4465,7 +4493,8 @@ IndiceComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
|
|
|
4465
4493
|
UnauthorizedComponent,
|
|
4466
4494
|
UserProfileMenuComponent,
|
|
4467
4495
|
ViewLayoutComponent,
|
|
4468
|
-
ToggleButtonComponent
|
|
4496
|
+
ToggleButtonComponent,
|
|
4497
|
+
ToggleButtonsListComponent], imports: [CommonModule,
|
|
4469
4498
|
RouterModule,
|
|
4470
4499
|
IndiceAuthModule,
|
|
4471
4500
|
FormsModule], exports: [AddressPipe,
|
|
@@ -4509,7 +4538,8 @@ IndiceComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
|
|
|
4509
4538
|
ToggleComponent,
|
|
4510
4539
|
UnauthorizedComponent,
|
|
4511
4540
|
ViewLayoutComponent,
|
|
4512
|
-
ToggleButtonComponent
|
|
4541
|
+
ToggleButtonComponent,
|
|
4542
|
+
ToggleButtonsListComponent] });
|
|
4513
4543
|
IndiceComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: IndiceComponentsModule, imports: [CommonModule,
|
|
4514
4544
|
RouterModule,
|
|
4515
4545
|
IndiceAuthModule,
|
|
@@ -4569,7 +4599,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
4569
4599
|
UnauthorizedComponent,
|
|
4570
4600
|
UserProfileMenuComponent,
|
|
4571
4601
|
ViewLayoutComponent,
|
|
4572
|
-
ToggleButtonComponent
|
|
4602
|
+
ToggleButtonComponent,
|
|
4603
|
+
ToggleButtonsListComponent
|
|
4573
4604
|
],
|
|
4574
4605
|
imports: [
|
|
4575
4606
|
CommonModule,
|
|
@@ -4619,7 +4650,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
4619
4650
|
ToggleComponent,
|
|
4620
4651
|
UnauthorizedComponent,
|
|
4621
4652
|
ViewLayoutComponent,
|
|
4622
|
-
ToggleButtonComponent
|
|
4653
|
+
ToggleButtonComponent,
|
|
4654
|
+
ToggleButtonsListComponent
|
|
4623
4655
|
]
|
|
4624
4656
|
}]
|
|
4625
4657
|
}] });
|
|
@@ -4630,5 +4662,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
4630
4662
|
* Generated bundle index. Do not edit.
|
|
4631
4663
|
*/
|
|
4632
4664
|
|
|
4633
|
-
export { APP_LANGUAGES, APP_LINKS, APP_NOTIFICATIONS, AddressPipe, AuthCallbackComponent, AuthRenewComponent, AvatarInitialsComponent, BaseListComponent, BreadcrumbComponent, BreadcrumbItem, BreadcrumbRouteData, BreadcrumbService, ClickOutsideDirective, CollapsiblePanelComponent, ComboboxComponent, ComponentLoaderFactory, DatepickerComponent, DefaultShellConfig, DropDownMenuComponent, DurationFormatPipe, ErrorComponent, ExternalNavLink, FormLayoutComponent, FragmentNavLink, HeaderMetaItem, Icons, IndiceComponentsModule, KpiTileComponent, LIBSTEPPER_ACCESSOR, LIBTABGROUP_ACCESSOR, LibStepComponent, LibStepInfoDirective, LibStepLabelDirective, LibStepperComponent, LibTabComponent, LibTabGroupComponent, LibTabLabelDirective, ListColumnComponent, ListDetailsSectionComponent, ListTileComponent, ListViewComponent, ListViewEmptyStateComponent, ListViewType, LoggedOutComponent, MODAL_CONFIG_DEFAULT_OVERRIDE, MenuOption, Modal, ModalOptions, ModalService, ModelViewLayoutComponent, NULL_TOAST, NavLink, NavLinksListComponent, NotificationNavLink, PageNotFoundComponent, PagerComponent, PagerPosition, RouterViewAction, SCREEN_SIZE, SHELL_CONFIG, ShellFooterComponent, ShellHeaderComponent, ShellLayoutComponent, ShellLayoutType, ShellSidebarComponent, ShellSidebarHeaderComponent, SidePaneComponent, SidePaneOverlayType, SidePaneSize, SideViewLayoutComponent, SkeletonLoaderComponent, StepState, StepperType, SwitchViewAction, ToastType, ToasterComponent, ToasterContainerComponent, ToasterService, ToggleButtonComponent, ToggleComponent, UnauthorizedComponent, UserSettingsService, ViewAction, ViewLayoutComponent };
|
|
4665
|
+
export { APP_LANGUAGES, APP_LINKS, APP_NOTIFICATIONS, AddressPipe, AuthCallbackComponent, AuthRenewComponent, AvatarInitialsComponent, BaseListComponent, BreadcrumbComponent, BreadcrumbItem, BreadcrumbRouteData, BreadcrumbService, ClickOutsideDirective, CollapsiblePanelComponent, ComboboxComponent, ComponentLoaderFactory, DatepickerComponent, DefaultShellConfig, DropDownMenuComponent, DurationFormatPipe, ErrorComponent, ExternalNavLink, FormLayoutComponent, FragmentNavLink, HeaderMetaItem, Icons, IndiceComponentsModule, KpiTileComponent, LIBSTEPPER_ACCESSOR, LIBTABGROUP_ACCESSOR, LibStepComponent, LibStepInfoDirective, LibStepLabelDirective, LibStepperComponent, LibTabComponent, LibTabGroupComponent, LibTabLabelDirective, ListColumnComponent, ListDetailsSectionComponent, ListTileComponent, ListViewComponent, ListViewEmptyStateComponent, ListViewType, LoggedOutComponent, MODAL_CONFIG_DEFAULT_OVERRIDE, MenuOption, Modal, ModalOptions, ModalService, ModelViewLayoutComponent, NULL_TOAST, NavLink, NavLinksListComponent, NotificationNavLink, PageNotFoundComponent, PagerComponent, PagerPosition, RouterViewAction, SCREEN_SIZE, SHELL_CONFIG, ShellFooterComponent, ShellHeaderComponent, ShellLayoutComponent, ShellLayoutType, ShellSidebarComponent, ShellSidebarHeaderComponent, SidePaneComponent, SidePaneOverlayType, SidePaneSize, SideViewLayoutComponent, SkeletonLoaderComponent, StepState, StepperType, SwitchViewAction, ToastType, ToasterComponent, ToasterContainerComponent, ToasterService, ToggleButtonComponent, ToggleButtonsListComponent, ToggleComponent, UnauthorizedComponent, UserSettingsService, ViewAction, ViewLayoutComponent };
|
|
4634
4666
|
//# sourceMappingURL=indice-ng-components.mjs.map
|