carbon-components-angular 5.64.0 → 5.64.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/documentation/directives/ColumnDirective.html +1 -1
- package/docs/documentation/js/search/search_index.js +2 -2
- package/docs/documentation/modules/ComboBoxModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ComboBoxModule.html +4 -4
- package/docs/documentation/modules/DatePickerInputModule/dependencies.svg +41 -37
- package/docs/documentation/modules/DatePickerInputModule.html +41 -37
- package/docs/documentation/modules/DialogModule/dependencies.svg +34 -34
- package/docs/documentation/modules/DialogModule.html +34 -34
- package/docs/documentation/modules/FileUploaderModule/dependencies.svg +36 -36
- package/docs/documentation/modules/FileUploaderModule.html +36 -36
- package/docs/documentation/modules/NumberModule/dependencies.svg +4 -4
- package/docs/documentation/modules/NumberModule.html +4 -4
- package/docs/documentation/modules/RadioModule/dependencies.svg +48 -48
- package/docs/documentation/modules/RadioModule.html +48 -48
- package/docs/documentation/modules/SelectModule/dependencies.svg +43 -43
- package/docs/documentation/modules/SelectModule.html +43 -43
- package/docs/documentation/modules/SliderModule/dependencies.svg +4 -4
- package/docs/documentation/modules/SliderModule.html +4 -4
- package/docs/documentation/modules/TabsModule/dependencies.svg +69 -69
- package/docs/documentation/modules/TabsModule.html +69 -69
- package/docs/documentation/modules/TagModule/dependencies.svg +37 -37
- package/docs/documentation/modules/TagModule.html +37 -37
- package/docs/documentation/modules/ThemeModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ThemeModule.html +4 -4
- package/docs/documentation/modules/TilesModule/dependencies.svg +4 -4
- package/docs/documentation/modules/TilesModule.html +4 -4
- package/docs/documentation/modules/TimePickerModule/dependencies.svg +38 -42
- package/docs/documentation/modules/TimePickerModule.html +38 -42
- package/docs/documentation/modules/TimePickerSelectModule/dependencies.svg +30 -30
- package/docs/documentation/modules/TimePickerSelectModule.html +30 -30
- package/docs/documentation/modules/ToggleModule/dependencies.svg +19 -19
- package/docs/documentation/modules/ToggleModule.html +19 -19
- 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 +71 -71
- package/docs/storybook/{5478.fe74426d.iframe.bundle.js → 5478.eee24e20.iframe.bundle.js} +4 -4
- package/docs/storybook/{5478.fe74426d.iframe.bundle.js.map → 5478.eee24e20.iframe.bundle.js.map} +1 -1
- package/docs/storybook/grid-css-grid-stories.6ae3f8cc.iframe.bundle.js +1 -0
- package/docs/storybook/grid-grid-stories.a9024705.iframe.bundle.js +1 -0
- package/docs/storybook/iframe.html +3 -3
- package/docs/storybook/main.css +3 -6
- package/docs/storybook/main.e96ab57c.iframe.bundle.js +1 -0
- package/docs/storybook/patterns-filtering-multi-selection-stories.8a966447.iframe.bundle.js +1 -0
- package/docs/storybook/patterns-filtering-multiple-categories-stories.b5cc396b.iframe.bundle.js +1 -0
- package/docs/storybook/patterns-filtering-single-selection-stories.a58281c6.iframe.bundle.js +1 -0
- package/docs/storybook/patterns-forms-multi-step-form-stories.9778a566.iframe.bundle.js +1 -0
- package/docs/storybook/patterns-loading-large-loading-stories.0dcc15d4.iframe.bundle.js +1 -0
- package/docs/storybook/patterns-loading-progressive-loading-stories.5f0b4945.iframe.bundle.js +1 -0
- package/docs/storybook/project.json +1 -1
- package/docs/storybook/{runtime~main.4617f37a.iframe.bundle.js → runtime~main.a0aa6f63.iframe.bundle.js} +1 -1
- package/esm2020/grid/column.directive.mjs +2 -2
- package/fesm2015/carbon-components-angular-grid.mjs +1 -1
- package/fesm2015/carbon-components-angular-grid.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-grid.mjs +1 -1
- package/fesm2020/carbon-components-angular-grid.mjs.map +1 -1
- package/package.json +1 -1
- package/docs/storybook/grid-css-grid-stories.c703f9de.iframe.bundle.js +0 -1
- package/docs/storybook/grid-grid-stories.f7a88c02.iframe.bundle.js +0 -1
- package/docs/storybook/main.2fafcefd.iframe.bundle.js +0 -1
- package/docs/storybook/patterns-filtering-multi-selection-stories.cae9c326.iframe.bundle.js +0 -1
- package/docs/storybook/patterns-filtering-multiple-categories-stories.c7cc76c2.iframe.bundle.js +0 -1
- package/docs/storybook/patterns-filtering-single-selection-stories.e4243e65.iframe.bundle.js +0 -1
- package/docs/storybook/patterns-forms-multi-step-form-stories.2693c87c.iframe.bundle.js +0 -1
- package/docs/storybook/patterns-loading-large-loading-stories.eddc07f6.iframe.bundle.js +0 -1
- package/docs/storybook/patterns-loading-progressive-loading-stories.717ad729.iframe.bundle.js +0 -1
- /package/docs/storybook/{5478.fe74426d.iframe.bundle.js.LICENSE.txt → 5478.eee24e20.iframe.bundle.js.LICENSE.txt} +0 -0
package/docs/storybook/{5478.fe74426d.iframe.bundle.js.map → 5478.eee24e20.iframe.bundle.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"5478.fe74426d.iframe.bundle.js","mappings":";;AAUA;AACA;;;;;AAOA;;AAEA;ACfA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;AAEA;;;;;;AC1SA;;;;;;;AAWA;;;;;;;AAWA","sources":["webpack://carbon-components-angular/./node_modules/@storybook/core-events/dist/errors/preview-errors.mjs","webpack://carbon-components-angular/./node_modules/@storybook/addon-outline/dist/preview.js","webpack://carbon-components-angular/./node_modules/@storybook/angular/dist/client/angular-beta/utils/PropertyExtractor.js"],"sourcesContent":["import { StorybookError } from '../chunk-3FIG6PJN.mjs';\nimport dedent from 'ts-dedent';\n\nvar Category=(Category2=>(Category2.PREVIEW_CLIENT_LOGGER=\"PREVIEW_CLIENT-LOGGER\",Category2.PREVIEW_CHANNELS=\"PREVIEW_CHANNELS\",Category2.PREVIEW_CORE_EVENTS=\"PREVIEW_CORE-EVENTS\",Category2.PREVIEW_INSTRUMENTER=\"PREVIEW_INSTRUMENTER\",Category2.PREVIEW_API=\"PREVIEW_API\",Category2.PREVIEW_REACT_DOM_SHIM=\"PREVIEW_REACT-DOM-SHIM\",Category2.PREVIEW_ROUTER=\"PREVIEW_ROUTER\",Category2.PREVIEW_THEMING=\"PREVIEW_THEMING\",Category2.RENDERER_HTML=\"RENDERER_HTML\",Category2.RENDERER_PREACT=\"RENDERER_PREACT\",Category2.RENDERER_REACT=\"RENDERER_REACT\",Category2.RENDERER_SERVER=\"RENDERER_SERVER\",Category2.RENDERER_SVELTE=\"RENDERER_SVELTE\",Category2.RENDERER_VUE=\"RENDERER_VUE\",Category2.RENDERER_VUE3=\"RENDERER_VUE3\",Category2.RENDERER_WEB_COMPONENTS=\"RENDERER_WEB-COMPONENTS\",Category2))(Category||{}),MissingStoryAfterHmrError=class extends StorybookError{constructor(data){super();this.data=data;this.category=\"PREVIEW_API\";this.code=1;}template(){return dedent`\n Couldn't find story matching id '${this.data.storyId}' after HMR.\n - Did you just rename a story?\n - Did you remove it from your CSF file?\n - Are you sure a story with the id '${this.data.storyId}' exists?\n - Please check the values in the stories field of your main.js config and see if they would match your CSF File.\n - Also check the browser console and terminal for potential error messages.`}},ImplicitActionsDuringRendering=class extends StorybookError{constructor(data){super();this.data=data;this.category=\"PREVIEW_API\";this.code=2;this.documentation=\"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function\";}template(){return dedent`\n We detected that you use an implicit action arg during ${this.data.phase} of your story. \n ${this.data.deprecated?`\nThis is deprecated and won't work in Storybook 8 anymore.\n`:\"\"}\n Please provide an explicit spy to your args like this:\n import { fn } from '@storybook/test';\n ... \n args: {\n ${this.data.name}: fn()\n }\n `}};\n\nexport { Category, ImplicitActionsDuringRendering, MissingStoryAfterHmrError };\n","import { useMemo, useEffect } from '@storybook/preview-api';\nimport { global } from '@storybook/global';\nimport { dedent } from 'ts-dedent';\n\nvar clearStyles=selector=>{(Array.isArray(selector)?selector:[selector]).forEach(clearStyle);},clearStyle=input=>{let selector=typeof input==\"string\"?input:input.join(\"\"),element=global.document.getElementById(selector);element&&element.parentElement&&element.parentElement.removeChild(element);},addOutlineStyles=(selector,css)=>{let existingStyle=global.document.getElementById(selector);if(existingStyle)existingStyle.innerHTML!==css&&(existingStyle.innerHTML=css);else {let style=global.document.createElement(\"style\");style.setAttribute(\"id\",selector),style.innerHTML=css,global.document.head.appendChild(style);}};var PARAM_KEY=\"outline\";function outlineCSS(selector){return dedent`\n ${selector} body {\n outline: 1px solid #2980b9 !important;\n }\n\n ${selector} article {\n outline: 1px solid #3498db !important;\n }\n\n ${selector} nav {\n outline: 1px solid #0088c3 !important;\n }\n\n ${selector} aside {\n outline: 1px solid #33a0ce !important;\n }\n\n ${selector} section {\n outline: 1px solid #66b8da !important;\n }\n\n ${selector} header {\n outline: 1px solid #99cfe7 !important;\n }\n\n ${selector} footer {\n outline: 1px solid #cce7f3 !important;\n }\n\n ${selector} h1 {\n outline: 1px solid #162544 !important;\n }\n\n ${selector} h2 {\n outline: 1px solid #314e6e !important;\n }\n\n ${selector} h3 {\n outline: 1px solid #3e5e85 !important;\n }\n\n ${selector} h4 {\n outline: 1px solid #449baf !important;\n }\n\n ${selector} h5 {\n outline: 1px solid #c7d1cb !important;\n }\n\n ${selector} h6 {\n outline: 1px solid #4371d0 !important;\n }\n\n ${selector} main {\n outline: 1px solid #2f4f90 !important;\n }\n\n ${selector} address {\n outline: 1px solid #1a2c51 !important;\n }\n\n ${selector} div {\n outline: 1px solid #036cdb !important;\n }\n\n ${selector} p {\n outline: 1px solid #ac050b !important;\n }\n\n ${selector} hr {\n outline: 1px solid #ff063f !important;\n }\n\n ${selector} pre {\n outline: 1px solid #850440 !important;\n }\n\n ${selector} blockquote {\n outline: 1px solid #f1b8e7 !important;\n }\n\n ${selector} ol {\n outline: 1px solid #ff050c !important;\n }\n\n ${selector} ul {\n outline: 1px solid #d90416 !important;\n }\n\n ${selector} li {\n outline: 1px solid #d90416 !important;\n }\n\n ${selector} dl {\n outline: 1px solid #fd3427 !important;\n }\n\n ${selector} dt {\n outline: 1px solid #ff0043 !important;\n }\n\n ${selector} dd {\n outline: 1px solid #e80174 !important;\n }\n\n ${selector} figure {\n outline: 1px solid #ff00bb !important;\n }\n\n ${selector} figcaption {\n outline: 1px solid #bf0032 !important;\n }\n\n ${selector} table {\n outline: 1px solid #00cc99 !important;\n }\n\n ${selector} caption {\n outline: 1px solid #37ffc4 !important;\n }\n\n ${selector} thead {\n outline: 1px solid #98daca !important;\n }\n\n ${selector} tbody {\n outline: 1px solid #64a7a0 !important;\n }\n\n ${selector} tfoot {\n outline: 1px solid #22746b !important;\n }\n\n ${selector} tr {\n outline: 1px solid #86c0b2 !important;\n }\n\n ${selector} th {\n outline: 1px solid #a1e7d6 !important;\n }\n\n ${selector} td {\n outline: 1px solid #3f5a54 !important;\n }\n\n ${selector} col {\n outline: 1px solid #6c9a8f !important;\n }\n\n ${selector} colgroup {\n outline: 1px solid #6c9a9d !important;\n }\n\n ${selector} button {\n outline: 1px solid #da8301 !important;\n }\n\n ${selector} datalist {\n outline: 1px solid #c06000 !important;\n }\n\n ${selector} fieldset {\n outline: 1px solid #d95100 !important;\n }\n\n ${selector} form {\n outline: 1px solid #d23600 !important;\n }\n\n ${selector} input {\n outline: 1px solid #fca600 !important;\n }\n\n ${selector} keygen {\n outline: 1px solid #b31e00 !important;\n }\n\n ${selector} label {\n outline: 1px solid #ee8900 !important;\n }\n\n ${selector} legend {\n outline: 1px solid #de6d00 !important;\n }\n\n ${selector} meter {\n outline: 1px solid #e8630c !important;\n }\n\n ${selector} optgroup {\n outline: 1px solid #b33600 !important;\n }\n\n ${selector} option {\n outline: 1px solid #ff8a00 !important;\n }\n\n ${selector} output {\n outline: 1px solid #ff9619 !important;\n }\n\n ${selector} progress {\n outline: 1px solid #e57c00 !important;\n }\n\n ${selector} select {\n outline: 1px solid #e26e0f !important;\n }\n\n ${selector} textarea {\n outline: 1px solid #cc5400 !important;\n }\n\n ${selector} details {\n outline: 1px solid #33848f !important;\n }\n\n ${selector} summary {\n outline: 1px solid #60a1a6 !important;\n }\n\n ${selector} command {\n outline: 1px solid #438da1 !important;\n }\n\n ${selector} menu {\n outline: 1px solid #449da6 !important;\n }\n\n ${selector} del {\n outline: 1px solid #bf0000 !important;\n }\n\n ${selector} ins {\n outline: 1px solid #400000 !important;\n }\n\n ${selector} img {\n outline: 1px solid #22746b !important;\n }\n\n ${selector} iframe {\n outline: 1px solid #64a7a0 !important;\n }\n\n ${selector} embed {\n outline: 1px solid #98daca !important;\n }\n\n ${selector} object {\n outline: 1px solid #00cc99 !important;\n }\n\n ${selector} param {\n outline: 1px solid #37ffc4 !important;\n }\n\n ${selector} video {\n outline: 1px solid #6ee866 !important;\n }\n\n ${selector} audio {\n outline: 1px solid #027353 !important;\n }\n\n ${selector} source {\n outline: 1px solid #012426 !important;\n }\n\n ${selector} canvas {\n outline: 1px solid #a2f570 !important;\n }\n\n ${selector} track {\n outline: 1px solid #59a600 !important;\n }\n\n ${selector} map {\n outline: 1px solid #7be500 !important;\n }\n\n ${selector} area {\n outline: 1px solid #305900 !important;\n }\n\n ${selector} a {\n outline: 1px solid #ff62ab !important;\n }\n\n ${selector} em {\n outline: 1px solid #800b41 !important;\n }\n\n ${selector} strong {\n outline: 1px solid #ff1583 !important;\n }\n\n ${selector} i {\n outline: 1px solid #803156 !important;\n }\n\n ${selector} b {\n outline: 1px solid #cc1169 !important;\n }\n\n ${selector} u {\n outline: 1px solid #ff0430 !important;\n }\n\n ${selector} s {\n outline: 1px solid #f805e3 !important;\n }\n\n ${selector} small {\n outline: 1px solid #d107b2 !important;\n }\n\n ${selector} abbr {\n outline: 1px solid #4a0263 !important;\n }\n\n ${selector} q {\n outline: 1px solid #240018 !important;\n }\n\n ${selector} cite {\n outline: 1px solid #64003c !important;\n }\n\n ${selector} dfn {\n outline: 1px solid #b4005a !important;\n }\n\n ${selector} sub {\n outline: 1px solid #dba0c8 !important;\n }\n\n ${selector} sup {\n outline: 1px solid #cc0256 !important;\n }\n\n ${selector} time {\n outline: 1px solid #d6606d !important;\n }\n\n ${selector} code {\n outline: 1px solid #e04251 !important;\n }\n\n ${selector} kbd {\n outline: 1px solid #5e001f !important;\n }\n\n ${selector} samp {\n outline: 1px solid #9c0033 !important;\n }\n\n ${selector} var {\n outline: 1px solid #d90047 !important;\n }\n\n ${selector} mark {\n outline: 1px solid #ff0053 !important;\n }\n\n ${selector} bdi {\n outline: 1px solid #bf3668 !important;\n }\n\n ${selector} bdo {\n outline: 1px solid #6f1400 !important;\n }\n\n ${selector} ruby {\n outline: 1px solid #ff7b93 !important;\n }\n\n ${selector} rt {\n outline: 1px solid #ff2f54 !important;\n }\n\n ${selector} rp {\n outline: 1px solid #803e49 !important;\n }\n\n ${selector} span {\n outline: 1px solid #cc2643 !important;\n }\n\n ${selector} br {\n outline: 1px solid #db687d !important;\n }\n\n ${selector} wbr {\n outline: 1px solid #db175b !important;\n }`}var withOutline=(StoryFn,context)=>{let{globals:globals2}=context,isActive=[!0,\"true\"].includes(globals2[PARAM_KEY]),isInDocs=context.viewMode===\"docs\",outlineStyles=useMemo(()=>outlineCSS(isInDocs?'[data-story-block=\"true\"]':\".sb-show-main\"),[context]);return useEffect(()=>{let selectorId=isInDocs?`addon-outline-docs-${context.id}`:\"addon-outline\";return isActive?addOutlineStyles(selectorId,outlineStyles):clearStyles(selectorId),()=>{clearStyles(selectorId);}},[isActive,outlineStyles,context]),StoryFn()};var decorators=[withOutline],globals={[PARAM_KEY]:!1};\n\nexport { decorators, globals };\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PropertyExtractor = exports.uniqueArray = exports.REMOVED_MODULES = exports.reflectionCapabilities = void 0;\n/* eslint-disable no-console */\nconst common_1 = require(\"@angular/common\");\nconst core_1 = require(\"@angular/core\");\nconst platform_browser_1 = require(\"@angular/platform-browser\");\nconst animations_1 = require(\"@angular/platform-browser/animations\");\nconst ts_dedent_1 = __importDefault(require(\"ts-dedent\"));\nconst NgModulesAnalyzer_1 = require(\"./NgModulesAnalyzer\");\nexports.reflectionCapabilities = new core_1.ɵReflectionCapabilities();\nexports.REMOVED_MODULES = new core_1.InjectionToken('REMOVED_MODULES');\nconst uniqueArray = (arr) => {\n return arr\n .flat(Number.MAX_VALUE)\n .filter(Boolean)\n .filter((value, index, self) => self.indexOf(value) === index);\n};\nexports.uniqueArray = uniqueArray;\nclass PropertyExtractor {\n /* eslint-enable @typescript-eslint/lines-between-class-members */\n constructor(metadata, component) {\n this.metadata = metadata;\n this.component = component;\n /* eslint-disable @typescript-eslint/lines-between-class-members */\n this.declarations = [];\n /**\n * Analyze NgModule Metadata\n *\n * - Removes Restricted Imports\n * - Extracts providers from ModuleWithProviders\n * - Returns a new NgModuleMetadata object\n *\n *\n */\n this.analyzeMetadata = (metadata) => {\n const declarations = [...(metadata?.declarations || [])];\n const providers = [...(metadata?.providers || [])];\n const applicationProviders = [];\n const imports = [...(metadata?.imports || [])].reduce((acc, imported) => {\n // remove ngModule and use only its providers if it is restricted\n // (e.g. BrowserModule, BrowserAnimationsModule, NoopAnimationsModule, ...etc)\n const [isRestricted, restrictedProviders] = _a.analyzeRestricted(imported);\n if (isRestricted) {\n applicationProviders.unshift(restrictedProviders || []);\n return acc;\n }\n acc.push(imported);\n return acc;\n }, []);\n return { ...metadata, imports, providers, applicationProviders, declarations };\n };\n this.init();\n }\n // With the new way of mounting standalone components to the DOM via bootstrapApplication API,\n // we should now pass ModuleWithProviders to the providers array of the bootstrapApplication function.\n static warnImportsModuleWithProviders(propertyExtractor) {\n const hasModuleWithProvidersImport = propertyExtractor.imports.some((importedModule) => 'ngModule' in importedModule);\n if (hasModuleWithProvidersImport) {\n console.warn((0, ts_dedent_1.default)(`\n Storybook Warning: \n moduleMetadata property 'imports' contains one or more ModuleWithProviders, likely the result of a 'Module.forRoot()'-style call.\n In Storybook 7.0 we use Angular's new 'bootstrapApplication' API to mount the component to the DOM, which accepts a list of providers to set up application-wide providers.\n Use the 'applicationConfig' decorator from '@storybook/angular' to pass your ModuleWithProviders to the 'providers' property in combination with the importProvidersFrom helper function from '@angular/core' to extract all the necessary providers.\n Visit https://angular.io/guide/standalone-components#configuring-dependency-injection for more information\n `));\n }\n }\n init() {\n const analyzed = this.analyzeMetadata(this.metadata);\n this.imports = (0, exports.uniqueArray)([common_1.CommonModule, analyzed.imports]);\n this.providers = (0, exports.uniqueArray)(analyzed.providers);\n this.applicationProviders = (0, exports.uniqueArray)(analyzed.applicationProviders);\n this.declarations = (0, exports.uniqueArray)(analyzed.declarations);\n if (this.component) {\n const { isDeclarable, isStandalone } = _a.analyzeDecorators(this.component);\n const isDeclared = (0, NgModulesAnalyzer_1.isComponentAlreadyDeclared)(this.component, analyzed.declarations, this.imports);\n if (isStandalone) {\n this.imports.push(this.component);\n }\n else if (isDeclarable && !isDeclared) {\n this.declarations.push(this.component);\n }\n }\n }\n}\nexports.PropertyExtractor = PropertyExtractor;\n_a = PropertyExtractor;\nPropertyExtractor.analyzeRestricted = (ngModule) => {\n if (ngModule === platform_browser_1.BrowserModule) {\n console.warn((0, ts_dedent_1.default) `\n Storybook Warning:\n You have imported the \"BrowserModule\", which is not necessary anymore. \n In Storybook v7.0 we are using Angular's new bootstrapApplication API to mount an Angular application to the DOM.\n Note that the BrowserModule providers are automatically included when starting an application with bootstrapApplication()\n Please remove the \"BrowserModule\" from the list of imports in your moduleMetadata definition to remove this warning.\n `);\n return [true];\n }\n if (ngModule === animations_1.BrowserAnimationsModule) {\n console.warn((0, ts_dedent_1.default) `\n Storybook Warning:\n You have added the \"BrowserAnimationsModule\" to the list of \"imports\" in your moduleMetadata definition of your Story.\n In Storybook 7.0 we use Angular's new 'bootstrapApplication' API to mount the component to the DOM, which accepts a list of providers to set up application-wide providers.\n Use the 'applicationConfig' decorator from '@storybook/angular' and add the \"provideAnimations\" function to the list of \"providers\".\n If your Angular version does not support \"provide-like\" functions, use the helper function importProvidersFrom instead to set up animations. For this case, please add \"importProvidersFrom(BrowserAnimationsModule)\" to the list of providers of your applicationConfig definition.\n Please visit https://angular.io/guide/standalone-components#configuring-dependency-injection for more information.\n `);\n return [true, (0, animations_1.provideAnimations)()];\n }\n if (ngModule === animations_1.NoopAnimationsModule) {\n console.warn((0, ts_dedent_1.default) `\n Storybook Warning:\n You have added the \"NoopAnimationsModule\" to the list of \"imports\" in your moduleMetadata definition of your Story.\n In Storybook v7.0 we are using Angular's new bootstrapApplication API to mount an Angular application to the DOM, which accepts a list of providers to set up application-wide providers.\n Use the 'applicationConfig' decorator from '@storybook/angular' and add the \"provideNoopAnimations\" function to the list of \"providers\".\n If your Angular version does not support \"provide-like\" functions, use the helper function importProvidersFrom instead to set up noop animations and to extract all necessary providers from NoopAnimationsModule. For this case, please add \"importProvidersFrom(NoopAnimationsModule)\" to the list of providers of your applicationConfig definition.\n Please visit https://angular.io/guide/standalone-components#configuring-dependency-injection for more information.\n `);\n return [true, (0, animations_1.provideNoopAnimations)()];\n }\n return [false];\n};\nPropertyExtractor.analyzeDecorators = (component) => {\n const decorators = exports.reflectionCapabilities.annotations(component);\n const isComponent = decorators.some((d) => _a.isDecoratorInstanceOf(d, 'Component'));\n const isDirective = decorators.some((d) => _a.isDecoratorInstanceOf(d, 'Directive'));\n const isPipe = decorators.some((d) => _a.isDecoratorInstanceOf(d, 'Pipe'));\n const isDeclarable = isComponent || isDirective || isPipe;\n const isStandalone = (isComponent || isDirective) && decorators.some((d) => d.standalone);\n return { isDeclarable, isStandalone };\n};\nPropertyExtractor.isDecoratorInstanceOf = (decorator, name) => {\n let factory;\n switch (name) {\n case 'Component':\n factory = core_1.Component;\n break;\n case 'Directive':\n factory = core_1.Directive;\n break;\n case 'Pipe':\n factory = core_1.Pipe;\n break;\n case 'Injectable':\n factory = core_1.Injectable;\n break;\n case 'Input':\n factory = core_1.Input;\n break;\n case 'Output':\n factory = core_1.Output;\n break;\n default:\n throw new Error(`Unknown decorator type: ${name}`);\n }\n return decorator instanceof factory || decorator.ngMetadataName === name;\n};\n"],"names":[],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"5478.eee24e20.iframe.bundle.js","mappings":";;AAUA;AACA;;;;;AAOA;;AAEA;ACfA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;AAEA;;;;;;AC1SA;;;;;;;AAWA;;;;;;;AAWA","sources":["webpack://carbon-components-angular/./node_modules/@storybook/core-events/dist/errors/preview-errors.mjs","webpack://carbon-components-angular/./node_modules/@storybook/addon-outline/dist/preview.js","webpack://carbon-components-angular/./node_modules/@storybook/angular/dist/client/angular-beta/utils/PropertyExtractor.js"],"sourcesContent":["import { StorybookError } from '../chunk-3FIG6PJN.mjs';\nimport dedent from 'ts-dedent';\n\nvar Category=(Category2=>(Category2.PREVIEW_CLIENT_LOGGER=\"PREVIEW_CLIENT-LOGGER\",Category2.PREVIEW_CHANNELS=\"PREVIEW_CHANNELS\",Category2.PREVIEW_CORE_EVENTS=\"PREVIEW_CORE-EVENTS\",Category2.PREVIEW_INSTRUMENTER=\"PREVIEW_INSTRUMENTER\",Category2.PREVIEW_API=\"PREVIEW_API\",Category2.PREVIEW_REACT_DOM_SHIM=\"PREVIEW_REACT-DOM-SHIM\",Category2.PREVIEW_ROUTER=\"PREVIEW_ROUTER\",Category2.PREVIEW_THEMING=\"PREVIEW_THEMING\",Category2.RENDERER_HTML=\"RENDERER_HTML\",Category2.RENDERER_PREACT=\"RENDERER_PREACT\",Category2.RENDERER_REACT=\"RENDERER_REACT\",Category2.RENDERER_SERVER=\"RENDERER_SERVER\",Category2.RENDERER_SVELTE=\"RENDERER_SVELTE\",Category2.RENDERER_VUE=\"RENDERER_VUE\",Category2.RENDERER_VUE3=\"RENDERER_VUE3\",Category2.RENDERER_WEB_COMPONENTS=\"RENDERER_WEB-COMPONENTS\",Category2))(Category||{}),MissingStoryAfterHmrError=class extends StorybookError{constructor(data){super();this.data=data;this.category=\"PREVIEW_API\";this.code=1;}template(){return dedent`\n Couldn't find story matching id '${this.data.storyId}' after HMR.\n - Did you just rename a story?\n - Did you remove it from your CSF file?\n - Are you sure a story with the id '${this.data.storyId}' exists?\n - Please check the values in the stories field of your main.js config and see if they would match your CSF File.\n - Also check the browser console and terminal for potential error messages.`}},ImplicitActionsDuringRendering=class extends StorybookError{constructor(data){super();this.data=data;this.category=\"PREVIEW_API\";this.code=2;this.documentation=\"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function\";}template(){return dedent`\n We detected that you use an implicit action arg during ${this.data.phase} of your story. \n ${this.data.deprecated?`\nThis is deprecated and won't work in Storybook 8 anymore.\n`:\"\"}\n Please provide an explicit spy to your args like this:\n import { fn } from '@storybook/test';\n ... \n args: {\n ${this.data.name}: fn()\n }\n `}};\n\nexport { Category, ImplicitActionsDuringRendering, MissingStoryAfterHmrError };\n","import { useMemo, useEffect } from '@storybook/preview-api';\nimport { global } from '@storybook/global';\nimport { dedent } from 'ts-dedent';\n\nvar clearStyles=selector=>{(Array.isArray(selector)?selector:[selector]).forEach(clearStyle);},clearStyle=input=>{let selector=typeof input==\"string\"?input:input.join(\"\"),element=global.document.getElementById(selector);element&&element.parentElement&&element.parentElement.removeChild(element);},addOutlineStyles=(selector,css)=>{let existingStyle=global.document.getElementById(selector);if(existingStyle)existingStyle.innerHTML!==css&&(existingStyle.innerHTML=css);else {let style=global.document.createElement(\"style\");style.setAttribute(\"id\",selector),style.innerHTML=css,global.document.head.appendChild(style);}};var PARAM_KEY=\"outline\";function outlineCSS(selector){return dedent`\n ${selector} body {\n outline: 1px solid #2980b9 !important;\n }\n\n ${selector} article {\n outline: 1px solid #3498db !important;\n }\n\n ${selector} nav {\n outline: 1px solid #0088c3 !important;\n }\n\n ${selector} aside {\n outline: 1px solid #33a0ce !important;\n }\n\n ${selector} section {\n outline: 1px solid #66b8da !important;\n }\n\n ${selector} header {\n outline: 1px solid #99cfe7 !important;\n }\n\n ${selector} footer {\n outline: 1px solid #cce7f3 !important;\n }\n\n ${selector} h1 {\n outline: 1px solid #162544 !important;\n }\n\n ${selector} h2 {\n outline: 1px solid #314e6e !important;\n }\n\n ${selector} h3 {\n outline: 1px solid #3e5e85 !important;\n }\n\n ${selector} h4 {\n outline: 1px solid #449baf !important;\n }\n\n ${selector} h5 {\n outline: 1px solid #c7d1cb !important;\n }\n\n ${selector} h6 {\n outline: 1px solid #4371d0 !important;\n }\n\n ${selector} main {\n outline: 1px solid #2f4f90 !important;\n }\n\n ${selector} address {\n outline: 1px solid #1a2c51 !important;\n }\n\n ${selector} div {\n outline: 1px solid #036cdb !important;\n }\n\n ${selector} p {\n outline: 1px solid #ac050b !important;\n }\n\n ${selector} hr {\n outline: 1px solid #ff063f !important;\n }\n\n ${selector} pre {\n outline: 1px solid #850440 !important;\n }\n\n ${selector} blockquote {\n outline: 1px solid #f1b8e7 !important;\n }\n\n ${selector} ol {\n outline: 1px solid #ff050c !important;\n }\n\n ${selector} ul {\n outline: 1px solid #d90416 !important;\n }\n\n ${selector} li {\n outline: 1px solid #d90416 !important;\n }\n\n ${selector} dl {\n outline: 1px solid #fd3427 !important;\n }\n\n ${selector} dt {\n outline: 1px solid #ff0043 !important;\n }\n\n ${selector} dd {\n outline: 1px solid #e80174 !important;\n }\n\n ${selector} figure {\n outline: 1px solid #ff00bb !important;\n }\n\n ${selector} figcaption {\n outline: 1px solid #bf0032 !important;\n }\n\n ${selector} table {\n outline: 1px solid #00cc99 !important;\n }\n\n ${selector} caption {\n outline: 1px solid #37ffc4 !important;\n }\n\n ${selector} thead {\n outline: 1px solid #98daca !important;\n }\n\n ${selector} tbody {\n outline: 1px solid #64a7a0 !important;\n }\n\n ${selector} tfoot {\n outline: 1px solid #22746b !important;\n }\n\n ${selector} tr {\n outline: 1px solid #86c0b2 !important;\n }\n\n ${selector} th {\n outline: 1px solid #a1e7d6 !important;\n }\n\n ${selector} td {\n outline: 1px solid #3f5a54 !important;\n }\n\n ${selector} col {\n outline: 1px solid #6c9a8f !important;\n }\n\n ${selector} colgroup {\n outline: 1px solid #6c9a9d !important;\n }\n\n ${selector} button {\n outline: 1px solid #da8301 !important;\n }\n\n ${selector} datalist {\n outline: 1px solid #c06000 !important;\n }\n\n ${selector} fieldset {\n outline: 1px solid #d95100 !important;\n }\n\n ${selector} form {\n outline: 1px solid #d23600 !important;\n }\n\n ${selector} input {\n outline: 1px solid #fca600 !important;\n }\n\n ${selector} keygen {\n outline: 1px solid #b31e00 !important;\n }\n\n ${selector} label {\n outline: 1px solid #ee8900 !important;\n }\n\n ${selector} legend {\n outline: 1px solid #de6d00 !important;\n }\n\n ${selector} meter {\n outline: 1px solid #e8630c !important;\n }\n\n ${selector} optgroup {\n outline: 1px solid #b33600 !important;\n }\n\n ${selector} option {\n outline: 1px solid #ff8a00 !important;\n }\n\n ${selector} output {\n outline: 1px solid #ff9619 !important;\n }\n\n ${selector} progress {\n outline: 1px solid #e57c00 !important;\n }\n\n ${selector} select {\n outline: 1px solid #e26e0f !important;\n }\n\n ${selector} textarea {\n outline: 1px solid #cc5400 !important;\n }\n\n ${selector} details {\n outline: 1px solid #33848f !important;\n }\n\n ${selector} summary {\n outline: 1px solid #60a1a6 !important;\n }\n\n ${selector} command {\n outline: 1px solid #438da1 !important;\n }\n\n ${selector} menu {\n outline: 1px solid #449da6 !important;\n }\n\n ${selector} del {\n outline: 1px solid #bf0000 !important;\n }\n\n ${selector} ins {\n outline: 1px solid #400000 !important;\n }\n\n ${selector} img {\n outline: 1px solid #22746b !important;\n }\n\n ${selector} iframe {\n outline: 1px solid #64a7a0 !important;\n }\n\n ${selector} embed {\n outline: 1px solid #98daca !important;\n }\n\n ${selector} object {\n outline: 1px solid #00cc99 !important;\n }\n\n ${selector} param {\n outline: 1px solid #37ffc4 !important;\n }\n\n ${selector} video {\n outline: 1px solid #6ee866 !important;\n }\n\n ${selector} audio {\n outline: 1px solid #027353 !important;\n }\n\n ${selector} source {\n outline: 1px solid #012426 !important;\n }\n\n ${selector} canvas {\n outline: 1px solid #a2f570 !important;\n }\n\n ${selector} track {\n outline: 1px solid #59a600 !important;\n }\n\n ${selector} map {\n outline: 1px solid #7be500 !important;\n }\n\n ${selector} area {\n outline: 1px solid #305900 !important;\n }\n\n ${selector} a {\n outline: 1px solid #ff62ab !important;\n }\n\n ${selector} em {\n outline: 1px solid #800b41 !important;\n }\n\n ${selector} strong {\n outline: 1px solid #ff1583 !important;\n }\n\n ${selector} i {\n outline: 1px solid #803156 !important;\n }\n\n ${selector} b {\n outline: 1px solid #cc1169 !important;\n }\n\n ${selector} u {\n outline: 1px solid #ff0430 !important;\n }\n\n ${selector} s {\n outline: 1px solid #f805e3 !important;\n }\n\n ${selector} small {\n outline: 1px solid #d107b2 !important;\n }\n\n ${selector} abbr {\n outline: 1px solid #4a0263 !important;\n }\n\n ${selector} q {\n outline: 1px solid #240018 !important;\n }\n\n ${selector} cite {\n outline: 1px solid #64003c !important;\n }\n\n ${selector} dfn {\n outline: 1px solid #b4005a !important;\n }\n\n ${selector} sub {\n outline: 1px solid #dba0c8 !important;\n }\n\n ${selector} sup {\n outline: 1px solid #cc0256 !important;\n }\n\n ${selector} time {\n outline: 1px solid #d6606d !important;\n }\n\n ${selector} code {\n outline: 1px solid #e04251 !important;\n }\n\n ${selector} kbd {\n outline: 1px solid #5e001f !important;\n }\n\n ${selector} samp {\n outline: 1px solid #9c0033 !important;\n }\n\n ${selector} var {\n outline: 1px solid #d90047 !important;\n }\n\n ${selector} mark {\n outline: 1px solid #ff0053 !important;\n }\n\n ${selector} bdi {\n outline: 1px solid #bf3668 !important;\n }\n\n ${selector} bdo {\n outline: 1px solid #6f1400 !important;\n }\n\n ${selector} ruby {\n outline: 1px solid #ff7b93 !important;\n }\n\n ${selector} rt {\n outline: 1px solid #ff2f54 !important;\n }\n\n ${selector} rp {\n outline: 1px solid #803e49 !important;\n }\n\n ${selector} span {\n outline: 1px solid #cc2643 !important;\n }\n\n ${selector} br {\n outline: 1px solid #db687d !important;\n }\n\n ${selector} wbr {\n outline: 1px solid #db175b !important;\n }`}var withOutline=(StoryFn,context)=>{let{globals:globals2}=context,isActive=[!0,\"true\"].includes(globals2[PARAM_KEY]),isInDocs=context.viewMode===\"docs\",outlineStyles=useMemo(()=>outlineCSS(isInDocs?'[data-story-block=\"true\"]':\".sb-show-main\"),[context]);return useEffect(()=>{let selectorId=isInDocs?`addon-outline-docs-${context.id}`:\"addon-outline\";return isActive?addOutlineStyles(selectorId,outlineStyles):clearStyles(selectorId),()=>{clearStyles(selectorId);}},[isActive,outlineStyles,context]),StoryFn()};var decorators=[withOutline],globals={[PARAM_KEY]:!1};\n\nexport { decorators, globals };\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PropertyExtractor = exports.uniqueArray = exports.REMOVED_MODULES = exports.reflectionCapabilities = void 0;\n/* eslint-disable no-console */\nconst common_1 = require(\"@angular/common\");\nconst core_1 = require(\"@angular/core\");\nconst platform_browser_1 = require(\"@angular/platform-browser\");\nconst animations_1 = require(\"@angular/platform-browser/animations\");\nconst ts_dedent_1 = __importDefault(require(\"ts-dedent\"));\nconst NgModulesAnalyzer_1 = require(\"./NgModulesAnalyzer\");\nexports.reflectionCapabilities = new core_1.ɵReflectionCapabilities();\nexports.REMOVED_MODULES = new core_1.InjectionToken('REMOVED_MODULES');\nconst uniqueArray = (arr) => {\n return arr\n .flat(Number.MAX_VALUE)\n .filter(Boolean)\n .filter((value, index, self) => self.indexOf(value) === index);\n};\nexports.uniqueArray = uniqueArray;\nclass PropertyExtractor {\n /* eslint-enable @typescript-eslint/lines-between-class-members */\n constructor(metadata, component) {\n this.metadata = metadata;\n this.component = component;\n /* eslint-disable @typescript-eslint/lines-between-class-members */\n this.declarations = [];\n /**\n * Analyze NgModule Metadata\n *\n * - Removes Restricted Imports\n * - Extracts providers from ModuleWithProviders\n * - Returns a new NgModuleMetadata object\n *\n *\n */\n this.analyzeMetadata = (metadata) => {\n const declarations = [...(metadata?.declarations || [])];\n const providers = [...(metadata?.providers || [])];\n const applicationProviders = [];\n const imports = [...(metadata?.imports || [])].reduce((acc, imported) => {\n // remove ngModule and use only its providers if it is restricted\n // (e.g. BrowserModule, BrowserAnimationsModule, NoopAnimationsModule, ...etc)\n const [isRestricted, restrictedProviders] = _a.analyzeRestricted(imported);\n if (isRestricted) {\n applicationProviders.unshift(restrictedProviders || []);\n return acc;\n }\n acc.push(imported);\n return acc;\n }, []);\n return { ...metadata, imports, providers, applicationProviders, declarations };\n };\n this.init();\n }\n // With the new way of mounting standalone components to the DOM via bootstrapApplication API,\n // we should now pass ModuleWithProviders to the providers array of the bootstrapApplication function.\n static warnImportsModuleWithProviders(propertyExtractor) {\n const hasModuleWithProvidersImport = propertyExtractor.imports.some((importedModule) => 'ngModule' in importedModule);\n if (hasModuleWithProvidersImport) {\n console.warn((0, ts_dedent_1.default)(`\n Storybook Warning: \n moduleMetadata property 'imports' contains one or more ModuleWithProviders, likely the result of a 'Module.forRoot()'-style call.\n In Storybook 7.0 we use Angular's new 'bootstrapApplication' API to mount the component to the DOM, which accepts a list of providers to set up application-wide providers.\n Use the 'applicationConfig' decorator from '@storybook/angular' to pass your ModuleWithProviders to the 'providers' property in combination with the importProvidersFrom helper function from '@angular/core' to extract all the necessary providers.\n Visit https://angular.io/guide/standalone-components#configuring-dependency-injection for more information\n `));\n }\n }\n init() {\n const analyzed = this.analyzeMetadata(this.metadata);\n this.imports = (0, exports.uniqueArray)([common_1.CommonModule, analyzed.imports]);\n this.providers = (0, exports.uniqueArray)(analyzed.providers);\n this.applicationProviders = (0, exports.uniqueArray)(analyzed.applicationProviders);\n this.declarations = (0, exports.uniqueArray)(analyzed.declarations);\n if (this.component) {\n const { isDeclarable, isStandalone } = _a.analyzeDecorators(this.component);\n const isDeclared = (0, NgModulesAnalyzer_1.isComponentAlreadyDeclared)(this.component, analyzed.declarations, this.imports);\n if (isStandalone) {\n this.imports.push(this.component);\n }\n else if (isDeclarable && !isDeclared) {\n this.declarations.push(this.component);\n }\n }\n }\n}\nexports.PropertyExtractor = PropertyExtractor;\n_a = PropertyExtractor;\nPropertyExtractor.analyzeRestricted = (ngModule) => {\n if (ngModule === platform_browser_1.BrowserModule) {\n console.warn((0, ts_dedent_1.default) `\n Storybook Warning:\n You have imported the \"BrowserModule\", which is not necessary anymore. \n In Storybook v7.0 we are using Angular's new bootstrapApplication API to mount an Angular application to the DOM.\n Note that the BrowserModule providers are automatically included when starting an application with bootstrapApplication()\n Please remove the \"BrowserModule\" from the list of imports in your moduleMetadata definition to remove this warning.\n `);\n return [true];\n }\n if (ngModule === animations_1.BrowserAnimationsModule) {\n console.warn((0, ts_dedent_1.default) `\n Storybook Warning:\n You have added the \"BrowserAnimationsModule\" to the list of \"imports\" in your moduleMetadata definition of your Story.\n In Storybook 7.0 we use Angular's new 'bootstrapApplication' API to mount the component to the DOM, which accepts a list of providers to set up application-wide providers.\n Use the 'applicationConfig' decorator from '@storybook/angular' and add the \"provideAnimations\" function to the list of \"providers\".\n If your Angular version does not support \"provide-like\" functions, use the helper function importProvidersFrom instead to set up animations. For this case, please add \"importProvidersFrom(BrowserAnimationsModule)\" to the list of providers of your applicationConfig definition.\n Please visit https://angular.io/guide/standalone-components#configuring-dependency-injection for more information.\n `);\n return [true, (0, animations_1.provideAnimations)()];\n }\n if (ngModule === animations_1.NoopAnimationsModule) {\n console.warn((0, ts_dedent_1.default) `\n Storybook Warning:\n You have added the \"NoopAnimationsModule\" to the list of \"imports\" in your moduleMetadata definition of your Story.\n In Storybook v7.0 we are using Angular's new bootstrapApplication API to mount an Angular application to the DOM, which accepts a list of providers to set up application-wide providers.\n Use the 'applicationConfig' decorator from '@storybook/angular' and add the \"provideNoopAnimations\" function to the list of \"providers\".\n If your Angular version does not support \"provide-like\" functions, use the helper function importProvidersFrom instead to set up noop animations and to extract all necessary providers from NoopAnimationsModule. For this case, please add \"importProvidersFrom(NoopAnimationsModule)\" to the list of providers of your applicationConfig definition.\n Please visit https://angular.io/guide/standalone-components#configuring-dependency-injection for more information.\n `);\n return [true, (0, animations_1.provideNoopAnimations)()];\n }\n return [false];\n};\nPropertyExtractor.analyzeDecorators = (component) => {\n const decorators = exports.reflectionCapabilities.annotations(component);\n const isComponent = decorators.some((d) => _a.isDecoratorInstanceOf(d, 'Component'));\n const isDirective = decorators.some((d) => _a.isDecoratorInstanceOf(d, 'Directive'));\n const isPipe = decorators.some((d) => _a.isDecoratorInstanceOf(d, 'Pipe'));\n const isDeclarable = isComponent || isDirective || isPipe;\n const isStandalone = (isComponent || isDirective) && decorators.some((d) => d.standalone);\n return { isDeclarable, isStandalone };\n};\nPropertyExtractor.isDecoratorInstanceOf = (decorator, name) => {\n let factory;\n switch (name) {\n case 'Component':\n factory = core_1.Component;\n break;\n case 'Directive':\n factory = core_1.Directive;\n break;\n case 'Pipe':\n factory = core_1.Pipe;\n break;\n case 'Injectable':\n factory = core_1.Injectable;\n break;\n case 'Input':\n factory = core_1.Input;\n break;\n case 'Output':\n factory = core_1.Output;\n break;\n default:\n throw new Error(`Unknown decorator type: ${name}`);\n }\n return decorator instanceof factory || decorator.ngMetadataName === name;\n};\n"],"names":[],"sourceRoot":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkcarbon_components_angular=self.webpackChunkcarbon_components_angular||[]).push([[384],{"./src/grid/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{iK:()=>ColumnDirective,lj:()=>GridDirective,zE:()=>GridModule,vZ:()=>RowDirective});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.js"),core=__webpack_require__("./node_modules/@angular/core/fesm2020/core.mjs"),common=__webpack_require__("./node_modules/@angular/common/fesm2020/common.mjs"),Subscription=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/Subscription.js"),BehaviorSubject=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js");let GridService=class GridService{constructor(){this.gridSubject=new BehaviorSubject.X(!1),this.cssGridEnabled=!1,this.gridObservable=this.gridSubject.asObservable()}updateGridType(enableCssGrid){this.cssGridEnabled!==enableCssGrid&&(this.cssGridEnabled=!0,this.gridSubject.next(enableCssGrid))}};GridService.ctorParameters=()=>[],GridService=(0,tslib_es6.gn)([(0,core.Injectable)()],GridService);let ColumnDirective=class ColumnDirective{constructor(gridService){this.gridService=gridService,this.class="",this.columnNumbers={},this.offsets={},this.columnHang=!1,this._columnClasses=[],this.isCssGrid=!1,this.subscription=new Subscription.w0}get columnClasses(){return this._columnClasses.join(" ")}set columnClasses(classes){this._columnClasses=classes.split(" ")}ngOnInit(){this.gridService?this.subscription=this.gridService.gridObservable.subscribe((isCssGrid=>{this.isCssGrid=isCssGrid,this.updateColumnClasses()})):this.updateColumnClasses()}ngOnChanges(){this.updateColumnClasses()}ngOnDestroy(){this.subscription.unsubscribe()}updateColumnClasses(){try{this._columnClasses=[];const columnKeys=Object.keys(this.columnNumbers);this.isCssGrid?(this._columnClasses.push("cds--css-grid-column"),this.columnHang&&this._columnClasses.push("cds--grid-column-hang"),columnKeys.forEach((key=>{"auto"===this.columnNumbers[key]?this._columnClasses.push(`cds--${key}:col-span-auto`):"object"==typeof this.columnNumbers[key]?(this.columnNumbers[key].start&&this._columnClasses.push(`cds--${key}:col-start-${this.columnNumbers[key].start}`),this.columnNumbers[key].end&&this._columnClasses.push(`cds--${key}:col-end-${this.columnNumbers[key].end}`),this.columnNumbers[key].span&&this._columnClasses.push(`cds--${key}:col-span-${this.columnNumbers[key].span}`)):this._columnClasses.push(`cds--${key}:col-span-${this.columnNumbers[key]}`)})),Object.keys(this.offsets).forEach((key=>{this._columnClasses.push(`cds--${key}:col-start-${this.offsets[key]}`)}))):(columnKeys.length<=0&&this._columnClasses.push("cds--col"),columnKeys.forEach((key=>{"nobreak"===this.columnNumbers[key]?this._columnClasses.push(`cds--col-${key}`):this._columnClasses.push(`cds--col-${key}-${this.columnNumbers[key]}`)})),Object.keys(this.offsets).forEach((key=>{this._columnClasses.push(`cds--offset-${key}-${this.offsets[key]}`)})))}catch(err){console.error(`Malformed \`offsets\` or \`columnNumbers\`: ${err}`)}this.class&&this._columnClasses.push(this.class)}};ColumnDirective.ctorParameters=()=>[{type:GridService,decorators:[{type:core.Optional}]}],ColumnDirective.propDecorators={columnClasses:[{type:core.HostBinding,args:["class"]}],class:[{type:core.Input}],columnNumbers:[{type:core.Input}],offsets:[{type:core.Input}],columnHang:[{type:core.Input}]},ColumnDirective=(0,tslib_es6.gn)([(0,core.Directive)({selector:"[cdsCol], [ibmCol]"})],ColumnDirective);let RowDirective=class RowDirective{constructor(){this.baseClass=!0,this.condensed=!1,this.narrow=!1}};RowDirective.propDecorators={baseClass:[{type:core.HostBinding,args:["class.cds--row"]}],condensed:[{type:core.HostBinding,args:["class.cds--row--condensed"]},{type:core.Input}],narrow:[{type:core.HostBinding,args:["class.cds--row--narrow"]},{type:core.Input}]},RowDirective=(0,tslib_es6.gn)([(0,core.Directive)({selector:"[cdsRow], [ibmRow]"})],RowDirective);let GridDirective=class GridDirective{constructor(gridService){this.gridService=gridService,this.condensed=!1,this.narrow=!1,this.fullWidth=!1,this.cssGridEnabled=!1,this.isSubgrid=!1,this.subscription=new Subscription.w0}set useCssGrid(enable){this.cssGridEnabled=enable,this.gridService.updateGridType(enable)}get flexGrid(){return!this.cssGridEnabled}get flexCondensed(){return!this.cssGridEnabled&&this.condensed}get flexNarrow(){return!this.cssGridEnabled&&this.narrow}get flexFullWidth(){return!this.cssGridEnabled&&this.fullWidth}get ccsGrid(){return this.cssGridEnabled&&!this.isSubgrid}get ccsCondensed(){return this.cssGridEnabled&&!this.isSubgrid&&this.condensed}get ccsNarrow(){return this.cssGridEnabled&&!this.isSubgrid&&this.narrow}get ccsFullWidth(){return this.cssGridEnabled&&!this.isSubgrid&&this.fullWidth}get subGrid(){return this.cssGridEnabled&&this.isSubgrid}get subCondensed(){return this.cssGridEnabled&&this.isSubgrid&&this.condensed}get subNarrow(){return this.cssGridEnabled&&this.isSubgrid&&this.narrow}get subFullWidth(){return this.cssGridEnabled&&this.isSubgrid&&this.fullWidth}ngOnInit(){this.subscription=this.gridService.gridObservable.subscribe((isCssGrid=>{this.cssGridEnabled=isCssGrid}))}set cssGridChildren(list){this.cssGridEnabled&&list.forEach((grid=>{grid!==this&&(grid.isSubgrid=!0)}))}ngOnDestroy(){this.subscription.unsubscribe()}};GridDirective.ctorParameters=()=>[{type:GridService}],GridDirective.propDecorators={condensed:[{type:core.Input}],narrow:[{type:core.Input}],fullWidth:[{type:core.Input}],useCssGrid:[{type:core.Input}],flexGrid:[{type:core.HostBinding,args:["class.cds--grid"]}],flexCondensed:[{type:core.HostBinding,args:["class.cds--grid--condensed"]}],flexNarrow:[{type:core.HostBinding,args:["class.cds--grid--narrow"]}],flexFullWidth:[{type:core.HostBinding,args:["class.cds--grid--full-width"]}],ccsGrid:[{type:core.HostBinding,args:["class.cds--css-grid"]}],ccsCondensed:[{type:core.HostBinding,args:["class.cds--css-grid--condensed"]}],ccsNarrow:[{type:core.HostBinding,args:["class.cds--css-grid--narrow"]}],ccsFullWidth:[{type:core.HostBinding,args:["class.cds--css-grid--full-width"]}],subGrid:[{type:core.HostBinding,args:["class.cds--subgrid"]}],subCondensed:[{type:core.HostBinding,args:["class.cds--subgrid--condensed"]}],subNarrow:[{type:core.HostBinding,args:["class.cds--subgrid--narrow"]}],subFullWidth:[{type:core.HostBinding,args:["class.cds--subgrid--wide"]}],cssGridChildren:[{type:core.ContentChildren,args:[GridDirective,{descendants:!0}]}]},GridDirective=(0,tslib_es6.gn)([(0,core.Directive)({selector:"[cdsGrid], [ibmGrid]",providers:[{provide:GridService,deps:[[new core.Optional,new core.SkipSelf,GridService]],useFactory:parentService=>parentService||new GridService}]})],GridDirective);let GridModule=class GridModule{};GridModule=(0,tslib_es6.gn)([(0,core.NgModule)({declarations:[ColumnDirective,GridDirective,RowDirective],exports:[ColumnDirective,GridDirective,RowDirective],providers:[GridService],imports:[common.CommonModule]})],GridModule)},"./node_modules/@storybook/angular/dist/client/argsToTemplate.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.argsToTemplate=void 0,exports.argsToTemplate=function argsToTemplate(args,options={}){const includeSet=options.include?new Set(options.include):null,excludeSet=options.exclude?new Set(options.exclude):null;return Object.entries(args).filter((([key])=>void 0!==args[key])).filter((([key])=>includeSet?includeSet.has(key):!excludeSet||!excludeSet.has(key))).map((([key,value])=>"function"==typeof value?`(${key})="${key}($event)"`:`[${key}]="${key}"`)).join(" ")}},"./node_modules/@storybook/angular/dist/client/decorators.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.componentWrapperDecorator=exports.applicationConfig=exports.moduleMetadata=void 0;const ComputesTemplateFromComponent_1=__webpack_require__("./node_modules/@storybook/angular/dist/client/angular-beta/ComputesTemplateFromComponent.js"),NgComponentAnalyzer_1=__webpack_require__("./node_modules/@storybook/angular/dist/client/angular-beta/utils/NgComponentAnalyzer.js");exports.moduleMetadata=metadata=>storyFn=>{const story=storyFn(),storyMetadata=story.moduleMetadata||{};return metadata=metadata||{},{...story,moduleMetadata:{declarations:[...metadata.declarations||[],...storyMetadata.declarations||[]],entryComponents:[...metadata.entryComponents||[],...storyMetadata.entryComponents||[]],imports:[...metadata.imports||[],...storyMetadata.imports||[]],schemas:[...metadata.schemas||[],...storyMetadata.schemas||[]],providers:[...metadata.providers||[],...storyMetadata.providers||[]]}}},exports.applicationConfig=function applicationConfig(config){return storyFn=>{const story=storyFn(),storyConfig=story.applicationConfig;return{...story,applicationConfig:storyConfig||config?{...config,...storyConfig,providers:[...config?.providers||[],...storyConfig?.providers||[]]}:void 0}}};exports.componentWrapperDecorator=(element,props)=>(storyFn,storyContext)=>{const story=storyFn(),currentProps="function"==typeof props?props(storyContext):props,template=(0,NgComponentAnalyzer_1.isComponent)(element)?(0,ComputesTemplateFromComponent_1.computesTemplateFromComponent)(element,currentProps??{},story.template):element(story.template);return{...story,template,...currentProps||story.props?{props:{...currentProps,...story.props}}:{}}}},"./node_modules/@storybook/angular/dist/client/index.js":function(__unused_webpack_module,exports,__webpack_require__){var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports){for(var p in m)"default"===p||Object.prototype.hasOwnProperty.call(exports,p)||__createBinding(exports,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.argsToTemplate=exports.applicationConfig=exports.componentWrapperDecorator=exports.moduleMetadata=void 0,__webpack_require__("./node_modules/@storybook/angular/dist/client/globals.js"),__exportStar(__webpack_require__("./node_modules/@storybook/angular/dist/client/public-api.js"),exports),__exportStar(__webpack_require__("./node_modules/@storybook/angular/dist/client/public-types.js"),exports);var decorators_1=__webpack_require__("./node_modules/@storybook/angular/dist/client/decorators.js");Object.defineProperty(exports,"moduleMetadata",{enumerable:!0,get:function(){return decorators_1.moduleMetadata}}),Object.defineProperty(exports,"componentWrapperDecorator",{enumerable:!0,get:function(){return decorators_1.componentWrapperDecorator}}),Object.defineProperty(exports,"applicationConfig",{enumerable:!0,get:function(){return decorators_1.applicationConfig}});var argsToTemplate_1=__webpack_require__("./node_modules/@storybook/angular/dist/client/argsToTemplate.js");Object.defineProperty(exports,"argsToTemplate",{enumerable:!0,get:function(){return argsToTemplate_1.argsToTemplate}})},"./node_modules/@storybook/angular/dist/client/public-api.js":function(__unused_webpack_module,exports,__webpack_require__){var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports){for(var p in m)"default"===p||Object.prototype.hasOwnProperty.call(exports,p)||__createBinding(exports,m,p)},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.raw=exports.forceReRender=exports.configure=exports.storiesOf=void 0;const preview_api_1=__webpack_require__("@storybook/preview-api"),render_1=__webpack_require__("./node_modules/@storybook/angular/dist/client/render.js"),decorateStory_1=__importDefault(__webpack_require__("./node_modules/@storybook/angular/dist/client/decorateStory.js"));__exportStar(__webpack_require__("./node_modules/@storybook/angular/dist/client/public-types.js"),exports);const api=(0,preview_api_1.start)(render_1.renderToCanvas,{decorateStory:decorateStory_1.default,render:render_1.render});exports.storiesOf=(kind,m)=>api.clientApi.storiesOf(kind,m).addParameters({renderer:"angular"});exports.configure=(...args)=>api.configure("angular",...args),exports.forceReRender=api.forceReRender,exports.raw=api.clientApi.raw},"./node_modules/@storybook/angular/dist/client/public-types.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0})},"./node_modules/@storybook/angular/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{var _client_index__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/angular/dist/client/index.js");__webpack_require__.o(_client_index__WEBPACK_IMPORTED_MODULE_0__,"applicationConfig")&&__webpack_require__.d(__webpack_exports__,{applicationConfig:function(){return _client_index__WEBPACK_IMPORTED_MODULE_0__.applicationConfig}}),__webpack_require__.o(_client_index__WEBPACK_IMPORTED_MODULE_0__,"componentWrapperDecorator")&&__webpack_require__.d(__webpack_exports__,{componentWrapperDecorator:function(){return _client_index__WEBPACK_IMPORTED_MODULE_0__.componentWrapperDecorator}}),__webpack_require__.o(_client_index__WEBPACK_IMPORTED_MODULE_0__,"moduleMetadata")&&__webpack_require__.d(__webpack_exports__,{moduleMetadata:function(){return _client_index__WEBPACK_IMPORTED_MODULE_0__.moduleMetadata}})},"./src/grid/css-grid.stories.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Basic:()=>Basic,GridStart:()=>GridStart,Responsive:()=>Responsive,Subgrid:()=>Subgrid,__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/grid/index.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Components/Grid/CSS",decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_0__.moduleMetadata)({imports:[___WEBPACK_IMPORTED_MODULE_1__.zE]}),(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_0__.componentWrapperDecorator)((story=>`<div class="css-grid-story">${story}</div>`))],component:___WEBPACK_IMPORTED_MODULE_1__.lj,subcomponents:{RowDirective:___WEBPACK_IMPORTED_MODULE_1__.vZ,ColumnDirective:___WEBPACK_IMPORTED_MODULE_1__.iK},argTypes:{useCssGrid:{control:!1}}},Basic=(args=>({props:args,template:'\n <div\n cdsGrid\n [useCssGrid]="true"\n [condensed]="condensed"\n [narrow]="narrow"\n [fullWidth]="fullWidth">\n <div cdsCol [columnNumbers]="{sm: 4}"></div>\n <div cdsCol [columnNumbers]="{sm: 4}"></div>\n <div cdsCol [columnNumbers]="{sm: 4}"></div>\n <div cdsCol [columnNumbers]="{sm: 4}"></div>\n </div>\n '})).bind({}),GridStart=(args=>({props:args,template:'\n <div\n cdsGrid\n [useCssGrid]="true"\n [condensed]="condensed"\n [narrow]="narrow"\n [fullWidth]="fullWidth">\n <div cdsCol [columnNumbers]="{\n sm: {span: 1, start: 4},\n md: {span: 2, start: 7},\n lg: {span: 4, start: 13}\n }">span, start</div>\n <div cdsCol [columnNumbers]="{\n sm: {span: 2, end: 5},\n md: {span: 4, end: 9},\n lg: {span: 8, end: 17}\n }">span, end</div>\n <div cdsCol [columnNumbers]="{\n sm: {start: 1, end: 4},\n md: {start: 3, end: 7},\n lg: {start: 5, end: 17}\n }">start, end</div>\n </div>\n '})).bind({}),Responsive=(args=>({props:args,template:'\n <div\n cdsGrid\n [useCssGrid]="true"\n [condensed]="condensed"\n [narrow]="narrow"\n [fullWidth]="fullWidth">\n <div cdsCol [columnNumbers]="{sm: 2, md: 4, lg: 6}">\n <p>Small: Span 2 of 4</p>\n <p>Medium: Span 4 of 8</p>\n <p>Large: Span 6 of 16</p>\n </div>\n <div cdsCol [columnNumbers]="{sm: 2, md: 2, lg: 3}">\n <p>Small: Span 2 of 4</p>\n <p>Medium: Span 2 of 8</p>\n <p>Large: Span 3 of 16</p>\n </div>\n <div cdsCol [columnNumbers]="{sm: 0, md: 2, lg: 3}">\n <p>Small: Span 0 of 4</p>\n <p>Medium: Span 2 of 8</p>\n <p>Large: Span 3 of 16</p>\n </div>\n <div cdsCol [columnNumbers]="{sm: 0, md: 0, lg: 4}">\n <p>Small: Span 0 of 4</p>\n <p>Medium: Span 0 of 8</p>\n <p>Large: Span 4 of 16</p>\n </div>\n <div cdsCol [columnNumbers]="{sm: 25, md: 50, lg: 75}">\n <p>Small: Span 25%</p>\n <p>Medium: Span 50%</p>\n <p>Large: 75%</p>\n </div>\n </div>\n '})).bind({}),Subgrid=(args=>({props:args,template:'\n <div\n cdsGrid\n [useCssGrid]="true"\n [condensed]="condensed"\n [narrow]="narrow"\n [fullWidth]="fullWidth">\n <div cdsCol [columnNumbers]="{sm: 2, md: 4, lg: 3}">\n <p>Small: Span 2 of 4</p>\n <p>Medium: Span 4 of 8</p>\n <p>Large: Span 3 of 16</p>\n </div>\n <div cdsCol [columnNumbers]="{sm: 2, md: 4, lg: 10}">\n <p>Small: Span 2 of 4</p>\n <p>Medium: Span 2 of 8</p>\n <p>Large: Span 10 of 16</p>\n <div cdsGrid>\n <div cdsCol [columnNumbers]="{sm: 1, md: 1, lg: 2}">\n <p>sm:1</p>\n <p>md:1</p>\n <p>lg:2</p>\n </div>\n <div cdsCol [columnNumbers]="{sm: 1, md: 1, lg: 2}">\n <p>sm:1</p>\n <p>md:1</p>\n <p>lg:2</p>\n </div>\n <div cdsCol [columnNumbers]="{sm: 0, md: 1, lg: 1}">\n <p>sm:0</p>\n <p>md:1</p>\n <p>lg:1</p>\n </div>\n <div cdsCol [columnNumbers]="{sm: 0, md: 1, lg: 1}">\n <p>sm:0</p>\n <p>md:1</p>\n <p>lg:1</p>\n </div>\n <div cdsCol [columnNumbers]="{sm: 0, md: 0, lg: 4}">\n <p>sm:0</p>\n <p>md:0</p>\n <p>lg:4</p>\n </div>\n </div>\n </div>\n <div cdsCol [columnNumbers]="{sm: 0, md: 0, lg: 3}">\n <p>Small: Span 0 of 4</p>\n <p>Medium: Span 0 of 8</p>\n <p>Large: Span 3 of 16</p>\n </div>\n </div>\n '})).bind({});Basic.parameters={...Basic.parameters,docs:{...Basic.parameters?.docs,source:{originalSource:'args => ({\n props: args,\n template: `\n <div\n cdsGrid\n [useCssGrid]="true"\n [condensed]="condensed"\n [narrow]="narrow"\n [fullWidth]="fullWidth">\n <div cdsCol [columnNumbers]="{sm: 4}"></div>\n <div cdsCol [columnNumbers]="{sm: 4}"></div>\n <div cdsCol [columnNumbers]="{sm: 4}"></div>\n <div cdsCol [columnNumbers]="{sm: 4}"></div>\n </div>\n `\n})',...Basic.parameters?.docs?.source}}},GridStart.parameters={...GridStart.parameters,docs:{...GridStart.parameters?.docs,source:{originalSource:'args => ({\n props: args,\n template: `\n <div\n cdsGrid\n [useCssGrid]="true"\n [condensed]="condensed"\n [narrow]="narrow"\n [fullWidth]="fullWidth">\n <div cdsCol [columnNumbers]="{\n sm: {span: 1, start: 4},\n md: {span: 2, start: 7},\n lg: {span: 4, start: 13}\n }">span, start</div>\n <div cdsCol [columnNumbers]="{\n sm: {span: 2, end: 5},\n md: {span: 4, end: 9},\n lg: {span: 8, end: 17}\n }">span, end</div>\n <div cdsCol [columnNumbers]="{\n sm: {start: 1, end: 4},\n md: {start: 3, end: 7},\n lg: {start: 5, end: 17}\n }">start, end</div>\n </div>\n `\n})',...GridStart.parameters?.docs?.source}}},Responsive.parameters={...Responsive.parameters,docs:{...Responsive.parameters?.docs,source:{originalSource:'args => ({\n props: args,\n template: `\n <div\n cdsGrid\n [useCssGrid]="true"\n [condensed]="condensed"\n [narrow]="narrow"\n [fullWidth]="fullWidth">\n <div cdsCol [columnNumbers]="{sm: 2, md: 4, lg: 6}">\n <p>Small: Span 2 of 4</p>\n <p>Medium: Span 4 of 8</p>\n <p>Large: Span 6 of 16</p>\n </div>\n <div cdsCol [columnNumbers]="{sm: 2, md: 2, lg: 3}">\n <p>Small: Span 2 of 4</p>\n <p>Medium: Span 2 of 8</p>\n <p>Large: Span 3 of 16</p>\n </div>\n <div cdsCol [columnNumbers]="{sm: 0, md: 2, lg: 3}">\n <p>Small: Span 0 of 4</p>\n <p>Medium: Span 2 of 8</p>\n <p>Large: Span 3 of 16</p>\n </div>\n <div cdsCol [columnNumbers]="{sm: 0, md: 0, lg: 4}">\n <p>Small: Span 0 of 4</p>\n <p>Medium: Span 0 of 8</p>\n <p>Large: Span 4 of 16</p>\n </div>\n <div cdsCol [columnNumbers]="{sm: 25, md: 50, lg: 75}">\n <p>Small: Span 25%</p>\n <p>Medium: Span 50%</p>\n <p>Large: 75%</p>\n </div>\n </div>\n `\n})',...Responsive.parameters?.docs?.source}}},Subgrid.parameters={...Subgrid.parameters,docs:{...Subgrid.parameters?.docs,source:{originalSource:'args => ({\n props: args,\n template: `\n <div\n cdsGrid\n [useCssGrid]="true"\n [condensed]="condensed"\n [narrow]="narrow"\n [fullWidth]="fullWidth">\n <div cdsCol [columnNumbers]="{sm: 2, md: 4, lg: 3}">\n <p>Small: Span 2 of 4</p>\n <p>Medium: Span 4 of 8</p>\n <p>Large: Span 3 of 16</p>\n </div>\n <div cdsCol [columnNumbers]="{sm: 2, md: 4, lg: 10}">\n <p>Small: Span 2 of 4</p>\n <p>Medium: Span 2 of 8</p>\n <p>Large: Span 10 of 16</p>\n <div cdsGrid>\n <div cdsCol [columnNumbers]="{sm: 1, md: 1, lg: 2}">\n <p>sm:1</p>\n <p>md:1</p>\n <p>lg:2</p>\n </div>\n <div cdsCol [columnNumbers]="{sm: 1, md: 1, lg: 2}">\n <p>sm:1</p>\n <p>md:1</p>\n <p>lg:2</p>\n </div>\n <div cdsCol [columnNumbers]="{sm: 0, md: 1, lg: 1}">\n <p>sm:0</p>\n <p>md:1</p>\n <p>lg:1</p>\n </div>\n <div cdsCol [columnNumbers]="{sm: 0, md: 1, lg: 1}">\n <p>sm:0</p>\n <p>md:1</p>\n <p>lg:1</p>\n </div>\n <div cdsCol [columnNumbers]="{sm: 0, md: 0, lg: 4}">\n <p>sm:0</p>\n <p>md:0</p>\n <p>lg:4</p>\n </div>\n </div>\n </div>\n <div cdsCol [columnNumbers]="{sm: 0, md: 0, lg: 3}">\n <p>Small: Span 0 of 4</p>\n <p>Medium: Span 0 of 8</p>\n <p>Large: Span 3 of 16</p>\n </div>\n </div>\n `\n})',...Subgrid.parameters?.docs?.source}}};const __namedExportsOrder=["Basic","GridStart","Responsive","Subgrid"]}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkcarbon_components_angular=self.webpackChunkcarbon_components_angular||[]).push([[2573],{"./src/grid/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{iK:()=>ColumnDirective,lj:()=>GridDirective,zE:()=>GridModule,vZ:()=>RowDirective});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.js"),core=__webpack_require__("./node_modules/@angular/core/fesm2020/core.mjs"),common=__webpack_require__("./node_modules/@angular/common/fesm2020/common.mjs"),Subscription=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/Subscription.js"),BehaviorSubject=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js");let GridService=class GridService{constructor(){this.gridSubject=new BehaviorSubject.X(!1),this.cssGridEnabled=!1,this.gridObservable=this.gridSubject.asObservable()}updateGridType(enableCssGrid){this.cssGridEnabled!==enableCssGrid&&(this.cssGridEnabled=!0,this.gridSubject.next(enableCssGrid))}};GridService.ctorParameters=()=>[],GridService=(0,tslib_es6.gn)([(0,core.Injectable)()],GridService);let ColumnDirective=class ColumnDirective{constructor(gridService){this.gridService=gridService,this.class="",this.columnNumbers={},this.offsets={},this.columnHang=!1,this._columnClasses=[],this.isCssGrid=!1,this.subscription=new Subscription.w0}get columnClasses(){return this._columnClasses.join(" ")}set columnClasses(classes){this._columnClasses=classes.split(" ")}ngOnInit(){this.gridService?this.subscription=this.gridService.gridObservable.subscribe((isCssGrid=>{this.isCssGrid=isCssGrid,this.updateColumnClasses()})):this.updateColumnClasses()}ngOnChanges(){this.updateColumnClasses()}ngOnDestroy(){this.subscription.unsubscribe()}updateColumnClasses(){try{this._columnClasses=[];const columnKeys=Object.keys(this.columnNumbers);this.isCssGrid?(this._columnClasses.push("cds--css-grid-column"),this.columnHang&&this._columnClasses.push("cds--grid-column-hang"),columnKeys.forEach((key=>{"auto"===this.columnNumbers[key]?this._columnClasses.push(`cds--${key}:col-span-auto`):"object"==typeof this.columnNumbers[key]?(this.columnNumbers[key].start&&this._columnClasses.push(`cds--${key}:col-start-${this.columnNumbers[key].start}`),this.columnNumbers[key].end&&this._columnClasses.push(`cds--${key}:col-end-${this.columnNumbers[key].end}`),this.columnNumbers[key].span&&this._columnClasses.push(`cds--${key}:col-span-${this.columnNumbers[key].span}`)):this._columnClasses.push(`cds--${key}:col-span-${this.columnNumbers[key]}`)})),Object.keys(this.offsets).forEach((key=>{this._columnClasses.push(`cds--${key}:col-start-${this.offsets[key]}`)}))):(columnKeys.length<=0&&this._columnClasses.push("cds--col"),columnKeys.forEach((key=>{"nobreak"===this.columnNumbers[key]?this._columnClasses.push(`cds--col-${key}`):this._columnClasses.push(`cds--col-${key}-${this.columnNumbers[key]}`)})),Object.keys(this.offsets).forEach((key=>{this._columnClasses.push(`cds--offset-${key}-${this.offsets[key]}`)})))}catch(err){console.error(`Malformed \`offsets\` or \`columnNumbers\`: ${err}`)}this.class&&this._columnClasses.push(this.class)}};ColumnDirective.ctorParameters=()=>[{type:GridService,decorators:[{type:core.Optional}]}],ColumnDirective.propDecorators={columnClasses:[{type:core.HostBinding,args:["class"]}],class:[{type:core.Input}],columnNumbers:[{type:core.Input}],offsets:[{type:core.Input}],columnHang:[{type:core.Input}]},ColumnDirective=(0,tslib_es6.gn)([(0,core.Directive)({selector:"[cdsCol], [ibmCol]"})],ColumnDirective);let RowDirective=class RowDirective{constructor(){this.baseClass=!0,this.condensed=!1,this.narrow=!1}};RowDirective.propDecorators={baseClass:[{type:core.HostBinding,args:["class.cds--row"]}],condensed:[{type:core.HostBinding,args:["class.cds--row--condensed"]},{type:core.Input}],narrow:[{type:core.HostBinding,args:["class.cds--row--narrow"]},{type:core.Input}]},RowDirective=(0,tslib_es6.gn)([(0,core.Directive)({selector:"[cdsRow], [ibmRow]"})],RowDirective);let GridDirective=class GridDirective{constructor(gridService){this.gridService=gridService,this.condensed=!1,this.narrow=!1,this.fullWidth=!1,this.cssGridEnabled=!1,this.isSubgrid=!1,this.subscription=new Subscription.w0}set useCssGrid(enable){this.cssGridEnabled=enable,this.gridService.updateGridType(enable)}get flexGrid(){return!this.cssGridEnabled}get flexCondensed(){return!this.cssGridEnabled&&this.condensed}get flexNarrow(){return!this.cssGridEnabled&&this.narrow}get flexFullWidth(){return!this.cssGridEnabled&&this.fullWidth}get ccsGrid(){return this.cssGridEnabled&&!this.isSubgrid}get ccsCondensed(){return this.cssGridEnabled&&!this.isSubgrid&&this.condensed}get ccsNarrow(){return this.cssGridEnabled&&!this.isSubgrid&&this.narrow}get ccsFullWidth(){return this.cssGridEnabled&&!this.isSubgrid&&this.fullWidth}get subGrid(){return this.cssGridEnabled&&this.isSubgrid}get subCondensed(){return this.cssGridEnabled&&this.isSubgrid&&this.condensed}get subNarrow(){return this.cssGridEnabled&&this.isSubgrid&&this.narrow}get subFullWidth(){return this.cssGridEnabled&&this.isSubgrid&&this.fullWidth}ngOnInit(){this.subscription=this.gridService.gridObservable.subscribe((isCssGrid=>{this.cssGridEnabled=isCssGrid}))}set cssGridChildren(list){this.cssGridEnabled&&list.forEach((grid=>{grid!==this&&(grid.isSubgrid=!0)}))}ngOnDestroy(){this.subscription.unsubscribe()}};GridDirective.ctorParameters=()=>[{type:GridService}],GridDirective.propDecorators={condensed:[{type:core.Input}],narrow:[{type:core.Input}],fullWidth:[{type:core.Input}],useCssGrid:[{type:core.Input}],flexGrid:[{type:core.HostBinding,args:["class.cds--grid"]}],flexCondensed:[{type:core.HostBinding,args:["class.cds--grid--condensed"]}],flexNarrow:[{type:core.HostBinding,args:["class.cds--grid--narrow"]}],flexFullWidth:[{type:core.HostBinding,args:["class.cds--grid--full-width"]}],ccsGrid:[{type:core.HostBinding,args:["class.cds--css-grid"]}],ccsCondensed:[{type:core.HostBinding,args:["class.cds--css-grid--condensed"]}],ccsNarrow:[{type:core.HostBinding,args:["class.cds--css-grid--narrow"]}],ccsFullWidth:[{type:core.HostBinding,args:["class.cds--css-grid--full-width"]}],subGrid:[{type:core.HostBinding,args:["class.cds--subgrid"]}],subCondensed:[{type:core.HostBinding,args:["class.cds--subgrid--condensed"]}],subNarrow:[{type:core.HostBinding,args:["class.cds--subgrid--narrow"]}],subFullWidth:[{type:core.HostBinding,args:["class.cds--subgrid--wide"]}],cssGridChildren:[{type:core.ContentChildren,args:[GridDirective,{descendants:!0}]}]},GridDirective=(0,tslib_es6.gn)([(0,core.Directive)({selector:"[cdsGrid], [ibmGrid]",providers:[{provide:GridService,deps:[[new core.Optional,new core.SkipSelf,GridService]],useFactory:parentService=>parentService||new GridService}]})],GridDirective);let GridModule=class GridModule{};GridModule=(0,tslib_es6.gn)([(0,core.NgModule)({declarations:[ColumnDirective,GridDirective,RowDirective],exports:[ColumnDirective,GridDirective,RowDirective],providers:[GridService],imports:[common.CommonModule]})],GridModule)},"./node_modules/@storybook/angular/dist/client/argsToTemplate.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.argsToTemplate=void 0,exports.argsToTemplate=function argsToTemplate(args,options={}){const includeSet=options.include?new Set(options.include):null,excludeSet=options.exclude?new Set(options.exclude):null;return Object.entries(args).filter((([key])=>void 0!==args[key])).filter((([key])=>includeSet?includeSet.has(key):!excludeSet||!excludeSet.has(key))).map((([key,value])=>"function"==typeof value?`(${key})="${key}($event)"`:`[${key}]="${key}"`)).join(" ")}},"./node_modules/@storybook/angular/dist/client/decorators.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.componentWrapperDecorator=exports.applicationConfig=exports.moduleMetadata=void 0;const ComputesTemplateFromComponent_1=__webpack_require__("./node_modules/@storybook/angular/dist/client/angular-beta/ComputesTemplateFromComponent.js"),NgComponentAnalyzer_1=__webpack_require__("./node_modules/@storybook/angular/dist/client/angular-beta/utils/NgComponentAnalyzer.js");exports.moduleMetadata=metadata=>storyFn=>{const story=storyFn(),storyMetadata=story.moduleMetadata||{};return metadata=metadata||{},{...story,moduleMetadata:{declarations:[...metadata.declarations||[],...storyMetadata.declarations||[]],entryComponents:[...metadata.entryComponents||[],...storyMetadata.entryComponents||[]],imports:[...metadata.imports||[],...storyMetadata.imports||[]],schemas:[...metadata.schemas||[],...storyMetadata.schemas||[]],providers:[...metadata.providers||[],...storyMetadata.providers||[]]}}},exports.applicationConfig=function applicationConfig(config){return storyFn=>{const story=storyFn(),storyConfig=story.applicationConfig;return{...story,applicationConfig:storyConfig||config?{...config,...storyConfig,providers:[...config?.providers||[],...storyConfig?.providers||[]]}:void 0}}};exports.componentWrapperDecorator=(element,props)=>(storyFn,storyContext)=>{const story=storyFn(),currentProps="function"==typeof props?props(storyContext):props,template=(0,NgComponentAnalyzer_1.isComponent)(element)?(0,ComputesTemplateFromComponent_1.computesTemplateFromComponent)(element,currentProps??{},story.template):element(story.template);return{...story,template,...currentProps||story.props?{props:{...currentProps,...story.props}}:{}}}},"./node_modules/@storybook/angular/dist/client/index.js":function(__unused_webpack_module,exports,__webpack_require__){var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports){for(var p in m)"default"===p||Object.prototype.hasOwnProperty.call(exports,p)||__createBinding(exports,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.argsToTemplate=exports.applicationConfig=exports.componentWrapperDecorator=exports.moduleMetadata=void 0,__webpack_require__("./node_modules/@storybook/angular/dist/client/globals.js"),__exportStar(__webpack_require__("./node_modules/@storybook/angular/dist/client/public-api.js"),exports),__exportStar(__webpack_require__("./node_modules/@storybook/angular/dist/client/public-types.js"),exports);var decorators_1=__webpack_require__("./node_modules/@storybook/angular/dist/client/decorators.js");Object.defineProperty(exports,"moduleMetadata",{enumerable:!0,get:function(){return decorators_1.moduleMetadata}}),Object.defineProperty(exports,"componentWrapperDecorator",{enumerable:!0,get:function(){return decorators_1.componentWrapperDecorator}}),Object.defineProperty(exports,"applicationConfig",{enumerable:!0,get:function(){return decorators_1.applicationConfig}});var argsToTemplate_1=__webpack_require__("./node_modules/@storybook/angular/dist/client/argsToTemplate.js");Object.defineProperty(exports,"argsToTemplate",{enumerable:!0,get:function(){return argsToTemplate_1.argsToTemplate}})},"./node_modules/@storybook/angular/dist/client/public-api.js":function(__unused_webpack_module,exports,__webpack_require__){var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports){for(var p in m)"default"===p||Object.prototype.hasOwnProperty.call(exports,p)||__createBinding(exports,m,p)},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.raw=exports.forceReRender=exports.configure=exports.storiesOf=void 0;const preview_api_1=__webpack_require__("@storybook/preview-api"),render_1=__webpack_require__("./node_modules/@storybook/angular/dist/client/render.js"),decorateStory_1=__importDefault(__webpack_require__("./node_modules/@storybook/angular/dist/client/decorateStory.js"));__exportStar(__webpack_require__("./node_modules/@storybook/angular/dist/client/public-types.js"),exports);const api=(0,preview_api_1.start)(render_1.renderToCanvas,{decorateStory:decorateStory_1.default,render:render_1.render});exports.storiesOf=(kind,m)=>api.clientApi.storiesOf(kind,m).addParameters({renderer:"angular"});exports.configure=(...args)=>api.configure("angular",...args),exports.forceReRender=api.forceReRender,exports.raw=api.clientApi.raw},"./node_modules/@storybook/angular/dist/client/public-types.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0})},"./node_modules/@storybook/angular/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{var _client_index__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/angular/dist/client/index.js");__webpack_require__.o(_client_index__WEBPACK_IMPORTED_MODULE_0__,"applicationConfig")&&__webpack_require__.d(__webpack_exports__,{applicationConfig:function(){return _client_index__WEBPACK_IMPORTED_MODULE_0__.applicationConfig}}),__webpack_require__.o(_client_index__WEBPACK_IMPORTED_MODULE_0__,"componentWrapperDecorator")&&__webpack_require__.d(__webpack_exports__,{componentWrapperDecorator:function(){return _client_index__WEBPACK_IMPORTED_MODULE_0__.componentWrapperDecorator}}),__webpack_require__.o(_client_index__WEBPACK_IMPORTED_MODULE_0__,"moduleMetadata")&&__webpack_require__.d(__webpack_exports__,{moduleMetadata:function(){return _client_index__WEBPACK_IMPORTED_MODULE_0__.moduleMetadata}})},"./src/grid/grid.stories.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Basic:()=>Basic,CondensedRow:()=>CondensedRow,NarrowRow:()=>NarrowRow,Offset:()=>Offset,Responsive:()=>Responsive,__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/grid/index.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Components/Grid/Flex",decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_0__.moduleMetadata)({imports:[___WEBPACK_IMPORTED_MODULE_1__.zE]}),(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_0__.componentWrapperDecorator)((story=>`<div class="flex-grid-story">${story}</div>`))],component:___WEBPACK_IMPORTED_MODULE_1__.lj,subcomponents:{RowDirective:___WEBPACK_IMPORTED_MODULE_1__.vZ,ColumnDirective:___WEBPACK_IMPORTED_MODULE_1__.iK},argTypes:{useCssGrid:{control:!1}}},Basic=(args=>({props:args,template:'\n <div\n cdsGrid\n [condensed]="condensed"\n [fullWidth]="fullWidth"\n [narrow]="narrow">\n <div cdsRow>\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n </div>\n </div>\n '})).bind({}),Responsive=(args=>({props:args,template:'\n <div cdsGrid [condensed]="gridCondensed">\n <div\n cdsRow\n [condensed]="rowCondensed">\n <div cdsCol class="custom-class-example" [columnNumbers]="{sm: 2, md: 4, lg: 6}">\n <div class="inside">\n <p>Small: Span 2 of 4</p>\n <p>Medium: Span 4 of 8</p>\n <p>Large: Span 6 of 16</p>\n </div>\n </div>\n <div cdsCol class="custom-class-example" [columnNumbers]="{sm: 2, md: 2, lg: 3}">\n <div class="inside">\n <p>Small: Span 2 of 4</p>\n <p>Medium: Span 2 of 8</p>\n <p>Large: Span 3 of 16</p>\n </div>\n </div>\n <div cdsCol class="custom-class-example" [columnNumbers]="{sm: 0, md: 2, lg: 3}">\n <div class="inside">\n <p>Small: Span 0 of 4</p>\n <p>Medium: Span 2 of 8</p>\n <p>Large: Span 3 of 16</p>\n </div>\n </div>\n </div>\n </div>\n '})).bind({}),Offset=(args=>({props:args,template:'\n <div\n cdsGrid\n [condensed]="condensed"\n [fullWidth]="fullWidth"\n [narrow]="narrow">\n <div cdsRow>\n <div cdsCol class="custom-class-example" [columnNumbers]="{sm: 1}" [offsets]="{sm: 3}">\n <div class="inside">Small: Offset 3</div>\n </div>\n <div cdsCol class="custom-class-example" [columnNumbers]="{sm: 2}" [offsets]="{sm: 2}">\n <div class="inside">Small: Offset 2</div>\n </div>\n <div cdsCol class="custom-class-example" [columnNumbers]="{sm: 3}" [offsets]="{sm: 1}">\n <div class="inside">Small: Offset 1</div>\n </div>\n <div cdsCol class="custom-class-example" [columnNumbers]="{sm: 4}" [offsets]="{sm: 0}">\n <div class="inside">Small: Offset -</div>\n </div>\n </div>\n </div>\n '})).bind({}),CondensedRow=(args=>({props:args,template:'\n <div\n cdsGrid\n [condensed]="condensed"\n [fullWidth]="fullWidth"\n [narrow]="narrow">\n <div cdsRow [condensed]="true">\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n </div>\n </div>\n '})).bind({}),NarrowRow=(args=>({props:args,template:'\n <div\n cdsGrid\n [condensed]="condensed"\n [fullWidth]="fullWidth"\n [narrow]="narrow">\n <div cdsRow [condensed]="true" [narrow]="true">\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n </div>\n </div>\n '})).bind({});Basic.parameters={...Basic.parameters,docs:{...Basic.parameters?.docs,source:{originalSource:'args => ({\n props: args,\n template: `\n <div\n cdsGrid\n [condensed]="condensed"\n [fullWidth]="fullWidth"\n [narrow]="narrow">\n <div cdsRow>\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n </div>\n </div>\n `\n})',...Basic.parameters?.docs?.source}}},Responsive.parameters={...Responsive.parameters,docs:{...Responsive.parameters?.docs,source:{originalSource:'args => ({\n props: args,\n template: `\n <div cdsGrid [condensed]="gridCondensed">\n <div\n cdsRow\n [condensed]="rowCondensed">\n <div cdsCol class="custom-class-example" [columnNumbers]="{sm: 2, md: 4, lg: 6}">\n <div class="inside">\n <p>Small: Span 2 of 4</p>\n <p>Medium: Span 4 of 8</p>\n <p>Large: Span 6 of 16</p>\n </div>\n </div>\n <div cdsCol class="custom-class-example" [columnNumbers]="{sm: 2, md: 2, lg: 3}">\n <div class="inside">\n <p>Small: Span 2 of 4</p>\n <p>Medium: Span 2 of 8</p>\n <p>Large: Span 3 of 16</p>\n </div>\n </div>\n <div cdsCol class="custom-class-example" [columnNumbers]="{sm: 0, md: 2, lg: 3}">\n <div class="inside">\n <p>Small: Span 0 of 4</p>\n <p>Medium: Span 2 of 8</p>\n <p>Large: Span 3 of 16</p>\n </div>\n </div>\n </div>\n </div>\n `\n})',...Responsive.parameters?.docs?.source}}},Offset.parameters={...Offset.parameters,docs:{...Offset.parameters?.docs,source:{originalSource:'args => ({\n props: args,\n template: `\n <div\n cdsGrid\n [condensed]="condensed"\n [fullWidth]="fullWidth"\n [narrow]="narrow">\n <div cdsRow>\n <div cdsCol class="custom-class-example" [columnNumbers]="{sm: 1}" [offsets]="{sm: 3}">\n <div class="inside">Small: Offset 3</div>\n </div>\n <div cdsCol class="custom-class-example" [columnNumbers]="{sm: 2}" [offsets]="{sm: 2}">\n <div class="inside">Small: Offset 2</div>\n </div>\n <div cdsCol class="custom-class-example" [columnNumbers]="{sm: 3}" [offsets]="{sm: 1}">\n <div class="inside">Small: Offset 1</div>\n </div>\n <div cdsCol class="custom-class-example" [columnNumbers]="{sm: 4}" [offsets]="{sm: 0}">\n <div class="inside">Small: Offset -</div>\n </div>\n </div>\n </div>\n `\n})',...Offset.parameters?.docs?.source}}},CondensedRow.parameters={...CondensedRow.parameters,docs:{...CondensedRow.parameters?.docs,source:{originalSource:'args => ({\n props: args,\n template: `\n <div\n cdsGrid\n [condensed]="condensed"\n [fullWidth]="fullWidth"\n [narrow]="narrow">\n <div cdsRow [condensed]="true">\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n </div>\n </div>\n `\n})',...CondensedRow.parameters?.docs?.source}}},NarrowRow.parameters={...NarrowRow.parameters,docs:{...NarrowRow.parameters?.docs,source:{originalSource:'args => ({\n props: args,\n template: `\n <div\n cdsGrid\n [condensed]="condensed"\n [fullWidth]="fullWidth"\n [narrow]="narrow">\n <div cdsRow [condensed]="true" [narrow]="true">\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n <div cdsCol class="custom-class-example">\n <div class="inside">Span 25%</div>\n </div>\n </div>\n </div>\n `\n})',...NarrowRow.parameters?.docs?.source}}};const __namedExportsOrder=["Basic","Responsive","Offset","CondensedRow","NarrowRow"]}}]);
|
|
@@ -348,8 +348,8 @@
|
|
|
348
348
|
window['DOCS_OPTIONS'] = {"defaultName":"Docs","autodocs":true};</script><script type="module">import './sb-preview/runtime.js';
|
|
349
349
|
|
|
350
350
|
|
|
351
|
-
import './runtime~main.
|
|
351
|
+
import './runtime~main.a0aa6f63.iframe.bundle.js';
|
|
352
352
|
|
|
353
|
-
import './5478.
|
|
353
|
+
import './5478.eee24e20.iframe.bundle.js';
|
|
354
354
|
|
|
355
|
-
import './main.
|
|
355
|
+
import './main.e96ab57c.iframe.bundle.js';</script></body></html>
|
package/docs/storybook/main.css
CHANGED
|
@@ -5603,8 +5603,7 @@ li.cds--accordion__item--disabled:last-of-type {
|
|
|
5603
5603
|
.cds--slug .cds--slug-actions {
|
|
5604
5604
|
position: absolute;
|
|
5605
5605
|
justify-content: flex-end;
|
|
5606
|
-
|
|
5607
|
-
backdrop-filter: blur(85px);
|
|
5606
|
+
backdrop-filter: blur(85px);
|
|
5608
5607
|
background: rgba(0, 0, 0, 0.01);
|
|
5609
5608
|
border-end-end-radius: 0.5rem;
|
|
5610
5609
|
border-end-start-radius: 0.5rem;
|
|
@@ -6797,8 +6796,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
6797
6796
|
@media print {
|
|
6798
6797
|
.cds--checkbox-label::before,
|
|
6799
6798
|
.cds--checkbox-label::after {
|
|
6800
|
-
|
|
6801
|
-
print-color-adjust: exact;
|
|
6799
|
+
print-color-adjust: exact;
|
|
6802
6800
|
}
|
|
6803
6801
|
}
|
|
6804
6802
|
.cds--checkbox-label::before {
|
|
@@ -10773,8 +10771,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
10773
10771
|
}
|
|
10774
10772
|
@media print {
|
|
10775
10773
|
.cds--radio-button:checked + .cds--radio-button__label .cds--radio-button__appearance::before {
|
|
10776
|
-
|
|
10777
|
-
print-color-adjust: exact;
|
|
10774
|
+
print-color-adjust: exact;
|
|
10778
10775
|
}
|
|
10779
10776
|
}
|
|
10780
10777
|
.cds--radio-button:disabled + .cds--radio-button__label {
|