carbon-components-angular 5.10.0 → 5.10.2
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/Radio.html +6 -16
- package/docs/documentation/components/RadioGroup.html +460 -98
- package/docs/documentation/coverage.html +3 -3
- package/docs/documentation/graph/dependencies.svg +2138 -2132
- package/docs/documentation/js/menu-wc.js +3 -3
- package/docs/documentation/js/menu-wc_es5.js +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/DatePickerModule/dependencies.svg +39 -39
- package/docs/documentation/modules/DatePickerModule.html +39 -39
- package/docs/documentation/modules/FileUploaderModule/dependencies.svg +34 -34
- package/docs/documentation/modules/FileUploaderModule.html +34 -34
- package/docs/documentation/modules/LoadingModule/dependencies.svg +4 -4
- package/docs/documentation/modules/LoadingModule.html +4 -4
- package/docs/documentation/modules/ProgressIndicatorModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ProgressIndicatorModule.html +4 -4
- package/docs/documentation/modules/RadioModule/dependencies.svg +54 -38
- package/docs/documentation/modules/RadioModule.html +67 -39
- 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/SliderModule/dependencies.svg +4 -4
- package/docs/documentation/modules/SliderModule.html +4 -4
- package/docs/documentation/modules/TableModule/dependencies.svg +4 -4
- package/docs/documentation/modules/TableModule.html +4 -4
- package/docs/documentation/modules/TabsModule/dependencies.svg +68 -68
- package/docs/documentation/modules/TabsModule.html +68 -68
- package/docs/documentation/modules/ThemeModule/dependencies.svg +13 -13
- package/docs/documentation/modules/ThemeModule.html +13 -13
- package/docs/documentation/modules/TimePickerModule/dependencies.svg +26 -26
- package/docs/documentation/modules/TimePickerModule.html +26 -26
- package/docs/documentation/modules/ToggleModule/dependencies.svg +20 -20
- package/docs/documentation/modules/ToggleModule.html +20 -20
- package/docs/documentation/modules/TooltipModule/dependencies.svg +29 -29
- package/docs/documentation/modules/TooltipModule.html +29 -29
- package/docs/documentation/modules/UIShellModule/dependencies.svg +4 -4
- package/docs/documentation/modules/UIShellModule.html +4 -4
- package/docs/documentation/overview.html +2138 -2132
- package/docs/documentation.json +157 -64
- package/docs/storybook/1895.69e2c275.iframe.bundle.js +1 -0
- package/docs/storybook/{795.2461bc53.iframe.bundle.js → 795.c2864771.iframe.bundle.js} +3 -3
- package/docs/storybook/{795.2461bc53.iframe.bundle.js.map → 795.c2864771.iframe.bundle.js.map} +1 -1
- package/docs/storybook/9115.e3ed2f59.iframe.bundle.js +1 -0
- package/docs/storybook/iframe.html +3 -3
- package/docs/storybook/main.css +892 -248
- package/docs/storybook/{main.5099962e.iframe.bundle.js → main.e1ee5785.iframe.bundle.js} +1 -1
- package/docs/storybook/project.json +1 -1
- package/docs/storybook/radio-radio-stories.b67e94b9.iframe.bundle.js +1 -0
- package/docs/storybook/{runtime~main.593529e2.iframe.bundle.js → runtime~main.cd9ec3bb.iframe.bundle.js} +1 -1
- package/esm2020/i18n/en.mjs +8 -69
- package/esm2020/radio/radio-group.component.mjs +121 -21
- package/esm2020/radio/radio.component.mjs +3 -11
- package/esm2020/radio/radio.module.mjs +8 -4
- package/fesm2015/carbon-components-angular-i18n.mjs +7 -68
- package/fesm2015/carbon-components-angular-i18n.mjs.map +1 -1
- package/fesm2015/carbon-components-angular-radio.mjs +129 -33
- package/fesm2015/carbon-components-angular-radio.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-i18n.mjs +7 -68
- package/fesm2020/carbon-components-angular-i18n.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-radio.mjs +129 -33
- package/fesm2020/carbon-components-angular-radio.mjs.map +1 -1
- package/i18n/en.d.ts +0 -47
- package/i18n/i18n.service.d.ts +1 -54
- package/package.json +1 -1
- package/radio/radio-group.component.d.ts +46 -24
- package/radio/radio.component.d.ts +1 -1
- package/radio/radio.module.d.ts +2 -1
- package/docs/storybook/1895.d4241266.iframe.bundle.js +0 -1
- package/docs/storybook/9115.e6e0100b.iframe.bundle.js +0 -1
- package/docs/storybook/radio-radio-stories.6838bad5.iframe.bundle.js +0 -1
- /package/docs/storybook/{795.2461bc53.iframe.bundle.js.LICENSE.txt → 795.c2864771.iframe.bundle.js.LICENSE.txt} +0 -0
package/docs/storybook/{795.2461bc53.iframe.bundle.js.map → 795.c2864771.iframe.bundle.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"795.2461bc53.iframe.bundle.js","mappings":";;AAMA;;;;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;;;;;;AC3SA;;;;;;;AAWA;;;;;;;AAWA","sources":["webpack://carbon-components-angular/./node_modules/@storybook/addon-outline/dist/preview.mjs","webpack://carbon-components-angular/./node_modules/@storybook/angular/dist/client/angular-beta/utils/PropertyExtractor.js"],"sourcesContent":["import { PARAM_KEY } from './chunk-2DMOCDBJ.mjs';\nimport { 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);}};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] = PropertyExtractor.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 } = PropertyExtractor.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 && 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":"795.c2864771.iframe.bundle.js","mappings":";;AAMA;;;;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;;;;;;AC3SA;;;;;;;AAWA;;;;;;;AAWA","sources":["webpack://carbon-components-angular/./node_modules/@storybook/addon-outline/dist/preview.mjs","webpack://carbon-components-angular/./node_modules/@storybook/angular/dist/client/angular-beta/utils/PropertyExtractor.js"],"sourcesContent":["import { PARAM_KEY } from './chunk-2DMOCDBJ.mjs';\nimport { 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);}};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] = PropertyExtractor.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 } = PropertyExtractor.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 && 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([[9115],{"./src/i18n/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{oc:()=>I18n,LU:()=>I18nModule});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.js"),core=__webpack_require__("./node_modules/@angular/core/fesm2020/core.mjs"),BehaviorSubject=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js"),iif=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/observable/iif.js"),isObservable=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/util/isObservable.js"),map=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/operators/map.js"),utils=__webpack_require__("./src/utils/index.ts");const en={BREADCRUMB:{LABEL:"Breadcrumb"},CODE_SNIPPET:{CODE_SNIPPET_TEXT:"Code Snippet Text",SHOW_MORE:"Show more",SHOW_LESS:"Show less",SHOW_MORE_ICON:"Show more icon",COPY_CODE:"Copy code",COPIED:"Copied!"},COMBOBOX:{PLACEHOLDER:"Filter...",CLEAR_SELECTIONS:"Clear all selected items",CLEAR_SELECTED:"Clear selected item",A11Y:{OPEN_MENU:"Open menu",CLOSE_MENU:"Close menu",CLEAR_SELECTIONS:"Clear all selected items",CLEAR_SELECTED:"Clear Selection"}},DROPDOWN:{OPEN:"Open menu",SELECTED:"Selected",CLEAR:"Clear all selected items",FILTER:{SELECTED_ONLY:"Show selected only",SEARCH:"Search",NO_RESULTS:"No search results",RESET_SEARCH:"Reset search"}},DROPDOWN_LIST:{LABEL:"Listbox"},FILE_UPLOADER:{CHECKMARK:"Checkmark",OPEN:"Add file",REMOVE_BUTTON:"Close button"},LOADING:{TITLE:"Loading"},MODAL:{CLOSE:"Close modal"},NOTIFICATION:{CLOSE_BUTTON:"Close alert notification"},NUMBER:{INCREMENT:"Increment value",DECREMENT:"Decrement value"},OVERFLOW_MENU:{OVERFLOW:"Overflow"},SEARCH:{LABEL:"Search",PLACEHOLDER:"Search",CLEAR_BUTTON:"Clear search input"},PAGINATION:{ITEMS_PER_PAGE:"Items per page:",OPEN_LIST_OF_OPTIONS:"Open list of options",BACKWARD:"Backward",FORWARD:"Forward",TOTAL_ITEMS_UNKNOWN:"{{start}}-{{end}} items",TOTAL_ITEMS:"{{start}}-{{end}} of {{total}} items",TOTAL_ITEM:"{{start}}-{{end}} of {{total}} item",PAGE:"page",OF_LAST_PAGES:"of {{last}} pages",OF_LAST_PAGE:"of {{last}} page",NEXT:"Next",PREVIOUS:"Previous",SELECT_ARIA:"Select page number"},PROGRESS_INDICATOR:{CURRENT:"Current",INCOMPLETE:"Incomplete",COMPLETE:"Complete",INVALID:"Invalid"},TABLE:{FILTER:"Filter",END_OF_DATA:"You've reached the end of your content",SCROLL_TOP:"Scroll to top",CHECKBOX_HEADER:"Select all rows",CHECKBOX_ROW:"Select {{value}}",EXPAND_BUTTON:"Expand row",SORT_DESCENDING:"Sort rows by this header in descending order",SORT_ASCENDING:"Sort rows by this header in ascending order",ROW:"row"},TABLE_TOOLBAR:{ACTION_BAR:"Table action bar",BATCH_TEXT:"",BATCH_TEXT_SINGLE:"1 item selected",BATCH_TEXT_MULTIPLE:"{{count}} items selected",CANCEL:"Cancel"},TABS:{BUTTON_ARIA_LEFT:"Go to the previous tab",BUTTON_ARIA_RIGHT:"Go to the next tab",HEADER_ARIA_LABEL:"List of tabs"},TILES:{TILE:"tile",EXPAND:"Expand",COLLAPSE:"Collapse"},TOGGLE:{OFF:"Off",ON:"On"},UI_SHELL:{SKIP_TO:"Skip to content",HEADER:{OPEN_MENU:"Open menu",CLOSE_MENU:"Close menu"},SIDE_NAV:{TOGGLE_OPEN:"Open",TOGGLE_CLOSE:"Close"}}},replace=(subject,variables)=>subject.pipe((0,map.U)((str=>{const keys=Object.keys(variables);for(const key of keys){const value=variables[key];str=str.replace(new RegExp(`{{\\s*${key}\\s*}}`,"g"),value)}return str})));class Overridable{constructor(path,i18n){this.path=path,this.i18n=i18n,this.baseTranslation=this.i18n.get(this.path),this.isOverridden=!1;const value=this.i18n.getValueFromPath(this.path);this.$override=new BehaviorSubject.X(value),this._value=value}get value(){return this._value}set value(v){this.override(v)}get subject(){return(0,iif.s)((()=>this.isOverridden),this.$override,this.baseTranslation)}override(value){this.isOverridden=!0,this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this._value=value,(0,isObservable.b)(value)?this.subscription=value.subscribe((v=>{this.$override.next(v)})):this.$override.next(value)}}let I18n=class I18n{constructor(){this.translationStrings=en,this.translations=new Map,this.locale=new BehaviorSubject.X("en")}setLocale(language,strings){this.locale.next(language),strings&&this.set(strings)}getLocale(){return this.locale.value}getLocaleObservable(){return this.locale.asObservable()}set(strings){this.translationStrings=(0,utils.TS)({},en,strings);const translations=Array.from(this.translations);for(const[path,subject]of translations)subject.next(this.getValueFromPath(path))}get(path){return path?this.getSubject(path):this.translationStrings}getMultiple(partialPath){const values=this.getValueFromPath(partialPath),subjects={};for(const key of Object.keys(values))values[key]===Object(values[key])?subjects[key]=this.getMultiple(`${partialPath}.${key}`):subjects[key]=this.getSubject(`${partialPath}.${key}`);return subjects}getOverridable(path){return new Overridable(path,this)}replace(subject,variables){return replace(subject,variables)}getValueFromPath(path){let value=this.translationStrings;for(const segment of path.split(".")){if(void 0===value[segment]||null===value[segment])throw new Error(`no key ${segment} at ${path}`);value=value[segment]}return value}getSubject(path){try{const value=this.getValueFromPath(path);if(this.translations.has(path))return this.translations.get(path);const translation=new BehaviorSubject.X(value);return this.translations.set(path,translation),translation}catch(error){console.error(error)}}};I18n=(0,tslib_es6.gn)([(0,core.Injectable)()],I18n);let ReplacePipe=class ReplacePipe{transform(value,variables){return replace(value,variables)}};ReplacePipe=(0,tslib_es6.gn)([(0,core.Pipe)({name:"i18nReplace"})],ReplacePipe);const I18N_SERVICE_PROVIDER={provide:I18n,deps:[[new core.Optional,new core.SkipSelf,I18n]],useFactory:function I18N_SERVICE_PROVIDER_FACTORY(parentService){return parentService||new I18n}};let I18nModule=class I18nModule{};I18nModule=(0,tslib_es6.gn)([(0,core.NgModule)({declarations:[ReplacePipe],exports:[ReplacePipe],providers:[I18n,I18N_SERVICE_PROVIDER]})],I18nModule)},"./src/utils/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{NV:()=>AnimationFrameService,Zg:()=>DocumentService,d2:()=>ElementService,PO:()=>EventService,As:()=>UtilsModule,d9:()=>clone,_K:()=>closestAttr,O3:()=>getScrollableParents,np:()=>getScrollbarWidth,OQ:()=>hasScrollableParents,TS:()=>object_merge});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.js"),core=__webpack_require__("./node_modules/@angular/core/fesm2020/core.mjs"),Subject=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/Subject.js"),from=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/observable/from.js");let AnimationFrameServiceSingleton=class AnimationFrameServiceSingleton{constructor(ngZone){this.ngZone=ngZone,this.frameSource=new Subject.x,this.tick=this.frameSource.asObservable(),this.ngZone.runOutsideAngular((()=>{this.animationFrameId=requestAnimationFrame(this.doTick.bind(this))}))}ngOnDestroy(){cancelAnimationFrame(this.animationFrameId)}doTick(frame){this.frameSource.next(frame),this.ngZone.runOutsideAngular((()=>{requestAnimationFrame(this.doTick.bind(this))}))}};AnimationFrameServiceSingleton.ctorParameters=()=>[{type:core.NgZone}],AnimationFrameServiceSingleton=(0,tslib_es6.gn)([(0,core.Injectable)()],AnimationFrameServiceSingleton);let AnimationFrameService=class AnimationFrameService{constructor(singleton){this.singleton=singleton,this.tick=(0,from.D)(this.singleton.tick)}};AnimationFrameService.ctorParameters=()=>[{type:AnimationFrameServiceSingleton}],AnimationFrameService=(0,tslib_es6.gn)([(0,core.Injectable)()],AnimationFrameService);const object_merge=(target,...objects)=>{for(const object of objects)for(const key in object)object.hasOwnProperty(key)&&(object[key]instanceof Object?(target[key]||(target[key]={}),target[key]=object_merge(target[key],object[key])):target[key]=object[key]);return target};__webpack_require__("./node_modules/@carbon/utils-position/index.js");const isScrollableElement=element=>{const computedStyle=getComputedStyle(element);return"auto"===computedStyle.overflow||"scroll"===computedStyle.overflow||"auto"===computedStyle["overflow-y"]||"scroll"===computedStyle["overflow-y"]||"auto"===computedStyle["overflow-x"]||"scroll"===computedStyle["overflow-x"]},isVisibleInContainer=(element,container)=>{const elementRect=element.getBoundingClientRect(),containerRect=container.getBoundingClientRect();if("BODY"===container.tagName||"HTML"===container.tagName){const isAboveViewport=elementRect.top<0&&elementRect.top+element.clientHeight<0,isLeftOfViewport=elementRect.left<0,isBelowViewport=elementRect.bottom-element.clientHeight>(window.innerHeight||document.documentElement.clientHeight),isRightOfViewport=elementRect.right>(window.innerWidth||document.documentElement.clientWidth);return!(isAboveViewport||isBelowViewport||isLeftOfViewport||isRightOfViewport)}return elementRect.bottom-element.clientHeight<=containerRect.bottom+(container.offsetHeight-container.clientHeight)/2&&elementRect.top>=-element.clientHeight},getScrollableParents=node=>{const elements=[document.body];for(;node.parentElement&&node!==document.body;)isScrollableElement(node)&&elements.push(node),node=node.parentElement;return elements},hasScrollableParents=node=>{for(;node.parentElement&&node!==document.body;){if(isScrollableElement(node))return!0;node=node.parentElement}return!1};function clone(obj){return JSON.parse(JSON.stringify(obj))}function matchesAttr(el,attr,val){const styles=window.getComputedStyle(el);return val.includes(styles[attr])}function closestAttr(s,t,element){let el=element;if(!element)return null;do{if(matchesAttr(el,s,t))return el;el=el.parentElement||el.parentNode}while(null!==el&&1===el.nodeType);return null}var operators_map=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/operators/map.js");let ElementService=class ElementService{constructor(singleton){this.singleton=singleton,this.tick=(0,from.D)(this.singleton.tick)}visibility(target,parentElement=target){const scrollableParents=getScrollableParents(parentElement);return this.tick.pipe((0,operators_map.U)((()=>{for(const parent of scrollableParents)if(!isVisibleInContainer(target,parent))return{visible:!1};return{visible:!0}})))}};ElementService.ctorParameters=()=>[{type:AnimationFrameServiceSingleton}],ElementService=(0,tslib_es6.gn)([(0,core.Injectable)()],ElementService);var Subscription=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/Subscription.js"),Observable=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/Observable.js"),observable_fromEvent=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/observable/fromEvent.js");const getEventObservable=(targetElement,eventType)=>{switch(eventType){case"scroll":case"resize":case"touchstart":case"touchmove":case"touchend":return(0,observable_fromEvent.R)(targetElement,eventType,{passive:!0});default:return(0,observable_fromEvent.R)(targetElement,eventType)}};let DocumentService=class DocumentService{constructor(){this.globalEvents=new Map,this.documentRef=document,this.subscriptions=new Subscription.w0}handleEvent(eventType,callback){this.globalEvents.has(eventType)||(this.documentRef?this.globalEvents.set(eventType,getEventObservable(this.documentRef,eventType)):this.globalEvents.set(eventType,new Observable.y));const observable=this.globalEvents.get(eventType);this.subscriptions.add(observable.subscribe(callback))}handleClick(callback){this.handleEvent("click",callback)}ngOnDestroy(){this.subscriptions.unsubscribe(),this.globalEvents=null}};DocumentService=(0,tslib_es6.gn)([(0,core.Injectable)()],DocumentService);let EventService=class EventService{constructor(documentService){this.documentService=documentService,this.subscriptions=new Subscription.w0,this.targets=new WeakMap}on(targetElement,eventType,callback){this.targets.has(targetElement)||this.targets.set(targetElement,new Map);const eventMap=this.targets.get(targetElement);eventMap.has(eventType)||eventMap.set(eventType,getEventObservable(targetElement,eventType));const subscription=eventMap.get(eventType).subscribe(callback);this.subscriptions.add(subscription)}onDocument(eventType,callback){this.documentService.handleEvent(eventType,callback)}ngOnDestroy(){this.subscriptions.unsubscribe()}};EventService.ctorParameters=()=>[{type:DocumentService}],EventService=(0,tslib_es6.gn)([(0,core.Injectable)()],EventService);const DOCUMENT_SERVICE_PROVIDER={provide:DocumentService,deps:[[new core.Optional,new core.SkipSelf,DocumentService]],useFactory:function DOCUMENT_SERVICE_PROVIDER_FACTORY(parentService){return parentService||new DocumentService}};const ANIMATION_FRAME_SERVICE_SINGLETON_PROVIDER={provide:AnimationFrameServiceSingleton,deps:[[new core.Optional,new core.SkipSelf,AnimationFrameServiceSingleton],core.NgZone],useFactory:function ANIMATION_FRAME_SERVICE_SINGLETON_PROVIDER_FACTORY(parentService,ngZone){return parentService||new AnimationFrameServiceSingleton(ngZone)}};let UtilsModule=class UtilsModule{};UtilsModule=(0,tslib_es6.gn)([(0,core.NgModule)({providers:[DOCUMENT_SERVICE_PROVIDER,ANIMATION_FRAME_SERVICE_SINGLETON_PROVIDER,AnimationFrameServiceSingleton,DocumentService,AnimationFrameService,ElementService,EventService]})],UtilsModule);let _scrollbarWidth=-1;function getScrollbarWidth(){if(_scrollbarWidth>=0)return _scrollbarWidth;const outer=document.createElement("div");outer.style.visibility="hidden",outer.style.width="100px",outer.style.msOverflowStyle="scrollbar",document.body.appendChild(outer);const widthNoScroll=outer.offsetWidth;outer.style.overflow="scroll";const inner=document.createElement("div");inner.style.width="100%",outer.appendChild(inner);const widthWithScroll=inner.offsetWidth;return outer.parentNode.removeChild(outer),_scrollbarWidth=widthNoScroll-widthWithScroll,_scrollbarWidth}}}]);
|
|
@@ -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.cd9ec3bb.iframe.bundle.js';
|
|
352
352
|
|
|
353
|
-
import './795.
|
|
353
|
+
import './795.c2864771.iframe.bundle.js';
|
|
354
354
|
|
|
355
|
-
import './main.
|
|
355
|
+
import './main.e1ee5785.iframe.bundle.js';</script></body></html>
|