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-loading-large-loading-stories.7ba92ef7.iframe.bundle.js","mappings":"AACA","sources":["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/loading/loading.component.ts","webpack://carbon-components-angular/./src/loading/loading.module.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/loading/large-loading.stories.ts","webpack://carbon-components-angular/./src/patterns/loading/large-loading.stories.ts?35f1"],"sourcesContent":["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, HostBinding, Input, inject } from \"@angular/core\";\nimport { I18n } from \"carbon-components-angular/i18n\";\nimport { NgClass } from \"@angular/common\";\n/**\n * Get started with importing the component:\n *\n * ```typescript\n * import { Loading } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-loading--basic)\n */\nlet Loading = class Loading {\n constructor() {\n this.i18n = inject(I18n);\n this.title = this.i18n.get().LOADING.TITLE;\n this.isActive = true;\n this.size = \"normal\";\n this.overlay = false;\n }\n static { this.ctorParameters = () => []; }\n static { this.propDecorators = {\n title: [{ type: Input }],\n isActive: [{ type: Input }],\n size: [{ type: Input }],\n overlay: [{ type: Input }, { type: HostBinding, args: [\"class.cds--loading-overlay\",] }]\n }; }\n};\nLoading = __decorate([\n Component({\n selector: \"cds-loading, ibm-loading\",\n template: `\n\t\t<div\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--loading--small': size === 'sm',\n\t\t\t\t'cds--loading--stop': !isActive && !overlay,\n\t\t\t\t'cds--loading-overlay--stop': !isActive && overlay\n\t\t\t}\"\n\t\t\tclass=\"cds--loading\">\n\t\t\t<svg class=\"cds--loading__svg\" viewBox=\"0 0 100 100\">\n\t\t\t\t<title>{{title}}</title>\n\t\t\t\t<circle class=\"cds--loading__stroke\" cx=\"50%\" cy=\"50%\" r=\"44\" />\n\t\t\t</svg>\n\t\t</div>\n\t`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgClass]\n })\n], Loading);\nexport { Loading };\n","import { __decorate } from \"tslib\";\nimport { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { Loading } from \"./loading.component\";\nimport { I18nModule } from \"carbon-components-angular/i18n\";\nlet LoadingModule = class LoadingModule {\n};\nLoadingModule = __decorate([\n NgModule({\n exports: [Loading],\n imports: [CommonModule, I18nModule, Loading]\n })\n], LoadingModule);\nexport { LoadingModule };\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/loading/large-loading.stories.ts.css?ngResource!=!/home/runner/work/carbon-components-angular/carbon-components-angular/node_modules/@ngtools/webpack/src/loaders/inline-resource.js?data=CgkJLmhlYWRlciB7CgkJCW1hcmdpbi1ib3R0b206IDgwcHg7CgkJfQoKCQkucHJvZ3Jlc3MtaW5kaWNhdG9yLXdyYXBwZXIgewoJCQltYXJnaW4tYm90dG9tOiA1MHB4OwoJCX0KCgkJLmRyb3Bkb3duLXdyYXBwZXIgewoJCQl3aWR0aDogNTAlOwoJCX0KCQ%3D%3D!/home/runner/work/carbon-components-angular/carbon-components-angular/src/patterns/loading/large-loading.stories.ts\";\nimport { Component } from \"@angular/core\";\nimport { moduleMetadata } from \"@storybook/angular\";\nimport { ColumnDirective, GridDirective, RowDirective } from \"../../grid\";\nimport { ProgressIndicator } from \"../../progress-indicator\";\nimport { Placeholder } from \"../../placeholder\";\nimport { Dropdown, DropdownList } from \"../../dropdown\";\nimport { Loading } from \"../../loading\";\nimport { Button } from \"../../button\";\nimport { FormGroup, FormControl, Validators, FormsModule, ReactiveFormsModule } from \"@angular/forms\";\nimport { Checkbox } from \"../../checkbox\";\nimport { Label, TextArea, TextInput } from \"../../input\";\nimport { Hamburger, Header } from \"../../ui-shell\";\nlet SampleLargeLoading = class SampleLargeLoading {\n constructor() {\n this.isLoading = false;\n this.overlay = false;\n this.formGroup = new FormGroup({\n input: new FormControl(\"\", [Validators.required]),\n textArea: new FormControl(\"\", [Validators.required]),\n dropdown: new FormControl(\"\", [Validators.required])\n });\n this.steps = [\n {\n text: \"First step\",\n state: [\"complete\"]\n },\n {\n text: \"Second step\",\n state: [\"complete\"],\n tooltip: { content: \"Overflow tooltip content.\", trigger: \"click\", placement: \"bottom\" }\n },\n {\n text: \"Third step\",\n state: [\"current\"],\n tooltip: {\n content: `Lorem ipsum dolor, sit amet consectetur adipisicing elit.\n\t\t\t\t\tAnimi consequuntur hic ratione aliquid cupiditate, nesciunt saepe iste\n\t\t\t\t\tblanditiis cumque maxime tenetur veniam est illo deserunt sint quae pariatur.\n\t\t\t\t\tLaboriosam, consequatur.`,\n trigger: \"click\",\n placement: \"bottom\"\n }\n },\n {\n text: \"Fourth step\",\n state: [\"incomplete\"]\n },\n {\n text: \"Fifth step\",\n state: [\"incomplete\"]\n }\n ];\n this.items = [\n { content: \"Option 1\" },\n { content: \"Option 2\" },\n { content: \"Option 3\" },\n { content: \"Option 4\" },\n { content: \"Option 5\" }\n ];\n }\n onSubmit() {\n this.isLoading = true;\n this.overlay = true;\n setTimeout(() => {\n this.isLoading = false;\n this.overlay = false;\n }, 2000);\n if (this.formGroup.invalid) {\n const invalidFields = [].slice.call(document.getElementsByClassName(\"ng-invalid\"));\n invalidFields[1].focus();\n }\n return;\n }\n isInvalid(controlName) {\n const control = this.formGroup.get(controlName);\n return (control && control.invalid && (control.dirty || control.touched));\n }\n};\nSampleLargeLoading = __decorate([\n Component({\n selector: \"app-sample-large-loading\",\n template: `\n\t<div cdsGrid>\n\t\t<div cdsRow class=\"header\">\n\t\t\t<cds-header name=\"Patterns\">\n\t\t\t\t<cds-hamburger></cds-hamburger>\n\t\t\t</cds-header>\n\t\t</div>\n\t\t<div cdsRow class=\"progress-indicator-wrapper\">\n\t\t\t<cds-progress-indicator [steps]=\"steps\"></cds-progress-indicator>\n\t\t</div>\n\t\t<div cdsRow class=\"form\">\n\t\t\t<form [formGroup]=\"formGroup\" (ngSubmit)=\"onSubmit()\">\n\t\t\t\t<div class=\"cds--form-item\">\n\t\t\t\t\t<cds-label\n\t\t\t\t\t\thelperText=\"Optional helper text here; if message is more than one line text should wrap (~100 character count maximum)\"\n\t\t\t\t\t\t[invalid]=\"isInvalid('input')\"\n\t\t\t\t\t\tinvalidText=\"Please enter a response\">\n\t\t\t\t\t\tText input label\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tcdsText\n\t\t\t\t\t\t\tformControlName=\"input\"\n\t\t\t\t\t\t\tplaceholder=\"Optional placeholder text\">\n\t\t\t\t\t</cds-label>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"cds--form-item\">\n\t\t\t\t\t<cds-label\n\t\t\t\t\t\thelperText=\"Optional helper text here; if message is more than one line text should wrap (~100 character count maximum)\"\n\t\t\t\t\t\t[invalid]=\"isInvalid('textArea')\"\n\t\t\t\t\t\tinvalidText=\"Please enter a response\">\n\t\t\t\t\t\tText input label\n\t\t\t\t\t\t<textarea\n\t\t\t\t\t\t\tcdsTextArea\n\t\t\t\t\t\t\tformControlName=\"textArea\"\n\t\t\t\t\t\t\tplaceholder=\"Optional placeholder text\">\n\t\t\t\t\t\t</textarea>\n\t\t\t\t\t</cds-label>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"cds--form-item\">\n\t\t\t\t\t<div class=\"dropdown-wrapper\">\n\t\t\t\t\t\t<cds-dropdown\n\t\t\t\t\t\t\tlabel=\"Choose one option\"\n\t\t\t\t\t\t\t[invalid]=\"isInvalid('dropdown')\"\n\t\t\t\t\t\t\tinvalidText=\"Please choose an option\"\n\t\t\t\t\t\t\tplaceholder=\"Select an option\"\n\t\t\t\t\t\t\tformControlName=\"dropdown\">\n\t\t\t\t\t\t\t<cds-dropdown-list [items]=\"items\"></cds-dropdown-list>\n\t\t\t\t\t\t</cds-dropdown>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"cds--form-item\">\n\t\t\t\t\t<button\n\t\t\t\t\t\tclass=\"form-button\"\n\t\t\t\t\t\tcdsButton\n\t\t\t\t\t\ttype=\"submit\">\n\t\t\t\t\t\tShow Loading\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</form>\n\t\t</div>\n\t</div>\n\t@if (isLoading) {\n\t\t<cds-loading\n\t\t\t[isActive]=\"isLoading\"\n\t\t\tsize=\"normal\"\n\t\t\t[overlay]=\"overlay\">\n\t\t</cds-loading>\n\t}\n\t`,\n standalone: true,\n imports: [\n GridDirective,\n RowDirective,\n ColumnDirective,\n Checkbox,\n Dropdown,\n DropdownList,\n Placeholder,\n Loading,\n ProgressIndicator,\n Loading,\n FormsModule,\n ReactiveFormsModule,\n Button,\n TextInput,\n TextArea,\n Label,\n Header,\n Hamburger\n ],\n styles: [__NG_CLI_RESOURCE__0]\n })\n], SampleLargeLoading);\n// Storybook starts here\nexport default {\n title: \"Pattern/Loading\",\n decorators: [\n moduleMetadata({\n declarations: [],\n imports: [\n SampleLargeLoading\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-sample-large-loading></app-sample-large-loading>\n\t`\n});\nexport const LargeLoading = 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: 80px;\n\t\t}\n\n\t\t.progress-indicator-wrapper {\n\t\t\tmargin-bottom: 50px;\n\t\t}\n\n\t\t.dropdown-wrapper {\n\t\t\twidth: 50%;\n\t\t}\n\t`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n"],"names":[],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"patterns-loading-large-loading-stories.9f109d31.iframe.bundle.js","mappings":"AACA","sources":["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/loading/loading.component.ts","webpack://carbon-components-angular/./src/loading/loading.module.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/loading/large-loading.stories.ts","webpack://carbon-components-angular/./src/patterns/loading/large-loading.stories.ts?35f1"],"sourcesContent":["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, HostBinding, Input, inject } from \"@angular/core\";\nimport { I18n } from \"carbon-components-angular/i18n\";\nimport { NgClass } from \"@angular/common\";\n/**\n * Get started with importing the component:\n *\n * ```typescript\n * import { Loading } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-loading--basic)\n */\nlet Loading = class Loading {\n constructor() {\n this.i18n = inject(I18n);\n this.title = this.i18n.get().LOADING.TITLE;\n this.isActive = true;\n this.size = \"normal\";\n this.overlay = false;\n }\n static { this.ctorParameters = () => []; }\n static { this.propDecorators = {\n title: [{ type: Input }],\n isActive: [{ type: Input }],\n size: [{ type: Input }],\n overlay: [{ type: Input }, { type: HostBinding, args: [\"class.cds--loading-overlay\",] }]\n }; }\n};\nLoading = __decorate([\n Component({\n selector: \"cds-loading, ibm-loading\",\n template: `\n\t\t<div\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--loading--small': size === 'sm',\n\t\t\t\t'cds--loading--stop': !isActive && !overlay,\n\t\t\t\t'cds--loading-overlay--stop': !isActive && overlay\n\t\t\t}\"\n\t\t\tclass=\"cds--loading\">\n\t\t\t<svg class=\"cds--loading__svg\" viewBox=\"0 0 100 100\">\n\t\t\t\t<title>{{title}}</title>\n\t\t\t\t<circle class=\"cds--loading__stroke\" cx=\"50%\" cy=\"50%\" r=\"44\" />\n\t\t\t</svg>\n\t\t</div>\n\t`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgClass]\n })\n], Loading);\nexport { Loading };\n","import { __decorate } from \"tslib\";\nimport { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { Loading } from \"./loading.component\";\nimport { I18nModule } from \"carbon-components-angular/i18n\";\nlet LoadingModule = class LoadingModule {\n};\nLoadingModule = __decorate([\n NgModule({\n exports: [Loading],\n imports: [CommonModule, I18nModule, Loading]\n })\n], LoadingModule);\nexport { LoadingModule };\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/loading/large-loading.stories.ts.css?ngResource!=!/home/runner/work/carbon-components-angular/carbon-components-angular/node_modules/@ngtools/webpack/src/loaders/inline-resource.js?data=CgkJLmhlYWRlciB7CgkJCW1hcmdpbi1ib3R0b206IDgwcHg7CgkJfQoKCQkucHJvZ3Jlc3MtaW5kaWNhdG9yLXdyYXBwZXIgewoJCQltYXJnaW4tYm90dG9tOiA1MHB4OwoJCX0KCgkJLmRyb3Bkb3duLXdyYXBwZXIgewoJCQl3aWR0aDogNTAlOwoJCX0KCQ%3D%3D!/home/runner/work/carbon-components-angular/carbon-components-angular/src/patterns/loading/large-loading.stories.ts\";\nimport { Component } from \"@angular/core\";\nimport { moduleMetadata } from \"@storybook/angular\";\nimport { ColumnDirective, GridDirective, RowDirective } from \"../../grid\";\nimport { ProgressIndicator } from \"../../progress-indicator\";\nimport { Placeholder } from \"../../placeholder\";\nimport { Dropdown, DropdownList } from \"../../dropdown\";\nimport { Loading } from \"../../loading\";\nimport { Button } from \"../../button\";\nimport { FormGroup, FormControl, Validators, FormsModule, ReactiveFormsModule } from \"@angular/forms\";\nimport { Checkbox } from \"../../checkbox\";\nimport { Label, TextArea, TextInput } from \"../../input\";\nimport { Hamburger, Header } from \"../../ui-shell\";\nlet SampleLargeLoading = class SampleLargeLoading {\n constructor() {\n this.isLoading = false;\n this.overlay = false;\n this.formGroup = new FormGroup({\n input: new FormControl(\"\", [Validators.required]),\n textArea: new FormControl(\"\", [Validators.required]),\n dropdown: new FormControl(\"\", [Validators.required])\n });\n this.steps = [\n {\n text: \"First step\",\n state: [\"complete\"]\n },\n {\n text: \"Second step\",\n state: [\"complete\"],\n tooltip: { content: \"Overflow tooltip content.\", trigger: \"click\", placement: \"bottom\" }\n },\n {\n text: \"Third step\",\n state: [\"current\"],\n tooltip: {\n content: `Lorem ipsum dolor, sit amet consectetur adipisicing elit.\n\t\t\t\t\tAnimi consequuntur hic ratione aliquid cupiditate, nesciunt saepe iste\n\t\t\t\t\tblanditiis cumque maxime tenetur veniam est illo deserunt sint quae pariatur.\n\t\t\t\t\tLaboriosam, consequatur.`,\n trigger: \"click\",\n placement: \"bottom\"\n }\n },\n {\n text: \"Fourth step\",\n state: [\"incomplete\"]\n },\n {\n text: \"Fifth step\",\n state: [\"incomplete\"]\n }\n ];\n this.items = [\n { content: \"Option 1\" },\n { content: \"Option 2\" },\n { content: \"Option 3\" },\n { content: \"Option 4\" },\n { content: \"Option 5\" }\n ];\n }\n onSubmit() {\n this.isLoading = true;\n this.overlay = true;\n setTimeout(() => {\n this.isLoading = false;\n this.overlay = false;\n }, 2000);\n if (this.formGroup.invalid) {\n const invalidFields = [].slice.call(document.getElementsByClassName(\"ng-invalid\"));\n invalidFields[1].focus();\n }\n return;\n }\n isInvalid(controlName) {\n const control = this.formGroup.get(controlName);\n return (control && control.invalid && (control.dirty || control.touched));\n }\n};\nSampleLargeLoading = __decorate([\n Component({\n selector: \"app-sample-large-loading\",\n template: `\n\t<div cdsGrid>\n\t\t<div cdsRow class=\"header\">\n\t\t\t<cds-header name=\"Patterns\">\n\t\t\t\t<cds-hamburger></cds-hamburger>\n\t\t\t</cds-header>\n\t\t</div>\n\t\t<div cdsRow class=\"progress-indicator-wrapper\">\n\t\t\t<cds-progress-indicator [steps]=\"steps\"></cds-progress-indicator>\n\t\t</div>\n\t\t<div cdsRow class=\"form\">\n\t\t\t<form [formGroup]=\"formGroup\" (ngSubmit)=\"onSubmit()\">\n\t\t\t\t<div class=\"cds--form-item\">\n\t\t\t\t\t<cds-label\n\t\t\t\t\t\thelperText=\"Optional helper text here; if message is more than one line text should wrap (~100 character count maximum)\"\n\t\t\t\t\t\t[invalid]=\"isInvalid('input')\"\n\t\t\t\t\t\tinvalidText=\"Please enter a response\">\n\t\t\t\t\t\tText input label\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tcdsText\n\t\t\t\t\t\t\tformControlName=\"input\"\n\t\t\t\t\t\t\tplaceholder=\"Optional placeholder text\">\n\t\t\t\t\t</cds-label>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"cds--form-item\">\n\t\t\t\t\t<cds-label\n\t\t\t\t\t\thelperText=\"Optional helper text here; if message is more than one line text should wrap (~100 character count maximum)\"\n\t\t\t\t\t\t[invalid]=\"isInvalid('textArea')\"\n\t\t\t\t\t\tinvalidText=\"Please enter a response\">\n\t\t\t\t\t\tText input label\n\t\t\t\t\t\t<textarea\n\t\t\t\t\t\t\tcdsTextArea\n\t\t\t\t\t\t\tformControlName=\"textArea\"\n\t\t\t\t\t\t\tplaceholder=\"Optional placeholder text\">\n\t\t\t\t\t\t</textarea>\n\t\t\t\t\t</cds-label>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"cds--form-item\">\n\t\t\t\t\t<div class=\"dropdown-wrapper\">\n\t\t\t\t\t\t<cds-dropdown\n\t\t\t\t\t\t\tlabel=\"Choose one option\"\n\t\t\t\t\t\t\t[invalid]=\"isInvalid('dropdown')\"\n\t\t\t\t\t\t\tinvalidText=\"Please choose an option\"\n\t\t\t\t\t\t\tplaceholder=\"Select an option\"\n\t\t\t\t\t\t\tformControlName=\"dropdown\">\n\t\t\t\t\t\t\t<cds-dropdown-list [items]=\"items\"></cds-dropdown-list>\n\t\t\t\t\t\t</cds-dropdown>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"cds--form-item\">\n\t\t\t\t\t<button\n\t\t\t\t\t\tclass=\"form-button\"\n\t\t\t\t\t\tcdsButton\n\t\t\t\t\t\ttype=\"submit\">\n\t\t\t\t\t\tShow Loading\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</form>\n\t\t</div>\n\t</div>\n\t@if (isLoading) {\n\t\t<cds-loading\n\t\t\t[isActive]=\"isLoading\"\n\t\t\tsize=\"normal\"\n\t\t\t[overlay]=\"overlay\">\n\t\t</cds-loading>\n\t}\n\t`,\n standalone: true,\n imports: [\n GridDirective,\n RowDirective,\n ColumnDirective,\n Checkbox,\n Dropdown,\n DropdownList,\n Placeholder,\n Loading,\n ProgressIndicator,\n Loading,\n FormsModule,\n ReactiveFormsModule,\n Button,\n TextInput,\n TextArea,\n Label,\n Header,\n Hamburger\n ],\n styles: [__NG_CLI_RESOURCE__0]\n })\n], SampleLargeLoading);\n// Storybook starts here\nexport default {\n title: \"Pattern/Loading\",\n decorators: [\n moduleMetadata({\n declarations: [],\n imports: [\n SampleLargeLoading\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-sample-large-loading></app-sample-large-loading>\n\t`\n});\nexport const LargeLoading = 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: 80px;\n\t\t}\n\n\t\t.progress-indicator-wrapper {\n\t\t\tmargin-bottom: 50px;\n\t\t}\n\n\t\t.dropdown-wrapper {\n\t\t\twidth: 50%;\n\t\t}\n\t`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n"],"names":[],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkcarbon_components_angular=self.webpackChunkcarbon_components_angular||[]).push([[7974],{"./src/icon/icon.directive.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{L:()=>IconDirective});var _staticBlock,IconDirective_1,tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.js"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/root_effect_scheduler.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/debug_node.mjs"),_icon_service__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/icon/icon.service.ts"),_carbon_icon_helpers__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@carbon/icon-helpers/es/index.js"),carbon_components_angular_placeholder__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/placeholder/index.ts");let IconDirective=(class IconDirective{set ibmIcon(iconName){this.cdsIcon=iconName}constructor(){this.cdsIcon="",this.size="16",this.title="",this.ariaLabel="",this.ariaLabelledBy="",this.ariaHidden="",this.isFocusable=!1,this.elementRef=(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.WQX)(_angular_core__WEBPACK_IMPORTED_MODULE_2__.aKT),this.iconService=(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.WQX)(_icon_service__WEBPACK_IMPORTED_MODULE_3__.fM)}renderIcon(iconName){const root=this.elementRef.nativeElement;let icon;try{icon=this.iconService.get(iconName,this.size.toString())}catch(error){return void console.warn(error)}const domParser=new DOMParser,rawSVG=icon.svg,svgElement=domParser.parseFromString(rawSVG,"image/svg+xml").documentElement;let node="SVG"!==root.tagName.toUpperCase()?svgElement:svgElement.firstChild;for(root.innerHTML="";node;)root.appendChild(root.ownerDocument.importNode(node,!0)),node=node.nextSibling;const svg="SVG"!==root.tagName.toUpperCase()?svgElement:root,xmlns="http://www.w3.org/2000/svg";svg.setAttribute("xmlns",xmlns);const attributes=(0,_carbon_icon_helpers__WEBPACK_IMPORTED_MODULE_4__.gu)({width:icon.attrs.width,height:icon.attrs.height,viewBox:icon.attrs.viewBox,title:this.title,"aria-label":this.ariaLabel,"aria-labelledby":this.ariaLabelledBy,"aria-hidden":this.ariaHidden,focusable:this.isFocusable.toString(),fill:icon.attrs.fill}),attrKeys=Object.keys(attributes);for(let i=0;i<attrKeys.length;i++){const key=attrKeys[i],value=attributes[key];"title"!==key&&(value&&svg.setAttribute(key,value))}if(attributes.title){const title=document.createElementNS(xmlns,"title");title.textContent=attributes.title,IconDirective_1.titleIdCounter++,title.setAttribute("id",`${icon.name}-title-${IconDirective_1.titleIdCounter}`),svg.insertBefore(title,svg.firstElementChild),svg.setAttribute("aria-labelledby",`${icon.name}-title-${IconDirective_1.titleIdCounter}`)}}ngAfterViewInit(){this.renderIcon(this.cdsIcon)}ngOnChanges({cdsIcon}){cdsIcon&&!cdsIcon.isFirstChange()&&this.renderIcon(this.cdsIcon)}static#_=_staticBlock=()=>(IconDirective_1=this,this.titleIdCounter=0,this.ctorParameters=()=>[],this.propDecorators={ibmIcon:[{type:_angular_core__WEBPACK_IMPORTED_MODULE_2__.pde}],cdsIcon:[{type:_angular_core__WEBPACK_IMPORTED_MODULE_2__.pde}],size:[{type:_angular_core__WEBPACK_IMPORTED_MODULE_2__.pde}],title:[{type:_angular_core__WEBPACK_IMPORTED_MODULE_2__.pde}],ariaLabel:[{type:_angular_core__WEBPACK_IMPORTED_MODULE_2__.pde}],ariaLabelledBy:[{type:_angular_core__WEBPACK_IMPORTED_MODULE_2__.pde}],ariaHidden:[{type:_angular_core__WEBPACK_IMPORTED_MODULE_2__.pde}],isFocusable:[{type:_angular_core__WEBPACK_IMPORTED_MODULE_2__.pde}]},this)},_staticBlock());IconDirective=IconDirective_1=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WLR)({selector:"[cdsIcon], [ibmIcon]",providers:[carbon_components_angular_placeholder__WEBPACK_IMPORTED_MODULE_5__.F2],standalone:!0})],IconDirective)},"./src/icon/icon.module.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{o:()=>IconModule});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.js"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/debug_node.mjs"),_angular_common__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/common/fesm2022/common_module.mjs"),_icon_directive__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/icon/icon.directive.ts");let IconModule=class IconModule{};IconModule=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.UQu)({exports:[_icon_directive__WEBPACK_IMPORTED_MODULE_3__.L],imports:[_angular_common__WEBPACK_IMPORTED_MODULE_2__.MD,_icon_directive__WEBPACK_IMPORTED_MODULE_3__.L]})],IconModule)},"./src/icon/icon.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{fM:()=>IconService});var _staticBlock,tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.js"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/debug_node.mjs"),_carbon_icon_helpers__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@carbon/icon-helpers/es/index.js"),_carbon_icons_es_add_16__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@carbon/icons/es/add/16.js"),_carbon_icons_es_add_20__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@carbon/icons/es/add/20.js"),_carbon_icons_es_arrow_down_16__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@carbon/icons/es/arrow--down/16.js"),_carbon_icons_es_arrows_vertical_16__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@carbon/icons/es/arrows--vertical/16.js"),_carbon_icons_es_bee_16__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@carbon/icons/es/bee/16.js"),_carbon_icons_es_bee_20__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@carbon/icons/es/bee/20.js"),_carbon_icons_es_calendar_16__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@carbon/icons/es/calendar/16.js"),_carbon_icons_es_carbon_16__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@carbon/icons/es/carbon/16.js"),_carbon_icons_es_carbon_20__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@carbon/icons/es/carbon/20.js"),_carbon_icons_es_caret_down_16__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/@carbon/icons/es/caret--down/16.js"),_carbon_icons_es_caret_left_16__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/@carbon/icons/es/caret--left/16.js"),_carbon_icons_es_caret_right_16__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/@carbon/icons/es/caret--right/16.js"),_carbon_icons_es_caret_up_16__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/@carbon/icons/es/caret--up/16.js"),_carbon_icons_es_checkmark_16__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/@carbon/icons/es/checkmark/16.js"),_carbon_icons_es_checkmark_filled_16__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/@carbon/icons/es/checkmark--filled/16.js"),_carbon_icons_es_checkmark_filled_20__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/@carbon/icons/es/checkmark--filled/20.js"),_carbon_icons_es_checkmark_outline_16__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/@carbon/icons/es/checkmark--outline/16.js"),_carbon_icons_es_checkbox_16__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/@carbon/icons/es/checkbox/16.js"),_carbon_icons_es_checkbox_checked_filled_16__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/@carbon/icons/es/checkbox--checked--filled/16.js"),_carbon_icons_es_chevron_down_16__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/@carbon/icons/es/chevron--down/16.js"),_carbon_icons_es_chevron_right_16__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/@carbon/icons/es/chevron--right/16.js"),_carbon_icons_es_circle_dash_16__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/@carbon/icons/es/circle-dash/16.js"),_carbon_icons_es_close_16__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/@carbon/icons/es/close/16.js"),_carbon_icons_es_close_20__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@carbon/icons/es/close/20.js"),_carbon_icons_es_copy_16__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/@carbon/icons/es/copy/16.js"),_carbon_icons_es_copy_20__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/@carbon/icons/es/copy/20.js"),_carbon_icons_es_data_2_16__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/@carbon/icons/es/data--2/16.js"),_carbon_icons_es_data_2_20__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/@carbon/icons/es/data--2/20.js"),_carbon_icons_es_document_16__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./node_modules/@carbon/icons/es/document/16.js"),_carbon_icons_es_document_20__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./node_modules/@carbon/icons/es/document/20.js"),_carbon_icons_es_download_16__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("./node_modules/@carbon/icons/es/download/16.js"),_carbon_icons_es_error_filled_16__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("./node_modules/@carbon/icons/es/error--filled/16.js"),_carbon_icons_es_error_filled_20__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("./node_modules/@carbon/icons/es/error--filled/20.js"),_carbon_icons_es_fade_16__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("./node_modules/@carbon/icons/es/fade/16.js"),_carbon_icons_es_fade_20__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("./node_modules/@carbon/icons/es/fade/20.js"),_carbon_icons_es_folder_16__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("./node_modules/@carbon/icons/es/folder/16.js"),_carbon_icons_es_incomplete_16__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("./node_modules/@carbon/icons/es/incomplete/16.js"),_carbon_icons_es_information_filled_16__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__("./node_modules/@carbon/icons/es/information--filled/16.js"),_carbon_icons_es_information_filled_20__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__("./node_modules/@carbon/icons/es/information--filled/20.js"),_carbon_icons_es_information_square_filled_20__WEBPACK_IMPORTED_MODULE_42__=__webpack_require__("./node_modules/@carbon/icons/es/information--square--filled/20.js"),_carbon_icons_es_menu_16__WEBPACK_IMPORTED_MODULE_43__=__webpack_require__("./node_modules/@carbon/icons/es/menu/16.js"),_carbon_icons_es_menu_20__WEBPACK_IMPORTED_MODULE_44__=__webpack_require__("./node_modules/@carbon/icons/es/menu/20.js"),_carbon_icons_es_overflow_menu_vertical_16__WEBPACK_IMPORTED_MODULE_45__=__webpack_require__("./node_modules/@carbon/icons/es/overflow-menu--vertical/16.js"),_carbon_icons_es_overflow_menu_horizontal_16__WEBPACK_IMPORTED_MODULE_46__=__webpack_require__("./node_modules/@carbon/icons/es/overflow-menu--horizontal/16.js"),_carbon_icons_es_save_16__WEBPACK_IMPORTED_MODULE_47__=__webpack_require__("./node_modules/@carbon/icons/es/save/16.js"),_carbon_icons_es_search_16__WEBPACK_IMPORTED_MODULE_48__=__webpack_require__("./node_modules/@carbon/icons/es/search/16.js"),_carbon_icons_es_settings_16__WEBPACK_IMPORTED_MODULE_49__=__webpack_require__("./node_modules/@carbon/icons/es/settings/16.js"),_carbon_icons_es_settings_adjust_16__WEBPACK_IMPORTED_MODULE_50__=__webpack_require__("./node_modules/@carbon/icons/es/settings--adjust/16.js"),_carbon_icons_es_subtract_16__WEBPACK_IMPORTED_MODULE_51__=__webpack_require__("./node_modules/@carbon/icons/es/subtract/16.js"),_carbon_icons_es_trash_can_16__WEBPACK_IMPORTED_MODULE_52__=__webpack_require__("./node_modules/@carbon/icons/es/trash-can/16.js"),_carbon_icons_es_warning_16__WEBPACK_IMPORTED_MODULE_53__=__webpack_require__("./node_modules/@carbon/icons/es/warning/16.js"),_carbon_icons_es_warning_filled_16__WEBPACK_IMPORTED_MODULE_54__=__webpack_require__("./node_modules/@carbon/icons/es/warning--filled/16.js"),_carbon_icons_es_warning_filled_20__WEBPACK_IMPORTED_MODULE_55__=__webpack_require__("./node_modules/@carbon/icons/es/warning--filled/20.js"),_carbon_icons_es_warning_alt_filled_16__WEBPACK_IMPORTED_MODULE_56__=__webpack_require__("./node_modules/@carbon/icons/es/warning--alt--filled/16.js"),_carbon_icons_es_warning_alt_filled_20__WEBPACK_IMPORTED_MODULE_57__=__webpack_require__("./node_modules/@carbon/icons/es/warning--alt--filled/20.js"),_carbon_icons_es_undo_16__WEBPACK_IMPORTED_MODULE_58__=__webpack_require__("./node_modules/@carbon/icons/es/undo/16.js"),_carbon_icons_es_view_16__WEBPACK_IMPORTED_MODULE_59__=__webpack_require__("./node_modules/@carbon/icons/es/view/16.js"),_carbon_icons_es_view_off_16__WEBPACK_IMPORTED_MODULE_60__=__webpack_require__("./node_modules/@carbon/icons/es/view--off/16.js");class IconCache{}class IconNameNotFoundError extends Error{constructor(name){super(`Icon ${name} not found`)}}class IconSizeNotFoundError extends Error{constructor(size,name){super(`Size ${size} for ${name} not found`)}}class IconMemoryCache extends IconCache{constructor(){super(...arguments),this.iconMap=new Map}get(name,size){if(!this.iconMap.has(name))throw new IconNameNotFoundError(name);const sizeMap=this.iconMap.get(name);if(!sizeMap.has(size))throw new IconSizeNotFoundError(size,name);return sizeMap.get(size)}set(name,size,descriptor){this.iconMap.has(name)||this.iconMap.set(name,new Map);this.iconMap.get(name).set(size,descriptor)}}let IconService=(class IconService{constructor(){this.iconCache=new IconMemoryCache,this.registerAll([_carbon_icons_es_add_16__WEBPACK_IMPORTED_MODULE_3__.A,_carbon_icons_es_add_20__WEBPACK_IMPORTED_MODULE_4__.A,_carbon_icons_es_arrow_down_16__WEBPACK_IMPORTED_MODULE_5__.A,_carbon_icons_es_arrows_vertical_16__WEBPACK_IMPORTED_MODULE_6__.A,_carbon_icons_es_bee_16__WEBPACK_IMPORTED_MODULE_7__.A,_carbon_icons_es_bee_20__WEBPACK_IMPORTED_MODULE_8__.A,_carbon_icons_es_calendar_16__WEBPACK_IMPORTED_MODULE_9__.A,_carbon_icons_es_carbon_16__WEBPACK_IMPORTED_MODULE_10__.A,_carbon_icons_es_carbon_20__WEBPACK_IMPORTED_MODULE_11__.A,_carbon_icons_es_caret_down_16__WEBPACK_IMPORTED_MODULE_12__.A,_carbon_icons_es_caret_left_16__WEBPACK_IMPORTED_MODULE_13__.A,_carbon_icons_es_caret_right_16__WEBPACK_IMPORTED_MODULE_14__.A,_carbon_icons_es_caret_up_16__WEBPACK_IMPORTED_MODULE_15__.A,_carbon_icons_es_checkmark_16__WEBPACK_IMPORTED_MODULE_16__.A,_carbon_icons_es_checkmark_filled_16__WEBPACK_IMPORTED_MODULE_17__.A,_carbon_icons_es_checkmark_filled_20__WEBPACK_IMPORTED_MODULE_18__.A,_carbon_icons_es_checkmark_outline_16__WEBPACK_IMPORTED_MODULE_19__.A,_carbon_icons_es_checkbox_16__WEBPACK_IMPORTED_MODULE_20__.A,_carbon_icons_es_checkbox_checked_filled_16__WEBPACK_IMPORTED_MODULE_21__.A,_carbon_icons_es_chevron_down_16__WEBPACK_IMPORTED_MODULE_22__.A,_carbon_icons_es_chevron_right_16__WEBPACK_IMPORTED_MODULE_23__.A,_carbon_icons_es_circle_dash_16__WEBPACK_IMPORTED_MODULE_24__.A,_carbon_icons_es_close_16__WEBPACK_IMPORTED_MODULE_25__.A,_carbon_icons_es_close_20__WEBPACK_IMPORTED_MODULE_26__.A,_carbon_icons_es_copy_16__WEBPACK_IMPORTED_MODULE_27__.A,_carbon_icons_es_copy_20__WEBPACK_IMPORTED_MODULE_28__.A,_carbon_icons_es_data_2_16__WEBPACK_IMPORTED_MODULE_29__.A,_carbon_icons_es_data_2_20__WEBPACK_IMPORTED_MODULE_30__.A,_carbon_icons_es_document_16__WEBPACK_IMPORTED_MODULE_31__.A,_carbon_icons_es_document_20__WEBPACK_IMPORTED_MODULE_32__.A,_carbon_icons_es_download_16__WEBPACK_IMPORTED_MODULE_33__.A,_carbon_icons_es_error_filled_16__WEBPACK_IMPORTED_MODULE_34__.A,_carbon_icons_es_error_filled_20__WEBPACK_IMPORTED_MODULE_35__.A,_carbon_icons_es_fade_16__WEBPACK_IMPORTED_MODULE_36__.A,_carbon_icons_es_fade_20__WEBPACK_IMPORTED_MODULE_37__.A,_carbon_icons_es_folder_16__WEBPACK_IMPORTED_MODULE_38__.A,_carbon_icons_es_incomplete_16__WEBPACK_IMPORTED_MODULE_39__.A,_carbon_icons_es_information_filled_16__WEBPACK_IMPORTED_MODULE_40__.A,_carbon_icons_es_information_filled_20__WEBPACK_IMPORTED_MODULE_41__.A,_carbon_icons_es_information_square_filled_20__WEBPACK_IMPORTED_MODULE_42__.A,_carbon_icons_es_menu_16__WEBPACK_IMPORTED_MODULE_43__.A,_carbon_icons_es_menu_20__WEBPACK_IMPORTED_MODULE_44__.A,_carbon_icons_es_overflow_menu_vertical_16__WEBPACK_IMPORTED_MODULE_45__.A,_carbon_icons_es_overflow_menu_horizontal_16__WEBPACK_IMPORTED_MODULE_46__.A,_carbon_icons_es_save_16__WEBPACK_IMPORTED_MODULE_47__.A,_carbon_icons_es_search_16__WEBPACK_IMPORTED_MODULE_48__.A,_carbon_icons_es_settings_16__WEBPACK_IMPORTED_MODULE_49__.A,_carbon_icons_es_settings_adjust_16__WEBPACK_IMPORTED_MODULE_50__.A,_carbon_icons_es_subtract_16__WEBPACK_IMPORTED_MODULE_51__.A,_carbon_icons_es_trash_can_16__WEBPACK_IMPORTED_MODULE_52__.A,_carbon_icons_es_undo_16__WEBPACK_IMPORTED_MODULE_58__.A,_carbon_icons_es_view_16__WEBPACK_IMPORTED_MODULE_59__.A,_carbon_icons_es_view_off_16__WEBPACK_IMPORTED_MODULE_60__.A,_carbon_icons_es_warning_16__WEBPACK_IMPORTED_MODULE_53__.A,_carbon_icons_es_warning_filled_16__WEBPACK_IMPORTED_MODULE_54__.A,_carbon_icons_es_warning_filled_20__WEBPACK_IMPORTED_MODULE_55__.A,_carbon_icons_es_warning_alt_filled_16__WEBPACK_IMPORTED_MODULE_56__.A,_carbon_icons_es_warning_alt_filled_20__WEBPACK_IMPORTED_MODULE_57__.A])}registerAll(descriptors){descriptors.forEach(icon=>this.register(icon))}register(descriptor){const{name}=descriptor;this.registerAs(name,descriptor)}registerAs(name,descriptor){let{size,attrs:{width}}=descriptor;this.iconCache.set(name,(size??width).toString(),descriptor)}get(name,size){try{const icon=this.iconCache.get(name,size.toString());return icon.svg||(icon.svg=(0,_carbon_icon_helpers__WEBPACK_IMPORTED_MODULE_2__.dI)(icon)),icon}catch(e){throw e}}configure(options){this.iconCache=options.cache}static#_=_staticBlock=()=>(this.ctorParameters=()=>[],this)},_staticBlock());IconService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],IconService)},"./src/icon/index.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{LJ:()=>icon_directive.L,op:()=>icon_module.o,fM:()=>icon_service.fM});var icon_directive=__webpack_require__("./src/icon/icon.directive.ts"),icon_module=__webpack_require__("./src/icon/icon.module.ts"),icon_service=__webpack_require__("./src/icon/icon.service.ts")},"./src/placeholder/index.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{gc:()=>PLACEHOLDER_SERVICE_PROVIDER,Or:()=>Placeholder,UU:()=>PlaceholderModule,F2:()=>PlaceholderService});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.js"),root_effect_scheduler=__webpack_require__("./node_modules/@angular/core/fesm2022/root_effect_scheduler.mjs"),debug_node=__webpack_require__("./node_modules/@angular/core/fesm2022/debug_node.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs");let PlaceholderService=class PlaceholderService{constructor(){this.viewContainerRef=null,this.viewContainerMap=new Map}registerViewContainerRef(vcRef,id){id?this.viewContainerMap.set(id,vcRef):this.viewContainerRef=vcRef}createComponent(component,injector,id,environment=void 0){return id?this.viewContainerMap.has(id)?this.viewContainerMap.get(id).createComponent(component,{index:this.viewContainerMap.size,injector}):void console.error(`No view container with id ${id} found`):this.viewContainerRef?this.viewContainerRef.createComponent(component,{index:this.viewContainerRef.length,injector,environmentInjector:environment}):void console.error("No view container defined! Likely due to a missing `cds-placeholder`")}destroyComponent(component){component.destroy()}hasComponentRef(component,id){return id?!(this.viewContainerMap.get(id).indexOf(component.hostView)<0):!(this.viewContainerRef.indexOf(component.hostView)<0)}hasPlaceholderRef(id){return id?this.viewContainerMap.has(id):!!this.viewContainerRef}appendElement(element,id){return id?this.viewContainerMap.get(id).element.nativeElement.appendChild(element):this.viewContainerRef.element.nativeElement.appendChild(element)}removeElement(element,id){return id?this.viewContainerMap.get(id).element.nativeElement.removeChild(element):this.viewContainerRef.element.nativeElement.removeChild(element)}hasElement(element,id){return id?this.viewContainerMap.get(id).element.nativeElement.contains(element):this.viewContainerRef.element.nativeElement.contains(element)}};PlaceholderService=(0,tslib_es6.Cg)([(0,debug_node._qm)()],PlaceholderService);const PLACEHOLDER_SERVICE_PROVIDER={provide:PlaceholderService,deps:[[new debug_node.Xx1,new debug_node.kdw,PlaceholderService]],useFactory:function PLACEHOLDER_SERVICE_PROVIDER_FACTORY(parentService){return parentService||new PlaceholderService}};var _staticBlock;let Placeholder=(class Placeholder{constructor(){this.placeholderService=(0,root_effect_scheduler.WQX)(PlaceholderService)}ngOnInit(){this.placeholderService.registerViewContainerRef(this.viewContainerRef)}static#_=_staticBlock=()=>(this.ctorParameters=()=>[],this.propDecorators={id:[{type:debug_node.pde}],viewContainerRef:[{type:core.ViewChild,args:["placeholder",{read:debug_node.c1b,static:!0}]}]},this)},_staticBlock());Placeholder=(0,tslib_es6.Cg)([(0,debug_node.uAl)({selector:"cds-placeholder, ibm-placeholder",template:"<div #placeholder></div>",providers:[PLACEHOLDER_SERVICE_PROVIDER],standalone:!0})],Placeholder);var common_module=__webpack_require__("./node_modules/@angular/common/fesm2022/common_module.mjs");let PlaceholderModule=class PlaceholderModule{};PlaceholderModule=(0,tslib_es6.Cg)([(0,debug_node.UQu)({exports:[Placeholder],providers:[PLACEHOLDER_SERVICE_PROVIDER],imports:[common_module.MD,Placeholder]})],PlaceholderModule)},"./src/progress-indicator/index.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:()=>ProgressIndicator});var _staticBlock,tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.js"),root_effect_scheduler=__webpack_require__("./node_modules/@angular/core/fesm2022/root_effect_scheduler.mjs"),debug_node=__webpack_require__("./node_modules/@angular/core/fesm2022/debug_node.mjs"),i18n=__webpack_require__("./src/i18n/index.ts"),common_module=__webpack_require__("./node_modules/@angular/common/fesm2022/common_module.mjs"),icon=__webpack_require__("./src/icon/index.ts");let ProgressIndicator=(class ProgressIndicator{static skeletonSteps(stepCount){const steps=[];for(let i=0;i<stepCount;i++)steps.push({complete:!1});return steps}get current(){return this._current}set current(current){this._current=current,this.setProgressIndicatorStates()}constructor(){this.i18n=(0,root_effect_scheduler.WQX)(i18n.F2),this.stepSelected=new debug_node.bkB,this.translations=this.i18n.get().PROGRESS_INDICATOR,this.orientation="horizontal",this.skeleton=!1,this.spacing="default",this.statusIcons={current:"incomplete",complete:"checkmark--outline",invalid:"warning",incomplete:"circle-dash"}}onClick(index){index!==this.current&&"function"==typeof this.steps[index].onClick&&this.steps[index].onClick(),this.stepSelected.emit({step:this.steps[index],index})}getCurrentState(index){return index===this.current?"current":this.steps[index].invalid?"invalid":this.steps[index].complete?"complete":"incomplete"}setProgressIndicatorStates(){void 0!==this.steps&&this.steps.forEach((step,index)=>{index<this.current?step.complete=!0:step.complete=!1})}static#_=_staticBlock=()=>(this.ctorParameters=()=>[],this.propDecorators={current:[{type:debug_node.pde}],steps:[{type:debug_node.pde}],stepSelected:[{type:debug_node.k7i}],translations:[{type:debug_node.pde}],orientation:[{type:debug_node.pde}],skeleton:[{type:debug_node.pde}],spacing:[{type:debug_node.pde}]},this)},_staticBlock());ProgressIndicator=(0,tslib_es6.Cg)([(0,debug_node.uAl)({selector:"cds-progress-indicator, ibm-progress-indicator",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',changeDetection:debug_node.Ngq.OnPush,imports:[common_module.YU,icon.LJ]})],ProgressIndicator);let ProgressIndicatorModule=class ProgressIndicatorModule{};ProgressIndicatorModule=(0,tslib_es6.Cg)([(0,debug_node.UQu)({exports:[ProgressIndicator],imports:[common_module.MD,icon.LJ,i18n.LP,ProgressIndicator]})],ProgressIndicatorModule)},"./src/progress-indicator/progress-indicator.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Basic:()=>Basic,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _storybook_angular__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/angular/dist/index.mjs"),___WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/progress-indicator/index.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Components/Progress Indicator",decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_0__.Iz)({imports:[___WEBPACK_IMPORTED_MODULE_1__.Z]})],component:___WEBPACK_IMPORTED_MODULE_1__.Z},Basic=(args=>({props:args,template:'\n <cds-progress-indicator\n [skeleton]="skeleton"\n [steps]="steps"\n [orientation]="orientation"\n [current]="current"\n (stepSelected)="stepSelected($event)"\n [spacing]="spacing">\n </cds-progress-indicator>\n '})).bind({});Basic.args={skeleton:!1,current:1,steps:[{label:"First step",complete:!0,secondaryLabel:"optional text",onClick:()=>{alert("First step clicked!")}},{label:"Second step",complete:!1,current:!0},{label:"Third step",complete:!1},{label:"Fourth step",complete:!1,invalid:!0},{label:"Fifth step",complete:!1,disabled:!0}],align:"default",orientation:"horizontal"},Basic.argTypes={steps:{control:!1},StepSelected:{control:"Step selected!"},align:{options:["default","equal"],control:"radio"},orientation:{options:["horizontal","vertical"],control:"radio"}};const __namedExportsOrder=["Basic"];Basic.parameters={...Basic.parameters,docs:{...Basic.parameters?.docs,source:{originalSource:'args => ({\n props: args,\n template: `\n <cds-progress-indicator\n [skeleton]="skeleton"\n [steps]="steps"\n [orientation]="orientation"\n [current]="current"\n (stepSelected)="stepSelected($event)"\n [spacing]="spacing">\n </cds-progress-indicator>\n `\n})',...Basic.parameters?.docs?.source}}}}}]);
|
|
2
|
-
//# sourceMappingURL=progress-indicator-progress-indicator-stories.
|
|
1
|
+
"use strict";(self.webpackChunkcarbon_components_angular=self.webpackChunkcarbon_components_angular||[]).push([[7974],{"./src/icon/icon.directive.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{L:()=>IconDirective});var _staticBlock,IconDirective_1,tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.js"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/root_effect_scheduler.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/debug_node.mjs"),_icon_service__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/icon/icon.service.ts"),_carbon_icon_helpers__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@carbon/icon-helpers/es/index.js"),carbon_components_angular_placeholder__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/placeholder/index.ts");let IconDirective=(class IconDirective{set ibmIcon(iconName){this.cdsIcon=iconName}constructor(){this.cdsIcon="",this.size="16",this.title="",this.ariaLabel="",this.ariaLabelledBy="",this.ariaHidden="",this.isFocusable=!1,this.elementRef=(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.WQX)(_angular_core__WEBPACK_IMPORTED_MODULE_2__.aKT),this.iconService=(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.WQX)(_icon_service__WEBPACK_IMPORTED_MODULE_3__.fM)}renderIcon(iconName){const root=this.elementRef.nativeElement;let icon;try{icon=this.iconService.get(iconName,this.size.toString())}catch(error){return void console.warn(error)}const domParser=new DOMParser,rawSVG=icon.svg,svgElement=domParser.parseFromString(rawSVG,"image/svg+xml").documentElement;let node="SVG"!==root.tagName.toUpperCase()?svgElement:svgElement.firstChild;for(root.innerHTML="";node;)root.appendChild(root.ownerDocument.importNode(node,!0)),node=node.nextSibling;const svg="SVG"!==root.tagName.toUpperCase()?svgElement:root,xmlns="http://www.w3.org/2000/svg";svg.setAttribute("xmlns",xmlns);const attributes=(0,_carbon_icon_helpers__WEBPACK_IMPORTED_MODULE_4__.gu)({width:icon.attrs.width,height:icon.attrs.height,viewBox:icon.attrs.viewBox,title:this.title,"aria-label":this.ariaLabel,"aria-labelledby":this.ariaLabelledBy,"aria-hidden":this.ariaHidden,focusable:this.isFocusable.toString(),fill:icon.attrs.fill}),attrKeys=Object.keys(attributes);for(let i=0;i<attrKeys.length;i++){const key=attrKeys[i],value=attributes[key];"title"!==key&&(value&&svg.setAttribute(key,value))}if(attributes.title){const title=document.createElementNS(xmlns,"title");title.textContent=attributes.title,IconDirective_1.titleIdCounter++,title.setAttribute("id",`${icon.name}-title-${IconDirective_1.titleIdCounter}`),svg.insertBefore(title,svg.firstElementChild),svg.setAttribute("aria-labelledby",`${icon.name}-title-${IconDirective_1.titleIdCounter}`)}}ngAfterViewInit(){this.renderIcon(this.cdsIcon)}ngOnChanges({cdsIcon}){cdsIcon&&!cdsIcon.isFirstChange()&&this.renderIcon(this.cdsIcon)}static#_=_staticBlock=()=>(IconDirective_1=this,this.titleIdCounter=0,this.ctorParameters=()=>[],this.propDecorators={ibmIcon:[{type:_angular_core__WEBPACK_IMPORTED_MODULE_2__.pde}],cdsIcon:[{type:_angular_core__WEBPACK_IMPORTED_MODULE_2__.pde}],size:[{type:_angular_core__WEBPACK_IMPORTED_MODULE_2__.pde}],title:[{type:_angular_core__WEBPACK_IMPORTED_MODULE_2__.pde}],ariaLabel:[{type:_angular_core__WEBPACK_IMPORTED_MODULE_2__.pde}],ariaLabelledBy:[{type:_angular_core__WEBPACK_IMPORTED_MODULE_2__.pde}],ariaHidden:[{type:_angular_core__WEBPACK_IMPORTED_MODULE_2__.pde}],isFocusable:[{type:_angular_core__WEBPACK_IMPORTED_MODULE_2__.pde}]},this)},_staticBlock());IconDirective=IconDirective_1=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WLR)({selector:"[cdsIcon], [ibmIcon]",providers:[carbon_components_angular_placeholder__WEBPACK_IMPORTED_MODULE_5__.F2],standalone:!0})],IconDirective)},"./src/icon/icon.module.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{o:()=>IconModule});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.js"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/debug_node.mjs"),_angular_common__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/common/fesm2022/common_module.mjs"),_icon_directive__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/icon/icon.directive.ts");let IconModule=class IconModule{};IconModule=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.UQu)({exports:[_icon_directive__WEBPACK_IMPORTED_MODULE_3__.L],imports:[_angular_common__WEBPACK_IMPORTED_MODULE_2__.MD,_icon_directive__WEBPACK_IMPORTED_MODULE_3__.L]})],IconModule)},"./src/icon/icon.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{fM:()=>IconService});var _staticBlock,tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.js"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/debug_node.mjs"),_carbon_icon_helpers__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@carbon/icon-helpers/es/index.js"),_carbon_icons_es_add_16__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@carbon/icons/es/add/16.js"),_carbon_icons_es_add_20__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@carbon/icons/es/add/20.js"),_carbon_icons_es_arrow_down_16__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@carbon/icons/es/arrow--down/16.js"),_carbon_icons_es_arrows_vertical_16__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@carbon/icons/es/arrows--vertical/16.js"),_carbon_icons_es_bee_16__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@carbon/icons/es/bee/16.js"),_carbon_icons_es_bee_20__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@carbon/icons/es/bee/20.js"),_carbon_icons_es_calendar_16__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@carbon/icons/es/calendar/16.js"),_carbon_icons_es_carbon_16__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@carbon/icons/es/carbon/16.js"),_carbon_icons_es_carbon_20__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@carbon/icons/es/carbon/20.js"),_carbon_icons_es_caret_down_16__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/@carbon/icons/es/caret--down/16.js"),_carbon_icons_es_caret_left_16__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/@carbon/icons/es/caret--left/16.js"),_carbon_icons_es_caret_right_16__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/@carbon/icons/es/caret--right/16.js"),_carbon_icons_es_caret_up_16__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/@carbon/icons/es/caret--up/16.js"),_carbon_icons_es_checkmark_16__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/@carbon/icons/es/checkmark/16.js"),_carbon_icons_es_checkmark_filled_16__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/@carbon/icons/es/checkmark--filled/16.js"),_carbon_icons_es_checkmark_filled_20__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/@carbon/icons/es/checkmark--filled/20.js"),_carbon_icons_es_checkmark_outline_16__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/@carbon/icons/es/checkmark--outline/16.js"),_carbon_icons_es_checkbox_16__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/@carbon/icons/es/checkbox/16.js"),_carbon_icons_es_checkbox_checked_filled_16__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/@carbon/icons/es/checkbox--checked--filled/16.js"),_carbon_icons_es_chevron_down_16__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/@carbon/icons/es/chevron--down/16.js"),_carbon_icons_es_chevron_right_16__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/@carbon/icons/es/chevron--right/16.js"),_carbon_icons_es_circle_dash_16__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/@carbon/icons/es/circle-dash/16.js"),_carbon_icons_es_close_16__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/@carbon/icons/es/close/16.js"),_carbon_icons_es_close_20__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@carbon/icons/es/close/20.js"),_carbon_icons_es_copy_16__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/@carbon/icons/es/copy/16.js"),_carbon_icons_es_copy_20__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/@carbon/icons/es/copy/20.js"),_carbon_icons_es_data_2_16__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/@carbon/icons/es/data--2/16.js"),_carbon_icons_es_data_2_20__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/@carbon/icons/es/data--2/20.js"),_carbon_icons_es_document_16__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./node_modules/@carbon/icons/es/document/16.js"),_carbon_icons_es_document_20__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./node_modules/@carbon/icons/es/document/20.js"),_carbon_icons_es_download_16__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("./node_modules/@carbon/icons/es/download/16.js"),_carbon_icons_es_error_filled_16__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("./node_modules/@carbon/icons/es/error--filled/16.js"),_carbon_icons_es_error_filled_20__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("./node_modules/@carbon/icons/es/error--filled/20.js"),_carbon_icons_es_fade_16__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("./node_modules/@carbon/icons/es/fade/16.js"),_carbon_icons_es_fade_20__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("./node_modules/@carbon/icons/es/fade/20.js"),_carbon_icons_es_folder_16__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("./node_modules/@carbon/icons/es/folder/16.js"),_carbon_icons_es_incomplete_16__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("./node_modules/@carbon/icons/es/incomplete/16.js"),_carbon_icons_es_information_filled_16__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__("./node_modules/@carbon/icons/es/information--filled/16.js"),_carbon_icons_es_information_filled_20__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__("./node_modules/@carbon/icons/es/information--filled/20.js"),_carbon_icons_es_information_square_filled_20__WEBPACK_IMPORTED_MODULE_42__=__webpack_require__("./node_modules/@carbon/icons/es/information--square--filled/20.js"),_carbon_icons_es_menu_16__WEBPACK_IMPORTED_MODULE_43__=__webpack_require__("./node_modules/@carbon/icons/es/menu/16.js"),_carbon_icons_es_menu_20__WEBPACK_IMPORTED_MODULE_44__=__webpack_require__("./node_modules/@carbon/icons/es/menu/20.js"),_carbon_icons_es_overflow_menu_vertical_16__WEBPACK_IMPORTED_MODULE_45__=__webpack_require__("./node_modules/@carbon/icons/es/overflow-menu--vertical/16.js"),_carbon_icons_es_overflow_menu_horizontal_16__WEBPACK_IMPORTED_MODULE_46__=__webpack_require__("./node_modules/@carbon/icons/es/overflow-menu--horizontal/16.js"),_carbon_icons_es_save_16__WEBPACK_IMPORTED_MODULE_47__=__webpack_require__("./node_modules/@carbon/icons/es/save/16.js"),_carbon_icons_es_search_16__WEBPACK_IMPORTED_MODULE_48__=__webpack_require__("./node_modules/@carbon/icons/es/search/16.js"),_carbon_icons_es_settings_16__WEBPACK_IMPORTED_MODULE_49__=__webpack_require__("./node_modules/@carbon/icons/es/settings/16.js"),_carbon_icons_es_settings_adjust_16__WEBPACK_IMPORTED_MODULE_50__=__webpack_require__("./node_modules/@carbon/icons/es/settings--adjust/16.js"),_carbon_icons_es_subtract_16__WEBPACK_IMPORTED_MODULE_51__=__webpack_require__("./node_modules/@carbon/icons/es/subtract/16.js"),_carbon_icons_es_trash_can_16__WEBPACK_IMPORTED_MODULE_52__=__webpack_require__("./node_modules/@carbon/icons/es/trash-can/16.js"),_carbon_icons_es_warning_16__WEBPACK_IMPORTED_MODULE_53__=__webpack_require__("./node_modules/@carbon/icons/es/warning/16.js"),_carbon_icons_es_warning_filled_16__WEBPACK_IMPORTED_MODULE_54__=__webpack_require__("./node_modules/@carbon/icons/es/warning--filled/16.js"),_carbon_icons_es_warning_filled_20__WEBPACK_IMPORTED_MODULE_55__=__webpack_require__("./node_modules/@carbon/icons/es/warning--filled/20.js"),_carbon_icons_es_warning_alt_filled_16__WEBPACK_IMPORTED_MODULE_56__=__webpack_require__("./node_modules/@carbon/icons/es/warning--alt--filled/16.js"),_carbon_icons_es_warning_alt_filled_20__WEBPACK_IMPORTED_MODULE_57__=__webpack_require__("./node_modules/@carbon/icons/es/warning--alt--filled/20.js"),_carbon_icons_es_undo_16__WEBPACK_IMPORTED_MODULE_58__=__webpack_require__("./node_modules/@carbon/icons/es/undo/16.js"),_carbon_icons_es_view_16__WEBPACK_IMPORTED_MODULE_59__=__webpack_require__("./node_modules/@carbon/icons/es/view/16.js"),_carbon_icons_es_view_off_16__WEBPACK_IMPORTED_MODULE_60__=__webpack_require__("./node_modules/@carbon/icons/es/view--off/16.js");class IconCache{}class IconNameNotFoundError extends Error{constructor(name){super(`Icon ${name} not found`)}}class IconSizeNotFoundError extends Error{constructor(size,name){super(`Size ${size} for ${name} not found`)}}class IconMemoryCache extends IconCache{constructor(){super(...arguments),this.iconMap=new Map}get(name,size){if(!this.iconMap.has(name))throw new IconNameNotFoundError(name);const sizeMap=this.iconMap.get(name);if(!sizeMap.has(size))throw new IconSizeNotFoundError(size,name);return sizeMap.get(size)}set(name,size,descriptor){this.iconMap.has(name)||this.iconMap.set(name,new Map);this.iconMap.get(name).set(size,descriptor)}}let IconService=(class IconService{constructor(){this.iconCache=new IconMemoryCache,this.registerAll([_carbon_icons_es_add_16__WEBPACK_IMPORTED_MODULE_3__.A,_carbon_icons_es_add_20__WEBPACK_IMPORTED_MODULE_4__.A,_carbon_icons_es_arrow_down_16__WEBPACK_IMPORTED_MODULE_5__.A,_carbon_icons_es_arrows_vertical_16__WEBPACK_IMPORTED_MODULE_6__.A,_carbon_icons_es_bee_16__WEBPACK_IMPORTED_MODULE_7__.A,_carbon_icons_es_bee_20__WEBPACK_IMPORTED_MODULE_8__.A,_carbon_icons_es_calendar_16__WEBPACK_IMPORTED_MODULE_9__.A,_carbon_icons_es_carbon_16__WEBPACK_IMPORTED_MODULE_10__.A,_carbon_icons_es_carbon_20__WEBPACK_IMPORTED_MODULE_11__.A,_carbon_icons_es_caret_down_16__WEBPACK_IMPORTED_MODULE_12__.A,_carbon_icons_es_caret_left_16__WEBPACK_IMPORTED_MODULE_13__.A,_carbon_icons_es_caret_right_16__WEBPACK_IMPORTED_MODULE_14__.A,_carbon_icons_es_caret_up_16__WEBPACK_IMPORTED_MODULE_15__.A,_carbon_icons_es_checkmark_16__WEBPACK_IMPORTED_MODULE_16__.A,_carbon_icons_es_checkmark_filled_16__WEBPACK_IMPORTED_MODULE_17__.A,_carbon_icons_es_checkmark_filled_20__WEBPACK_IMPORTED_MODULE_18__.A,_carbon_icons_es_checkmark_outline_16__WEBPACK_IMPORTED_MODULE_19__.A,_carbon_icons_es_checkbox_16__WEBPACK_IMPORTED_MODULE_20__.A,_carbon_icons_es_checkbox_checked_filled_16__WEBPACK_IMPORTED_MODULE_21__.A,_carbon_icons_es_chevron_down_16__WEBPACK_IMPORTED_MODULE_22__.A,_carbon_icons_es_chevron_right_16__WEBPACK_IMPORTED_MODULE_23__.A,_carbon_icons_es_circle_dash_16__WEBPACK_IMPORTED_MODULE_24__.A,_carbon_icons_es_close_16__WEBPACK_IMPORTED_MODULE_25__.A,_carbon_icons_es_close_20__WEBPACK_IMPORTED_MODULE_26__.A,_carbon_icons_es_copy_16__WEBPACK_IMPORTED_MODULE_27__.A,_carbon_icons_es_copy_20__WEBPACK_IMPORTED_MODULE_28__.A,_carbon_icons_es_data_2_16__WEBPACK_IMPORTED_MODULE_29__.A,_carbon_icons_es_data_2_20__WEBPACK_IMPORTED_MODULE_30__.A,_carbon_icons_es_document_16__WEBPACK_IMPORTED_MODULE_31__.A,_carbon_icons_es_document_20__WEBPACK_IMPORTED_MODULE_32__.A,_carbon_icons_es_download_16__WEBPACK_IMPORTED_MODULE_33__.A,_carbon_icons_es_error_filled_16__WEBPACK_IMPORTED_MODULE_34__.A,_carbon_icons_es_error_filled_20__WEBPACK_IMPORTED_MODULE_35__.A,_carbon_icons_es_fade_16__WEBPACK_IMPORTED_MODULE_36__.A,_carbon_icons_es_fade_20__WEBPACK_IMPORTED_MODULE_37__.A,_carbon_icons_es_folder_16__WEBPACK_IMPORTED_MODULE_38__.A,_carbon_icons_es_incomplete_16__WEBPACK_IMPORTED_MODULE_39__.A,_carbon_icons_es_information_filled_16__WEBPACK_IMPORTED_MODULE_40__.A,_carbon_icons_es_information_filled_20__WEBPACK_IMPORTED_MODULE_41__.A,_carbon_icons_es_information_square_filled_20__WEBPACK_IMPORTED_MODULE_42__.A,_carbon_icons_es_menu_16__WEBPACK_IMPORTED_MODULE_43__.A,_carbon_icons_es_menu_20__WEBPACK_IMPORTED_MODULE_44__.A,_carbon_icons_es_overflow_menu_vertical_16__WEBPACK_IMPORTED_MODULE_45__.A,_carbon_icons_es_overflow_menu_horizontal_16__WEBPACK_IMPORTED_MODULE_46__.A,_carbon_icons_es_save_16__WEBPACK_IMPORTED_MODULE_47__.A,_carbon_icons_es_search_16__WEBPACK_IMPORTED_MODULE_48__.A,_carbon_icons_es_settings_16__WEBPACK_IMPORTED_MODULE_49__.A,_carbon_icons_es_settings_adjust_16__WEBPACK_IMPORTED_MODULE_50__.A,_carbon_icons_es_subtract_16__WEBPACK_IMPORTED_MODULE_51__.A,_carbon_icons_es_trash_can_16__WEBPACK_IMPORTED_MODULE_52__.A,_carbon_icons_es_undo_16__WEBPACK_IMPORTED_MODULE_58__.A,_carbon_icons_es_view_16__WEBPACK_IMPORTED_MODULE_59__.A,_carbon_icons_es_view_off_16__WEBPACK_IMPORTED_MODULE_60__.A,_carbon_icons_es_warning_16__WEBPACK_IMPORTED_MODULE_53__.A,_carbon_icons_es_warning_filled_16__WEBPACK_IMPORTED_MODULE_54__.A,_carbon_icons_es_warning_filled_20__WEBPACK_IMPORTED_MODULE_55__.A,_carbon_icons_es_warning_alt_filled_16__WEBPACK_IMPORTED_MODULE_56__.A,_carbon_icons_es_warning_alt_filled_20__WEBPACK_IMPORTED_MODULE_57__.A])}registerAll(descriptors){descriptors.forEach(icon=>this.register(icon))}register(descriptor){const{name}=descriptor;this.registerAs(name,descriptor)}registerAs(name,descriptor){let{size,attrs:{width}}=descriptor;this.iconCache.set(name,(size??width).toString(),descriptor)}get(name,size){try{const icon=this.iconCache.get(name,size.toString());return icon.svg||(icon.svg=(0,_carbon_icon_helpers__WEBPACK_IMPORTED_MODULE_2__.dI)(icon)),icon}catch(e){throw e}}configure(options){this.iconCache=options.cache}static#_=_staticBlock=()=>(this.ctorParameters=()=>[],this)},_staticBlock());IconService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],IconService)},"./src/icon/index.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{LJ:()=>icon_directive.L,op:()=>icon_module.o,fM:()=>icon_service.fM});var icon_directive=__webpack_require__("./src/icon/icon.directive.ts"),icon_module=__webpack_require__("./src/icon/icon.module.ts"),icon_service=__webpack_require__("./src/icon/icon.service.ts")},"./src/placeholder/index.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{gc:()=>PLACEHOLDER_SERVICE_PROVIDER,Or:()=>Placeholder,UU:()=>PlaceholderModule,F2:()=>PlaceholderService});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.js"),root_effect_scheduler=__webpack_require__("./node_modules/@angular/core/fesm2022/root_effect_scheduler.mjs"),debug_node=__webpack_require__("./node_modules/@angular/core/fesm2022/debug_node.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs");let PlaceholderService=class PlaceholderService{constructor(){this.viewContainerRef=null,this.viewContainerMap=new Map}registerViewContainerRef(vcRef,id){id?this.viewContainerMap.set(id,vcRef):this.viewContainerRef=vcRef}createComponent(component,injector,id,environment=void 0){return id?this.viewContainerMap.has(id)?this.viewContainerMap.get(id).createComponent(component,{index:this.viewContainerMap.size,injector}):void console.error(`No view container with id ${id} found`):this.viewContainerRef?this.viewContainerRef.createComponent(component,{index:this.viewContainerRef.length,injector,environmentInjector:environment}):void console.error("No view container defined! Likely due to a missing `cds-placeholder`")}destroyComponent(component){component.destroy()}hasComponentRef(component,id){return id?!(this.viewContainerMap.get(id).indexOf(component.hostView)<0):!(this.viewContainerRef.indexOf(component.hostView)<0)}hasPlaceholderRef(id){return id?this.viewContainerMap.has(id):!!this.viewContainerRef}appendElement(element,id){return id?this.viewContainerMap.get(id).element.nativeElement.appendChild(element):this.viewContainerRef.element.nativeElement.appendChild(element)}removeElement(element,id){return id?this.viewContainerMap.get(id).element.nativeElement.removeChild(element):this.viewContainerRef.element.nativeElement.removeChild(element)}hasElement(element,id){return id?this.viewContainerMap.get(id).element.nativeElement.contains(element):this.viewContainerRef.element.nativeElement.contains(element)}};PlaceholderService=(0,tslib_es6.Cg)([(0,debug_node._qm)()],PlaceholderService);const PLACEHOLDER_SERVICE_PROVIDER={provide:PlaceholderService,deps:[[new debug_node.Xx1,new debug_node.kdw,PlaceholderService]],useFactory:function PLACEHOLDER_SERVICE_PROVIDER_FACTORY(parentService){return parentService||new PlaceholderService}};var _staticBlock;let Placeholder=(class Placeholder{constructor(){this.placeholderService=(0,root_effect_scheduler.WQX)(PlaceholderService)}ngOnInit(){this.placeholderService.registerViewContainerRef(this.viewContainerRef)}static#_=_staticBlock=()=>(this.ctorParameters=()=>[],this.propDecorators={id:[{type:debug_node.pde}],viewContainerRef:[{type:core.ViewChild,args:["placeholder",{read:debug_node.c1b,static:!0}]}]},this)},_staticBlock());Placeholder=(0,tslib_es6.Cg)([(0,debug_node.uAl)({selector:"cds-placeholder, ibm-placeholder",template:"<div #placeholder></div>",providers:[PLACEHOLDER_SERVICE_PROVIDER],standalone:!0})],Placeholder);var common_module=__webpack_require__("./node_modules/@angular/common/fesm2022/common_module.mjs");let PlaceholderModule=class PlaceholderModule{};PlaceholderModule=(0,tslib_es6.Cg)([(0,debug_node.UQu)({exports:[Placeholder],providers:[PLACEHOLDER_SERVICE_PROVIDER],imports:[common_module.MD,Placeholder]})],PlaceholderModule)},"./src/progress-indicator/index.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:()=>ProgressIndicator});var _staticBlock,tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.js"),root_effect_scheduler=__webpack_require__("./node_modules/@angular/core/fesm2022/root_effect_scheduler.mjs"),debug_node=__webpack_require__("./node_modules/@angular/core/fesm2022/debug_node.mjs"),i18n=__webpack_require__("./src/i18n/index.ts"),common_module=__webpack_require__("./node_modules/@angular/common/fesm2022/common_module.mjs"),icon=__webpack_require__("./src/icon/index.ts");let ProgressIndicator=(class ProgressIndicator{static skeletonSteps(stepCount){const steps=[];for(let i=0;i<stepCount;i++)steps.push({complete:!1});return steps}get current(){return this._current}set current(current){this._current=current,this.setProgressIndicatorStates()}constructor(){this.i18n=(0,root_effect_scheduler.WQX)(i18n.F2),this.stepSelected=new debug_node.bkB,this.translations=this.i18n.get().PROGRESS_INDICATOR,this.orientation="horizontal",this.skeleton=!1,this.spacing="default",this.statusIcons={current:"incomplete",complete:"checkmark--outline",invalid:"warning",incomplete:"circle-dash"}}onClick(index){this.skeleton||(index!==this.current&&"function"==typeof this.steps[index].onClick&&this.steps[index].onClick(),this.stepSelected.emit({step:this.steps[index],index}))}getCurrentState(index){return index===this.current?"current":this.steps[index].invalid?"invalid":this.steps[index].complete?"complete":"incomplete"}setProgressIndicatorStates(){void 0!==this.steps&&this.steps.forEach((step,index)=>{index<this.current?step.complete=!0:step.complete=!1})}static#_=_staticBlock=()=>(this.ctorParameters=()=>[],this.propDecorators={current:[{type:debug_node.pde}],steps:[{type:debug_node.pde}],stepSelected:[{type:debug_node.k7i}],translations:[{type:debug_node.pde}],orientation:[{type:debug_node.pde}],skeleton:[{type:debug_node.pde}],spacing:[{type:debug_node.pde}]},this)},_staticBlock());ProgressIndicator=(0,tslib_es6.Cg)([(0,debug_node.uAl)({selector:"cds-progress-indicator, ibm-progress-indicator",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',changeDetection:debug_node.Ngq.OnPush,imports:[common_module.YU,icon.LJ]})],ProgressIndicator);let ProgressIndicatorModule=class ProgressIndicatorModule{};ProgressIndicatorModule=(0,tslib_es6.Cg)([(0,debug_node.UQu)({exports:[ProgressIndicator],imports:[common_module.MD,icon.LJ,i18n.LP,ProgressIndicator]})],ProgressIndicatorModule)},"./src/progress-indicator/progress-indicator.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Basic:()=>Basic,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _storybook_angular__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/angular/dist/index.mjs"),___WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/progress-indicator/index.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Components/Progress Indicator",decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_0__.Iz)({imports:[___WEBPACK_IMPORTED_MODULE_1__.Z]})],component:___WEBPACK_IMPORTED_MODULE_1__.Z},Basic=(args=>({props:args,template:'\n <cds-progress-indicator\n [skeleton]="skeleton"\n [steps]="steps"\n [orientation]="orientation"\n [current]="current"\n (stepSelected)="stepSelected($event)"\n [spacing]="spacing">\n </cds-progress-indicator>\n '})).bind({});Basic.args={skeleton:!1,current:1,steps:[{label:"First step",complete:!0,secondaryLabel:"optional text",onClick:()=>{alert("First step clicked!")}},{label:"Second step",complete:!1,current:!0},{label:"Third step",complete:!1},{label:"Fourth step",complete:!1,invalid:!0},{label:"Fifth step",complete:!1,disabled:!0}],align:"default",orientation:"horizontal"},Basic.argTypes={steps:{control:!1},StepSelected:{control:"Step selected!"},align:{options:["default","equal"],control:"radio"},orientation:{options:["horizontal","vertical"],control:"radio"}};const __namedExportsOrder=["Basic"];Basic.parameters={...Basic.parameters,docs:{...Basic.parameters?.docs,source:{originalSource:'args => ({\n props: args,\n template: `\n <cds-progress-indicator\n [skeleton]="skeleton"\n [steps]="steps"\n [orientation]="orientation"\n [current]="current"\n (stepSelected)="stepSelected($event)"\n [spacing]="spacing">\n </cds-progress-indicator>\n `\n})',...Basic.parameters?.docs?.source}}}}}]);
|
|
2
|
+
//# sourceMappingURL=progress-indicator-progress-indicator-stories.bafc7a3e.iframe.bundle.js.map
|