carbon-components-angular 6.0.0-rc.24 → 6.0.0-rc.26
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/docs/documentation/components/Dropdown.html +44 -44
- package/docs/documentation/components/Header.html +20 -27
- package/docs/documentation/components/HeaderItem.html +164 -55
- package/docs/documentation/components/ProgressIndicator.html +13 -9
- package/docs/documentation/coverage.html +3 -3
- package/docs/documentation/js/search/search_index.js +2 -2
- package/docs/documentation/modules/DocumentationModule/dependencies.svg +4 -4
- package/docs/documentation/modules/DocumentationModule.html +4 -4
- package/docs/documentation/modules/DropdownModule/dependencies.svg +61 -61
- package/docs/documentation/modules/DropdownModule.html +61 -61
- package/docs/documentation/modules/FileUploaderModule/dependencies.svg +4 -4
- package/docs/documentation/modules/FileUploaderModule.html +4 -4
- package/docs/documentation/modules/GridModule/dependencies.svg +4 -4
- package/docs/documentation/modules/GridModule.html +4 -4
- package/docs/documentation/modules/I18nModule/dependencies.svg +13 -13
- package/docs/documentation/modules/I18nModule.html +13 -13
- package/docs/documentation/modules/InlineLoadingModule/dependencies.svg +4 -4
- package/docs/documentation/modules/InlineLoadingModule.html +4 -4
- package/docs/documentation/modules/InputModule/dependencies.svg +4 -4
- package/docs/documentation/modules/InputModule.html +4 -4
- package/docs/documentation/modules/LayerModule/dependencies.svg +4 -4
- package/docs/documentation/modules/LayerModule.html +4 -4
- package/docs/documentation/modules/LayoutModule/dependencies.svg +4 -4
- package/docs/documentation/modules/LayoutModule.html +4 -4
- package/docs/documentation/modules/ListModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ListModule.html +4 -4
- package/docs/documentation/modules/NotificationModule/dependencies.svg +128 -128
- package/docs/documentation/modules/NotificationModule.html +128 -128
- package/docs/documentation/modules/PaginationModule/dependencies.svg +4 -4
- package/docs/documentation/modules/PaginationModule.html +4 -4
- package/docs/documentation/modules/PanelModule/dependencies.svg +4 -4
- package/docs/documentation/modules/PanelModule.html +4 -4
- package/docs/documentation/modules/PlaceholderModule/dependencies.svg +4 -4
- package/docs/documentation/modules/PlaceholderModule.html +4 -4
- package/docs/documentation/modules/PopoverModule/dependencies.svg +4 -4
- package/docs/documentation/modules/PopoverModule.html +4 -4
- package/docs/documentation/modules/ProgressBarModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ProgressBarModule.html +4 -4
- package/docs/documentation/modules/RadioModule/dependencies.svg +4 -4
- package/docs/documentation/modules/RadioModule.html +4 -4
- package/docs/documentation/modules/SearchModule/dependencies.svg +4 -4
- package/docs/documentation/modules/SearchModule.html +4 -4
- package/docs/documentation/modules/SelectModule/dependencies.svg +4 -4
- package/docs/documentation/modules/SelectModule.html +4 -4
- package/docs/documentation/modules/SideNavModule/dependencies.svg +4 -4
- package/docs/documentation/modules/SideNavModule.html +4 -4
- package/docs/documentation/modules/SliderModule/dependencies.svg +4 -4
- package/docs/documentation/modules/SliderModule.html +4 -4
- package/docs/documentation/modules/StructuredListModule/dependencies.svg +4 -4
- package/docs/documentation/modules/StructuredListModule.html +4 -4
- package/docs/documentation/modules/TabsModule/dependencies.svg +4 -4
- package/docs/documentation/modules/TabsModule.html +4 -4
- package/docs/documentation/modules/ThemeModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ThemeModule.html +4 -4
- package/docs/documentation/modules/TimePickerModule/dependencies.svg +4 -4
- package/docs/documentation/modules/TimePickerModule.html +4 -4
- package/docs/documentation/modules/ToggleModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ToggleModule.html +4 -4
- package/docs/documentation/modules/TooltipModule/dependencies.svg +4 -4
- package/docs/documentation/modules/TooltipModule.html +4 -4
- package/docs/documentation/modules/TreeviewModule/dependencies.svg +4 -4
- package/docs/documentation/modules/TreeviewModule.html +4 -4
- package/docs/documentation/modules/UIShellModule/dependencies.svg +4 -4
- package/docs/documentation/modules/UIShellModule.html +4 -4
- package/docs/documentation.json +133 -104
- package/docs/storybook/5028.4372822a.iframe.bundle.js +2 -0
- package/docs/storybook/5028.4372822a.iframe.bundle.js.map +1 -0
- package/docs/storybook/{8383.ee4c2859.iframe.bundle.js → 8383.ae122023.iframe.bundle.js} +2 -2
- package/docs/storybook/{8383.ee4c2859.iframe.bundle.js.map → 8383.ae122023.iframe.bundle.js.map} +1 -1
- package/docs/storybook/iframe.html +2 -2
- package/docs/storybook/{main.cf934f2c.iframe.bundle.js → main.69f35539.iframe.bundle.js} +2 -2
- package/docs/storybook/main.69f35539.iframe.bundle.js.map +1 -0
- package/docs/storybook/patterns-dialogs-modal-with-table-stories.e5bc0101.iframe.bundle.js +2 -0
- package/docs/storybook/patterns-dialogs-modal-with-table-stories.e5bc0101.iframe.bundle.js.map +1 -0
- package/docs/storybook/{patterns-forms-multi-step-form-stories.806cd952.iframe.bundle.js → patterns-forms-multi-step-form-stories.4d284816.iframe.bundle.js} +2 -2
- package/docs/storybook/{patterns-forms-multi-step-form-stories.806cd952.iframe.bundle.js.map → patterns-forms-multi-step-form-stories.4d284816.iframe.bundle.js.map} +1 -1
- package/docs/storybook/{patterns-loading-large-loading-stories.7ba92ef7.iframe.bundle.js → patterns-loading-large-loading-stories.9f109d31.iframe.bundle.js} +2 -2
- package/docs/storybook/{patterns-loading-large-loading-stories.7ba92ef7.iframe.bundle.js.map → patterns-loading-large-loading-stories.9f109d31.iframe.bundle.js.map} +1 -1
- package/docs/storybook/{progress-indicator-progress-indicator-stories.16ba479b.iframe.bundle.js → progress-indicator-progress-indicator-stories.bafc7a3e.iframe.bundle.js} +2 -2
- package/docs/storybook/{progress-indicator-progress-indicator-stories.16ba479b.iframe.bundle.js.map → progress-indicator-progress-indicator-stories.bafc7a3e.iframe.bundle.js.map} +1 -1
- package/docs/storybook/project.json +1 -1
- package/docs/storybook/{runtime~main.be0ba4bf.iframe.bundle.js → runtime~main.9717b4b5.iframe.bundle.js} +2 -2
- package/docs/storybook/{runtime~main.be0ba4bf.iframe.bundle.js.map → runtime~main.9717b4b5.iframe.bundle.js.map} +1 -1
- package/dropdown/index.d.ts +1 -1
- package/fesm2022/carbon-components-angular-dropdown.mjs +4 -4
- package/fesm2022/carbon-components-angular-dropdown.mjs.map +1 -1
- package/fesm2022/carbon-components-angular-progress-indicator.mjs +7 -4
- package/fesm2022/carbon-components-angular-progress-indicator.mjs.map +1 -1
- package/fesm2022/carbon-components-angular-ui-shell.mjs +25 -26
- package/fesm2022/carbon-components-angular-ui-shell.mjs.map +1 -1
- package/package.json +1 -1
- package/ui-shell/index.d.ts +4 -2
- package/docs/storybook/5028.1ba843cc.iframe.bundle.js +0 -2
- package/docs/storybook/5028.1ba843cc.iframe.bundle.js.map +0 -1
- package/docs/storybook/main.cf934f2c.iframe.bundle.js.map +0 -1
- package/docs/storybook/patterns-dialogs-modal-with-table-stories.f3f802fc.iframe.bundle.js +0 -2
- package/docs/storybook/patterns-dialogs-modal-with-table-stories.f3f802fc.iframe.bundle.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patterns-forms-multi-step-form-stories.806cd952.iframe.bundle.js","mappings":"AAMA","sources":["webpack://carbon-components-angular/./src/breadcrumb/breadcrumb-item.component.ts","webpack://carbon-components-angular/./src/breadcrumb/breadcrumb.component.ts","webpack://carbon-components-angular/./src/breadcrumb/breadcrumb.module.ts","webpack://carbon-components-angular/./src/checkbox/checkbox-group-host.ts","webpack://carbon-components-angular/./src/checkbox/checkbox.component.ts","webpack://carbon-components-angular/./src/checkbox/checkbox-group.component.ts","webpack://carbon-components-angular/./src/checkbox/checkbox.module.ts","webpack://carbon-components-angular/./src/grid/column.directive.ts","webpack://carbon-components-angular/./src/grid/grid.directive.ts","webpack://carbon-components-angular/./src/grid/grid.module.ts","webpack://carbon-components-angular/./src/grid/grid.service.ts","webpack://carbon-components-angular/./src/grid/row.directive.ts","webpack://carbon-components-angular/./src/progress-indicator/progress-indicator.component.ts","webpack://carbon-components-angular/./src/progress-indicator/progress-indicator.module.ts","webpack://carbon-components-angular/./node_modules/lodash-es/isNull.js","webpack://carbon-components-angular/./node_modules/lodash-es/isUndefined.js","webpack://carbon-components-angular/./node_modules/rxjs/dist/esm5/internal/operators/debounceTime.js","webpack://carbon-components-angular/./node_modules/rxjs/dist/esm5/internal/scheduler/Action.js","webpack://carbon-components-angular/./node_modules/rxjs/dist/esm5/internal/scheduler/intervalProvider.js","webpack://carbon-components-angular/./node_modules/rxjs/dist/esm5/internal/scheduler/AsyncAction.js","webpack://carbon-components-angular/./node_modules/rxjs/dist/esm5/internal/Scheduler.js","webpack://carbon-components-angular/./node_modules/rxjs/dist/esm5/internal/scheduler/async.js","webpack://carbon-components-angular/./node_modules/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js","webpack://carbon-components-angular/./node_modules/rxjs/dist/esm5/internal/scheduler/dateTimestampProvider.js","webpack://carbon-components-angular/./src/patterns/forms/multi-step-form.stories.ts","webpack://carbon-components-angular/./src/patterns/forms/multi-step-form.stories.ts?ec38"],"sourcesContent":["import { __decorate } from \"tslib\";\nimport { Component, HostBinding, Input, Output, EventEmitter, ChangeDetectionStrategy, inject } from \"@angular/core\";\nimport { DomSanitizer } from \"@angular/platform-browser\";\nimport { Router } from \"@angular/router\";\nimport { PlaceholderService } from \"carbon-components-angular/placeholder\";\nimport { NgTemplateOutlet } from \"@angular/common\";\nlet BreadcrumbItemComponent = class BreadcrumbItemComponent {\n set href(v) {\n this._href = v;\n }\n get href() {\n return this.domSanitizer.bypassSecurityTrustUrl(this._href);\n }\n constructor() {\n this.navigation = new EventEmitter();\n this.skeleton = false;\n this.ariaCurrent = \"page\";\n this.current = false;\n this.itemClass = true;\n this.domSanitizer = inject(DomSanitizer);\n this.router = inject(Router, { optional: true });\n }\n useTemplate() {\n return this.skeleton || this._href || this.route;\n }\n navigate(event) {\n if (this.router && this.route) {\n event.preventDefault();\n const status = this.router.navigate(this.route, this.routeExtras);\n this.navigation.emit(status);\n }\n }\n static { this.ctorParameters = () => []; }\n static { this.propDecorators = {\n href: [{ type: Input }],\n route: [{ type: Input }],\n routeExtras: [{ type: Input }],\n navigation: [{ type: Output }],\n skeleton: [{ type: Input }],\n ariaCurrent: [{ type: Input }],\n current: [{ type: HostBinding, args: [\"class.cds--breadcrumb-item--current\",] }, { type: Input }],\n itemClass: [{ type: HostBinding, args: [\"class.cds--breadcrumb-item\",] }]\n }; }\n};\nBreadcrumbItemComponent = __decorate([\n Component({\n selector: \"cds-breadcrumb-item, ibm-breadcrumb-item\",\n template: `\n\t\t<ng-template #content>\n\t\t\t<ng-content />\n\t\t</ng-template>\n\n\t\t@if (useTemplate()) {\n\t\t\t<a\n\t\t\t\tclass=\"cds--link\"\n\t\t\t\t[href]=\"(skeleton ? '/#' : href)\"\n\t\t\t\t(click)=\"navigate($event)\"\n\t\t\t\t[attr.aria-current]=\"(current ? ariaCurrent : null)\">\n\t\t\t\t<ng-container *ngTemplateOutlet=\"content\" />\n\t\t\t</a>\n\t\t} @else {\n\t\t\t<ng-container *ngTemplateOutlet=\"content\" />\n\t\t}\n\t`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgTemplateOutlet],\n providers: [PlaceholderService]\n })\n], BreadcrumbItemComponent);\nexport { BreadcrumbItemComponent };\n","import { __decorate } from \"tslib\";\nimport { Component, Input, ContentChildren, Output, EventEmitter, ChangeDetectionStrategy, inject } from \"@angular/core\";\nimport { BreadcrumbItemComponent } from \"./breadcrumb-item.component\";\nimport { Router } from \"@angular/router\";\nimport { I18n } from \"carbon-components-angular/i18n\";\nimport { NgClass, NgTemplateOutlet } from \"@angular/common\";\nimport { IconDirective } from \"carbon-components-angular/icon\";\nimport { OverflowMenu } from \"carbon-components-angular/dialog\";\nimport { EventService } from \"carbon-components-angular/utils\";\nconst MINIMUM_OVERFLOW_THRESHOLD = 4;\n/**\n * Get started with importing the components:\n *\n * ```typescript\n * import { Breadcrumb, BreadcrumbItemComponent } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-breadcrumb--basic)\n */\nlet Breadcrumb = class Breadcrumb {\n set skeleton(value) {\n this._skeleton = value;\n this.updateChildren();\n }\n get skeleton() {\n return this._skeleton;\n }\n set threshold(threshold) {\n this._threshold = threshold;\n if (isNaN(threshold) || threshold < MINIMUM_OVERFLOW_THRESHOLD) {\n this._threshold = MINIMUM_OVERFLOW_THRESHOLD;\n }\n }\n get threshold() {\n return this._threshold;\n }\n get shouldShowContent() {\n return !this.items;\n }\n get shouldShowOverflow() {\n if (!this.items) {\n return false;\n }\n return this.items.length > this.threshold;\n }\n get first() {\n return this.shouldShowOverflow ? this.items[0] : null;\n }\n get overflowItems() {\n return this.shouldShowOverflow ? this.items.slice(1, this.items.length - 2) : [];\n }\n get secondLast() {\n return this.shouldShowOverflow ? this.items[this.items.length - 2] : null;\n }\n get last() {\n return this.shouldShowOverflow ? this.items[this.items.length - 1] : null;\n }\n constructor() {\n this.i18n = inject(I18n);\n this.router = inject(Router, { optional: true });\n this.noTrailingSlash = false;\n this.size = \"md\";\n this.ariaLabel = this.i18n.get().BREADCRUMB.LABEL;\n this.autoAlign = false;\n this.description = this.i18n.get().BREADCRUMB.OVERFLOW_MENU_DESCRIPTION;\n this.navigation = new EventEmitter();\n this._skeleton = false;\n }\n ngAfterContentInit() {\n this.updateChildren();\n }\n navigate(event, item) {\n if (this.router && item.route) {\n event.preventDefault();\n const status = this.router.navigate(item.route, item.routeExtras);\n this.navigation.emit(status);\n }\n }\n updateChildren() {\n if (this.children) {\n this.children.toArray().forEach(child => child.skeleton = this.skeleton);\n }\n }\n static { this.ctorParameters = () => []; }\n static { this.propDecorators = {\n children: [{ type: ContentChildren, args: [BreadcrumbItemComponent,] }],\n items: [{ type: Input }],\n noTrailingSlash: [{ type: Input }],\n size: [{ type: Input }],\n ariaLabel: [{ type: Input }],\n skeleton: [{ type: Input }],\n threshold: [{ type: Input }],\n autoAlign: [{ type: Input }],\n description: [{ type: Input }],\n navigation: [{ type: Output }]\n }; }\n};\nBreadcrumb = __decorate([\n Component({\n selector: \"cds-breadcrumb, ibm-breadcrumb\",\n template: `\n\t\t<nav\n\t\t\t#nav\n\t\t\tclass=\"cds--breadcrumb\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--skeleton' : skeleton,\n\t\t\t\t'cds--breadcrumb--no-trailing-slash' : noTrailingSlash,\n\t\t\t\t'cds--breadcrumb--sm' : size === 'sm'\n\t\t\t}\"\n\t\t\t[attr.aria-label]=\"ariaLabel\">\n\t\t\t@if (shouldShowContent) {\n\t\t\t\t<ng-content></ng-content>\n\t\t\t}\n\t\t\t@if (!shouldShowOverflow) {\n\t\t\t\t@for (item of items; track item) {\n\t\t\t\t\t<cds-breadcrumb-item\n\t\t\t\t\t\t[href]=\"item.href\"\n\t\t\t\t\t\t[route]=\"item.route\"\n\t\t\t\t\t\t[routeExtras]=\"item.routeExtras\"\n\t\t\t\t\t\t[current]=\"item.current\"\n\t\t\t\t\t\t[ariaCurrent]=\"item.ariaCurrent\"\n\t\t\t\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t\t\t\t@if (!item.template) {\n\t\t\t\t\t\t\t{{item.content}}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@if (item.template) {\n\t\t\t\t\t\t\t<ng-template\n\t\t\t\t\t\t\t\t[ngTemplateOutlet]=\"item.template\"\n\t\t\t\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: item }\">\n\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t}\n\t\t\t\t\t</cds-breadcrumb-item>\n\t\t\t\t}\n\t\t\t}\n\t\t\t@if (shouldShowOverflow) {\n\t\t\t\t<cds-breadcrumb-item\n\t\t\t\t\t[href]=\"first?.href\"\n\t\t\t\t\t[route]=\"first?.route\"\n\t\t\t\t\t[routeExtras]=\"first?.routeExtras\"\n\t\t\t\t\t[current]=\"first?.current\"\n\t\t\t\t\t[ariaCurrent]=\"first?.ariaCurrent\"\n\t\t\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t\t\t@if (!first?.template) {\n\t\t\t\t\t\t{{first?.content}}\n\t\t\t\t\t}\n\t\t\t\t\t@if (first?.template) {\n\t\t\t\t\t\t<ng-template\n\t\t\t\t\t\t\t[ngTemplateOutlet]=\"first?.template\"\n\t\t\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: first }\">\n\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t}\n\t\t\t\t</cds-breadcrumb-item>\n\t\t\t\t<cds-breadcrumb-item>\n\t\t\t\t\t<ng-template #overflowMenuTrigger>\n\t\t\t\t\t\t<svg class=\"cds--overflow-menu__icon\" cdsIcon=\"overflow-menu--horizontal\" size=\"16\"></svg>\n\t\t\t\t\t</ng-template>\n\t\t\t\t\t<cds-overflow-menu\n\t\t\t\t\t\t[customTrigger]=\"overflowMenuTrigger\"\n\t\t\t\t\t\ttriggerClass=\"cds--btn--icon-only\"\n\t\t\t\t\t\t[description]=\"description\"\n\t\t\t\t\t\t[autoAlign]=\"autoAlign\">\n\t\t\t\t\t\t@for (item of overflowItems; track item) {\n\t\t\t\t\t\t\t<li class=\"cds--overflow-menu-options__option\">\n\t\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\t\tclass=\"cds--overflow-menu-options__btn\"\n\t\t\t\t\t\t\t\t\thref=\"{{item?.href}}\"\n\t\t\t\t\t\t\t\t\t(click)=\"navigate($event, item)\"\n\t\t\t\t\t\t\t\t\tstyle=\"text-decoration: none;\">\n\t\t\t\t\t\t\t\t\t@if (!item?.template) {\n\t\t\t\t\t\t\t\t\t\t{{item?.content}}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t@if (item?.template) {\n\t\t\t\t\t\t\t\t\t\t<ng-template\n\t\t\t\t\t\t\t\t\t\t\t[ngTemplateOutlet]=\"item?.template\"\n\t\t\t\t\t\t\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: item }\">\n\t\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t}\n\t\t\t\t\t</cds-overflow-menu>\n\t\t\t\t</cds-breadcrumb-item>\n\t\t\t\t<cds-breadcrumb-item\n\t\t\t\t\t[href]=\"secondLast?.href\"\n\t\t\t\t\t[route]=\"secondLast?.route\"\n\t\t\t\t\t[routeExtras]=\"secondLast?.routeExtras\"\n\t\t\t\t\t[current]=\"secondLast?.current\"\n\t\t\t\t\t[ariaCurrent]=\"secondLast?.ariaCurrent\"\n\t\t\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t\t\t@if (!secondLast?.template) {\n\t\t\t\t\t\t{{secondLast?.content}}\n\t\t\t\t\t}\n\t\t\t\t\t@if (secondLast?.template) {\n\t\t\t\t\t\t<ng-template\n\t\t\t\t\t\t\t[ngTemplateOutlet]=\"secondLast?.template\"\n\t\t\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: secondLast }\">\n\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t}\n\t\t\t\t</cds-breadcrumb-item>\n\t\t\t\t<cds-breadcrumb-item\n\t\t\t\t\t[href]=\"last?.href\"\n\t\t\t\t\t[route]=\"last?.route\"\n\t\t\t\t\t[routeExtras]=\"last?.routeExtras\"\n\t\t\t\t\t[current]=\"last?.current\"\n\t\t\t\t\t[ariaCurrent]=\"last?.ariaCurrent\"\n\t\t\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t\t\t@if (!last?.template) {\n\t\t\t\t\t\t{{last?.content}}\n\t\t\t\t\t}\n\t\t\t\t\t@if (last?.template) {\n\t\t\t\t\t\t<ng-template\n\t\t\t\t\t\t\t[ngTemplateOutlet]=\"last?.template\"\n\t\t\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: last }\">\n\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t}\n\t\t\t\t</cds-breadcrumb-item>\n\t\t\t}\n\t\t</nav>\n\t`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [EventService],\n imports: [\n NgClass,\n NgTemplateOutlet,\n BreadcrumbItemComponent,\n IconDirective,\n OverflowMenu\n ]\n })\n], Breadcrumb);\nexport { Breadcrumb };\n","import { __decorate } from \"tslib\";\nimport { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { DialogModule } from \"carbon-components-angular/dialog\";\nimport { I18nModule } from \"carbon-components-angular/i18n\";\nimport { Breadcrumb } from \"./breadcrumb.component\";\nimport { BreadcrumbItemComponent } from \"./breadcrumb-item.component\";\nimport { ButtonModule } from \"carbon-components-angular/button\";\nimport { IconModule } from \"carbon-components-angular/icon\";\nlet BreadcrumbModule = class BreadcrumbModule {\n};\nBreadcrumbModule = __decorate([\n NgModule({\n exports: [\n Breadcrumb,\n BreadcrumbItemComponent\n ],\n imports: [\n Breadcrumb,\n BreadcrumbItemComponent,\n CommonModule,\n ButtonModule,\n DialogModule,\n I18nModule,\n IconModule\n ]\n })\n], BreadcrumbModule);\nexport { BreadcrumbModule };\n","import { InjectionToken } from \"@angular/core\";\nexport const CHECKBOX_GROUP_HOST = new InjectionToken(\"CheckboxGroupHost\");\n","var Checkbox_1;\nimport { __decorate } from \"tslib\";\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, Output, TemplateRef, ViewChild, HostListener, inject } from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR } from \"@angular/forms\";\nimport { NgClass, NgTemplateOutlet } from \"@angular/common\";\nimport { IconDirective } from \"carbon-components-angular/icon\";\nimport { CHECKBOX_GROUP_HOST } from \"./checkbox-group-host\";\n/**\n * Defines the set of states for a checkbox component.\n */\nexport var CheckboxState;\n(function (CheckboxState) {\n CheckboxState[CheckboxState[\"Init\"] = 0] = \"Init\";\n CheckboxState[CheckboxState[\"Indeterminate\"] = 1] = \"Indeterminate\";\n CheckboxState[CheckboxState[\"Checked\"] = 2] = \"Checked\";\n CheckboxState[CheckboxState[\"Unchecked\"] = 3] = \"Unchecked\";\n})(CheckboxState || (CheckboxState = {}));\n/**\n * Get started with importing the component:\n *\n * ```typescript\n * import { Checkbox } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-checkbox--basic)\n */\nlet Checkbox = class Checkbox {\n static { Checkbox_1 = this; }\n /**\n * Variable used for creating unique ids for checkbox components.\n */\n static { this.checkboxCount = 0; }\n static { this.helperIdCounter = 0; }\n set indeterminate(indeterminate) {\n if (indeterminate === this._indeterminate) {\n return;\n }\n this._indeterminate = indeterminate;\n if (this._indeterminate) {\n this.transitionCheckboxState(CheckboxState.Indeterminate);\n }\n else {\n this.transitionCheckboxState(this.checked ? CheckboxState.Checked : CheckboxState.Unchecked);\n }\n if (this.inputCheckbox && this.inputCheckbox.nativeElement) {\n this.inputCheckbox.nativeElement.indeterminate = indeterminate;\n }\n this.changeDetectorRef.markForCheck();\n this.indeterminateChange.emit(this._indeterminate);\n }\n /**\n * Reflects whether the checkbox state is indeterminate.\n */\n get indeterminate() {\n return this._indeterminate;\n }\n set checked(checked) {\n this.setChecked(checked, false);\n }\n /**\n * Returns value `true` if state is selected for the checkbox.\n */\n get checked() {\n return this._checked;\n }\n /**\n * Creates an instance of `Checkbox`.\n */\n constructor() {\n this.disabled = false;\n this.skeleton = false;\n this.hideLabel = false;\n this.id = `checkbox-${Checkbox_1.checkboxCount}`;\n this.title = \"\";\n this.click = new EventEmitter();\n this.checkedChange = new EventEmitter();\n this.indeterminateChange = new EventEmitter();\n /**\n * Set to `true` if the input checkbox is selected (or checked).\n */\n this._checked = false;\n /**\n * Set to `true` if the input checkbox is in state indeterminate.\n */\n this._indeterminate = false;\n /**\n * Keeps a reference to the checkboxes current state, as defined in `CheckboxState`.\n */\n this.currentCheckboxState = CheckboxState.Init;\n this.helperId = `checkbox-helper-${Checkbox_1.helperIdCounter++}`;\n this.changeDetectorRef = inject(ChangeDetectorRef);\n this.hostGroup = inject(CHECKBOX_GROUP_HOST, { optional: true });\n /**\n * Called when checkbox is blurred. Needed to properly implement `ControlValueAccessor`.\n */\n this.onTouched = () => { };\n /**\n * Method set in `registerOnChange` to propagate changes back to the form.\n */\n this.propagateChange = (_) => { };\n Checkbox_1.checkboxCount++;\n }\n get effectiveReadOnly() {\n const own = this.readOnly;\n const group = this.hostGroup?.readOnly ?? false;\n return !!(own !== undefined ? own : group);\n }\n get effectiveInvalid() {\n const own = this.invalid;\n const group = this.hostGroup?.invalid ?? false;\n return !!(own !== undefined ? own : group);\n }\n get effectiveWarn() {\n const own = this.warn;\n const group = this.hostGroup?.warn ?? false;\n return !!(own !== undefined ? own : group);\n }\n /**\n * Toggle the selected state of the checkbox.\n */\n toggle() {\n if (this.effectiveReadOnly) {\n return;\n }\n // Flip checked and reset indeterminate\n this.setChecked(!this.checked, true);\n }\n /**\n * Writes a value from `ngModel` to the component.\n *\n * In this case the value is the `checked` property.\n *\n * @param value boolean, corresponds to the `checked` property.\n */\n writeValue(value) {\n // Set checked and reset indeterminate\n this.setChecked(!!value, true);\n }\n /**\n * Sets a method in order to propagate changes back to the form.\n */\n registerOnChange(fn) {\n this.propagateChange = fn;\n }\n /**\n * Registers a callback to be triggered when the control has been touched.\n * @param fn Callback to be triggered when the checkbox is touched.\n */\n registerOnTouched(fn) {\n this.onTouched = fn;\n }\n /**\n * `ControlValueAccessor` method to programmatically disable the checkbox.\n *\n * ex: `this.formGroup.get(\"myCheckbox\").disable();`\n *\n * @param isDisabled `true` to disable the checkbox\n */\n setDisabledState(isDisabled) {\n this.disabled = isDisabled;\n this.changeDetectorRef.markForCheck();\n }\n /**\n * Invoked by `CheckboxGroup` when group `readOnly`, `invalid`, `warn` change so `OnPush`\n * checkboxes still refresh inherited state from `CHECKBOX_GROUP_HOST`.\n */\n markForCheckFromGroup() {\n this.changeDetectorRef.markForCheck();\n }\n focusOut() {\n this.onTouched();\n }\n /**\n * Executes on the event of a change within `Checkbox` to block propagation.\n */\n onChange(event) {\n event.stopPropagation();\n }\n /**\n * Handles click events on the `Checkbox` and emits changes to other classes.\n */\n onClick(event) {\n if (this.effectiveReadOnly) {\n event.preventDefault();\n if (this.click.observers.length) {\n this.click.emit();\n }\n return;\n }\n if (this.click.observers.length) {\n // Disable default checkbox activation behavior which flips checked and resets indeterminate.\n // This allows the parent component to control the checked/indeterminate properties.\n event.preventDefault();\n this.click.emit();\n return;\n }\n if (!this.disabled) {\n this.toggle();\n this.transitionCheckboxState(this._checked ? CheckboxState.Checked : CheckboxState.Unchecked);\n this.emitChangeEvent();\n }\n }\n /**\n * Handles changes between checkbox states.\n */\n transitionCheckboxState(newState) {\n this.currentCheckboxState = newState;\n }\n /**\n * Creates instance of `CheckboxChange` used to propagate the change event.\n */\n emitChangeEvent() {\n this.checkedChange.emit(this.checked);\n this.propagateChange(this.checked);\n }\n /**\n * Updates the checkbox if it is in the indeterminate state.\n */\n ngAfterViewInit() {\n if (this.indeterminate && this.inputCheckbox && this.inputCheckbox.nativeElement) {\n this.inputCheckbox.nativeElement.indeterminate = true;\n }\n }\n /**\n * Returns `true` when the provided value is a `TemplateRef`.\n */\n isTemplate(value) {\n return value instanceof TemplateRef;\n }\n /**\n * Sets checked state and optionally resets indeterminate state.\n */\n setChecked(checked, resetIndeterminate) {\n if (checked === this._checked) {\n return;\n }\n this._checked = checked;\n // Reset indeterminate if requested\n if (resetIndeterminate && this._indeterminate) {\n this._indeterminate = false;\n Promise.resolve().then(() => {\n this.indeterminateChange.emit(this._indeterminate);\n });\n }\n this.changeDetectorRef.markForCheck();\n }\n static { this.ctorParameters = () => []; }\n static { this.propDecorators = {\n disabled: [{ type: Input }],\n skeleton: [{ type: Input }],\n hideLabel: [{ type: Input }],\n name: [{ type: Input }],\n id: [{ type: Input }],\n required: [{ type: Input }],\n value: [{ type: Input }],\n ariaLabel: [{ type: Input }],\n ariaLabelledby: [{ type: Input }],\n title: [{ type: Input }],\n helperText: [{ type: Input }],\n invalid: [{ type: Input }],\n invalidText: [{ type: Input }],\n warn: [{ type: Input }],\n warnText: [{ type: Input }],\n readOnly: [{ type: Input }],\n decorator: [{ type: Input }],\n indeterminate: [{ type: Input }],\n checked: [{ type: Input }],\n click: [{ type: Output }],\n checkedChange: [{ type: Output }],\n indeterminateChange: [{ type: Output }],\n inputCheckbox: [{ type: ViewChild, args: [\"inputCheckbox\",] }],\n focusOut: [{ type: HostListener, args: [\"focusout\",] }]\n }; }\n};\nCheckbox = Checkbox_1 = __decorate([\n Component({\n selector: \"cds-checkbox, ibm-checkbox\",\n template: `\n\t\t<div class=\"cds--form-item cds--checkbox-wrapper\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--checkbox-wrapper--invalid': !effectiveReadOnly && effectiveInvalid,\n\t\t\t\t'cds--checkbox-wrapper--warning': !effectiveReadOnly && !effectiveInvalid && effectiveWarn,\n\t\t\t\t'cds--checkbox-wrapper--readonly': effectiveReadOnly,\n\t\t\t\t'cds--checkbox-wrapper--decorator': !!decorator\n\t\t\t}\">\n\t\t\t<input\n\t\t\t\t#inputCheckbox\n\t\t\t\tclass=\"cds--checkbox\"\n\t\t\t\ttype=\"checkbox\"\n\t\t\t\t[id]=\"id + '_input'\"\n\t\t\t\t[value]=\"value\"\n\t\t\t\t[name]=\"name\"\n\t\t\t\t[required]=\"required\"\n\t\t\t\t[checked]=\"checked\"\n\t\t\t\t[disabled]=\"disabled\"\n\t\t\t\t[attr.data-invalid]=\"(!effectiveReadOnly && effectiveInvalid) ? true : null\"\n\t\t\t\t[attr.aria-readonly]=\"effectiveReadOnly ? true : null\"\n\t\t\t\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t\t\t\t[attr.aria-describedby]=\"(helperText && !effectiveInvalid && !effectiveWarn) ? helperId : null\"\n\t\t\t\t(change)=\"onChange($event)\"\n\t\t\t\t(click)=\"onClick($event)\">\n\t\t\t<label\n\t\t\t\t[for]=\"id + '_input'\"\n\t\t\t\t[attr.aria-label]=\"ariaLabel\"\n\t\t\t\t[attr.title]=\"title || null\"\n\t\t\t\tclass=\"cds--checkbox-label\"\n\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t'cds--skeleton' : skeleton\n\t\t\t\t}\">\n\t\t\t\t<span [ngClass]=\"{'cds--visually-hidden' : hideLabel}\" class=\"cds--checkbox-label-text\">\n\t\t\t\t\t<ng-content></ng-content>\n\t\t\t\t\t@if (decorator) {\n\t\t\t\t\t\t<div class=\"cds--checkbox-wrapper-inner--decorator\">\n\t\t\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"decorator\"></ng-template>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t</label>\n\t\t\t<div class=\"cds--checkbox__validation-msg\">\n\t\t\t\t@if (!effectiveReadOnly && effectiveInvalid) {\n\t\t\t\t\t<svg\n\t\t\t\t\t\tcdsIcon=\"warning--filled\"\n\t\t\t\t\t\tsize=\"16\"\n\t\t\t\t\t\tclass=\"cds--checkbox__invalid-icon\">\n\t\t\t\t\t</svg>\n\t\t\t\t\t<div class=\"cds--form-requirement\">\n\t\t\t\t\t\t@if (!isTemplate(invalidText)) {\n\t\t\t\t\t\t\t{{invalidText}}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@if (isTemplate(invalidText)) {\n\t\t\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"$any(invalidText)\"></ng-template>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t\t@if (!effectiveReadOnly && !effectiveInvalid && effectiveWarn) {\n\t\t\t\t\t<svg\n\t\t\t\t\t\tcdsIcon=\"warning--alt--filled\"\n\t\t\t\t\t\tsize=\"16\"\n\t\t\t\t\t\tclass=\"cds--checkbox__invalid-icon cds--checkbox__invalid-icon--warning\">\n\t\t\t\t\t</svg>\n\t\t\t\t\t<div class=\"cds--form-requirement\">\n\t\t\t\t\t\t@if (!isTemplate(warnText)) {\n\t\t\t\t\t\t\t{{warnText}}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@if (isTemplate(warnText)) {\n\t\t\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"$any(warnText)\"></ng-template>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t</div>\n\t\t\t@if (helperText && !effectiveInvalid && !effectiveWarn) {\n\t\t\t\t<div\n\t\t\t\t\tclass=\"cds--form__helper-text\"\n\t\t\t\t\t[id]=\"helperId\">\n\t\t\t\t\t@if (!isTemplate(helperText)) {\n\t\t\t\t\t\t{{helperText}}\n\t\t\t\t\t}\n\t\t\t\t\t@if (isTemplate(helperText)) {\n\t\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"$any(helperText)\"></ng-template>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t}\n\t\t</div>\n\t`,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: Checkbox,\n multi: true\n }\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgClass, NgTemplateOutlet, IconDirective]\n })\n], Checkbox);\nexport { Checkbox };\n","var CheckboxGroup_1;\nimport { __decorate } from \"tslib\";\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, forwardRef, HostBinding, Input, TemplateRef, inject } from \"@angular/core\";\nimport { NgClass, NgTemplateOutlet } from \"@angular/common\";\nimport { IconDirective } from \"carbon-components-angular/icon\";\nimport { CHECKBOX_GROUP_HOST } from \"./checkbox-group-host\";\nimport { Checkbox } from \"./checkbox.component\";\n/**\n * Groups related checkboxes with a shared legend, validation, and optional decorator\n * (e.g. AI label).\n *\n * ```html\n * <cds-checkbox-group legend=\"Group label\" [decorator]=\"decoratorTpl\">\n * <cds-checkbox>Option 1</cds-checkbox>\n * </cds-checkbox-group>\n * ```\n */\nlet CheckboxGroup = class CheckboxGroup {\n static { CheckboxGroup_1 = this; }\n static { this.nextHelperId = 0; }\n constructor() {\n this.hostFormItem = true;\n this.helperTextId = `checkbox-group-helper-${CheckboxGroup_1.nextHelperId++}`;\n this.orientation = \"vertical\";\n this.invalid = false;\n this.warn = false;\n this.readOnly = false;\n this.changeDetectorRef = inject(ChangeDetectorRef);\n }\n ngOnChanges(changes) {\n if (changes[\"readOnly\"] || changes[\"invalid\"] || changes[\"warn\"]) {\n this.notifyCheckboxesHostStateChanged();\n }\n }\n ngAfterContentInit() {\n this.checkboxes.changes.subscribe(() => this.notifyCheckboxesHostStateChanged());\n }\n isTemplate(value) {\n return value instanceof TemplateRef;\n }\n notifyCheckboxesHostStateChanged() {\n Promise.resolve().then(() => {\n this.checkboxes?.forEach((cb) => cb.markForCheckFromGroup());\n this.changeDetectorRef.markForCheck();\n });\n }\n static { this.ctorParameters = () => []; }\n static { this.propDecorators = {\n hostFormItem: [{ type: HostBinding, args: [\"class.cds--form-item\",] }],\n checkboxes: [{ type: ContentChildren, args: [forwardRef(() => Checkbox), { descendants: true },] }],\n legend: [{ type: Input }],\n legendId: [{ type: Input }],\n fieldsetAriaLabelledby: [{ type: Input }],\n orientation: [{ type: Input }],\n helperText: [{ type: Input }],\n invalid: [{ type: Input }],\n invalidText: [{ type: Input }],\n warn: [{ type: Input }],\n warnText: [{ type: Input }],\n readOnly: [{ type: Input }],\n decorator: [{ type: Input }]\n }; }\n};\nCheckboxGroup = CheckboxGroup_1 = __decorate([\n Component({\n selector: \"cds-checkbox-group, ibm-checkbox-group\",\n template: `\r\n\t\t<fieldset\r\n\t\t\tclass=\"cds--checkbox-group\"\r\n\t\t\t[ngClass]=\"{\r\n\t\t\t\t'cds--checkbox-group--horizontal': orientation === 'horizontal',\r\n\t\t\t\t'cds--checkbox-group--readonly': readOnly,\r\n\t\t\t\t'cds--checkbox-group--invalid': !readOnly && invalid,\r\n\t\t\t\t'cds--checkbox-group--warning': !readOnly && !invalid && warn,\r\n\t\t\t\t'cds--checkbox-group--decorator': !!decorator\r\n\t\t\t}\"\r\n\t\t\t[attr.data-invalid]=\"invalid ? true : null\"\r\n\t\t\t[attr.aria-labelledby]=\"legendId || fieldsetAriaLabelledby || null\"\r\n\t\t\t[attr.aria-readonly]=\"readOnly ? true : null\"\r\n\t\t\t[attr.aria-describedby]=\"(helperText && !invalid && !warn) ? helperTextId : null\">\r\n\t\t\t@if (legend) {\r\n\t\t\t\t<legend\r\n\t\t\t\t\tclass=\"cds--label\"\r\n\t\t\t\t\t[attr.id]=\"legendId || null\">\r\n\t\t\t\t\t@if (isTemplate(legend)) {\r\n\t\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"legend\"></ng-template>\r\n\t\t\t\t\t} @else {\r\n\t\t\t\t\t\t{{legend}}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t@if (decorator) {\r\n\t\t\t\t\t\t<div class=\"cds--checkbox-group-inner--decorator\">\r\n\t\t\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"decorator\"></ng-template>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t}\r\n\t\t\t\t</legend>\r\n\t\t\t}\r\n\t\t\t<ng-content></ng-content>\r\n\t\t\t<div class=\"cds--checkbox-group__validation-msg\">\r\n\t\t\t\t@if (!readOnly && invalid) {\r\n\t\t\t\t\t<svg\r\n\t\t\t\t\t\tcdsIcon=\"warning--filled\"\r\n\t\t\t\t\t\tsize=\"16\"\r\n\t\t\t\t\t\tclass=\"cds--checkbox__invalid-icon\">\r\n\t\t\t\t\t</svg>\r\n\t\t\t\t\t<div class=\"cds--form-requirement\">\r\n\t\t\t\t\t\t@if (!isTemplate(invalidText)) {\r\n\t\t\t\t\t\t\t{{ invalidText }}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t@if (isTemplate(invalidText)) {\r\n\t\t\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"invalidText\"></ng-template>\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t}\r\n\t\t\t\t@if (!readOnly && !invalid && warn) {\r\n\t\t\t\t\t<svg\r\n\t\t\t\t\t\tcdsIcon=\"warning--alt--filled\"\r\n\t\t\t\t\t\tsize=\"16\"\r\n\t\t\t\t\t\tclass=\"cds--checkbox__invalid-icon cds--checkbox__invalid-icon--warning\">\r\n\t\t\t\t\t</svg>\r\n\t\t\t\t\t<div class=\"cds--form-requirement\">\r\n\t\t\t\t\t\t@if (!isTemplate(warnText)) {\r\n\t\t\t\t\t\t\t{{warnText}}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t@if (isTemplate(warnText)) {\r\n\t\t\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"warnText\"></ng-template>\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t\t@if (helperText && !invalid && !warn) {\r\n\t\t\t\t<div\r\n\t\t\t\t\tclass=\"cds--form__helper-text\"\r\n\t\t\t\t\t[id]=\"helperTextId\">\r\n\t\t\t\t\t@if (!isTemplate(helperText)) {\r\n\t\t\t\t\t\t{{helperText}}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t@if (isTemplate(helperText)) {\r\n\t\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"helperText\"></ng-template>\r\n\t\t\t\t\t}\r\n\t\t\t\t</div>\r\n\t\t\t}\r\n\t\t</fieldset>\r\n\t`,\n providers: [\n { provide: CHECKBOX_GROUP_HOST, useExisting: CheckboxGroup }\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgClass, NgTemplateOutlet, IconDirective]\n })\n], CheckboxGroup);\nexport { CheckboxGroup };\n","import { __decorate } from \"tslib\";\n// modules\nimport { NgModule } from \"@angular/core\";\nimport { FormsModule } from \"@angular/forms\";\nimport { CommonModule } from \"@angular/common\";\n// imports\nimport { Checkbox } from \"./checkbox.component\";\nimport { CheckboxGroup } from \"./checkbox-group.component\";\nimport { IconModule } from \"carbon-components-angular/icon\";\nlet CheckboxModule = class CheckboxModule {\n};\nCheckboxModule = __decorate([\n NgModule({\n exports: [\n Checkbox,\n CheckboxGroup\n ],\n imports: [\n CommonModule,\n FormsModule,\n IconModule,\n Checkbox,\n CheckboxGroup\n ]\n })\n], CheckboxModule);\nexport { CheckboxModule };\n","import { __decorate } from \"tslib\";\nimport { Directive, HostBinding, Input, inject } from \"@angular/core\";\nimport { Subscription } from \"rxjs\";\nimport { GridService } from \"./grid.service\";\nlet ColumnDirective = class ColumnDirective {\n get columnClasses() {\n return this._columnClasses.join(\" \");\n }\n set columnClasses(classes) {\n this._columnClasses = classes.split(\" \");\n }\n constructor() {\n this.class = \"\";\n this.columnNumbers = {};\n this.offsets = {};\n this.columnHang = false;\n this._columnClasses = [];\n this.isCssGrid = false;\n this.subscription = new Subscription();\n this.gridService = inject(GridService, { optional: true });\n }\n ngOnInit() {\n if (this.gridService) {\n this.subscription = this.gridService.gridObservable.subscribe((isCssGrid) => {\n this.isCssGrid = isCssGrid;\n this.updateColumnClasses();\n });\n }\n else {\n this.updateColumnClasses();\n }\n }\n ngOnChanges() {\n this.updateColumnClasses();\n }\n /**\n * Unsubscribe from subscription\n */\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n updateColumnClasses() {\n try {\n this._columnClasses = [];\n const columnKeys = Object.keys(this.columnNumbers);\n // Assign classes based on the type of grid used.\n if (this.isCssGrid) {\n // Default css grid class\n this._columnClasses.push(\"cds--css-grid-column\");\n if (this.columnHang) {\n this._columnClasses.push(\"cds--grid-column-hang\");\n }\n columnKeys.forEach(key => {\n /**\n * Passing in `auto` to a breakpoint as such: {'md': 'auto'}\n * will assign the element which will automatically determine the width of the column\n * for the breakpoint passed\n */\n if (this.columnNumbers[key] === \"auto\") {\n this._columnClasses.push(`cds--${key}:col-span-auto`);\n }\n else if (typeof this.columnNumbers[key] === \"object\") {\n /**\n * In css grid, objects can be passed to the keys in the following format:\n * {'md': {'start': 3}}\n *\n * These objects are used to position the column\n */\n if (this.columnNumbers[key][\"start\"]) {\n // col-start is simular equivalent of flex offset\n this._columnClasses.push(`cds--${key}:col-start-${this.columnNumbers[key].start}`);\n }\n if (this.columnNumbers[key][\"end\"]) {\n this._columnClasses.push(`cds--${key}:col-end-${this.columnNumbers[key].end}`);\n }\n if (this.columnNumbers[key][\"span\"]) {\n this._columnClasses.push(`cds--${key}:col-span-${this.columnNumbers[key].span}`);\n }\n }\n else {\n this._columnClasses.push(`cds--${key}:col-span-${this.columnNumbers[key]}`);\n }\n });\n Object.keys(this.offsets).forEach(key => {\n this._columnClasses.push(`cds--${key}:col-start-${this.offsets[key]}`);\n });\n }\n else {\n // Set column classes for flex grid\n if (columnKeys.length <= 0) {\n this._columnClasses.push(\"cds--col\");\n }\n columnKeys.forEach(key => {\n if (this.columnNumbers[key] === \"nobreak\") {\n this._columnClasses.push(`cds--col-${key}`);\n }\n else {\n this._columnClasses.push(`cds--col-${key}-${this.columnNumbers[key]}`);\n }\n });\n Object.keys(this.offsets).forEach(key => {\n this._columnClasses.push(`cds--offset-${key}-${this.offsets[key]}`);\n });\n }\n }\n catch (err) {\n console.error(`Malformed \\`offsets\\` or \\`columnNumbers\\`: ${err}`);\n }\n /**\n * Append the classes passed so they aren't overriden when we set the column classes\n * from host binding\n */\n if (this.class) {\n this._columnClasses.push(this.class);\n }\n }\n static { this.ctorParameters = () => []; }\n static { this.propDecorators = {\n columnClasses: [{ type: HostBinding, args: [\"class\",] }],\n class: [{ type: Input }],\n columnNumbers: [{ type: Input }],\n offsets: [{ type: Input }],\n columnHang: [{ type: Input }]\n }; }\n};\nColumnDirective = __decorate([\n Directive({\n selector: \"[cdsCol], [ibmCol]\",\n standalone: true\n })\n], ColumnDirective);\nexport { ColumnDirective };\n","import { __decorate } from \"tslib\";\nimport { ContentChildren, Directive, forwardRef, HostBinding, Input, Optional, SkipSelf, inject } from \"@angular/core\";\nimport { Subscription } from \"rxjs\";\nimport { GridService } from \"./grid.service\";\n/**\n * Get started with importing the directives:\n *\n * ```typescript\n * import {\n * \tGridDirective,\n * \tColumnDirective,\n * \tRowDirective\n * } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-grid--basic)\n */\nlet GridDirective = class GridDirective {\n set useCssGrid(enable) {\n this.cssGridEnabled = enable;\n this.gridService.updateGridType(enable);\n }\n get flexGrid() {\n return !this.cssGridEnabled;\n }\n get flexCondensed() {\n return !this.cssGridEnabled && this.condensed;\n }\n get flexNarrow() {\n return !this.cssGridEnabled && this.narrow;\n }\n get flexFullWidth() {\n return !this.cssGridEnabled && this.fullWidth;\n }\n get ccsGrid() {\n return this.cssGridEnabled && !this.isSubgrid;\n }\n get ccsCondensed() {\n return this.cssGridEnabled && !this.isSubgrid && this.condensed;\n }\n get ccsNarrow() {\n return this.cssGridEnabled && !this.isSubgrid && this.narrow;\n }\n get ccsFullWidth() {\n return this.cssGridEnabled && !this.isSubgrid && this.fullWidth;\n }\n get subGrid() {\n return this.cssGridEnabled && this.isSubgrid;\n }\n get subCondensed() {\n return this.cssGridEnabled && this.isSubgrid && this.condensed;\n }\n get subNarrow() {\n return this.cssGridEnabled && this.isSubgrid && this.narrow;\n }\n get subFullWidth() {\n return this.cssGridEnabled && this.isSubgrid && this.fullWidth;\n }\n constructor() {\n this.condensed = false;\n this.narrow = false;\n this.fullWidth = false;\n this.cssGridEnabled = false;\n this.isSubgrid = false;\n this.subscription = new Subscription();\n this.gridService = inject(GridService);\n }\n ngOnInit() {\n this.subscription = this.gridService.gridObservable.subscribe((isCssGrid) => {\n this.cssGridEnabled = isCssGrid;\n });\n }\n set cssGridChildren(list) {\n if (this.cssGridEnabled) {\n list.forEach((grid) => {\n // Prevents initial (parent) grid element from being turned into a subgrid\n if (grid === this) {\n return;\n }\n grid.isSubgrid = true;\n });\n }\n }\n /**\n * Unsubscribe from Grid Service subscription\n */\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n static { this.ctorParameters = () => []; }\n static { this.propDecorators = {\n condensed: [{ type: Input }],\n narrow: [{ type: Input }],\n fullWidth: [{ type: Input }],\n useCssGrid: [{ type: Input }],\n flexGrid: [{ type: HostBinding, args: [\"class.cds--grid\",] }],\n flexCondensed: [{ type: HostBinding, args: [\"class.cds--grid--condensed\",] }],\n flexNarrow: [{ type: HostBinding, args: [\"class.cds--grid--narrow\",] }],\n flexFullWidth: [{ type: HostBinding, args: [\"class.cds--grid--full-width\",] }],\n ccsGrid: [{ type: HostBinding, args: [\"class.cds--css-grid\",] }],\n ccsCondensed: [{ type: HostBinding, args: [\"class.cds--css-grid--condensed\",] }],\n ccsNarrow: [{ type: HostBinding, args: [\"class.cds--css-grid--narrow\",] }],\n ccsFullWidth: [{ type: HostBinding, args: [\"class.cds--css-grid--full-width\",] }],\n subGrid: [{ type: HostBinding, args: [\"class.cds--subgrid\",] }],\n subCondensed: [{ type: HostBinding, args: [\"class.cds--subgrid--condensed\",] }],\n subNarrow: [{ type: HostBinding, args: [\"class.cds--subgrid--narrow\",] }],\n subFullWidth: [{ type: HostBinding, args: [\"class.cds--subgrid--wide\",] }],\n cssGridChildren: [{ type: ContentChildren, args: [forwardRef(() => GridDirective), { descendants: true },] }]\n }; }\n};\nGridDirective = __decorate([\n Directive({\n selector: \"[cdsGrid], [ibmGrid]\",\n providers: [\n {\n provide: GridService,\n deps: [[new Optional(), new SkipSelf(), GridService]],\n useFactory: (parentService) => {\n return parentService || new GridService();\n }\n }\n ],\n standalone: true\n })\n], GridDirective);\nexport { GridDirective };\n","import { __decorate } from \"tslib\";\nimport { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { ColumnDirective } from \"./column.directive\";\nimport { RowDirective } from \"./row.directive\";\nimport { GridDirective } from \"./grid.directive\";\nimport { GridService } from \"./grid.service\";\nlet GridModule = class GridModule {\n};\nGridModule = __decorate([\n NgModule({\n exports: [\n ColumnDirective,\n GridDirective,\n RowDirective\n ],\n providers: [GridService],\n imports: [\n CommonModule,\n ColumnDirective,\n GridDirective,\n RowDirective\n ]\n })\n], GridModule);\nexport { GridModule };\n","import { __decorate } from \"tslib\";\nimport { Injectable } from \"@angular/core\";\nimport { BehaviorSubject } from \"rxjs\";\nlet GridService = class GridService {\n constructor() {\n this.gridSubject = new BehaviorSubject(false);\n this.cssGridEnabled = false;\n this.gridObservable = this.gridSubject.asObservable();\n }\n /**\n * Ping all subscribers to update to use Css Grid\n * @param enableCssGrid\n */\n updateGridType(enableCssGrid) {\n if (this.cssGridEnabled === enableCssGrid) {\n return;\n }\n this.cssGridEnabled = true;\n this.gridSubject.next(enableCssGrid);\n }\n static { this.ctorParameters = () => []; }\n};\nGridService = __decorate([\n Injectable()\n], GridService);\nexport { GridService };\n","import { __decorate } from \"tslib\";\nimport { Directive, HostBinding, Input } from \"@angular/core\";\nlet RowDirective = class RowDirective {\n constructor() {\n this.baseClass = true;\n this.condensed = false;\n this.narrow = false;\n }\n static { this.propDecorators = {\n baseClass: [{ type: HostBinding, args: [\"class.cds--row\",] }],\n condensed: [{ type: HostBinding, args: [\"class.cds--row--condensed\",] }, { type: Input }],\n narrow: [{ type: HostBinding, args: [\"class.cds--row--narrow\",] }, { type: Input }]\n }; }\n};\nRowDirective = __decorate([\n Directive({\n selector: \"[cdsRow], [ibmRow]\",\n standalone: true\n })\n], RowDirective);\nexport { RowDirective };\n","import { __decorate } from \"tslib\";\nimport { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, inject } from \"@angular/core\";\nimport { I18n } from \"carbon-components-angular/i18n\";\nimport { NgClass } from \"@angular/common\";\nimport { IconDirective } from \"carbon-components-angular/icon\";\n/**\n * Get started with importing the component:\n *\n * ```typescript\n * import { ProgressIndicator } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-progress-indicator--basic)\n */\nlet ProgressIndicator = class ProgressIndicator {\n static skeletonSteps(stepCount) {\n const steps = [];\n for (let i = 0; i < stepCount; i++) {\n steps.push({ complete: false });\n }\n return steps;\n }\n get current() {\n return this._current;\n }\n set current(current) {\n this._current = current;\n this.setProgressIndicatorStates();\n }\n constructor() {\n this.i18n = inject(I18n);\n this.stepSelected = new EventEmitter();\n this.translations = this.i18n.get().PROGRESS_INDICATOR;\n this.orientation = \"horizontal\";\n this.skeleton = false;\n this.spacing = \"default\";\n // Get icon names based for each status\n this.statusIcons = {\n current: \"incomplete\",\n complete: \"checkmark--outline\",\n invalid: \"warning\",\n incomplete: \"circle-dash\"\n };\n }\n /**\n * Executes click function if `onClick` exists for step\n * `Current` step functions will not be executed\n * @param index number\n */\n onClick(index) {\n if (index !== this.current && typeof this.steps[index].onClick === \"function\") {\n this.steps[index].onClick();\n }\n this.stepSelected.emit({ step: this.steps[index], index });\n }\n /**\n * Gets current state based on weight of the state\n * Weight of state goes from error, incomplete, current, and complete\n *\n * This function is used to determine which icon & translation string to display\n * @param index number\n * @returns string\n */\n getCurrentState(index) {\n if (index === this.current) {\n return \"current\";\n }\n else if (this.steps[index].invalid) {\n return \"invalid\";\n }\n else if (this.steps[index].complete) {\n return \"complete\";\n }\n return \"incomplete\";\n }\n setProgressIndicatorStates() {\n if (this.steps === undefined) {\n return;\n }\n // Set all preceding steps to `complete` & following to `incomplete`\n this.steps.forEach((step, index) => {\n if (index < this.current) {\n step.complete = true;\n }\n else {\n step.complete = false;\n }\n });\n }\n static { this.ctorParameters = () => []; }\n static { this.propDecorators = {\n current: [{ type: Input }],\n steps: [{ type: Input }],\n stepSelected: [{ type: Output }],\n translations: [{ type: Input }],\n orientation: [{ type: Input }],\n skeleton: [{ type: Input }],\n spacing: [{ type: Input }]\n }; }\n};\nProgressIndicator = __decorate([\n Component({\n selector: \"cds-progress-indicator, ibm-progress-indicator\",\n template: `\n\t\t<ul\n\t\t\tdata-progress\n\t\t\tdata-progress-current\n\t\t\tclass=\"cds--progress\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--skeleton': skeleton,\n\t\t\t\t'cds--progress--vertical': (orientation === 'vertical'),\n\t\t\t\t'cds--progress--space-equal': spacing === 'equal' && orientation !== 'vertical'\n\t\t\t}\">\n\t\t\t@for (step of steps; track step; let i = $index) {\n\t\t\t\t<li\n\t\t\t\t\tclass=\"cds--progress-step\"\n\t\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t\t'cds--progress-step--disabled' : step.disabled,\n\t\t\t\t\t\t'cds--progress-step--complete' : step.complete,\n\t\t\t\t\t\t'cds--progress-step--incomplete' : !step.complete && i !== current,\n\t\t\t\t\t\t'cds--progress-step--current': i === current\n\t\t\t\t\t}\">\n\t\t\t\t\t<button\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tclass=\"cds--progress-step-button\"\n\t\t\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t\t\t'cds--progress-step-button--unclickable': !step.onClick || current === i\n\t\t\t\t\t\t}\"\n\t\t\t\t\t\t[disabled]=\"step.disabled\"\n\t\t\t\t\t\t[attr.aria-disabled]=\"step.disabled\"\n\t\t\t\t\t\t[tabindex]=\"(current !== i && step.onClick && !step.disabled) ? 0 : -1\"\n\t\t\t\t\t\t[title]=\"step.label\"\n\t\t\t\t\t\t(click)=\"onClick(i)\">\n\t\t\t\t\t\t<span class=\"cds--assistive-text\">\n\t\t\t\t\t\t\t{{this.translations[getCurrentState(i)?.toUpperCase()]}}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\t[cdsIcon]=\"statusIcons[getCurrentState(i)]\"\n\t\t\t\t\t\t\tsize=\"16\"\n\t\t\t\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t\t\t\t'cds--progress__warning': step.invalid && i !== current\n\t\t\t\t\t\t\t}\">\n\t\t\t\t\t\t\t@if (step.description) {\n\t\t\t\t\t\t\t\t<title>{{step.description}}</title>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t<div class=\"cds--progress-text\">\n\t\t\t\t\t\t\t<p class=\"cds--progress-label\">{{step.label}}</p>\n\t\t\t\t\t\t\t@if (step.secondaryLabel) {\n\t\t\t\t\t\t\t\t<p class=\"cds--progress-optional\">{{step.secondaryLabel}}</p>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<span class=\"cds--progress-line\"></span>\n\t\t\t\t\t</button>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgClass, IconDirective]\n })\n], ProgressIndicator);\nexport { ProgressIndicator };\n","import { __decorate } from \"tslib\";\nimport { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { ProgressIndicator } from \"./progress-indicator.component\";\nimport { IconDirective } from \"carbon-components-angular/icon\";\nimport { I18nModule } from \"carbon-components-angular/i18n\";\nlet ProgressIndicatorModule = class ProgressIndicatorModule {\n};\nProgressIndicatorModule = __decorate([\n NgModule({\n exports: [\n ProgressIndicator\n ],\n imports: [\n CommonModule,\n IconDirective,\n I18nModule,\n ProgressIndicator\n ]\n })\n], ProgressIndicatorModule);\nexport { ProgressIndicatorModule };\n","/**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\nfunction isNull(value) {\n return value === null;\n}\n\nexport default isNull;\n","/**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\nfunction isUndefined(value) {\n return value === undefined;\n}\n\nexport default isUndefined;\n","import { asyncScheduler } from '../scheduler/async';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function debounceTime(dueTime, scheduler) {\n if (scheduler === void 0) { scheduler = asyncScheduler; }\n return operate(function (source, subscriber) {\n var activeTask = null;\n var lastValue = null;\n var lastTime = null;\n var emit = function () {\n if (activeTask) {\n activeTask.unsubscribe();\n activeTask = null;\n var value = lastValue;\n lastValue = null;\n subscriber.next(value);\n }\n };\n function emitWhenIdle() {\n var targetTime = lastTime + dueTime;\n var now = scheduler.now();\n if (now < targetTime) {\n activeTask = this.schedule(undefined, targetTime - now);\n subscriber.add(activeTask);\n return;\n }\n emit();\n }\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n lastValue = value;\n lastTime = scheduler.now();\n if (!activeTask) {\n activeTask = scheduler.schedule(emitWhenIdle, dueTime);\n subscriber.add(activeTask);\n }\n }, function () {\n emit();\n subscriber.complete();\n }, undefined, function () {\n lastValue = activeTask = null;\n }));\n });\n}\n//# sourceMappingURL=debounceTime.js.map","import { __extends } from \"tslib\";\nimport { Subscription } from '../Subscription';\nvar Action = (function (_super) {\n __extends(Action, _super);\n function Action(scheduler, work) {\n return _super.call(this) || this;\n }\n Action.prototype.schedule = function (state, delay) {\n if (delay === void 0) { delay = 0; }\n return this;\n };\n return Action;\n}(Subscription));\nexport { Action };\n//# sourceMappingURL=Action.js.map","import { __read, __spreadArray } from \"tslib\";\nexport var intervalProvider = {\n setInterval: function (handler, timeout) {\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n var delegate = intervalProvider.delegate;\n if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {\n return delegate.setInterval.apply(delegate, __spreadArray([handler, timeout], __read(args)));\n }\n return setInterval.apply(void 0, __spreadArray([handler, timeout], __read(args)));\n },\n clearInterval: function (handle) {\n var delegate = intervalProvider.delegate;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);\n },\n delegate: undefined,\n};\n//# sourceMappingURL=intervalProvider.js.map","import { __extends } from \"tslib\";\nimport { Action } from './Action';\nimport { intervalProvider } from './intervalProvider';\nimport { arrRemove } from '../util/arrRemove';\nvar AsyncAction = (function (_super) {\n __extends(AsyncAction, _super);\n function AsyncAction(scheduler, work) {\n var _this = _super.call(this, scheduler, work) || this;\n _this.scheduler = scheduler;\n _this.work = work;\n _this.pending = false;\n return _this;\n }\n AsyncAction.prototype.schedule = function (state, delay) {\n var _a;\n if (delay === void 0) { delay = 0; }\n if (this.closed) {\n return this;\n }\n this.state = state;\n var id = this.id;\n var scheduler = this.scheduler;\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, delay);\n }\n this.pending = true;\n this.delay = delay;\n this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay);\n return this;\n };\n AsyncAction.prototype.requestAsyncId = function (scheduler, _id, delay) {\n if (delay === void 0) { delay = 0; }\n return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);\n };\n AsyncAction.prototype.recycleAsyncId = function (_scheduler, id, delay) {\n if (delay === void 0) { delay = 0; }\n if (delay != null && this.delay === delay && this.pending === false) {\n return id;\n }\n if (id != null) {\n intervalProvider.clearInterval(id);\n }\n return undefined;\n };\n AsyncAction.prototype.execute = function (state, delay) {\n if (this.closed) {\n return new Error('executing a cancelled action');\n }\n this.pending = false;\n var error = this._execute(state, delay);\n if (error) {\n return error;\n }\n else if (this.pending === false && this.id != null) {\n this.id = this.recycleAsyncId(this.scheduler, this.id, null);\n }\n };\n AsyncAction.prototype._execute = function (state, _delay) {\n var errored = false;\n var errorValue;\n try {\n this.work(state);\n }\n catch (e) {\n errored = true;\n errorValue = e ? e : new Error('Scheduled action threw falsy error');\n }\n if (errored) {\n this.unsubscribe();\n return errorValue;\n }\n };\n AsyncAction.prototype.unsubscribe = function () {\n if (!this.closed) {\n var _a = this, id = _a.id, scheduler = _a.scheduler;\n var actions = scheduler.actions;\n this.work = this.state = this.scheduler = null;\n this.pending = false;\n arrRemove(actions, this);\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, null);\n }\n this.delay = null;\n _super.prototype.unsubscribe.call(this);\n }\n };\n return AsyncAction;\n}(Action));\nexport { AsyncAction };\n//# sourceMappingURL=AsyncAction.js.map","import { dateTimestampProvider } from './scheduler/dateTimestampProvider';\nvar Scheduler = (function () {\n function Scheduler(schedulerActionCtor, now) {\n if (now === void 0) { now = Scheduler.now; }\n this.schedulerActionCtor = schedulerActionCtor;\n this.now = now;\n }\n Scheduler.prototype.schedule = function (work, delay, state) {\n if (delay === void 0) { delay = 0; }\n return new this.schedulerActionCtor(this, work).schedule(state, delay);\n };\n Scheduler.now = dateTimestampProvider.now;\n return Scheduler;\n}());\nexport { Scheduler };\n//# sourceMappingURL=Scheduler.js.map","import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\nexport var asyncScheduler = new AsyncScheduler(AsyncAction);\nexport var async = asyncScheduler;\n//# sourceMappingURL=async.js.map","import { __extends } from \"tslib\";\nimport { Scheduler } from '../Scheduler';\nvar AsyncScheduler = (function (_super) {\n __extends(AsyncScheduler, _super);\n function AsyncScheduler(SchedulerAction, now) {\n if (now === void 0) { now = Scheduler.now; }\n var _this = _super.call(this, SchedulerAction, now) || this;\n _this.actions = [];\n _this._active = false;\n return _this;\n }\n AsyncScheduler.prototype.flush = function (action) {\n var actions = this.actions;\n if (this._active) {\n actions.push(action);\n return;\n }\n var error;\n this._active = true;\n do {\n if ((error = action.execute(action.state, action.delay))) {\n break;\n }\n } while ((action = actions.shift()));\n this._active = false;\n if (error) {\n while ((action = actions.shift())) {\n action.unsubscribe();\n }\n throw error;\n }\n };\n return AsyncScheduler;\n}(Scheduler));\nexport { AsyncScheduler };\n//# sourceMappingURL=AsyncScheduler.js.map","export var dateTimestampProvider = {\n now: function () {\n return (dateTimestampProvider.delegate || Date).now();\n },\n delegate: undefined,\n};\n//# sourceMappingURL=dateTimestampProvider.js.map","import { __decorate } from \"tslib\";\nimport __NG_CLI_RESOURCE__0 from \"/home/runner/work/carbon-components-angular/carbon-components-angular/src/patterns/forms/multi-step-form.stories.ts.css?ngResource!=!/home/runner/work/carbon-components-angular/carbon-components-angular/node_modules/@ngtools/webpack/src/loaders/inline-resource.js?data=CgkJLmhlYWRlciB7CgkJCW1hcmdpbi1ib3R0b206IDVyZW07CgkJfQoKCQkuaW5kaWNhdG9yLXdyYXBwZXIgewoJCQliYWNrZ3JvdW5kLWNvbG9yOiAjZjRmNGY0OwoJCX0KCgkJLnN1Yi1oZWFkaW5nIHsKCQkJbWFyZ2luLWJvdHRvbTogMS41cmVtOwoJCX0KCgkJLmluZGljYXRvciB7CgkJCW1hcmdpbi10b3A6IDFyZW07CgkJfQoKCQkuZm9ybS1sYWJlbCB7CgkJCW1hcmdpbi10b3A6IDAuN3JlbTsKCQkJbWFyZ2luLWJvdHRvbTogMC41cmVtOwoJCX0KCgkJLmRyb3Bkb3duIHsKCQkJd2lkdGg6IDEwMCU7CgkJfQoKCQkuZm9ybS1pdGVtIHsKCQkJbWFyZ2luLXRvcDogMS41cmVtOwoJCX0KCQ%3D%3D!/home/runner/work/carbon-components-angular/carbon-components-angular/src/patterns/forms/multi-step-form.stories.ts\";\nimport { Component, inject } from \"@angular/core\";\nimport { moduleMetadata } from \"@storybook/angular\";\nimport { ColumnDirective, GridDirective, RowDirective } from \"../../grid\";\nimport { Dropdown, DropdownList } from \"../../dropdown\";\nimport { Button } from \"../../button\";\nimport { ProgressIndicator } from \"../../progress-indicator\";\nimport { Breadcrumb, BreadcrumbItemComponent } from \"../../breadcrumb\";\nimport { FormBuilder, FormControl, ReactiveFormsModule } from \"@angular/forms\";\nimport { Checkbox } from \"../../checkbox\";\nimport { Hamburger, Header } from \"../../ui-shell\";\nimport { Label, TextArea, TextInput } from \"../../input\";\nlet MultiStepFormStory = class MultiStepFormStory {\n constructor() {\n this.steps = [\n {\n label: \"Step 1\",\n complete: true\n },\n {\n label: \"Step 2\",\n current: true,\n complete: false\n },\n {\n label: \"Step 3\",\n complete: false,\n invalid: true\n },\n {\n label: \"Step 4\",\n complete: false,\n secondaryLabel: \"Optional\"\n }\n ];\n this.resourceGroups = [\n { content: \"None\" },\n { content: \"Resource group 1\" },\n { content: \"Resource group 2\" }\n ];\n this.currentStep = 1;\n this.formBuilder = inject(FormBuilder);\n }\n ngOnInit() {\n document.querySelector(\".sb-show-main\")?.classList.add(\"full-page\");\n this.step2FormGroup = this.formBuilder.group({\n workspaceName: new FormControl(),\n resourceGroup: new FormControl(),\n purpose: new FormControl()\n });\n this.step2FormGroup.get(\"resourceGroup\")?.setValue(\"None\");\n }\n ngOnDestroy() {\n document.querySelector(\".sb-show-main\")?.classList.remove(\"full-page\");\n }\n changeStep(step) {\n this.currentStep = step;\n }\n};\nMultiStepFormStory = __decorate([\n Component({\n selector: \"app-multi-step-form\",\n template: `\n\t\t<div cdsGrid>\n\t\t\t<div cdsRow class=\"header\">\n\t\t\t\t<cds-header name=\"Patterns\">\n\t\t\t\t\t<cds-hamburger></cds-hamburger>\n\t\t\t\t</cds-header>\n\t\t\t</div>\n\t\t\t<div cdsRow>\n\t\t\t\t<div cdsCol [columnNumbers]=\"{'lg': 8, 'md': 8, 'sm': 8}\">\n\t\t\t\t\t<cds-breadcrumb [noTrailingSlash]=\"noTrailingSlash\">\n\t\t\t\t\t\t<cds-breadcrumb-item href=\"#1\">\n\t\t\t\t\t\t\tDashboard\n\t\t\t\t\t\t</cds-breadcrumb-item>\n\t\t\t\t\t</cds-breadcrumb>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div cdsRow class=\"sub-heading\">\n\t\t\t\t<div cdsCol [columnNumbers]=\"{'lg': 8, 'md': 8, 'sm': 8}\">\n\t\t\t\t\t<h4>Vertical multi-step form</h4>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div cdsRow>\n\t\t\t\t<div\n\t\t\t\t\tcdsCol\n\t\t\t\t\t[columnNumbers]=\"{'lg': 2, 'md': 2, 'sm': 2}\"\n\t\t\t\t\tclass=\"indicator-wrapper\">\n\t\t\t\t\t<div class=\"indicator\">\n\t\t\t\t\t\t<cds-progress-indicator\n\t\t\t\t\t\t\torientation=\"vertical\"\n\t\t\t\t\t\t\t[steps]=\"steps\"\n\t\t\t\t\t\t\t[current]=\"currentStep\">\n\t\t\t\t\t\t</cds-progress-indicator>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div cdsCol [columnNumbers]=\"{'lg': 6, 'md': 6, 'sm': 6}\">\n\t\t\t\t\t@switch (currentStep) {\n\t\t\t\t\t\t@case (1) {\n\t\t\t\t\t\t\t<form [formGroup]=\"step2FormGroup\">\n\t\t\t\t\t\t\t\t<div cdsGrid>\n\t\t\t\t\t\t\t\t\t<div cdsRow>\n\t\t\t\t\t\t\t\t\t\t<h4>Create a new workspace</h4>\n\t\t\t\t\t\t\t\t\t\t<label class=\"form-label\">\n\t\t\t\t\t\t\t\t\t\t\tWhen you create a workspace, you connect IBM Cloud\n\t\t\t\t\t\t\t\t\t\t\tSchematics to existing Github / Gitlab repos that host\n\t\t\t\t\t\t\t\t\t\t\tyour Terraform templates.\n\t\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div cdsRow class=\"form-item\">\n\t\t\t\t\t\t\t\t\t\t<cds-label>\n\t\t\t\t\t\t\t\t\t\t\tWorkspace name\n\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\t\tcdsText\n\t\t\t\t\t\t\t\t\t\t\t\t[autocomplete]=\"false\"\n\t\t\t\t\t\t\t\t\t\t\t\tformControlName=\"workspaceName\">\n\t\t\t\t\t\t\t\t\t\t</cds-label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div cdsRow class=\"form-item\">\n\t\t\t\t\t\t\t\t\t\t<cds-dropdown\n\t\t\t\t\t\t\t\t\t\t\tclass=\"dropdown\"\n\t\t\t\t\t\t\t\t\t\t\tlabel=\"Resource group\"\n\t\t\t\t\t\t\t\t\t\t\tvalue=\"content\"\n\t\t\t\t\t\t\t\t\t\t\tformControlName=\"resourceGroup\"\n\t\t\t\t\t\t\t\t\t\t\t[dropUp]=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t<cds-dropdown-list [items]=\"resourceGroups\"></cds-dropdown-list>\n\t\t\t\t\t\t\t\t\t\t</cds-dropdown>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div cdsRow class=\"form-item\">\n\t\t\t\t\t\t\t\t\t\t<cds-label>\n\t\t\t\t\t\t\t\t\t\t\tDescription (optional)\n\t\t\t\t\t\t\t\t\t\t\t<textarea\n\t\t\t\t\t\t\t\t\t\t\t\tcdsTextArea\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"What is the purpose of this workspace?\"\n\t\t\t\t\t\t\t\t\t\t\t\tformControlName=\"purpose\"\n\t\t\t\t\t\t\t\t\t\t\t\t[rows]=\"3\"\n\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"textarea\"></textarea>\n\t\t\t\t\t\t\t\t\t\t</cds-label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div cdsRow class=\"form-item\">\n\t\t\t\t\t\t\t\t\t\t<button cdsButton (click)=\"changeStep(2)\">Step 3</button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@case (2) {\n\t\t\t\t\t\t\t<div cdsGrid>\n\t\t\t\t\t\t\t\t<div cdsRow>\n\t\t\t\t\t\t\t\t\tStep 3 form!\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div cdsRow class=\"form-item\">\n\t\t\t\t\t\t\t\t\t<button cdsButton (click)=\"changeStep(1)\">Step 2</button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t`,\n imports: [\n GridDirective,\n RowDirective,\n ColumnDirective,\n Checkbox,\n ProgressIndicator,\n Button,\n Breadcrumb,\n BreadcrumbItemComponent,\n ReactiveFormsModule,\n Dropdown,\n DropdownList,\n Header,\n Hamburger,\n Label,\n TextArea,\n TextInput\n ],\n standalone: true,\n styles: [__NG_CLI_RESOURCE__0]\n })\n], MultiStepFormStory);\n// Storybook starts here\nexport default {\n title: \"Pattern/Forms\",\n decorators: [\n moduleMetadata({\n declarations: [],\n imports: [\n MultiStepFormStory\n ]\n })\n ]\n};\nconst Template = (args) => ({\n props: args,\n template: `\n\t\t<!--\n\t\t\tapp-* components are for demo purposes only.\n\t\t\tYou can create your own implementation by using the component source as an example.\n\t\t-->\n\t\t<app-multi-step-form></app-multi-step-form>\n\t`\n});\nexport const MultiStep = Template.bind({});\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `\n\t\t.header {\n\t\t\tmargin-bottom: 5rem;\n\t\t}\n\n\t\t.indicator-wrapper {\n\t\t\tbackground-color: #f4f4f4;\n\t\t}\n\n\t\t.sub-heading {\n\t\t\tmargin-bottom: 1.5rem;\n\t\t}\n\n\t\t.indicator {\n\t\t\tmargin-top: 1rem;\n\t\t}\n\n\t\t.form-label {\n\t\t\tmargin-top: 0.7rem;\n\t\t\tmargin-bottom: 0.5rem;\n\t\t}\n\n\t\t.dropdown {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t.form-item {\n\t\t\tmargin-top: 1.5rem;\n\t\t}\n\t`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n"],"names":[],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"patterns-forms-multi-step-form-stories.4d284816.iframe.bundle.js","mappings":"AAMA","sources":["webpack://carbon-components-angular/./src/breadcrumb/breadcrumb-item.component.ts","webpack://carbon-components-angular/./src/breadcrumb/breadcrumb.component.ts","webpack://carbon-components-angular/./src/breadcrumb/breadcrumb.module.ts","webpack://carbon-components-angular/./src/checkbox/checkbox-group-host.ts","webpack://carbon-components-angular/./src/checkbox/checkbox.component.ts","webpack://carbon-components-angular/./src/checkbox/checkbox-group.component.ts","webpack://carbon-components-angular/./src/checkbox/checkbox.module.ts","webpack://carbon-components-angular/./src/grid/column.directive.ts","webpack://carbon-components-angular/./src/grid/grid.directive.ts","webpack://carbon-components-angular/./src/grid/grid.module.ts","webpack://carbon-components-angular/./src/grid/grid.service.ts","webpack://carbon-components-angular/./src/grid/row.directive.ts","webpack://carbon-components-angular/./src/progress-indicator/progress-indicator.component.ts","webpack://carbon-components-angular/./src/progress-indicator/progress-indicator.module.ts","webpack://carbon-components-angular/./node_modules/lodash-es/isNull.js","webpack://carbon-components-angular/./node_modules/lodash-es/isUndefined.js","webpack://carbon-components-angular/./node_modules/rxjs/dist/esm5/internal/operators/debounceTime.js","webpack://carbon-components-angular/./node_modules/rxjs/dist/esm5/internal/scheduler/Action.js","webpack://carbon-components-angular/./node_modules/rxjs/dist/esm5/internal/scheduler/intervalProvider.js","webpack://carbon-components-angular/./node_modules/rxjs/dist/esm5/internal/scheduler/AsyncAction.js","webpack://carbon-components-angular/./node_modules/rxjs/dist/esm5/internal/Scheduler.js","webpack://carbon-components-angular/./node_modules/rxjs/dist/esm5/internal/scheduler/async.js","webpack://carbon-components-angular/./node_modules/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js","webpack://carbon-components-angular/./node_modules/rxjs/dist/esm5/internal/scheduler/dateTimestampProvider.js","webpack://carbon-components-angular/./src/patterns/forms/multi-step-form.stories.ts","webpack://carbon-components-angular/./src/patterns/forms/multi-step-form.stories.ts?ec38"],"sourcesContent":["import { __decorate } from \"tslib\";\nimport { Component, HostBinding, Input, Output, EventEmitter, ChangeDetectionStrategy, inject } from \"@angular/core\";\nimport { DomSanitizer } from \"@angular/platform-browser\";\nimport { Router } from \"@angular/router\";\nimport { PlaceholderService } from \"carbon-components-angular/placeholder\";\nimport { NgTemplateOutlet } from \"@angular/common\";\nlet BreadcrumbItemComponent = class BreadcrumbItemComponent {\n set href(v) {\n this._href = v;\n }\n get href() {\n return this.domSanitizer.bypassSecurityTrustUrl(this._href);\n }\n constructor() {\n this.navigation = new EventEmitter();\n this.skeleton = false;\n this.ariaCurrent = \"page\";\n this.current = false;\n this.itemClass = true;\n this.domSanitizer = inject(DomSanitizer);\n this.router = inject(Router, { optional: true });\n }\n useTemplate() {\n return this.skeleton || this._href || this.route;\n }\n navigate(event) {\n if (this.router && this.route) {\n event.preventDefault();\n const status = this.router.navigate(this.route, this.routeExtras);\n this.navigation.emit(status);\n }\n }\n static { this.ctorParameters = () => []; }\n static { this.propDecorators = {\n href: [{ type: Input }],\n route: [{ type: Input }],\n routeExtras: [{ type: Input }],\n navigation: [{ type: Output }],\n skeleton: [{ type: Input }],\n ariaCurrent: [{ type: Input }],\n current: [{ type: HostBinding, args: [\"class.cds--breadcrumb-item--current\",] }, { type: Input }],\n itemClass: [{ type: HostBinding, args: [\"class.cds--breadcrumb-item\",] }]\n }; }\n};\nBreadcrumbItemComponent = __decorate([\n Component({\n selector: \"cds-breadcrumb-item, ibm-breadcrumb-item\",\n template: `\n\t\t<ng-template #content>\n\t\t\t<ng-content />\n\t\t</ng-template>\n\n\t\t@if (useTemplate()) {\n\t\t\t<a\n\t\t\t\tclass=\"cds--link\"\n\t\t\t\t[href]=\"(skeleton ? '/#' : href)\"\n\t\t\t\t(click)=\"navigate($event)\"\n\t\t\t\t[attr.aria-current]=\"(current ? ariaCurrent : null)\">\n\t\t\t\t<ng-container *ngTemplateOutlet=\"content\" />\n\t\t\t</a>\n\t\t} @else {\n\t\t\t<ng-container *ngTemplateOutlet=\"content\" />\n\t\t}\n\t`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgTemplateOutlet],\n providers: [PlaceholderService]\n })\n], BreadcrumbItemComponent);\nexport { BreadcrumbItemComponent };\n","import { __decorate } from \"tslib\";\nimport { Component, Input, ContentChildren, Output, EventEmitter, ChangeDetectionStrategy, inject } from \"@angular/core\";\nimport { BreadcrumbItemComponent } from \"./breadcrumb-item.component\";\nimport { Router } from \"@angular/router\";\nimport { I18n } from \"carbon-components-angular/i18n\";\nimport { NgClass, NgTemplateOutlet } from \"@angular/common\";\nimport { IconDirective } from \"carbon-components-angular/icon\";\nimport { OverflowMenu } from \"carbon-components-angular/dialog\";\nimport { EventService } from \"carbon-components-angular/utils\";\nconst MINIMUM_OVERFLOW_THRESHOLD = 4;\n/**\n * Get started with importing the components:\n *\n * ```typescript\n * import { Breadcrumb, BreadcrumbItemComponent } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-breadcrumb--basic)\n */\nlet Breadcrumb = class Breadcrumb {\n set skeleton(value) {\n this._skeleton = value;\n this.updateChildren();\n }\n get skeleton() {\n return this._skeleton;\n }\n set threshold(threshold) {\n this._threshold = threshold;\n if (isNaN(threshold) || threshold < MINIMUM_OVERFLOW_THRESHOLD) {\n this._threshold = MINIMUM_OVERFLOW_THRESHOLD;\n }\n }\n get threshold() {\n return this._threshold;\n }\n get shouldShowContent() {\n return !this.items;\n }\n get shouldShowOverflow() {\n if (!this.items) {\n return false;\n }\n return this.items.length > this.threshold;\n }\n get first() {\n return this.shouldShowOverflow ? this.items[0] : null;\n }\n get overflowItems() {\n return this.shouldShowOverflow ? this.items.slice(1, this.items.length - 2) : [];\n }\n get secondLast() {\n return this.shouldShowOverflow ? this.items[this.items.length - 2] : null;\n }\n get last() {\n return this.shouldShowOverflow ? this.items[this.items.length - 1] : null;\n }\n constructor() {\n this.i18n = inject(I18n);\n this.router = inject(Router, { optional: true });\n this.noTrailingSlash = false;\n this.size = \"md\";\n this.ariaLabel = this.i18n.get().BREADCRUMB.LABEL;\n this.autoAlign = false;\n this.description = this.i18n.get().BREADCRUMB.OVERFLOW_MENU_DESCRIPTION;\n this.navigation = new EventEmitter();\n this._skeleton = false;\n }\n ngAfterContentInit() {\n this.updateChildren();\n }\n navigate(event, item) {\n if (this.router && item.route) {\n event.preventDefault();\n const status = this.router.navigate(item.route, item.routeExtras);\n this.navigation.emit(status);\n }\n }\n updateChildren() {\n if (this.children) {\n this.children.toArray().forEach(child => child.skeleton = this.skeleton);\n }\n }\n static { this.ctorParameters = () => []; }\n static { this.propDecorators = {\n children: [{ type: ContentChildren, args: [BreadcrumbItemComponent,] }],\n items: [{ type: Input }],\n noTrailingSlash: [{ type: Input }],\n size: [{ type: Input }],\n ariaLabel: [{ type: Input }],\n skeleton: [{ type: Input }],\n threshold: [{ type: Input }],\n autoAlign: [{ type: Input }],\n description: [{ type: Input }],\n navigation: [{ type: Output }]\n }; }\n};\nBreadcrumb = __decorate([\n Component({\n selector: \"cds-breadcrumb, ibm-breadcrumb\",\n template: `\n\t\t<nav\n\t\t\t#nav\n\t\t\tclass=\"cds--breadcrumb\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--skeleton' : skeleton,\n\t\t\t\t'cds--breadcrumb--no-trailing-slash' : noTrailingSlash,\n\t\t\t\t'cds--breadcrumb--sm' : size === 'sm'\n\t\t\t}\"\n\t\t\t[attr.aria-label]=\"ariaLabel\">\n\t\t\t@if (shouldShowContent) {\n\t\t\t\t<ng-content></ng-content>\n\t\t\t}\n\t\t\t@if (!shouldShowOverflow) {\n\t\t\t\t@for (item of items; track item) {\n\t\t\t\t\t<cds-breadcrumb-item\n\t\t\t\t\t\t[href]=\"item.href\"\n\t\t\t\t\t\t[route]=\"item.route\"\n\t\t\t\t\t\t[routeExtras]=\"item.routeExtras\"\n\t\t\t\t\t\t[current]=\"item.current\"\n\t\t\t\t\t\t[ariaCurrent]=\"item.ariaCurrent\"\n\t\t\t\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t\t\t\t@if (!item.template) {\n\t\t\t\t\t\t\t{{item.content}}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@if (item.template) {\n\t\t\t\t\t\t\t<ng-template\n\t\t\t\t\t\t\t\t[ngTemplateOutlet]=\"item.template\"\n\t\t\t\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: item }\">\n\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t}\n\t\t\t\t\t</cds-breadcrumb-item>\n\t\t\t\t}\n\t\t\t}\n\t\t\t@if (shouldShowOverflow) {\n\t\t\t\t<cds-breadcrumb-item\n\t\t\t\t\t[href]=\"first?.href\"\n\t\t\t\t\t[route]=\"first?.route\"\n\t\t\t\t\t[routeExtras]=\"first?.routeExtras\"\n\t\t\t\t\t[current]=\"first?.current\"\n\t\t\t\t\t[ariaCurrent]=\"first?.ariaCurrent\"\n\t\t\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t\t\t@if (!first?.template) {\n\t\t\t\t\t\t{{first?.content}}\n\t\t\t\t\t}\n\t\t\t\t\t@if (first?.template) {\n\t\t\t\t\t\t<ng-template\n\t\t\t\t\t\t\t[ngTemplateOutlet]=\"first?.template\"\n\t\t\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: first }\">\n\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t}\n\t\t\t\t</cds-breadcrumb-item>\n\t\t\t\t<cds-breadcrumb-item>\n\t\t\t\t\t<ng-template #overflowMenuTrigger>\n\t\t\t\t\t\t<svg class=\"cds--overflow-menu__icon\" cdsIcon=\"overflow-menu--horizontal\" size=\"16\"></svg>\n\t\t\t\t\t</ng-template>\n\t\t\t\t\t<cds-overflow-menu\n\t\t\t\t\t\t[customTrigger]=\"overflowMenuTrigger\"\n\t\t\t\t\t\ttriggerClass=\"cds--btn--icon-only\"\n\t\t\t\t\t\t[description]=\"description\"\n\t\t\t\t\t\t[autoAlign]=\"autoAlign\">\n\t\t\t\t\t\t@for (item of overflowItems; track item) {\n\t\t\t\t\t\t\t<li class=\"cds--overflow-menu-options__option\">\n\t\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\t\tclass=\"cds--overflow-menu-options__btn\"\n\t\t\t\t\t\t\t\t\thref=\"{{item?.href}}\"\n\t\t\t\t\t\t\t\t\t(click)=\"navigate($event, item)\"\n\t\t\t\t\t\t\t\t\tstyle=\"text-decoration: none;\">\n\t\t\t\t\t\t\t\t\t@if (!item?.template) {\n\t\t\t\t\t\t\t\t\t\t{{item?.content}}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t@if (item?.template) {\n\t\t\t\t\t\t\t\t\t\t<ng-template\n\t\t\t\t\t\t\t\t\t\t\t[ngTemplateOutlet]=\"item?.template\"\n\t\t\t\t\t\t\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: item }\">\n\t\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t}\n\t\t\t\t\t</cds-overflow-menu>\n\t\t\t\t</cds-breadcrumb-item>\n\t\t\t\t<cds-breadcrumb-item\n\t\t\t\t\t[href]=\"secondLast?.href\"\n\t\t\t\t\t[route]=\"secondLast?.route\"\n\t\t\t\t\t[routeExtras]=\"secondLast?.routeExtras\"\n\t\t\t\t\t[current]=\"secondLast?.current\"\n\t\t\t\t\t[ariaCurrent]=\"secondLast?.ariaCurrent\"\n\t\t\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t\t\t@if (!secondLast?.template) {\n\t\t\t\t\t\t{{secondLast?.content}}\n\t\t\t\t\t}\n\t\t\t\t\t@if (secondLast?.template) {\n\t\t\t\t\t\t<ng-template\n\t\t\t\t\t\t\t[ngTemplateOutlet]=\"secondLast?.template\"\n\t\t\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: secondLast }\">\n\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t}\n\t\t\t\t</cds-breadcrumb-item>\n\t\t\t\t<cds-breadcrumb-item\n\t\t\t\t\t[href]=\"last?.href\"\n\t\t\t\t\t[route]=\"last?.route\"\n\t\t\t\t\t[routeExtras]=\"last?.routeExtras\"\n\t\t\t\t\t[current]=\"last?.current\"\n\t\t\t\t\t[ariaCurrent]=\"last?.ariaCurrent\"\n\t\t\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t\t\t@if (!last?.template) {\n\t\t\t\t\t\t{{last?.content}}\n\t\t\t\t\t}\n\t\t\t\t\t@if (last?.template) {\n\t\t\t\t\t\t<ng-template\n\t\t\t\t\t\t\t[ngTemplateOutlet]=\"last?.template\"\n\t\t\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: last }\">\n\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t}\n\t\t\t\t</cds-breadcrumb-item>\n\t\t\t}\n\t\t</nav>\n\t`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [EventService],\n imports: [\n NgClass,\n NgTemplateOutlet,\n BreadcrumbItemComponent,\n IconDirective,\n OverflowMenu\n ]\n })\n], Breadcrumb);\nexport { Breadcrumb };\n","import { __decorate } from \"tslib\";\nimport { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { DialogModule } from \"carbon-components-angular/dialog\";\nimport { I18nModule } from \"carbon-components-angular/i18n\";\nimport { Breadcrumb } from \"./breadcrumb.component\";\nimport { BreadcrumbItemComponent } from \"./breadcrumb-item.component\";\nimport { ButtonModule } from \"carbon-components-angular/button\";\nimport { IconModule } from \"carbon-components-angular/icon\";\nlet BreadcrumbModule = class BreadcrumbModule {\n};\nBreadcrumbModule = __decorate([\n NgModule({\n exports: [\n Breadcrumb,\n BreadcrumbItemComponent\n ],\n imports: [\n Breadcrumb,\n BreadcrumbItemComponent,\n CommonModule,\n ButtonModule,\n DialogModule,\n I18nModule,\n IconModule\n ]\n })\n], BreadcrumbModule);\nexport { BreadcrumbModule };\n","import { InjectionToken } from \"@angular/core\";\nexport const CHECKBOX_GROUP_HOST = new InjectionToken(\"CheckboxGroupHost\");\n","var Checkbox_1;\nimport { __decorate } from \"tslib\";\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, Output, TemplateRef, ViewChild, HostListener, inject } from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR } from \"@angular/forms\";\nimport { NgClass, NgTemplateOutlet } from \"@angular/common\";\nimport { IconDirective } from \"carbon-components-angular/icon\";\nimport { CHECKBOX_GROUP_HOST } from \"./checkbox-group-host\";\n/**\n * Defines the set of states for a checkbox component.\n */\nexport var CheckboxState;\n(function (CheckboxState) {\n CheckboxState[CheckboxState[\"Init\"] = 0] = \"Init\";\n CheckboxState[CheckboxState[\"Indeterminate\"] = 1] = \"Indeterminate\";\n CheckboxState[CheckboxState[\"Checked\"] = 2] = \"Checked\";\n CheckboxState[CheckboxState[\"Unchecked\"] = 3] = \"Unchecked\";\n})(CheckboxState || (CheckboxState = {}));\n/**\n * Get started with importing the component:\n *\n * ```typescript\n * import { Checkbox } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-checkbox--basic)\n */\nlet Checkbox = class Checkbox {\n static { Checkbox_1 = this; }\n /**\n * Variable used for creating unique ids for checkbox components.\n */\n static { this.checkboxCount = 0; }\n static { this.helperIdCounter = 0; }\n set indeterminate(indeterminate) {\n if (indeterminate === this._indeterminate) {\n return;\n }\n this._indeterminate = indeterminate;\n if (this._indeterminate) {\n this.transitionCheckboxState(CheckboxState.Indeterminate);\n }\n else {\n this.transitionCheckboxState(this.checked ? CheckboxState.Checked : CheckboxState.Unchecked);\n }\n if (this.inputCheckbox && this.inputCheckbox.nativeElement) {\n this.inputCheckbox.nativeElement.indeterminate = indeterminate;\n }\n this.changeDetectorRef.markForCheck();\n this.indeterminateChange.emit(this._indeterminate);\n }\n /**\n * Reflects whether the checkbox state is indeterminate.\n */\n get indeterminate() {\n return this._indeterminate;\n }\n set checked(checked) {\n this.setChecked(checked, false);\n }\n /**\n * Returns value `true` if state is selected for the checkbox.\n */\n get checked() {\n return this._checked;\n }\n /**\n * Creates an instance of `Checkbox`.\n */\n constructor() {\n this.disabled = false;\n this.skeleton = false;\n this.hideLabel = false;\n this.id = `checkbox-${Checkbox_1.checkboxCount}`;\n this.title = \"\";\n this.click = new EventEmitter();\n this.checkedChange = new EventEmitter();\n this.indeterminateChange = new EventEmitter();\n /**\n * Set to `true` if the input checkbox is selected (or checked).\n */\n this._checked = false;\n /**\n * Set to `true` if the input checkbox is in state indeterminate.\n */\n this._indeterminate = false;\n /**\n * Keeps a reference to the checkboxes current state, as defined in `CheckboxState`.\n */\n this.currentCheckboxState = CheckboxState.Init;\n this.helperId = `checkbox-helper-${Checkbox_1.helperIdCounter++}`;\n this.changeDetectorRef = inject(ChangeDetectorRef);\n this.hostGroup = inject(CHECKBOX_GROUP_HOST, { optional: true });\n /**\n * Called when checkbox is blurred. Needed to properly implement `ControlValueAccessor`.\n */\n this.onTouched = () => { };\n /**\n * Method set in `registerOnChange` to propagate changes back to the form.\n */\n this.propagateChange = (_) => { };\n Checkbox_1.checkboxCount++;\n }\n get effectiveReadOnly() {\n const own = this.readOnly;\n const group = this.hostGroup?.readOnly ?? false;\n return !!(own !== undefined ? own : group);\n }\n get effectiveInvalid() {\n const own = this.invalid;\n const group = this.hostGroup?.invalid ?? false;\n return !!(own !== undefined ? own : group);\n }\n get effectiveWarn() {\n const own = this.warn;\n const group = this.hostGroup?.warn ?? false;\n return !!(own !== undefined ? own : group);\n }\n /**\n * Toggle the selected state of the checkbox.\n */\n toggle() {\n if (this.effectiveReadOnly) {\n return;\n }\n // Flip checked and reset indeterminate\n this.setChecked(!this.checked, true);\n }\n /**\n * Writes a value from `ngModel` to the component.\n *\n * In this case the value is the `checked` property.\n *\n * @param value boolean, corresponds to the `checked` property.\n */\n writeValue(value) {\n // Set checked and reset indeterminate\n this.setChecked(!!value, true);\n }\n /**\n * Sets a method in order to propagate changes back to the form.\n */\n registerOnChange(fn) {\n this.propagateChange = fn;\n }\n /**\n * Registers a callback to be triggered when the control has been touched.\n * @param fn Callback to be triggered when the checkbox is touched.\n */\n registerOnTouched(fn) {\n this.onTouched = fn;\n }\n /**\n * `ControlValueAccessor` method to programmatically disable the checkbox.\n *\n * ex: `this.formGroup.get(\"myCheckbox\").disable();`\n *\n * @param isDisabled `true` to disable the checkbox\n */\n setDisabledState(isDisabled) {\n this.disabled = isDisabled;\n this.changeDetectorRef.markForCheck();\n }\n /**\n * Invoked by `CheckboxGroup` when group `readOnly`, `invalid`, `warn` change so `OnPush`\n * checkboxes still refresh inherited state from `CHECKBOX_GROUP_HOST`.\n */\n markForCheckFromGroup() {\n this.changeDetectorRef.markForCheck();\n }\n focusOut() {\n this.onTouched();\n }\n /**\n * Executes on the event of a change within `Checkbox` to block propagation.\n */\n onChange(event) {\n event.stopPropagation();\n }\n /**\n * Handles click events on the `Checkbox` and emits changes to other classes.\n */\n onClick(event) {\n if (this.effectiveReadOnly) {\n event.preventDefault();\n if (this.click.observers.length) {\n this.click.emit();\n }\n return;\n }\n if (this.click.observers.length) {\n // Disable default checkbox activation behavior which flips checked and resets indeterminate.\n // This allows the parent component to control the checked/indeterminate properties.\n event.preventDefault();\n this.click.emit();\n return;\n }\n if (!this.disabled) {\n this.toggle();\n this.transitionCheckboxState(this._checked ? CheckboxState.Checked : CheckboxState.Unchecked);\n this.emitChangeEvent();\n }\n }\n /**\n * Handles changes between checkbox states.\n */\n transitionCheckboxState(newState) {\n this.currentCheckboxState = newState;\n }\n /**\n * Creates instance of `CheckboxChange` used to propagate the change event.\n */\n emitChangeEvent() {\n this.checkedChange.emit(this.checked);\n this.propagateChange(this.checked);\n }\n /**\n * Updates the checkbox if it is in the indeterminate state.\n */\n ngAfterViewInit() {\n if (this.indeterminate && this.inputCheckbox && this.inputCheckbox.nativeElement) {\n this.inputCheckbox.nativeElement.indeterminate = true;\n }\n }\n /**\n * Returns `true` when the provided value is a `TemplateRef`.\n */\n isTemplate(value) {\n return value instanceof TemplateRef;\n }\n /**\n * Sets checked state and optionally resets indeterminate state.\n */\n setChecked(checked, resetIndeterminate) {\n if (checked === this._checked) {\n return;\n }\n this._checked = checked;\n // Reset indeterminate if requested\n if (resetIndeterminate && this._indeterminate) {\n this._indeterminate = false;\n Promise.resolve().then(() => {\n this.indeterminateChange.emit(this._indeterminate);\n });\n }\n this.changeDetectorRef.markForCheck();\n }\n static { this.ctorParameters = () => []; }\n static { this.propDecorators = {\n disabled: [{ type: Input }],\n skeleton: [{ type: Input }],\n hideLabel: [{ type: Input }],\n name: [{ type: Input }],\n id: [{ type: Input }],\n required: [{ type: Input }],\n value: [{ type: Input }],\n ariaLabel: [{ type: Input }],\n ariaLabelledby: [{ type: Input }],\n title: [{ type: Input }],\n helperText: [{ type: Input }],\n invalid: [{ type: Input }],\n invalidText: [{ type: Input }],\n warn: [{ type: Input }],\n warnText: [{ type: Input }],\n readOnly: [{ type: Input }],\n decorator: [{ type: Input }],\n indeterminate: [{ type: Input }],\n checked: [{ type: Input }],\n click: [{ type: Output }],\n checkedChange: [{ type: Output }],\n indeterminateChange: [{ type: Output }],\n inputCheckbox: [{ type: ViewChild, args: [\"inputCheckbox\",] }],\n focusOut: [{ type: HostListener, args: [\"focusout\",] }]\n }; }\n};\nCheckbox = Checkbox_1 = __decorate([\n Component({\n selector: \"cds-checkbox, ibm-checkbox\",\n template: `\n\t\t<div class=\"cds--form-item cds--checkbox-wrapper\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--checkbox-wrapper--invalid': !effectiveReadOnly && effectiveInvalid,\n\t\t\t\t'cds--checkbox-wrapper--warning': !effectiveReadOnly && !effectiveInvalid && effectiveWarn,\n\t\t\t\t'cds--checkbox-wrapper--readonly': effectiveReadOnly,\n\t\t\t\t'cds--checkbox-wrapper--decorator': !!decorator\n\t\t\t}\">\n\t\t\t<input\n\t\t\t\t#inputCheckbox\n\t\t\t\tclass=\"cds--checkbox\"\n\t\t\t\ttype=\"checkbox\"\n\t\t\t\t[id]=\"id + '_input'\"\n\t\t\t\t[value]=\"value\"\n\t\t\t\t[name]=\"name\"\n\t\t\t\t[required]=\"required\"\n\t\t\t\t[checked]=\"checked\"\n\t\t\t\t[disabled]=\"disabled\"\n\t\t\t\t[attr.data-invalid]=\"(!effectiveReadOnly && effectiveInvalid) ? true : null\"\n\t\t\t\t[attr.aria-readonly]=\"effectiveReadOnly ? true : null\"\n\t\t\t\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t\t\t\t[attr.aria-describedby]=\"(helperText && !effectiveInvalid && !effectiveWarn) ? helperId : null\"\n\t\t\t\t(change)=\"onChange($event)\"\n\t\t\t\t(click)=\"onClick($event)\">\n\t\t\t<label\n\t\t\t\t[for]=\"id + '_input'\"\n\t\t\t\t[attr.aria-label]=\"ariaLabel\"\n\t\t\t\t[attr.title]=\"title || null\"\n\t\t\t\tclass=\"cds--checkbox-label\"\n\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t'cds--skeleton' : skeleton\n\t\t\t\t}\">\n\t\t\t\t<span [ngClass]=\"{'cds--visually-hidden' : hideLabel}\" class=\"cds--checkbox-label-text\">\n\t\t\t\t\t<ng-content></ng-content>\n\t\t\t\t\t@if (decorator) {\n\t\t\t\t\t\t<div class=\"cds--checkbox-wrapper-inner--decorator\">\n\t\t\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"decorator\"></ng-template>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t</label>\n\t\t\t<div class=\"cds--checkbox__validation-msg\">\n\t\t\t\t@if (!effectiveReadOnly && effectiveInvalid) {\n\t\t\t\t\t<svg\n\t\t\t\t\t\tcdsIcon=\"warning--filled\"\n\t\t\t\t\t\tsize=\"16\"\n\t\t\t\t\t\tclass=\"cds--checkbox__invalid-icon\">\n\t\t\t\t\t</svg>\n\t\t\t\t\t<div class=\"cds--form-requirement\">\n\t\t\t\t\t\t@if (!isTemplate(invalidText)) {\n\t\t\t\t\t\t\t{{invalidText}}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@if (isTemplate(invalidText)) {\n\t\t\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"$any(invalidText)\"></ng-template>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t\t@if (!effectiveReadOnly && !effectiveInvalid && effectiveWarn) {\n\t\t\t\t\t<svg\n\t\t\t\t\t\tcdsIcon=\"warning--alt--filled\"\n\t\t\t\t\t\tsize=\"16\"\n\t\t\t\t\t\tclass=\"cds--checkbox__invalid-icon cds--checkbox__invalid-icon--warning\">\n\t\t\t\t\t</svg>\n\t\t\t\t\t<div class=\"cds--form-requirement\">\n\t\t\t\t\t\t@if (!isTemplate(warnText)) {\n\t\t\t\t\t\t\t{{warnText}}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@if (isTemplate(warnText)) {\n\t\t\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"$any(warnText)\"></ng-template>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t</div>\n\t\t\t@if (helperText && !effectiveInvalid && !effectiveWarn) {\n\t\t\t\t<div\n\t\t\t\t\tclass=\"cds--form__helper-text\"\n\t\t\t\t\t[id]=\"helperId\">\n\t\t\t\t\t@if (!isTemplate(helperText)) {\n\t\t\t\t\t\t{{helperText}}\n\t\t\t\t\t}\n\t\t\t\t\t@if (isTemplate(helperText)) {\n\t\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"$any(helperText)\"></ng-template>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t}\n\t\t</div>\n\t`,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: Checkbox,\n multi: true\n }\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgClass, NgTemplateOutlet, IconDirective]\n })\n], Checkbox);\nexport { Checkbox };\n","var CheckboxGroup_1;\nimport { __decorate } from \"tslib\";\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, forwardRef, HostBinding, Input, TemplateRef, inject } from \"@angular/core\";\nimport { NgClass, NgTemplateOutlet } from \"@angular/common\";\nimport { IconDirective } from \"carbon-components-angular/icon\";\nimport { CHECKBOX_GROUP_HOST } from \"./checkbox-group-host\";\nimport { Checkbox } from \"./checkbox.component\";\n/**\n * Groups related checkboxes with a shared legend, validation, and optional decorator\n * (e.g. AI label).\n *\n * ```html\n * <cds-checkbox-group legend=\"Group label\" [decorator]=\"decoratorTpl\">\n * <cds-checkbox>Option 1</cds-checkbox>\n * </cds-checkbox-group>\n * ```\n */\nlet CheckboxGroup = class CheckboxGroup {\n static { CheckboxGroup_1 = this; }\n static { this.nextHelperId = 0; }\n constructor() {\n this.hostFormItem = true;\n this.helperTextId = `checkbox-group-helper-${CheckboxGroup_1.nextHelperId++}`;\n this.orientation = \"vertical\";\n this.invalid = false;\n this.warn = false;\n this.readOnly = false;\n this.changeDetectorRef = inject(ChangeDetectorRef);\n }\n ngOnChanges(changes) {\n if (changes[\"readOnly\"] || changes[\"invalid\"] || changes[\"warn\"]) {\n this.notifyCheckboxesHostStateChanged();\n }\n }\n ngAfterContentInit() {\n this.checkboxes.changes.subscribe(() => this.notifyCheckboxesHostStateChanged());\n }\n isTemplate(value) {\n return value instanceof TemplateRef;\n }\n notifyCheckboxesHostStateChanged() {\n Promise.resolve().then(() => {\n this.checkboxes?.forEach((cb) => cb.markForCheckFromGroup());\n this.changeDetectorRef.markForCheck();\n });\n }\n static { this.ctorParameters = () => []; }\n static { this.propDecorators = {\n hostFormItem: [{ type: HostBinding, args: [\"class.cds--form-item\",] }],\n checkboxes: [{ type: ContentChildren, args: [forwardRef(() => Checkbox), { descendants: true },] }],\n legend: [{ type: Input }],\n legendId: [{ type: Input }],\n fieldsetAriaLabelledby: [{ type: Input }],\n orientation: [{ type: Input }],\n helperText: [{ type: Input }],\n invalid: [{ type: Input }],\n invalidText: [{ type: Input }],\n warn: [{ type: Input }],\n warnText: [{ type: Input }],\n readOnly: [{ type: Input }],\n decorator: [{ type: Input }]\n }; }\n};\nCheckboxGroup = CheckboxGroup_1 = __decorate([\n Component({\n selector: \"cds-checkbox-group, ibm-checkbox-group\",\n template: `\r\n\t\t<fieldset\r\n\t\t\tclass=\"cds--checkbox-group\"\r\n\t\t\t[ngClass]=\"{\r\n\t\t\t\t'cds--checkbox-group--horizontal': orientation === 'horizontal',\r\n\t\t\t\t'cds--checkbox-group--readonly': readOnly,\r\n\t\t\t\t'cds--checkbox-group--invalid': !readOnly && invalid,\r\n\t\t\t\t'cds--checkbox-group--warning': !readOnly && !invalid && warn,\r\n\t\t\t\t'cds--checkbox-group--decorator': !!decorator\r\n\t\t\t}\"\r\n\t\t\t[attr.data-invalid]=\"invalid ? true : null\"\r\n\t\t\t[attr.aria-labelledby]=\"legendId || fieldsetAriaLabelledby || null\"\r\n\t\t\t[attr.aria-readonly]=\"readOnly ? true : null\"\r\n\t\t\t[attr.aria-describedby]=\"(helperText && !invalid && !warn) ? helperTextId : null\">\r\n\t\t\t@if (legend) {\r\n\t\t\t\t<legend\r\n\t\t\t\t\tclass=\"cds--label\"\r\n\t\t\t\t\t[attr.id]=\"legendId || null\">\r\n\t\t\t\t\t@if (isTemplate(legend)) {\r\n\t\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"legend\"></ng-template>\r\n\t\t\t\t\t} @else {\r\n\t\t\t\t\t\t{{legend}}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t@if (decorator) {\r\n\t\t\t\t\t\t<div class=\"cds--checkbox-group-inner--decorator\">\r\n\t\t\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"decorator\"></ng-template>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t}\r\n\t\t\t\t</legend>\r\n\t\t\t}\r\n\t\t\t<ng-content></ng-content>\r\n\t\t\t<div class=\"cds--checkbox-group__validation-msg\">\r\n\t\t\t\t@if (!readOnly && invalid) {\r\n\t\t\t\t\t<svg\r\n\t\t\t\t\t\tcdsIcon=\"warning--filled\"\r\n\t\t\t\t\t\tsize=\"16\"\r\n\t\t\t\t\t\tclass=\"cds--checkbox__invalid-icon\">\r\n\t\t\t\t\t</svg>\r\n\t\t\t\t\t<div class=\"cds--form-requirement\">\r\n\t\t\t\t\t\t@if (!isTemplate(invalidText)) {\r\n\t\t\t\t\t\t\t{{ invalidText }}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t@if (isTemplate(invalidText)) {\r\n\t\t\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"invalidText\"></ng-template>\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t}\r\n\t\t\t\t@if (!readOnly && !invalid && warn) {\r\n\t\t\t\t\t<svg\r\n\t\t\t\t\t\tcdsIcon=\"warning--alt--filled\"\r\n\t\t\t\t\t\tsize=\"16\"\r\n\t\t\t\t\t\tclass=\"cds--checkbox__invalid-icon cds--checkbox__invalid-icon--warning\">\r\n\t\t\t\t\t</svg>\r\n\t\t\t\t\t<div class=\"cds--form-requirement\">\r\n\t\t\t\t\t\t@if (!isTemplate(warnText)) {\r\n\t\t\t\t\t\t\t{{warnText}}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t@if (isTemplate(warnText)) {\r\n\t\t\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"warnText\"></ng-template>\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t\t@if (helperText && !invalid && !warn) {\r\n\t\t\t\t<div\r\n\t\t\t\t\tclass=\"cds--form__helper-text\"\r\n\t\t\t\t\t[id]=\"helperTextId\">\r\n\t\t\t\t\t@if (!isTemplate(helperText)) {\r\n\t\t\t\t\t\t{{helperText}}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t@if (isTemplate(helperText)) {\r\n\t\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"helperText\"></ng-template>\r\n\t\t\t\t\t}\r\n\t\t\t\t</div>\r\n\t\t\t}\r\n\t\t</fieldset>\r\n\t`,\n providers: [\n { provide: CHECKBOX_GROUP_HOST, useExisting: CheckboxGroup }\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgClass, NgTemplateOutlet, IconDirective]\n })\n], CheckboxGroup);\nexport { CheckboxGroup };\n","import { __decorate } from \"tslib\";\n// modules\nimport { NgModule } from \"@angular/core\";\nimport { FormsModule } from \"@angular/forms\";\nimport { CommonModule } from \"@angular/common\";\n// imports\nimport { Checkbox } from \"./checkbox.component\";\nimport { CheckboxGroup } from \"./checkbox-group.component\";\nimport { IconModule } from \"carbon-components-angular/icon\";\nlet CheckboxModule = class CheckboxModule {\n};\nCheckboxModule = __decorate([\n NgModule({\n exports: [\n Checkbox,\n CheckboxGroup\n ],\n imports: [\n CommonModule,\n FormsModule,\n IconModule,\n Checkbox,\n CheckboxGroup\n ]\n })\n], CheckboxModule);\nexport { CheckboxModule };\n","import { __decorate } from \"tslib\";\nimport { Directive, HostBinding, Input, inject } from \"@angular/core\";\nimport { Subscription } from \"rxjs\";\nimport { GridService } from \"./grid.service\";\nlet ColumnDirective = class ColumnDirective {\n get columnClasses() {\n return this._columnClasses.join(\" \");\n }\n set columnClasses(classes) {\n this._columnClasses = classes.split(\" \");\n }\n constructor() {\n this.class = \"\";\n this.columnNumbers = {};\n this.offsets = {};\n this.columnHang = false;\n this._columnClasses = [];\n this.isCssGrid = false;\n this.subscription = new Subscription();\n this.gridService = inject(GridService, { optional: true });\n }\n ngOnInit() {\n if (this.gridService) {\n this.subscription = this.gridService.gridObservable.subscribe((isCssGrid) => {\n this.isCssGrid = isCssGrid;\n this.updateColumnClasses();\n });\n }\n else {\n this.updateColumnClasses();\n }\n }\n ngOnChanges() {\n this.updateColumnClasses();\n }\n /**\n * Unsubscribe from subscription\n */\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n updateColumnClasses() {\n try {\n this._columnClasses = [];\n const columnKeys = Object.keys(this.columnNumbers);\n // Assign classes based on the type of grid used.\n if (this.isCssGrid) {\n // Default css grid class\n this._columnClasses.push(\"cds--css-grid-column\");\n if (this.columnHang) {\n this._columnClasses.push(\"cds--grid-column-hang\");\n }\n columnKeys.forEach(key => {\n /**\n * Passing in `auto` to a breakpoint as such: {'md': 'auto'}\n * will assign the element which will automatically determine the width of the column\n * for the breakpoint passed\n */\n if (this.columnNumbers[key] === \"auto\") {\n this._columnClasses.push(`cds--${key}:col-span-auto`);\n }\n else if (typeof this.columnNumbers[key] === \"object\") {\n /**\n * In css grid, objects can be passed to the keys in the following format:\n * {'md': {'start': 3}}\n *\n * These objects are used to position the column\n */\n if (this.columnNumbers[key][\"start\"]) {\n // col-start is simular equivalent of flex offset\n this._columnClasses.push(`cds--${key}:col-start-${this.columnNumbers[key].start}`);\n }\n if (this.columnNumbers[key][\"end\"]) {\n this._columnClasses.push(`cds--${key}:col-end-${this.columnNumbers[key].end}`);\n }\n if (this.columnNumbers[key][\"span\"]) {\n this._columnClasses.push(`cds--${key}:col-span-${this.columnNumbers[key].span}`);\n }\n }\n else {\n this._columnClasses.push(`cds--${key}:col-span-${this.columnNumbers[key]}`);\n }\n });\n Object.keys(this.offsets).forEach(key => {\n this._columnClasses.push(`cds--${key}:col-start-${this.offsets[key]}`);\n });\n }\n else {\n // Set column classes for flex grid\n if (columnKeys.length <= 0) {\n this._columnClasses.push(\"cds--col\");\n }\n columnKeys.forEach(key => {\n if (this.columnNumbers[key] === \"nobreak\") {\n this._columnClasses.push(`cds--col-${key}`);\n }\n else {\n this._columnClasses.push(`cds--col-${key}-${this.columnNumbers[key]}`);\n }\n });\n Object.keys(this.offsets).forEach(key => {\n this._columnClasses.push(`cds--offset-${key}-${this.offsets[key]}`);\n });\n }\n }\n catch (err) {\n console.error(`Malformed \\`offsets\\` or \\`columnNumbers\\`: ${err}`);\n }\n /**\n * Append the classes passed so they aren't overriden when we set the column classes\n * from host binding\n */\n if (this.class) {\n this._columnClasses.push(this.class);\n }\n }\n static { this.ctorParameters = () => []; }\n static { this.propDecorators = {\n columnClasses: [{ type: HostBinding, args: [\"class\",] }],\n class: [{ type: Input }],\n columnNumbers: [{ type: Input }],\n offsets: [{ type: Input }],\n columnHang: [{ type: Input }]\n }; }\n};\nColumnDirective = __decorate([\n Directive({\n selector: \"[cdsCol], [ibmCol]\",\n standalone: true\n })\n], ColumnDirective);\nexport { ColumnDirective };\n","import { __decorate } from \"tslib\";\nimport { ContentChildren, Directive, forwardRef, HostBinding, Input, Optional, SkipSelf, inject } from \"@angular/core\";\nimport { Subscription } from \"rxjs\";\nimport { GridService } from \"./grid.service\";\n/**\n * Get started with importing the directives:\n *\n * ```typescript\n * import {\n * \tGridDirective,\n * \tColumnDirective,\n * \tRowDirective\n * } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-grid--basic)\n */\nlet GridDirective = class GridDirective {\n set useCssGrid(enable) {\n this.cssGridEnabled = enable;\n this.gridService.updateGridType(enable);\n }\n get flexGrid() {\n return !this.cssGridEnabled;\n }\n get flexCondensed() {\n return !this.cssGridEnabled && this.condensed;\n }\n get flexNarrow() {\n return !this.cssGridEnabled && this.narrow;\n }\n get flexFullWidth() {\n return !this.cssGridEnabled && this.fullWidth;\n }\n get ccsGrid() {\n return this.cssGridEnabled && !this.isSubgrid;\n }\n get ccsCondensed() {\n return this.cssGridEnabled && !this.isSubgrid && this.condensed;\n }\n get ccsNarrow() {\n return this.cssGridEnabled && !this.isSubgrid && this.narrow;\n }\n get ccsFullWidth() {\n return this.cssGridEnabled && !this.isSubgrid && this.fullWidth;\n }\n get subGrid() {\n return this.cssGridEnabled && this.isSubgrid;\n }\n get subCondensed() {\n return this.cssGridEnabled && this.isSubgrid && this.condensed;\n }\n get subNarrow() {\n return this.cssGridEnabled && this.isSubgrid && this.narrow;\n }\n get subFullWidth() {\n return this.cssGridEnabled && this.isSubgrid && this.fullWidth;\n }\n constructor() {\n this.condensed = false;\n this.narrow = false;\n this.fullWidth = false;\n this.cssGridEnabled = false;\n this.isSubgrid = false;\n this.subscription = new Subscription();\n this.gridService = inject(GridService);\n }\n ngOnInit() {\n this.subscription = this.gridService.gridObservable.subscribe((isCssGrid) => {\n this.cssGridEnabled = isCssGrid;\n });\n }\n set cssGridChildren(list) {\n if (this.cssGridEnabled) {\n list.forEach((grid) => {\n // Prevents initial (parent) grid element from being turned into a subgrid\n if (grid === this) {\n return;\n }\n grid.isSubgrid = true;\n });\n }\n }\n /**\n * Unsubscribe from Grid Service subscription\n */\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n static { this.ctorParameters = () => []; }\n static { this.propDecorators = {\n condensed: [{ type: Input }],\n narrow: [{ type: Input }],\n fullWidth: [{ type: Input }],\n useCssGrid: [{ type: Input }],\n flexGrid: [{ type: HostBinding, args: [\"class.cds--grid\",] }],\n flexCondensed: [{ type: HostBinding, args: [\"class.cds--grid--condensed\",] }],\n flexNarrow: [{ type: HostBinding, args: [\"class.cds--grid--narrow\",] }],\n flexFullWidth: [{ type: HostBinding, args: [\"class.cds--grid--full-width\",] }],\n ccsGrid: [{ type: HostBinding, args: [\"class.cds--css-grid\",] }],\n ccsCondensed: [{ type: HostBinding, args: [\"class.cds--css-grid--condensed\",] }],\n ccsNarrow: [{ type: HostBinding, args: [\"class.cds--css-grid--narrow\",] }],\n ccsFullWidth: [{ type: HostBinding, args: [\"class.cds--css-grid--full-width\",] }],\n subGrid: [{ type: HostBinding, args: [\"class.cds--subgrid\",] }],\n subCondensed: [{ type: HostBinding, args: [\"class.cds--subgrid--condensed\",] }],\n subNarrow: [{ type: HostBinding, args: [\"class.cds--subgrid--narrow\",] }],\n subFullWidth: [{ type: HostBinding, args: [\"class.cds--subgrid--wide\",] }],\n cssGridChildren: [{ type: ContentChildren, args: [forwardRef(() => GridDirective), { descendants: true },] }]\n }; }\n};\nGridDirective = __decorate([\n Directive({\n selector: \"[cdsGrid], [ibmGrid]\",\n providers: [\n {\n provide: GridService,\n deps: [[new Optional(), new SkipSelf(), GridService]],\n useFactory: (parentService) => {\n return parentService || new GridService();\n }\n }\n ],\n standalone: true\n })\n], GridDirective);\nexport { GridDirective };\n","import { __decorate } from \"tslib\";\nimport { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { ColumnDirective } from \"./column.directive\";\nimport { RowDirective } from \"./row.directive\";\nimport { GridDirective } from \"./grid.directive\";\nimport { GridService } from \"./grid.service\";\nlet GridModule = class GridModule {\n};\nGridModule = __decorate([\n NgModule({\n exports: [\n ColumnDirective,\n GridDirective,\n RowDirective\n ],\n providers: [GridService],\n imports: [\n CommonModule,\n ColumnDirective,\n GridDirective,\n RowDirective\n ]\n })\n], GridModule);\nexport { GridModule };\n","import { __decorate } from \"tslib\";\nimport { Injectable } from \"@angular/core\";\nimport { BehaviorSubject } from \"rxjs\";\nlet GridService = class GridService {\n constructor() {\n this.gridSubject = new BehaviorSubject(false);\n this.cssGridEnabled = false;\n this.gridObservable = this.gridSubject.asObservable();\n }\n /**\n * Ping all subscribers to update to use Css Grid\n * @param enableCssGrid\n */\n updateGridType(enableCssGrid) {\n if (this.cssGridEnabled === enableCssGrid) {\n return;\n }\n this.cssGridEnabled = true;\n this.gridSubject.next(enableCssGrid);\n }\n static { this.ctorParameters = () => []; }\n};\nGridService = __decorate([\n Injectable()\n], GridService);\nexport { GridService };\n","import { __decorate } from \"tslib\";\nimport { Directive, HostBinding, Input } from \"@angular/core\";\nlet RowDirective = class RowDirective {\n constructor() {\n this.baseClass = true;\n this.condensed = false;\n this.narrow = false;\n }\n static { this.propDecorators = {\n baseClass: [{ type: HostBinding, args: [\"class.cds--row\",] }],\n condensed: [{ type: HostBinding, args: [\"class.cds--row--condensed\",] }, { type: Input }],\n narrow: [{ type: HostBinding, args: [\"class.cds--row--narrow\",] }, { type: Input }]\n }; }\n};\nRowDirective = __decorate([\n Directive({\n selector: \"[cdsRow], [ibmRow]\",\n standalone: true\n })\n], RowDirective);\nexport { RowDirective };\n","import { __decorate } from \"tslib\";\nimport { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, inject } from \"@angular/core\";\nimport { I18n } from \"carbon-components-angular/i18n\";\nimport { NgClass } from \"@angular/common\";\nimport { IconDirective } from \"carbon-components-angular/icon\";\n/**\n * Get started with importing the component:\n *\n * ```typescript\n * import { ProgressIndicator } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-progress-indicator--basic)\n */\nlet ProgressIndicator = class ProgressIndicator {\n static skeletonSteps(stepCount) {\n const steps = [];\n for (let i = 0; i < stepCount; i++) {\n steps.push({ complete: false });\n }\n return steps;\n }\n get current() {\n return this._current;\n }\n set current(current) {\n this._current = current;\n this.setProgressIndicatorStates();\n }\n constructor() {\n this.i18n = inject(I18n);\n this.stepSelected = new EventEmitter();\n this.translations = this.i18n.get().PROGRESS_INDICATOR;\n this.orientation = \"horizontal\";\n this.skeleton = false;\n this.spacing = \"default\";\n // Get icon names based for each status\n this.statusIcons = {\n current: \"incomplete\",\n complete: \"checkmark--outline\",\n invalid: \"warning\",\n incomplete: \"circle-dash\"\n };\n }\n /**\n * Executes click function if `onClick` exists for step\n * `Current` step functions will not be executed\n * @param index number\n */\n onClick(index) {\n if (this.skeleton) {\n return;\n }\n if (index !== this.current && typeof this.steps[index].onClick === \"function\") {\n this.steps[index].onClick();\n }\n this.stepSelected.emit({ step: this.steps[index], index });\n }\n /**\n * Gets current state based on weight of the state\n * Weight of state goes from error, incomplete, current, and complete\n *\n * This function is used to determine which icon & translation string to display\n * @param index number\n * @returns string\n */\n getCurrentState(index) {\n if (index === this.current) {\n return \"current\";\n }\n else if (this.steps[index].invalid) {\n return \"invalid\";\n }\n else if (this.steps[index].complete) {\n return \"complete\";\n }\n return \"incomplete\";\n }\n setProgressIndicatorStates() {\n if (this.steps === undefined) {\n return;\n }\n // Set all preceding steps to `complete` & following to `incomplete`\n this.steps.forEach((step, index) => {\n if (index < this.current) {\n step.complete = true;\n }\n else {\n step.complete = false;\n }\n });\n }\n static { this.ctorParameters = () => []; }\n static { this.propDecorators = {\n current: [{ type: Input }],\n steps: [{ type: Input }],\n stepSelected: [{ type: Output }],\n translations: [{ type: Input }],\n orientation: [{ type: Input }],\n skeleton: [{ type: Input }],\n spacing: [{ type: Input }]\n }; }\n};\nProgressIndicator = __decorate([\n Component({\n selector: \"cds-progress-indicator, ibm-progress-indicator\",\n template: `\n\t\t<ul\n\t\t\tdata-progress\n\t\t\tdata-progress-current\n\t\t\tclass=\"cds--progress\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--skeleton': skeleton,\n\t\t\t\t'cds--progress--vertical': (orientation === 'vertical'),\n\t\t\t\t'cds--progress--space-equal': spacing === 'equal' && orientation !== 'vertical'\n\t\t\t}\">\n\t\t\t@for (step of steps; track step; let i = $index) {\n\t\t\t\t<li\n\t\t\t\t\tclass=\"cds--progress-step\"\n\t\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t\t'cds--progress-step--disabled' : step.disabled,\n\t\t\t\t\t\t'cds--progress-step--complete' : step.complete,\n\t\t\t\t\t\t'cds--progress-step--incomplete' : !step.complete && i !== current,\n\t\t\t\t\t\t'cds--progress-step--current': i === current\n\t\t\t\t\t}\">\n\t\t\t\t\t<button\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tclass=\"cds--progress-step-button\"\n\t\t\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t\t\t'cds--progress-step-button--unclickable': !step.onClick || current === i || skeleton\n\t\t\t\t\t\t}\"\n\t\t\t\t\t\t[disabled]=\"step.disabled\"\n\t\t\t\t\t\t[attr.aria-disabled]=\"step.disabled\"\n\t\t\t\t\t\t[tabindex]=\"(current !== i && step.onClick && !step.disabled) ? 0 : -1\"\n\t\t\t\t\t\t[title]=\"step.label\"\n\t\t\t\t\t\t(click)=\"onClick(i)\">\n\t\t\t\t\t\t<span class=\"cds--assistive-text\">\n\t\t\t\t\t\t\t{{this.translations[getCurrentState(i)?.toUpperCase()]}}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\t[cdsIcon]=\"statusIcons[getCurrentState(i)]\"\n\t\t\t\t\t\t\tsize=\"16\"\n\t\t\t\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t\t\t\t'cds--progress__warning': step.invalid && i !== current\n\t\t\t\t\t\t\t}\">\n\t\t\t\t\t\t\t@if (step.description) {\n\t\t\t\t\t\t\t\t<title>{{step.description}}</title>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t<div class=\"cds--progress-text\">\n\t\t\t\t\t\t\t<p class=\"cds--progress-label\">{{step.label}}</p>\n\t\t\t\t\t\t\t@if (step.secondaryLabel && !skeleton) {\n\t\t\t\t\t\t\t\t<p class=\"cds--progress-optional\">{{step.secondaryLabel}}</p>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<span class=\"cds--progress-line\"></span>\n\t\t\t\t\t</button>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgClass, IconDirective]\n })\n], ProgressIndicator);\nexport { ProgressIndicator };\n","import { __decorate } from \"tslib\";\nimport { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { ProgressIndicator } from \"./progress-indicator.component\";\nimport { IconDirective } from \"carbon-components-angular/icon\";\nimport { I18nModule } from \"carbon-components-angular/i18n\";\nlet ProgressIndicatorModule = class ProgressIndicatorModule {\n};\nProgressIndicatorModule = __decorate([\n NgModule({\n exports: [\n ProgressIndicator\n ],\n imports: [\n CommonModule,\n IconDirective,\n I18nModule,\n ProgressIndicator\n ]\n })\n], ProgressIndicatorModule);\nexport { ProgressIndicatorModule };\n","/**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\nfunction isNull(value) {\n return value === null;\n}\n\nexport default isNull;\n","/**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\nfunction isUndefined(value) {\n return value === undefined;\n}\n\nexport default isUndefined;\n","import { asyncScheduler } from '../scheduler/async';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function debounceTime(dueTime, scheduler) {\n if (scheduler === void 0) { scheduler = asyncScheduler; }\n return operate(function (source, subscriber) {\n var activeTask = null;\n var lastValue = null;\n var lastTime = null;\n var emit = function () {\n if (activeTask) {\n activeTask.unsubscribe();\n activeTask = null;\n var value = lastValue;\n lastValue = null;\n subscriber.next(value);\n }\n };\n function emitWhenIdle() {\n var targetTime = lastTime + dueTime;\n var now = scheduler.now();\n if (now < targetTime) {\n activeTask = this.schedule(undefined, targetTime - now);\n subscriber.add(activeTask);\n return;\n }\n emit();\n }\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n lastValue = value;\n lastTime = scheduler.now();\n if (!activeTask) {\n activeTask = scheduler.schedule(emitWhenIdle, dueTime);\n subscriber.add(activeTask);\n }\n }, function () {\n emit();\n subscriber.complete();\n }, undefined, function () {\n lastValue = activeTask = null;\n }));\n });\n}\n//# sourceMappingURL=debounceTime.js.map","import { __extends } from \"tslib\";\nimport { Subscription } from '../Subscription';\nvar Action = (function (_super) {\n __extends(Action, _super);\n function Action(scheduler, work) {\n return _super.call(this) || this;\n }\n Action.prototype.schedule = function (state, delay) {\n if (delay === void 0) { delay = 0; }\n return this;\n };\n return Action;\n}(Subscription));\nexport { Action };\n//# sourceMappingURL=Action.js.map","import { __read, __spreadArray } from \"tslib\";\nexport var intervalProvider = {\n setInterval: function (handler, timeout) {\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n var delegate = intervalProvider.delegate;\n if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {\n return delegate.setInterval.apply(delegate, __spreadArray([handler, timeout], __read(args)));\n }\n return setInterval.apply(void 0, __spreadArray([handler, timeout], __read(args)));\n },\n clearInterval: function (handle) {\n var delegate = intervalProvider.delegate;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);\n },\n delegate: undefined,\n};\n//# sourceMappingURL=intervalProvider.js.map","import { __extends } from \"tslib\";\nimport { Action } from './Action';\nimport { intervalProvider } from './intervalProvider';\nimport { arrRemove } from '../util/arrRemove';\nvar AsyncAction = (function (_super) {\n __extends(AsyncAction, _super);\n function AsyncAction(scheduler, work) {\n var _this = _super.call(this, scheduler, work) || this;\n _this.scheduler = scheduler;\n _this.work = work;\n _this.pending = false;\n return _this;\n }\n AsyncAction.prototype.schedule = function (state, delay) {\n var _a;\n if (delay === void 0) { delay = 0; }\n if (this.closed) {\n return this;\n }\n this.state = state;\n var id = this.id;\n var scheduler = this.scheduler;\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, delay);\n }\n this.pending = true;\n this.delay = delay;\n this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay);\n return this;\n };\n AsyncAction.prototype.requestAsyncId = function (scheduler, _id, delay) {\n if (delay === void 0) { delay = 0; }\n return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);\n };\n AsyncAction.prototype.recycleAsyncId = function (_scheduler, id, delay) {\n if (delay === void 0) { delay = 0; }\n if (delay != null && this.delay === delay && this.pending === false) {\n return id;\n }\n if (id != null) {\n intervalProvider.clearInterval(id);\n }\n return undefined;\n };\n AsyncAction.prototype.execute = function (state, delay) {\n if (this.closed) {\n return new Error('executing a cancelled action');\n }\n this.pending = false;\n var error = this._execute(state, delay);\n if (error) {\n return error;\n }\n else if (this.pending === false && this.id != null) {\n this.id = this.recycleAsyncId(this.scheduler, this.id, null);\n }\n };\n AsyncAction.prototype._execute = function (state, _delay) {\n var errored = false;\n var errorValue;\n try {\n this.work(state);\n }\n catch (e) {\n errored = true;\n errorValue = e ? e : new Error('Scheduled action threw falsy error');\n }\n if (errored) {\n this.unsubscribe();\n return errorValue;\n }\n };\n AsyncAction.prototype.unsubscribe = function () {\n if (!this.closed) {\n var _a = this, id = _a.id, scheduler = _a.scheduler;\n var actions = scheduler.actions;\n this.work = this.state = this.scheduler = null;\n this.pending = false;\n arrRemove(actions, this);\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, null);\n }\n this.delay = null;\n _super.prototype.unsubscribe.call(this);\n }\n };\n return AsyncAction;\n}(Action));\nexport { AsyncAction };\n//# sourceMappingURL=AsyncAction.js.map","import { dateTimestampProvider } from './scheduler/dateTimestampProvider';\nvar Scheduler = (function () {\n function Scheduler(schedulerActionCtor, now) {\n if (now === void 0) { now = Scheduler.now; }\n this.schedulerActionCtor = schedulerActionCtor;\n this.now = now;\n }\n Scheduler.prototype.schedule = function (work, delay, state) {\n if (delay === void 0) { delay = 0; }\n return new this.schedulerActionCtor(this, work).schedule(state, delay);\n };\n Scheduler.now = dateTimestampProvider.now;\n return Scheduler;\n}());\nexport { Scheduler };\n//# sourceMappingURL=Scheduler.js.map","import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\nexport var asyncScheduler = new AsyncScheduler(AsyncAction);\nexport var async = asyncScheduler;\n//# sourceMappingURL=async.js.map","import { __extends } from \"tslib\";\nimport { Scheduler } from '../Scheduler';\nvar AsyncScheduler = (function (_super) {\n __extends(AsyncScheduler, _super);\n function AsyncScheduler(SchedulerAction, now) {\n if (now === void 0) { now = Scheduler.now; }\n var _this = _super.call(this, SchedulerAction, now) || this;\n _this.actions = [];\n _this._active = false;\n return _this;\n }\n AsyncScheduler.prototype.flush = function (action) {\n var actions = this.actions;\n if (this._active) {\n actions.push(action);\n return;\n }\n var error;\n this._active = true;\n do {\n if ((error = action.execute(action.state, action.delay))) {\n break;\n }\n } while ((action = actions.shift()));\n this._active = false;\n if (error) {\n while ((action = actions.shift())) {\n action.unsubscribe();\n }\n throw error;\n }\n };\n return AsyncScheduler;\n}(Scheduler));\nexport { AsyncScheduler };\n//# sourceMappingURL=AsyncScheduler.js.map","export var dateTimestampProvider = {\n now: function () {\n return (dateTimestampProvider.delegate || Date).now();\n },\n delegate: undefined,\n};\n//# sourceMappingURL=dateTimestampProvider.js.map","import { __decorate } from \"tslib\";\nimport __NG_CLI_RESOURCE__0 from \"/home/runner/work/carbon-components-angular/carbon-components-angular/src/patterns/forms/multi-step-form.stories.ts.css?ngResource!=!/home/runner/work/carbon-components-angular/carbon-components-angular/node_modules/@ngtools/webpack/src/loaders/inline-resource.js?data=CgkJLmhlYWRlciB7CgkJCW1hcmdpbi1ib3R0b206IDVyZW07CgkJfQoKCQkuaW5kaWNhdG9yLXdyYXBwZXIgewoJCQliYWNrZ3JvdW5kLWNvbG9yOiAjZjRmNGY0OwoJCX0KCgkJLnN1Yi1oZWFkaW5nIHsKCQkJbWFyZ2luLWJvdHRvbTogMS41cmVtOwoJCX0KCgkJLmluZGljYXRvciB7CgkJCW1hcmdpbi10b3A6IDFyZW07CgkJfQoKCQkuZm9ybS1sYWJlbCB7CgkJCW1hcmdpbi10b3A6IDAuN3JlbTsKCQkJbWFyZ2luLWJvdHRvbTogMC41cmVtOwoJCX0KCgkJLmRyb3Bkb3duIHsKCQkJd2lkdGg6IDEwMCU7CgkJfQoKCQkuZm9ybS1pdGVtIHsKCQkJbWFyZ2luLXRvcDogMS41cmVtOwoJCX0KCQ%3D%3D!/home/runner/work/carbon-components-angular/carbon-components-angular/src/patterns/forms/multi-step-form.stories.ts\";\nimport { Component, inject } from \"@angular/core\";\nimport { moduleMetadata } from \"@storybook/angular\";\nimport { ColumnDirective, GridDirective, RowDirective } from \"../../grid\";\nimport { Dropdown, DropdownList } from \"../../dropdown\";\nimport { Button } from \"../../button\";\nimport { ProgressIndicator } from \"../../progress-indicator\";\nimport { Breadcrumb, BreadcrumbItemComponent } from \"../../breadcrumb\";\nimport { FormBuilder, FormControl, ReactiveFormsModule } from \"@angular/forms\";\nimport { Checkbox } from \"../../checkbox\";\nimport { Hamburger, Header } from \"../../ui-shell\";\nimport { Label, TextArea, TextInput } from \"../../input\";\nlet MultiStepFormStory = class MultiStepFormStory {\n constructor() {\n this.steps = [\n {\n label: \"Step 1\",\n complete: true\n },\n {\n label: \"Step 2\",\n current: true,\n complete: false\n },\n {\n label: \"Step 3\",\n complete: false,\n invalid: true\n },\n {\n label: \"Step 4\",\n complete: false,\n secondaryLabel: \"Optional\"\n }\n ];\n this.resourceGroups = [\n { content: \"None\" },\n { content: \"Resource group 1\" },\n { content: \"Resource group 2\" }\n ];\n this.currentStep = 1;\n this.formBuilder = inject(FormBuilder);\n }\n ngOnInit() {\n document.querySelector(\".sb-show-main\")?.classList.add(\"full-page\");\n this.step2FormGroup = this.formBuilder.group({\n workspaceName: new FormControl(),\n resourceGroup: new FormControl(),\n purpose: new FormControl()\n });\n this.step2FormGroup.get(\"resourceGroup\")?.setValue(\"None\");\n }\n ngOnDestroy() {\n document.querySelector(\".sb-show-main\")?.classList.remove(\"full-page\");\n }\n changeStep(step) {\n this.currentStep = step;\n }\n};\nMultiStepFormStory = __decorate([\n Component({\n selector: \"app-multi-step-form\",\n template: `\n\t\t<div cdsGrid>\n\t\t\t<div cdsRow class=\"header\">\n\t\t\t\t<cds-header name=\"Patterns\">\n\t\t\t\t\t<cds-hamburger></cds-hamburger>\n\t\t\t\t</cds-header>\n\t\t\t</div>\n\t\t\t<div cdsRow>\n\t\t\t\t<div cdsCol [columnNumbers]=\"{'lg': 8, 'md': 8, 'sm': 8}\">\n\t\t\t\t\t<cds-breadcrumb [noTrailingSlash]=\"noTrailingSlash\">\n\t\t\t\t\t\t<cds-breadcrumb-item href=\"#1\">\n\t\t\t\t\t\t\tDashboard\n\t\t\t\t\t\t</cds-breadcrumb-item>\n\t\t\t\t\t</cds-breadcrumb>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div cdsRow class=\"sub-heading\">\n\t\t\t\t<div cdsCol [columnNumbers]=\"{'lg': 8, 'md': 8, 'sm': 8}\">\n\t\t\t\t\t<h4>Vertical multi-step form</h4>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div cdsRow>\n\t\t\t\t<div\n\t\t\t\t\tcdsCol\n\t\t\t\t\t[columnNumbers]=\"{'lg': 2, 'md': 2, 'sm': 2}\"\n\t\t\t\t\tclass=\"indicator-wrapper\">\n\t\t\t\t\t<div class=\"indicator\">\n\t\t\t\t\t\t<cds-progress-indicator\n\t\t\t\t\t\t\torientation=\"vertical\"\n\t\t\t\t\t\t\t[steps]=\"steps\"\n\t\t\t\t\t\t\t[current]=\"currentStep\">\n\t\t\t\t\t\t</cds-progress-indicator>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div cdsCol [columnNumbers]=\"{'lg': 6, 'md': 6, 'sm': 6}\">\n\t\t\t\t\t@switch (currentStep) {\n\t\t\t\t\t\t@case (1) {\n\t\t\t\t\t\t\t<form [formGroup]=\"step2FormGroup\">\n\t\t\t\t\t\t\t\t<div cdsGrid>\n\t\t\t\t\t\t\t\t\t<div cdsRow>\n\t\t\t\t\t\t\t\t\t\t<h4>Create a new workspace</h4>\n\t\t\t\t\t\t\t\t\t\t<label class=\"form-label\">\n\t\t\t\t\t\t\t\t\t\t\tWhen you create a workspace, you connect IBM Cloud\n\t\t\t\t\t\t\t\t\t\t\tSchematics to existing Github / Gitlab repos that host\n\t\t\t\t\t\t\t\t\t\t\tyour Terraform templates.\n\t\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div cdsRow class=\"form-item\">\n\t\t\t\t\t\t\t\t\t\t<cds-label>\n\t\t\t\t\t\t\t\t\t\t\tWorkspace name\n\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\t\tcdsText\n\t\t\t\t\t\t\t\t\t\t\t\t[autocomplete]=\"false\"\n\t\t\t\t\t\t\t\t\t\t\t\tformControlName=\"workspaceName\">\n\t\t\t\t\t\t\t\t\t\t</cds-label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div cdsRow class=\"form-item\">\n\t\t\t\t\t\t\t\t\t\t<cds-dropdown\n\t\t\t\t\t\t\t\t\t\t\tclass=\"dropdown\"\n\t\t\t\t\t\t\t\t\t\t\tlabel=\"Resource group\"\n\t\t\t\t\t\t\t\t\t\t\tvalue=\"content\"\n\t\t\t\t\t\t\t\t\t\t\tformControlName=\"resourceGroup\"\n\t\t\t\t\t\t\t\t\t\t\t[dropUp]=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t<cds-dropdown-list [items]=\"resourceGroups\"></cds-dropdown-list>\n\t\t\t\t\t\t\t\t\t\t</cds-dropdown>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div cdsRow class=\"form-item\">\n\t\t\t\t\t\t\t\t\t\t<cds-label>\n\t\t\t\t\t\t\t\t\t\t\tDescription (optional)\n\t\t\t\t\t\t\t\t\t\t\t<textarea\n\t\t\t\t\t\t\t\t\t\t\t\tcdsTextArea\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"What is the purpose of this workspace?\"\n\t\t\t\t\t\t\t\t\t\t\t\tformControlName=\"purpose\"\n\t\t\t\t\t\t\t\t\t\t\t\t[rows]=\"3\"\n\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"textarea\"></textarea>\n\t\t\t\t\t\t\t\t\t\t</cds-label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div cdsRow class=\"form-item\">\n\t\t\t\t\t\t\t\t\t\t<button cdsButton (click)=\"changeStep(2)\">Step 3</button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@case (2) {\n\t\t\t\t\t\t\t<div cdsGrid>\n\t\t\t\t\t\t\t\t<div cdsRow>\n\t\t\t\t\t\t\t\t\tStep 3 form!\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div cdsRow class=\"form-item\">\n\t\t\t\t\t\t\t\t\t<button cdsButton (click)=\"changeStep(1)\">Step 2</button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t`,\n imports: [\n GridDirective,\n RowDirective,\n ColumnDirective,\n Checkbox,\n ProgressIndicator,\n Button,\n Breadcrumb,\n BreadcrumbItemComponent,\n ReactiveFormsModule,\n Dropdown,\n DropdownList,\n Header,\n Hamburger,\n Label,\n TextArea,\n TextInput\n ],\n standalone: true,\n styles: [__NG_CLI_RESOURCE__0]\n })\n], MultiStepFormStory);\n// Storybook starts here\nexport default {\n title: \"Pattern/Forms\",\n decorators: [\n moduleMetadata({\n declarations: [],\n imports: [\n MultiStepFormStory\n ]\n })\n ]\n};\nconst Template = (args) => ({\n props: args,\n template: `\n\t\t<!--\n\t\t\tapp-* components are for demo purposes only.\n\t\t\tYou can create your own implementation by using the component source as an example.\n\t\t-->\n\t\t<app-multi-step-form></app-multi-step-form>\n\t`\n});\nexport const MultiStep = Template.bind({});\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `\n\t\t.header {\n\t\t\tmargin-bottom: 5rem;\n\t\t}\n\n\t\t.indicator-wrapper {\n\t\t\tbackground-color: #f4f4f4;\n\t\t}\n\n\t\t.sub-heading {\n\t\t\tmargin-bottom: 1.5rem;\n\t\t}\n\n\t\t.indicator {\n\t\t\tmargin-top: 1rem;\n\t\t}\n\n\t\t.form-label {\n\t\t\tmargin-top: 0.7rem;\n\t\t\tmargin-bottom: 0.5rem;\n\t\t}\n\n\t\t.dropdown {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t.form-item {\n\t\t\tmargin-top: 1.5rem;\n\t\t}\n\t`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n"],"names":[],"sourceRoot":""}
|