carbon-components-angular 5.11.1 → 5.12.0
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/Toggle.html +188 -197
- package/docs/documentation/coverage.html +1 -1
- package/docs/documentation/js/search/search_index.js +2 -2
- package/docs/documentation/modules/CodeSnippetModule/dependencies.svg +4 -4
- package/docs/documentation/modules/CodeSnippetModule.html +4 -4
- package/docs/documentation/modules/DatePickerInputModule/dependencies.svg +38 -42
- package/docs/documentation/modules/DatePickerInputModule.html +38 -42
- package/docs/documentation/modules/FileUploaderModule/dependencies.svg +4 -4
- package/docs/documentation/modules/FileUploaderModule.html +4 -4
- package/docs/documentation/modules/NumberModule/dependencies.svg +4 -4
- package/docs/documentation/modules/NumberModule.html +4 -4
- package/docs/documentation/modules/PanelModule/dependencies.svg +36 -36
- package/docs/documentation/modules/PanelModule.html +36 -36
- package/docs/documentation/modules/RadioModule/dependencies.svg +49 -49
- package/docs/documentation/modules/RadioModule.html +49 -49
- 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/TableModule/dependencies.svg +216 -216
- package/docs/documentation/modules/TableModule.html +216 -216
- package/docs/documentation/modules/TabsModule/dependencies.svg +4 -4
- package/docs/documentation/modules/TabsModule.html +4 -4
- package/docs/documentation/modules/TagModule/dependencies.svg +28 -28
- package/docs/documentation/modules/TagModule.html +28 -28
- package/docs/documentation/modules/ThemeModule/dependencies.svg +13 -13
- package/docs/documentation/modules/ThemeModule.html +13 -13
- package/docs/documentation/modules/TilesModule/dependencies.svg +98 -98
- package/docs/documentation/modules/TilesModule.html +98 -98
- package/docs/documentation/modules/TimePickerModule/dependencies.svg +26 -26
- package/docs/documentation/modules/TimePickerModule.html +26 -26
- package/docs/documentation/modules/TimePickerSelectModule/dependencies.svg +45 -49
- package/docs/documentation/modules/TimePickerSelectModule.html +45 -49
- package/docs/documentation/modules/ToggleModule/dependencies.svg +45 -41
- package/docs/documentation/modules/ToggleModule.html +45 -41
- package/docs/documentation/modules/ToggletipModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ToggletipModule.html +4 -4
- package/docs/documentation/modules/TooltipModule/dependencies.svg +4 -4
- package/docs/documentation/modules/TooltipModule.html +4 -4
- package/docs/documentation/modules/UIShellModule/dependencies.svg +4 -4
- package/docs/documentation/modules/UIShellModule.html +4 -4
- package/docs/documentation.json +55 -68
- package/docs/storybook/{1895.69e2c275.iframe.bundle.js → 1895.f908bfb8.iframe.bundle.js} +1 -1
- package/docs/storybook/iframe.html +2 -2
- package/docs/storybook/{main.3dbeb194.iframe.bundle.js → main.78985516.iframe.bundle.js} +1 -1
- package/docs/storybook/main.css +173 -75
- package/docs/storybook/project.json +1 -1
- package/docs/storybook/{runtime~main.902da3f3.iframe.bundle.js → runtime~main.e61e8f0b.iframe.bundle.js} +1 -1
- package/docs/storybook/toggle-toggle-stories.3f40e3b9.iframe.bundle.js +1 -0
- package/esm2020/toggle/toggle.component.mjs +103 -83
- package/fesm2015/carbon-components-angular-toggle.mjs +102 -82
- package/fesm2015/carbon-components-angular-toggle.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-toggle.mjs +102 -82
- package/fesm2020/carbon-components-angular-toggle.mjs.map +1 -1
- package/package.json +1 -1
- package/toggle/toggle.component.d.ts +3 -2
- package/docs/storybook/toggle-toggle-stories.3af803a8.iframe.bundle.js +0 -1
package/docs/storybook/main.css
CHANGED
|
@@ -2387,104 +2387,104 @@ em {
|
|
|
2387
2387
|
--cds-layout-size-height-context: var(--cds-layout-size-height-xs, 1.5rem);
|
|
2388
2388
|
--cds-layout-size-height: var(--cds-layout-size-height-context);
|
|
2389
2389
|
}
|
|
2390
|
-
.cds--layout-constraint--
|
|
2390
|
+
.cds--layout-constraint--size__default-xs {
|
|
2391
2391
|
--cds-layout-size-height: var(--cds-layout-size-height-context, var(--cds-layout-size-height-xs, 1.5rem));
|
|
2392
2392
|
}
|
|
2393
|
-
.cds--layout-constraint--
|
|
2393
|
+
.cds--layout-constraint--size__min-xs {
|
|
2394
2394
|
--cds-layout-size-height-min: var(--cds-layout-size-height-xs, 1.5rem);
|
|
2395
2395
|
}
|
|
2396
|
-
.cds--layout-constraint--
|
|
2396
|
+
.cds--layout-constraint--size__max-xs {
|
|
2397
2397
|
--cds-layout-size-height-max: var(--cds-layout-size-height-xs, 1.5rem);
|
|
2398
2398
|
}
|
|
2399
2399
|
.cds--layout--size-sm {
|
|
2400
2400
|
--cds-layout-size-height-context: var(--cds-layout-size-height-sm, 2rem);
|
|
2401
2401
|
--cds-layout-size-height: var(--cds-layout-size-height-context);
|
|
2402
2402
|
}
|
|
2403
|
-
.cds--layout-constraint--
|
|
2403
|
+
.cds--layout-constraint--size__default-sm {
|
|
2404
2404
|
--cds-layout-size-height: var(--cds-layout-size-height-context, var(--cds-layout-size-height-sm, 2rem));
|
|
2405
2405
|
}
|
|
2406
|
-
.cds--layout-constraint--
|
|
2406
|
+
.cds--layout-constraint--size__min-sm {
|
|
2407
2407
|
--cds-layout-size-height-min: var(--cds-layout-size-height-sm, 2rem);
|
|
2408
2408
|
}
|
|
2409
|
-
.cds--layout-constraint--
|
|
2409
|
+
.cds--layout-constraint--size__max-sm {
|
|
2410
2410
|
--cds-layout-size-height-max: var(--cds-layout-size-height-sm, 2rem);
|
|
2411
2411
|
}
|
|
2412
2412
|
.cds--layout--size-md {
|
|
2413
2413
|
--cds-layout-size-height-context: var(--cds-layout-size-height-md, 2.5rem);
|
|
2414
2414
|
--cds-layout-size-height: var(--cds-layout-size-height-context);
|
|
2415
2415
|
}
|
|
2416
|
-
.cds--layout-constraint--
|
|
2416
|
+
.cds--layout-constraint--size__default-md {
|
|
2417
2417
|
--cds-layout-size-height: var(--cds-layout-size-height-context, var(--cds-layout-size-height-md, 2.5rem));
|
|
2418
2418
|
}
|
|
2419
|
-
.cds--layout-constraint--
|
|
2419
|
+
.cds--layout-constraint--size__min-md {
|
|
2420
2420
|
--cds-layout-size-height-min: var(--cds-layout-size-height-md, 2.5rem);
|
|
2421
2421
|
}
|
|
2422
|
-
.cds--layout-constraint--
|
|
2422
|
+
.cds--layout-constraint--size__max-md {
|
|
2423
2423
|
--cds-layout-size-height-max: var(--cds-layout-size-height-md, 2.5rem);
|
|
2424
2424
|
}
|
|
2425
2425
|
.cds--layout--size-lg {
|
|
2426
2426
|
--cds-layout-size-height-context: var(--cds-layout-size-height-lg, 3rem);
|
|
2427
2427
|
--cds-layout-size-height: var(--cds-layout-size-height-context);
|
|
2428
2428
|
}
|
|
2429
|
-
.cds--layout-constraint--
|
|
2429
|
+
.cds--layout-constraint--size__default-lg {
|
|
2430
2430
|
--cds-layout-size-height: var(--cds-layout-size-height-context, var(--cds-layout-size-height-lg, 3rem));
|
|
2431
2431
|
}
|
|
2432
|
-
.cds--layout-constraint--
|
|
2432
|
+
.cds--layout-constraint--size__min-lg {
|
|
2433
2433
|
--cds-layout-size-height-min: var(--cds-layout-size-height-lg, 3rem);
|
|
2434
2434
|
}
|
|
2435
|
-
.cds--layout-constraint--
|
|
2435
|
+
.cds--layout-constraint--size__max-lg {
|
|
2436
2436
|
--cds-layout-size-height-max: var(--cds-layout-size-height-lg, 3rem);
|
|
2437
2437
|
}
|
|
2438
2438
|
.cds--layout--size-xl {
|
|
2439
2439
|
--cds-layout-size-height-context: var(--cds-layout-size-height-xl, 4rem);
|
|
2440
2440
|
--cds-layout-size-height: var(--cds-layout-size-height-context);
|
|
2441
2441
|
}
|
|
2442
|
-
.cds--layout-constraint--
|
|
2442
|
+
.cds--layout-constraint--size__default-xl {
|
|
2443
2443
|
--cds-layout-size-height: var(--cds-layout-size-height-context, var(--cds-layout-size-height-xl, 4rem));
|
|
2444
2444
|
}
|
|
2445
|
-
.cds--layout-constraint--
|
|
2445
|
+
.cds--layout-constraint--size__min-xl {
|
|
2446
2446
|
--cds-layout-size-height-min: var(--cds-layout-size-height-xl, 4rem);
|
|
2447
2447
|
}
|
|
2448
|
-
.cds--layout-constraint--
|
|
2448
|
+
.cds--layout-constraint--size__max-xl {
|
|
2449
2449
|
--cds-layout-size-height-max: var(--cds-layout-size-height-xl, 4rem);
|
|
2450
2450
|
}
|
|
2451
2451
|
.cds--layout--size-2xl {
|
|
2452
2452
|
--cds-layout-size-height-context: var(--cds-layout-size-height-2xl, 5rem);
|
|
2453
2453
|
--cds-layout-size-height: var(--cds-layout-size-height-context);
|
|
2454
2454
|
}
|
|
2455
|
-
.cds--layout-constraint--
|
|
2455
|
+
.cds--layout-constraint--size__default-2xl {
|
|
2456
2456
|
--cds-layout-size-height: var(--cds-layout-size-height-context, var(--cds-layout-size-height-2xl, 5rem));
|
|
2457
2457
|
}
|
|
2458
|
-
.cds--layout-constraint--
|
|
2458
|
+
.cds--layout-constraint--size__min-2xl {
|
|
2459
2459
|
--cds-layout-size-height-min: var(--cds-layout-size-height-2xl, 5rem);
|
|
2460
2460
|
}
|
|
2461
|
-
.cds--layout-constraint--
|
|
2461
|
+
.cds--layout-constraint--size__max-2xl {
|
|
2462
2462
|
--cds-layout-size-height-max: var(--cds-layout-size-height-2xl, 5rem);
|
|
2463
2463
|
}
|
|
2464
2464
|
.cds--layout--density-condensed {
|
|
2465
2465
|
--cds-layout-density-padding-inline-context: var(--cds-layout-density-padding-inline-condensed, 0.5rem);
|
|
2466
2466
|
--cds-layout-density-padding-inline: var(--cds-layout-density-padding-inline-context);
|
|
2467
2467
|
}
|
|
2468
|
-
.cds--layout-constraint--
|
|
2468
|
+
.cds--layout-constraint--density__default-condensed {
|
|
2469
2469
|
--cds-layout-density-padding-inline: var(--cds-layout-density-padding-inline-context, var(--cds-layout-density-padding-inline-condensed, 0.5rem));
|
|
2470
2470
|
}
|
|
2471
|
-
.cds--layout-constraint--
|
|
2471
|
+
.cds--layout-constraint--density__min-condensed {
|
|
2472
2472
|
--cds-layout-density-padding-inline-min: var(--cds-layout-density-padding-inline-condensed, 0.5rem);
|
|
2473
2473
|
}
|
|
2474
|
-
.cds--layout-constraint--
|
|
2474
|
+
.cds--layout-constraint--density__max-condensed {
|
|
2475
2475
|
--cds-layout-density-padding-inline-max: var(--cds-layout-density-padding-inline-condensed, 0.5rem);
|
|
2476
2476
|
}
|
|
2477
2477
|
.cds--layout--density-normal {
|
|
2478
2478
|
--cds-layout-density-padding-inline-context: var(--cds-layout-density-padding-inline-normal, 1rem);
|
|
2479
2479
|
--cds-layout-density-padding-inline: var(--cds-layout-density-padding-inline-context);
|
|
2480
2480
|
}
|
|
2481
|
-
.cds--layout-constraint--
|
|
2481
|
+
.cds--layout-constraint--density__default-normal {
|
|
2482
2482
|
--cds-layout-density-padding-inline: var(--cds-layout-density-padding-inline-context, var(--cds-layout-density-padding-inline-normal, 1rem));
|
|
2483
2483
|
}
|
|
2484
|
-
.cds--layout-constraint--
|
|
2484
|
+
.cds--layout-constraint--density__min-normal {
|
|
2485
2485
|
--cds-layout-density-padding-inline-min: var(--cds-layout-density-padding-inline-normal, 1rem);
|
|
2486
2486
|
}
|
|
2487
|
-
.cds--layout-constraint--
|
|
2487
|
+
.cds--layout-constraint--density__max-normal {
|
|
2488
2488
|
--cds-layout-density-padding-inline-max: var(--cds-layout-density-padding-inline-normal, 1rem);
|
|
2489
2489
|
}
|
|
2490
2490
|
.cds--white {
|
|
@@ -4007,6 +4007,7 @@ li.cds--accordion__item--disabled:last-of-type {
|
|
|
4007
4007
|
padding-block-start: min((var(--cds-layout-size-height-local) - 1rem) / 2 - 0.0625rem, var(--temp-padding-block-max));
|
|
4008
4008
|
}
|
|
4009
4009
|
.cds--btn--icon-only > :first-child {
|
|
4010
|
+
min-width: 1rem;
|
|
4010
4011
|
margin-block-start: 0.0625rem;
|
|
4011
4012
|
}
|
|
4012
4013
|
.cds--btn--icon-only .cds--btn__icon {
|
|
@@ -6287,7 +6288,13 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
6287
6288
|
max-height: 2rem;
|
|
6288
6289
|
}
|
|
6289
6290
|
.cds--list-box--expanded {
|
|
6290
|
-
border-bottom-color: var(--cds-border-subtle);
|
|
6291
|
+
border-bottom-color: var(--cds-border-subtle-01, #c6c6c6);
|
|
6292
|
+
}
|
|
6293
|
+
.cds--layer-two .cds--list-box--expanded {
|
|
6294
|
+
border-bottom-color: var(--cds-border-subtle-02, #e0e0e0);
|
|
6295
|
+
}
|
|
6296
|
+
.cds--layer-three .cds--list-box--expanded {
|
|
6297
|
+
border-bottom-color: var(--cds-border-subtle-03, #c6c6c6);
|
|
6291
6298
|
}
|
|
6292
6299
|
.cds--list-box--expanded:hover {
|
|
6293
6300
|
background-color: var(--cds-field);
|
|
@@ -6723,7 +6730,13 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
6723
6730
|
background-color: var(--cds-layer-selected);
|
|
6724
6731
|
}
|
|
6725
6732
|
.cds--list-box--disabled .cds--list-box__menu-item__option:hover {
|
|
6726
|
-
border-top-color: var(--cds-border-subtle);
|
|
6733
|
+
border-top-color: var(--cds-border-subtle-01, #c6c6c6);
|
|
6734
|
+
}
|
|
6735
|
+
.cds--layer-two .cds--list-box--disabled .cds--list-box__menu-item__option:hover {
|
|
6736
|
+
border-top-color: var(--cds-border-subtle-02, #e0e0e0);
|
|
6737
|
+
}
|
|
6738
|
+
.cds--layer-three .cds--list-box--disabled .cds--list-box__menu-item__option:hover {
|
|
6739
|
+
border-top-color: var(--cds-border-subtle-03, #c6c6c6);
|
|
6727
6740
|
}
|
|
6728
6741
|
.cds--list-box__menu-item:first-of-type .cds--list-box__menu-item__option {
|
|
6729
6742
|
border-top-color: transparent;
|
|
@@ -6731,11 +6744,20 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
6731
6744
|
.cds--list-box__menu-item:hover .cds--list-box__menu-item__option {
|
|
6732
6745
|
color: var(--cds-text-primary, #161616);
|
|
6733
6746
|
}
|
|
6734
|
-
.cds--list-box__menu-item:hover + .cds--list-box__menu-item .cds--list-box__menu-item__option {
|
|
6735
|
-
border-top-color: transparent;
|
|
6736
|
-
}
|
|
6737
6747
|
.cds--list-box--disabled .cds--list-box__menu-item:hover + .cds--list-box__menu-item .cds--list-box__menu-item__option {
|
|
6738
|
-
border-top-color: var(--cds-border-subtle);
|
|
6748
|
+
border-top-color: var(--cds-border-subtle-01, #c6c6c6);
|
|
6749
|
+
}
|
|
6750
|
+
.cds--layer-two .cds--list-box--disabled .cds--list-box__menu-item:hover + .cds--list-box__menu-item .cds--list-box__menu-item__option {
|
|
6751
|
+
border-top-color: var(--cds-border-subtle-02, #e0e0e0);
|
|
6752
|
+
}
|
|
6753
|
+
.cds--layer-three .cds--list-box--disabled .cds--list-box__menu-item:hover + .cds--list-box__menu-item .cds--list-box__menu-item__option {
|
|
6754
|
+
border-top-color: var(--cds-border-subtle-03, #c6c6c6);
|
|
6755
|
+
}
|
|
6756
|
+
.cds--layer-two .cds--list-box__menu-item__option {
|
|
6757
|
+
border-top-color: var(--cds-border-subtle-02, #e0e0e0);
|
|
6758
|
+
}
|
|
6759
|
+
.cds--layer-three .cds--list-box__menu-item__option {
|
|
6760
|
+
border-top-color: var(--cds-border-subtle-03, #c6c6c6);
|
|
6739
6761
|
}
|
|
6740
6762
|
.cds--list-box__menu-item__option {
|
|
6741
6763
|
outline: 2px solid transparent;
|
|
@@ -6746,7 +6768,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
6746
6768
|
padding: 0.6875rem 0;
|
|
6747
6769
|
padding-right: 1.5rem;
|
|
6748
6770
|
border-top: 1px solid transparent;
|
|
6749
|
-
border-top-color: var(--cds-border-subtle);
|
|
6771
|
+
border-top-color: var(--cds-border-subtle-01, #c6c6c6);
|
|
6750
6772
|
border-bottom: 1px solid transparent;
|
|
6751
6773
|
margin: 0 1rem;
|
|
6752
6774
|
color: var(--cds-text-secondary, #525252);
|
|
@@ -6801,11 +6823,21 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
6801
6823
|
.cds--list-box__menu-item[disabled] .cds--checkbox-label::before {
|
|
6802
6824
|
border-color: var(--cds-text-disabled, rgba(22, 22, 22, 0.25));
|
|
6803
6825
|
}
|
|
6804
|
-
.cds--list-box__menu-item[disabled] .cds--list-box__menu-item__option
|
|
6805
|
-
border-top-color: var(--cds-border-subtle);
|
|
6806
|
-
}
|
|
6826
|
+
.cds--list-box__menu-item[disabled] .cds--list-box__menu-item__option,
|
|
6807
6827
|
.cds--list-box__menu-item[disabled]:hover + .cds--list-box__menu-item .cds--list-box__menu-item__option {
|
|
6808
|
-
border-top-color: var(--cds-border-subtle);
|
|
6828
|
+
border-top-color: var(--cds-border-subtle-01, #c6c6c6);
|
|
6829
|
+
}
|
|
6830
|
+
.cds--layer-two .cds--list-box__menu-item[disabled] .cds--list-box__menu-item__option,
|
|
6831
|
+
.cds--layer-two .cds--list-box__menu-item[disabled]:hover + .cds--list-box__menu-item .cds--list-box__menu-item__option {
|
|
6832
|
+
border-top-color: var(--cds-border-subtle-02, #e0e0e0);
|
|
6833
|
+
}
|
|
6834
|
+
.cds--layer-three .cds--list-box__menu-item[disabled] .cds--list-box__menu-item__option,
|
|
6835
|
+
.cds--layer-three .cds--list-box__menu-item[disabled]:hover + .cds--list-box__menu-item .cds--list-box__menu-item__option {
|
|
6836
|
+
border-top-color: var(--cds-border-subtle-03, #c6c6c6);
|
|
6837
|
+
}
|
|
6838
|
+
.cds--list-box__menu-item--active + .cds--list-box__menu-item[disabled] .cds--list-box__menu-item__option,
|
|
6839
|
+
.cds--list-box__menu-item:hover + .cds--list-box__menu-item .cds--list-box__menu-item__option {
|
|
6840
|
+
border-top-color: transparent;
|
|
6809
6841
|
}
|
|
6810
6842
|
.cds--list-box.cds--list-box--inline .cds--list-box__menu-item__option {
|
|
6811
6843
|
margin: 0 0.5rem;
|
|
@@ -7138,11 +7170,8 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
7138
7170
|
outline: 2px solid var(--cds-focus, #0f62fe);
|
|
7139
7171
|
outline-offset: -2px;
|
|
7140
7172
|
position: absolute;
|
|
7141
|
-
top: 0;
|
|
7142
|
-
right: 0;
|
|
7143
|
-
bottom: 0;
|
|
7144
|
-
left: 0;
|
|
7145
7173
|
content: "";
|
|
7174
|
+
inset: 0;
|
|
7146
7175
|
}
|
|
7147
7176
|
@media screen and (prefers-contrast) {
|
|
7148
7177
|
.cds--contained-list-item--clickable .cds--contained-list-item__content:focus::after {
|
|
@@ -8347,7 +8376,8 @@ tr.cds--data-table--selected:last-of-type td {
|
|
|
8347
8376
|
align-items: center;
|
|
8348
8377
|
}
|
|
8349
8378
|
.cds--action-list .cds--btn {
|
|
8350
|
-
padding:
|
|
8379
|
+
padding-right: 1rem;
|
|
8380
|
+
padding-left: 1rem;
|
|
8351
8381
|
color: var(--cds-text-on-color, #ffffff);
|
|
8352
8382
|
white-space: nowrap;
|
|
8353
8383
|
}
|
|
@@ -12169,33 +12199,24 @@ button.cds--dropdown-text:focus {
|
|
|
12169
12199
|
padding: 2rem 5.5rem 0.8125rem 1rem;
|
|
12170
12200
|
}
|
|
12171
12201
|
.cds--search--fluid .cds--search-magnifier-icon {
|
|
12172
|
-
|
|
12173
|
-
right: 1rem;
|
|
12174
|
-
bottom: 0.8125rem;
|
|
12175
|
-
left: auto;
|
|
12202
|
+
inset: auto 1rem 0.8125rem auto;
|
|
12176
12203
|
transform: none;
|
|
12177
12204
|
}
|
|
12178
12205
|
.cds--search--fluid .cds--search-close {
|
|
12179
|
-
top: auto;
|
|
12180
|
-
right: 3rem;
|
|
12181
|
-
bottom: 0;
|
|
12182
|
-
left: auto;
|
|
12183
12206
|
width: 2.5rem;
|
|
12184
12207
|
height: 2.5rem;
|
|
12185
12208
|
border: none;
|
|
12209
|
+
inset: auto 3rem 0 auto;
|
|
12186
12210
|
transition: background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9);
|
|
12187
12211
|
}
|
|
12188
12212
|
.cds--search--fluid .cds--search-close::before {
|
|
12189
12213
|
position: absolute;
|
|
12190
|
-
top: auto;
|
|
12191
|
-
right: -0.0625rem;
|
|
12192
|
-
bottom: 0.875rem;
|
|
12193
|
-
left: auto;
|
|
12194
12214
|
display: block;
|
|
12195
12215
|
width: 0.0625rem;
|
|
12196
12216
|
height: 1rem;
|
|
12197
12217
|
background: var(--cds-border-subtle);
|
|
12198
12218
|
content: "";
|
|
12219
|
+
inset: auto -0.0625rem 0.875rem auto;
|
|
12199
12220
|
}
|
|
12200
12221
|
.cds--search--fluid .cds--search-input:focus ~ .cds--search-close:hover {
|
|
12201
12222
|
outline: none;
|
|
@@ -13310,6 +13331,15 @@ optgroup.cds--select-optgroup:disabled,
|
|
|
13310
13331
|
.cds--modal .cds--number__rule-divider {
|
|
13311
13332
|
background-color: var(--cds-border-subtle-02, #e0e0e0);
|
|
13312
13333
|
}
|
|
13334
|
+
.cds--modal .cds--list-box__menu-item__option {
|
|
13335
|
+
border-top-color: var(--cds-border-subtle-02, #e0e0e0);
|
|
13336
|
+
}
|
|
13337
|
+
.cds--modal .cds--list-box__menu-item:hover .cds--list-box__menu-item__option {
|
|
13338
|
+
border-top-color: var(--cds-layer-hover);
|
|
13339
|
+
}
|
|
13340
|
+
.cds--modal .cds--list-box__menu-item--active:hover .cds--list-box__menu-item__option {
|
|
13341
|
+
border-top-color: var(--cds-layer-selected-hover);
|
|
13342
|
+
}
|
|
13313
13343
|
.cds--modal .cds--text-input--fluid .cds--text-input,
|
|
13314
13344
|
.cds--modal .cds--text-area--fluid .cds--text-area__wrapper,
|
|
13315
13345
|
.cds--modal .cds--text-area--fluid .cds--text-area,
|
|
@@ -15663,11 +15693,8 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
15663
15693
|
.cds--popover {
|
|
15664
15694
|
position: absolute;
|
|
15665
15695
|
z-index: 6000;
|
|
15666
|
-
top: 0;
|
|
15667
|
-
right: 0;
|
|
15668
|
-
bottom: 0;
|
|
15669
|
-
left: 0;
|
|
15670
15696
|
filter: var(--cds-popover-drop-shadow, none);
|
|
15697
|
+
inset: 0;
|
|
15671
15698
|
pointer-events: none;
|
|
15672
15699
|
}
|
|
15673
15700
|
.cds--popover-content {
|
|
@@ -15948,10 +15975,6 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
15948
15975
|
}
|
|
15949
15976
|
.cds--progress-bar--indeterminate .cds--progress-bar__track::after {
|
|
15950
15977
|
position: absolute;
|
|
15951
|
-
top: 0;
|
|
15952
|
-
right: 0;
|
|
15953
|
-
bottom: 0;
|
|
15954
|
-
left: 0;
|
|
15955
15978
|
animation-duration: 1400ms;
|
|
15956
15979
|
animation-iteration-count: infinite;
|
|
15957
15980
|
animation-name: progress-bar-indeterminate;
|
|
@@ -15960,6 +15983,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
15960
15983
|
background-position-x: 0%;
|
|
15961
15984
|
background-size: 200% 100%;
|
|
15962
15985
|
content: "";
|
|
15986
|
+
inset: 0;
|
|
15963
15987
|
}
|
|
15964
15988
|
.cds--progress-bar__helper-text {
|
|
15965
15989
|
font-size: var(--cds-helper-text-01-font-size, 0.75rem);
|
|
@@ -17229,6 +17253,19 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
17229
17253
|
fill: ButtonText;
|
|
17230
17254
|
}
|
|
17231
17255
|
}
|
|
17256
|
+
.cds--tabs.cds--tabs--contained.cds--tabs--full-width .cds--tab--list {
|
|
17257
|
+
display: grid;
|
|
17258
|
+
width: 100%;
|
|
17259
|
+
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
|
|
17260
|
+
}
|
|
17261
|
+
.cds--tabs.cds--tabs--contained.cds--tabs--full-width .cds--tab--list .cds--tabs__nav-link .cds--tabs__nav-item-label,
|
|
17262
|
+
.cds--tabs.cds--tabs--contained.cds--tabs--full-width .cds--tab--list .cds--tabs__nav-link .cds--tabs__nav-item-secondary-label {
|
|
17263
|
+
overflow: hidden;
|
|
17264
|
+
text-overflow: ellipsis;
|
|
17265
|
+
}
|
|
17266
|
+
.cds--tabs.cds--tabs--contained.cds--tabs--full-width .cds--tab--list .cds--tabs__nav-link .cds--tabs__nav-item--icon {
|
|
17267
|
+
margin-left: auto;
|
|
17268
|
+
}
|
|
17232
17269
|
.cds--tabs {
|
|
17233
17270
|
font-size: var(--cds-body-compact-01-font-size, 0.875rem);
|
|
17234
17271
|
font-weight: var(--cds-body-compact-01-font-weight, 400);
|
|
@@ -17865,11 +17902,12 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
17865
17902
|
font-weight: 600;
|
|
17866
17903
|
}
|
|
17867
17904
|
.cds--tile {
|
|
17905
|
+
--cds-layout-density-padding-inline-local: clamp(var(--cds-layout-density-padding-inline-min), var(--cds-layout-density-padding-inline, var(--cds-layout-density-padding-inline-normal)), var(--cds-layout-density-padding-inline-max));
|
|
17868
17906
|
position: relative;
|
|
17869
17907
|
display: block;
|
|
17870
17908
|
min-width: 8rem;
|
|
17871
17909
|
min-height: 4rem;
|
|
17872
|
-
padding:
|
|
17910
|
+
padding: var(--cds-layout-density-padding-inline-local);
|
|
17873
17911
|
background-color: var(--cds-layer);
|
|
17874
17912
|
outline: 2px solid transparent;
|
|
17875
17913
|
outline-offset: -2px;
|
|
@@ -17944,7 +17982,6 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
17944
17982
|
.cds--tile--clickable.cds--link--disabled,
|
|
17945
17983
|
.cds--tile--clickable:hover.cds--link--disabled {
|
|
17946
17984
|
display: block;
|
|
17947
|
-
padding: 1rem;
|
|
17948
17985
|
background-color: var(--cds-layer);
|
|
17949
17986
|
color: var(--cds-text-disabled, rgba(22, 22, 22, 0.25));
|
|
17950
17987
|
cursor: not-allowed;
|
|
@@ -17952,8 +17989,8 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
17952
17989
|
.cds--tile--clickable .cds--tile--icon,
|
|
17953
17990
|
.cds--tile--clickable.cds--link--disabled .cds--tile--disabled-icon {
|
|
17954
17991
|
position: absolute;
|
|
17955
|
-
right:
|
|
17956
|
-
bottom:
|
|
17992
|
+
right: var(--cds-layout-density-padding-inline-local);
|
|
17993
|
+
bottom: var(--cds-layout-density-padding-inline-local);
|
|
17957
17994
|
}
|
|
17958
17995
|
.cds--tile--clickable .cds--tile--icon {
|
|
17959
17996
|
fill: var(--cds-icon-interactive, #0f62fe);
|
|
@@ -17965,13 +18002,13 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
17965
18002
|
display: none;
|
|
17966
18003
|
}
|
|
17967
18004
|
.cds--tile--selectable {
|
|
17968
|
-
padding-right: 3rem;
|
|
17969
18005
|
border: 1px solid transparent;
|
|
18006
|
+
padding-inline-end: calc(var(--cds-layout-density-padding-inline-local) * 2 + 1rem);
|
|
17970
18007
|
}
|
|
17971
18008
|
.cds--tile__checkmark {
|
|
17972
18009
|
position: absolute;
|
|
17973
|
-
top:
|
|
17974
|
-
right:
|
|
18010
|
+
top: var(--cds-layout-density-padding-inline-local);
|
|
18011
|
+
right: var(--cds-layout-density-padding-inline-local);
|
|
17975
18012
|
height: 1rem;
|
|
17976
18013
|
border: none;
|
|
17977
18014
|
background: transparent;
|
|
@@ -17999,8 +18036,8 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
17999
18036
|
right: 0;
|
|
18000
18037
|
bottom: 0;
|
|
18001
18038
|
display: flex;
|
|
18002
|
-
width:
|
|
18003
|
-
height:
|
|
18039
|
+
width: calc(var(--cds-layout-density-padding-inline-local) * 2 + 1rem);
|
|
18040
|
+
height: calc(var(--cds-layout-density-padding-inline-local) * 2 + 1rem);
|
|
18004
18041
|
align-items: center;
|
|
18005
18042
|
justify-content: center;
|
|
18006
18043
|
}
|
|
@@ -18040,8 +18077,8 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
18040
18077
|
right: 0;
|
|
18041
18078
|
bottom: 0;
|
|
18042
18079
|
display: flex;
|
|
18043
|
-
width:
|
|
18044
|
-
height:
|
|
18080
|
+
width: calc(var(--cds-layout-density-padding-inline-local) * 2 + 1rem);
|
|
18081
|
+
height: calc(var(--cds-layout-density-padding-inline-local) * 2 + 1rem);
|
|
18045
18082
|
align-items: center;
|
|
18046
18083
|
justify-content: center;
|
|
18047
18084
|
}
|
|
@@ -18408,8 +18445,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
18408
18445
|
}
|
|
18409
18446
|
}
|
|
18410
18447
|
.cds--toggle__button:focus + .cds--toggle__label .cds--toggle__switch,
|
|
18411
|
-
.cds--
|
|
18412
|
-
.cds--toggle:active .cds--toggle__switch {
|
|
18448
|
+
.cds--toggle:not(.cds--toggle--disabled):active .cds--toggle__switch {
|
|
18413
18449
|
box-shadow: 0 0 0 1px var(--cds-focus-inset, #ffffff), 0 0 0 3px var(--cds-focus, #0f62fe);
|
|
18414
18450
|
}
|
|
18415
18451
|
.cds--toggle__switch--checked {
|
|
@@ -18494,12 +18530,68 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
18494
18530
|
}
|
|
18495
18531
|
@media screen and (-ms-high-contrast: active), (forced-colors: active) {
|
|
18496
18532
|
.cds--toggle__button:focus + .cds--toggle__label .cds--toggle__switch,
|
|
18497
|
-
.cds--
|
|
18498
|
-
.cds--toggle:active .cds--toggle__switch {
|
|
18533
|
+
.cds--toggle:not(.cds--toggle--disabled):active .cds--toggle__switch {
|
|
18499
18534
|
color: Highlight;
|
|
18500
18535
|
outline: 1px solid Highlight;
|
|
18501
18536
|
}
|
|
18502
18537
|
}
|
|
18538
|
+
.cds--toggle--skeleton {
|
|
18539
|
+
display: flex;
|
|
18540
|
+
align-items: center;
|
|
18541
|
+
}
|
|
18542
|
+
.cds--toggle--skeleton .cds--toggle__skeleton-circle {
|
|
18543
|
+
position: relative;
|
|
18544
|
+
overflow: hidden;
|
|
18545
|
+
background: var(--cds-skeleton-background, #e8e8e8);
|
|
18546
|
+
border-radius: 50%;
|
|
18547
|
+
width: 1.125rem;
|
|
18548
|
+
height: 1.125rem;
|
|
18549
|
+
border-radius: 50%;
|
|
18550
|
+
}
|
|
18551
|
+
.cds--toggle--skeleton .cds--toggle__skeleton-circle::before {
|
|
18552
|
+
position: absolute;
|
|
18553
|
+
width: 200%;
|
|
18554
|
+
height: 100%;
|
|
18555
|
+
animation: 3000ms ease-in-out skeleton infinite;
|
|
18556
|
+
background: var(--cds-skeleton-element, #c6c6c6);
|
|
18557
|
+
content: "";
|
|
18558
|
+
will-change: transform-origin, transform, opacity;
|
|
18559
|
+
}
|
|
18560
|
+
@media (prefers-reduced-motion: reduce) {
|
|
18561
|
+
.cds--toggle--skeleton .cds--toggle__skeleton-circle::before {
|
|
18562
|
+
animation: none;
|
|
18563
|
+
}
|
|
18564
|
+
}
|
|
18565
|
+
.cds--toggle--skeleton .cds--toggle__skeleton-rectangle {
|
|
18566
|
+
position: relative;
|
|
18567
|
+
padding: 0;
|
|
18568
|
+
border: none;
|
|
18569
|
+
background: var(--cds-skeleton-background, #e8e8e8);
|
|
18570
|
+
box-shadow: none;
|
|
18571
|
+
pointer-events: none;
|
|
18572
|
+
width: 1.5rem;
|
|
18573
|
+
height: 0.5rem;
|
|
18574
|
+
margin-left: 0.5rem;
|
|
18575
|
+
}
|
|
18576
|
+
.cds--toggle--skeleton .cds--toggle__skeleton-rectangle:hover, .cds--toggle--skeleton .cds--toggle__skeleton-rectangle:focus, .cds--toggle--skeleton .cds--toggle__skeleton-rectangle:active {
|
|
18577
|
+
border: none;
|
|
18578
|
+
cursor: default;
|
|
18579
|
+
outline: none;
|
|
18580
|
+
}
|
|
18581
|
+
.cds--toggle--skeleton .cds--toggle__skeleton-rectangle::before {
|
|
18582
|
+
position: absolute;
|
|
18583
|
+
width: 100%;
|
|
18584
|
+
height: 100%;
|
|
18585
|
+
animation: 3000ms ease-in-out skeleton infinite;
|
|
18586
|
+
background: var(--cds-skeleton-element, #c6c6c6);
|
|
18587
|
+
content: "";
|
|
18588
|
+
will-change: transform-origin, transform, opacity;
|
|
18589
|
+
}
|
|
18590
|
+
@media (prefers-reduced-motion: reduce) {
|
|
18591
|
+
.cds--toggle--skeleton .cds--toggle__skeleton-rectangle::before {
|
|
18592
|
+
animation: none;
|
|
18593
|
+
}
|
|
18594
|
+
}
|
|
18503
18595
|
.cds--tree {
|
|
18504
18596
|
overflow: hidden;
|
|
18505
18597
|
}
|
|
@@ -18715,6 +18807,9 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
18715
18807
|
min-width: 3rem;
|
|
18716
18808
|
}
|
|
18717
18809
|
}
|
|
18810
|
+
.cds--header__global .cds--popover {
|
|
18811
|
+
z-index: 8001;
|
|
18812
|
+
}
|
|
18718
18813
|
.cds--header__action > :first-child {
|
|
18719
18814
|
margin-block-start: 0;
|
|
18720
18815
|
}
|
|
@@ -19535,6 +19630,9 @@ a.cds--side-nav__link--current::before {
|
|
|
19535
19630
|
min-width: 3rem;
|
|
19536
19631
|
}
|
|
19537
19632
|
}
|
|
19633
|
+
.cds--header__global .cds--popover {
|
|
19634
|
+
z-index: 8001;
|
|
19635
|
+
}
|
|
19538
19636
|
.cds--header__action > :first-child {
|
|
19539
19637
|
margin-block-start: 0;
|
|
19540
19638
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"generatedAt":
|
|
1
|
+
{"generatedAt":1687561446161,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"packageManager":{"type":"npm","version":"7.24.2"},"framework":{"name":"@storybook/angular","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/angular","storybookVersion":"7.0.18","storybookVersionSpecifier":"7.0.18","language":"typescript","storybookPackages":{"@storybook/addon-actions":{"version":"7.0.18"},"@storybook/angular":{"version":"7.0.18"},"@storybook/theming":{"version":"7.0.18"},"storybook":{"version":"7.0.18"}},"addons":{"@storybook/addon-links":{"version":"7.0.18"},"@storybook/addon-essentials":{"options":{"backgrounds":false},"version":"7.0.18"},"@storybook/addon-a11y":{"version":"7.0.18"}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var deferred,leafPrototypes,getProto,inProgress,__webpack_modules__={},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(!chunkIds){var notFulfilled=1/0;for(i=0;i<deferred.length;i++){for(var[chunkIds,fn,priority]=deferred[i],fulfilled=!0,j=0;j<chunkIds.length;j++)(!1&priority||notFulfilled>=priority)&&Object.keys(__webpack_require__.O).every((key=>__webpack_require__.O[key](chunkIds[j])))?chunkIds.splice(j--,1):(fulfilled=!1,priority<notFulfilled&&(notFulfilled=priority));if(fulfilled){deferred.splice(i--,1);var r=fn();void 0!==r&&(result=r)}}return result}priority=priority||0;for(var i=deferred.length;i>0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;"object"==typeof current&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach((key=>def[key]=()=>value[key]));return def.default=()=>value,__webpack_require__.d(ns,def),ns},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=chunkId=>Promise.all(Object.keys(__webpack_require__.f).reduce(((promises,key)=>(__webpack_require__.f[key](chunkId,promises),promises)),[])),__webpack_require__.u=chunkId=>(({140:"dialog-overflow-menu-overflow-menu-stories",210:"list-list-stories",384:"grid-css-grid-stories",459:"tabs-tabs-stories",703:"toggletip-toggletip-stories",799:"pagination-pagination-stories",911:"button-button-stories",933:"table-table-stories",972:"patterns-loading-large-loading-stories",1127:"search-search-stories",1928:"accordion-accordion-stories",2218:"inline-loading-inline-loading-stories",2342:"radio-radio-stories",2371:"timepicker-timepicker-stories",2388:"modal-modal-stories",2489:"toggle-toggle-stories",2494:"loading-loading-stories",2573:"grid-grid-stories",2722:"context-menu-context-menu-stories",2969:"pagination-pagination-nav-stories",3280:"tiles-tiles-stories",3314:"patterns-filtering-multiple-categories-stories",3329:"checkbox-checkbox-stories",3402:"tiles-expandable-tile-stories",3610:"patterns-filtering-single-selection-stories",3719:"tiles-clickable-tile-stories",3858:"code-snippet-code-snippet-stories",3867:"tag-tag-stories",4232:"patterns-forms-multi-step-form-stories",4253:"tooltip-tooltip-stories",4277:"patterns-dialogs-modal-with-table-stories",4391:"content-switcher-content-switcher-stories",4731:"icon-icon-stories",4762:"patterns-filtering-multi-selection-stories",5167:"button-icon-button-stories",5368:"number-input-number-stories",5455:"layer-layer-stories",5808:"progress-bar-progress-bar-stories",5980:"select-select-stories",6026:"slider-slider-stories",6115:"theme-theme-stories",6274:"tooltip-definition-tooptip-stories",6310:"file-uploader-file-uploader-stories",6322:"popover-popover-stories",6634:"link-link-stories",6663:"datepicker-datepicker-stories",6842:"breadcrumb-breadcrumb-stories",6943:"input-input-stories",7081:"layout-stack-stories",7235:"index-stories",7291:"structured-list-structured-list-stories",7840:"patterns-loading-progressive-loading-stories",7869:"skeleton-skeleton-stories",7931:"notification-notification-stories",8552:"button-button-set-stories",9211:"dropdown-dropdown-stories",9325:"tiles-tile-group-stories",9552:"timepicker-select-timepicker-select-stories",9619:"progress-indicator-progress-indicator-stories",9660:"ui-shell-ui-shell-stories",9736:"combobox-combobox-stories"}[chunkId]||chunkId)+"."+{140:"f6323fbc",210:"728ebfa4",384:"bb6a8325",459:"3cea9985",583:"a39f8575",703:"e577b88e",799:"ecc4051b",901:"0cee8749",909:"8e4d85d5",911:"82a8e128",933:"c0b6231b",972:"8c04d095",1119:"f42b55a6",1127:"30a933b1",1470:"39923f01",1895:"69e2c275",1928:"9a7b324c",2218:"c54dee33",2342:"82373213",2371:"2bdbb4c7",2388:"163f5671",2489:"3af803a8",2494:"89353234",2573:"273ce015",2722:"158ccd1c",2969:"37761020",3224:"8b16624b",3259:"52c4e32f",3280:"f99990b8",3314:"6703c130",3329:"9fdbae41",3348:"938f9a5b",3360:"e0c015fc",3384:"0e9a5fed",3402:"5a0ef8e1",3415:"bd5d140d",3610:"8243c4ea",3719:"0261e039",3858:"ec4fca0a",3867:"e0c5cc20",3931:"55f9fea9",4232:"75d0fa39",4253:"3d904274",4277:"494ac5a3",4391:"0e556d81",4578:"d79a1b3e",4731:"c5e1074f",4762:"0ce6568f",4882:"f983a9ec",5069:"eabf32ea",5167:"5d232e73",5256:"c463cfe0",5368:"ca6f8990",5455:"b74d5b42",5808:"5fb7d045",5868:"2c92ef26",5980:"5fd0e38e",6026:"feee50aa",6115:"839db355",6123:"c3572027",6274:"f990c7c0",6310:"fb6f46e6",6322:"6139628f",6634:"368308ed",6663:"ef9bfd14",6842:"88919630",6943:"56294320",7019:"b8944046",7081:"95acac06",7153:"ce84c62a",7235:"10b4ce67",7277:"ff367df8",7291:"38bd94fc",7529:"5272f30b",7773:"6c3cf943",7840:"12f8fbfe",7869:"28637f93",7931:"61a87384",8042:"0aa56439",8341:"83894870",8552:"68d26789",9115:"e3ed2f59",9211:"1ae77006",9325:"b7619538",9552:"5f3de00d",9558:"680ea348",9619:"e18e124a",9660:"704e84bd",9672:"2cc3d4f7",9736:"a311e67b"}[chunkId]+".iframe.bundle.js"),__webpack_require__.miniCssF=chunkId=>{},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=module=>((module=Object.create(module)).children||(module.children=[]),Object.defineProperty(module,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+module.id)}}),module),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),inProgress={},__webpack_require__.l=(url,done,key,chunkId)=>{if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;i<scripts.length;i++){var s=scripts[i];if(s.getAttribute("src")==url||s.getAttribute("data-webpack")=="carbon-components-angular:"+key){script=s;break}}script||(needAttach=!0,(script=document.createElement("script")).charset="utf-8",script.timeout=120,__webpack_require__.nc&&script.setAttribute("nonce",__webpack_require__.nc),script.setAttribute("data-webpack","carbon-components-angular:"+key),script.src=url),inProgress[url]=[done];var onScriptComplete=(prev,event)=>{script.onerror=script.onload=null,clearTimeout(timeout);var doneFns=inProgress[url];if(delete inProgress[url],script.parentNode&&script.parentNode.removeChild(script),doneFns&&doneFns.forEach((fn=>fn(event))),prev)return prev(event)},timeout=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:script}),12e4);script.onerror=onScriptComplete.bind(null,script.onerror),script.onload=onScriptComplete.bind(null,script.onload),needAttach&&document.head.appendChild(script)}},__webpack_require__.r=exports=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.nmd=module=>(module.paths=[],module.children||(module.children=[]),module),__webpack_require__.p="",(()=>{var installedChunks={1303:0};__webpack_require__.f.j=(chunkId,promises)=>{var installedChunkData=__webpack_require__.o(installedChunks,chunkId)?installedChunks[chunkId]:void 0;if(0!==installedChunkData)if(installedChunkData)promises.push(installedChunkData[2]);else if(1303!=chunkId){var promise=new Promise(((resolve,reject)=>installedChunkData=installedChunks[chunkId]=[resolve,reject]));promises.push(installedChunkData[2]=promise);var url=__webpack_require__.p+__webpack_require__.u(chunkId),error=new Error;__webpack_require__.l(url,(event=>{if(__webpack_require__.o(installedChunks,chunkId)&&(0!==(installedChunkData=installedChunks[chunkId])&&(installedChunks[chunkId]=void 0),installedChunkData)){var errorType=event&&("load"===event.type?"missing":event.type),realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")",error.name="ChunkLoadError",error.type=errorType,error.request=realSrc,installedChunkData[1](error)}}),"chunk-"+chunkId,chunkId)}else installedChunks[chunkId]=0},__webpack_require__.O.j=chunkId=>0===installedChunks[chunkId];var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var moduleId,chunkId,[chunkIds,moreModules,runtime]=data,i=0;if(chunkIds.some((id=>0!==installedChunks[id]))){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i<chunkIds.length;i++)chunkId=chunkIds[i],__webpack_require__.o(installedChunks,chunkId)&&installedChunks[chunkId]&&installedChunks[chunkId][0](),installedChunks[chunkId]=0;return __webpack_require__.O(result)},chunkLoadingGlobal=self.webpackChunkcarbon_components_angular=self.webpackChunkcarbon_components_angular||[];chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null,0)),chunkLoadingGlobal.push=webpackJsonpCallback.bind(null,chunkLoadingGlobal.push.bind(chunkLoadingGlobal))})(),__webpack_require__.nc=void 0})();
|
|
1
|
+
(()=>{"use strict";var deferred,leafPrototypes,getProto,inProgress,__webpack_modules__={},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(!chunkIds){var notFulfilled=1/0;for(i=0;i<deferred.length;i++){for(var[chunkIds,fn,priority]=deferred[i],fulfilled=!0,j=0;j<chunkIds.length;j++)(!1&priority||notFulfilled>=priority)&&Object.keys(__webpack_require__.O).every((key=>__webpack_require__.O[key](chunkIds[j])))?chunkIds.splice(j--,1):(fulfilled=!1,priority<notFulfilled&&(notFulfilled=priority));if(fulfilled){deferred.splice(i--,1);var r=fn();void 0!==r&&(result=r)}}return result}priority=priority||0;for(var i=deferred.length;i>0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;"object"==typeof current&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach((key=>def[key]=()=>value[key]));return def.default=()=>value,__webpack_require__.d(ns,def),ns},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=chunkId=>Promise.all(Object.keys(__webpack_require__.f).reduce(((promises,key)=>(__webpack_require__.f[key](chunkId,promises),promises)),[])),__webpack_require__.u=chunkId=>(({140:"dialog-overflow-menu-overflow-menu-stories",210:"list-list-stories",384:"grid-css-grid-stories",459:"tabs-tabs-stories",703:"toggletip-toggletip-stories",799:"pagination-pagination-stories",911:"button-button-stories",933:"table-table-stories",972:"patterns-loading-large-loading-stories",1127:"search-search-stories",1928:"accordion-accordion-stories",2218:"inline-loading-inline-loading-stories",2342:"radio-radio-stories",2371:"timepicker-timepicker-stories",2388:"modal-modal-stories",2489:"toggle-toggle-stories",2494:"loading-loading-stories",2573:"grid-grid-stories",2722:"context-menu-context-menu-stories",2969:"pagination-pagination-nav-stories",3280:"tiles-tiles-stories",3314:"patterns-filtering-multiple-categories-stories",3329:"checkbox-checkbox-stories",3402:"tiles-expandable-tile-stories",3610:"patterns-filtering-single-selection-stories",3719:"tiles-clickable-tile-stories",3858:"code-snippet-code-snippet-stories",3867:"tag-tag-stories",4232:"patterns-forms-multi-step-form-stories",4253:"tooltip-tooltip-stories",4277:"patterns-dialogs-modal-with-table-stories",4391:"content-switcher-content-switcher-stories",4731:"icon-icon-stories",4762:"patterns-filtering-multi-selection-stories",5167:"button-icon-button-stories",5368:"number-input-number-stories",5455:"layer-layer-stories",5808:"progress-bar-progress-bar-stories",5980:"select-select-stories",6026:"slider-slider-stories",6115:"theme-theme-stories",6274:"tooltip-definition-tooptip-stories",6310:"file-uploader-file-uploader-stories",6322:"popover-popover-stories",6634:"link-link-stories",6663:"datepicker-datepicker-stories",6842:"breadcrumb-breadcrumb-stories",6943:"input-input-stories",7081:"layout-stack-stories",7235:"index-stories",7291:"structured-list-structured-list-stories",7840:"patterns-loading-progressive-loading-stories",7869:"skeleton-skeleton-stories",7931:"notification-notification-stories",8552:"button-button-set-stories",9211:"dropdown-dropdown-stories",9325:"tiles-tile-group-stories",9552:"timepicker-select-timepicker-select-stories",9619:"progress-indicator-progress-indicator-stories",9660:"ui-shell-ui-shell-stories",9736:"combobox-combobox-stories"}[chunkId]||chunkId)+"."+{140:"f6323fbc",210:"728ebfa4",384:"bb6a8325",459:"3cea9985",583:"a39f8575",703:"e577b88e",799:"ecc4051b",901:"0cee8749",909:"8e4d85d5",911:"82a8e128",933:"c0b6231b",972:"8c04d095",1119:"f42b55a6",1127:"30a933b1",1470:"39923f01",1895:"f908bfb8",1928:"9a7b324c",2218:"c54dee33",2342:"82373213",2371:"2bdbb4c7",2388:"163f5671",2489:"3f40e3b9",2494:"89353234",2573:"273ce015",2722:"158ccd1c",2969:"37761020",3224:"8b16624b",3259:"52c4e32f",3280:"f99990b8",3314:"6703c130",3329:"9fdbae41",3348:"938f9a5b",3360:"e0c015fc",3384:"0e9a5fed",3402:"5a0ef8e1",3415:"bd5d140d",3610:"8243c4ea",3719:"0261e039",3858:"ec4fca0a",3867:"e0c5cc20",3931:"55f9fea9",4232:"75d0fa39",4253:"3d904274",4277:"494ac5a3",4391:"0e556d81",4578:"d79a1b3e",4731:"c5e1074f",4762:"0ce6568f",4882:"f983a9ec",5069:"eabf32ea",5167:"5d232e73",5256:"c463cfe0",5368:"ca6f8990",5455:"b74d5b42",5808:"5fb7d045",5868:"2c92ef26",5980:"5fd0e38e",6026:"feee50aa",6115:"839db355",6123:"c3572027",6274:"f990c7c0",6310:"fb6f46e6",6322:"6139628f",6634:"368308ed",6663:"ef9bfd14",6842:"88919630",6943:"56294320",7019:"b8944046",7081:"95acac06",7153:"ce84c62a",7235:"10b4ce67",7277:"ff367df8",7291:"38bd94fc",7529:"5272f30b",7773:"6c3cf943",7840:"12f8fbfe",7869:"28637f93",7931:"61a87384",8042:"0aa56439",8341:"83894870",8552:"68d26789",9115:"e3ed2f59",9211:"1ae77006",9325:"b7619538",9552:"5f3de00d",9558:"680ea348",9619:"e18e124a",9660:"704e84bd",9672:"2cc3d4f7",9736:"a311e67b"}[chunkId]+".iframe.bundle.js"),__webpack_require__.miniCssF=chunkId=>{},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=module=>((module=Object.create(module)).children||(module.children=[]),Object.defineProperty(module,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+module.id)}}),module),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),inProgress={},__webpack_require__.l=(url,done,key,chunkId)=>{if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;i<scripts.length;i++){var s=scripts[i];if(s.getAttribute("src")==url||s.getAttribute("data-webpack")=="carbon-components-angular:"+key){script=s;break}}script||(needAttach=!0,(script=document.createElement("script")).charset="utf-8",script.timeout=120,__webpack_require__.nc&&script.setAttribute("nonce",__webpack_require__.nc),script.setAttribute("data-webpack","carbon-components-angular:"+key),script.src=url),inProgress[url]=[done];var onScriptComplete=(prev,event)=>{script.onerror=script.onload=null,clearTimeout(timeout);var doneFns=inProgress[url];if(delete inProgress[url],script.parentNode&&script.parentNode.removeChild(script),doneFns&&doneFns.forEach((fn=>fn(event))),prev)return prev(event)},timeout=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:script}),12e4);script.onerror=onScriptComplete.bind(null,script.onerror),script.onload=onScriptComplete.bind(null,script.onload),needAttach&&document.head.appendChild(script)}},__webpack_require__.r=exports=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.nmd=module=>(module.paths=[],module.children||(module.children=[]),module),__webpack_require__.p="",(()=>{var installedChunks={1303:0};__webpack_require__.f.j=(chunkId,promises)=>{var installedChunkData=__webpack_require__.o(installedChunks,chunkId)?installedChunks[chunkId]:void 0;if(0!==installedChunkData)if(installedChunkData)promises.push(installedChunkData[2]);else if(1303!=chunkId){var promise=new Promise(((resolve,reject)=>installedChunkData=installedChunks[chunkId]=[resolve,reject]));promises.push(installedChunkData[2]=promise);var url=__webpack_require__.p+__webpack_require__.u(chunkId),error=new Error;__webpack_require__.l(url,(event=>{if(__webpack_require__.o(installedChunks,chunkId)&&(0!==(installedChunkData=installedChunks[chunkId])&&(installedChunks[chunkId]=void 0),installedChunkData)){var errorType=event&&("load"===event.type?"missing":event.type),realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")",error.name="ChunkLoadError",error.type=errorType,error.request=realSrc,installedChunkData[1](error)}}),"chunk-"+chunkId,chunkId)}else installedChunks[chunkId]=0},__webpack_require__.O.j=chunkId=>0===installedChunks[chunkId];var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var moduleId,chunkId,[chunkIds,moreModules,runtime]=data,i=0;if(chunkIds.some((id=>0!==installedChunks[id]))){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i<chunkIds.length;i++)chunkId=chunkIds[i],__webpack_require__.o(installedChunks,chunkId)&&installedChunks[chunkId]&&installedChunks[chunkId][0](),installedChunks[chunkId]=0;return __webpack_require__.O(result)},chunkLoadingGlobal=self.webpackChunkcarbon_components_angular=self.webpackChunkcarbon_components_angular||[];chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null,0)),chunkLoadingGlobal.push=webpackJsonpCallback.bind(null,chunkLoadingGlobal.push.bind(chunkLoadingGlobal))})(),__webpack_require__.nc=void 0})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkcarbon_components_angular=self.webpackChunkcarbon_components_angular||[]).push([[2489],{"./node_modules/@carbon/utils-position/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{var _a,PLACEMENTS;__webpack_require__.d(__webpack_exports__,{FK:()=>position,ZP:()=>__WEBPACK_DEFAULT_EXPORT__}),function(PLACEMENTS){PLACEMENTS.LEFT="left",PLACEMENTS.RIGHT="right",PLACEMENTS.TOP="top",PLACEMENTS.BOTTOM="bottom"}(PLACEMENTS||(PLACEMENTS={}));var defaultPositions=((_a={})[PLACEMENTS.LEFT]=function(referenceOffset,target,referenceRect){return{top:referenceOffset.top-Math.round(target.offsetHeight/2)+Math.round(referenceRect.height/2),left:Math.round(referenceOffset.left-target.offsetWidth)}},_a[PLACEMENTS.RIGHT]=function(referenceOffset,target,referenceRect){return{top:referenceOffset.top-Math.round(target.offsetHeight/2)+Math.round(referenceRect.height/2),left:Math.round(referenceOffset.left+referenceRect.width)}},_a[PLACEMENTS.TOP]=function(referenceOffset,target,referenceRect){return{top:Math.round(referenceOffset.top-target.offsetHeight),left:referenceOffset.left-Math.round(target.offsetWidth/2)+Math.round(referenceRect.width/2)}},_a[PLACEMENTS.BOTTOM]=function(referenceOffset,target,referenceRect){return{top:Math.round(referenceOffset.top+referenceRect.height),left:referenceOffset.left-Math.round(target.offsetWidth/2)+Math.round(referenceRect.width/2)}},_a),windowRef="undefined"!=typeof window?window:{innerHeight:0,scrollY:0,innerWidth:0,scrollX:0},Position=function(){function Position(positions){void 0===positions&&(positions={}),this.positions=defaultPositions,this.positions=Object.assign({},defaultPositions,positions)}return Position.prototype.getRelativeOffset=function(target){for(var offsets={left:target.offsetLeft,top:target.offsetTop};target.offsetParent&&"static"===getComputedStyle(target.offsetParent).position;)offsets.left+=target.offsetLeft,offsets.top+=target.offsetTop,target=target.offsetParent;return offsets},Position.prototype.getAbsoluteOffset=function(target){for(var currentNode=target,margins={top:0,left:0};currentNode.offsetParent;){var computed=getComputedStyle(currentNode.offsetParent);"static"===computed.position&&computed.marginLeft&&computed.marginTop&&(parseInt(computed.marginTop,10)&&(margins.top+=parseInt(computed.marginTop,10)),parseInt(computed.marginLeft,10)&&(margins.left+=parseInt(computed.marginLeft,10))),currentNode=currentNode.offsetParent}var targetRect=target.getBoundingClientRect(),relativeRect=document.body.getBoundingClientRect();return{top:targetRect.top-relativeRect.top+margins.top,left:targetRect.left-relativeRect.left+margins.left}},Position.prototype.findRelative=function(reference,target,placement){var referenceOffset=this.getRelativeOffset(reference),referenceRect=reference.getBoundingClientRect();return this.calculatePosition(referenceOffset,referenceRect,target,placement)},Position.prototype.findAbsolute=function(reference,target,placement){var referenceOffset=this.getAbsoluteOffset(reference),referenceRect=reference.getBoundingClientRect();return this.calculatePosition(referenceOffset,referenceRect,target,placement)},Position.prototype.findPosition=function(reference,target,placement,offsetFunction){void 0===offsetFunction&&(offsetFunction=this.getAbsoluteOffset.bind(this));var referenceOffset=offsetFunction(reference),referenceRect=reference.getBoundingClientRect();return this.calculatePosition(referenceOffset,referenceRect,target,placement)},Position.prototype.findPositionAt=function(offset,target,placement){return this.calculatePosition(offset,{top:0,left:0,height:0,width:0},target,placement)},Position.prototype.getPlacementBox=function(target,position){var targetBottom=target.offsetHeight+position.top,targetRight=target.offsetWidth+position.left;return{top:position.top,bottom:targetBottom,left:position.left,right:targetRight}},Position.prototype.addOffset=function(position,top,left){return void 0===top&&(top=0),void 0===left&&(left=0),Object.assign({},position,{top:position.top+top,left:position.left+left})},Position.prototype.setElement=function(element,position){element.style.top=position.top+"px",element.style.left=position.left+"px"},Position.prototype.findBestPlacement=function(reference,target,placements,containerFunction,positionFunction){var _this=this;void 0===containerFunction&&(containerFunction=this.defaultContainerFunction.bind(this)),void 0===positionFunction&&(positionFunction=this.findPosition.bind(this));var weightedPlacements=placements.map((function(placement){var pos=positionFunction(reference,target,placement),box=_this.getPlacementBox(target,pos),hiddenHeight=0,hiddenWidth=0,container=containerFunction();box.top<container.top?hiddenHeight=container.top-box.top:box.bottom>container.height&&(hiddenHeight=box.bottom-container.height),box.left<container.left?hiddenWidth=container.left-box.left:box.right>container.width&&(hiddenWidth=box.right-container.width),hiddenHeight&&!hiddenWidth?hiddenWidth=1:hiddenWidth&&!hiddenHeight&&(hiddenHeight=1);var area=target.offsetHeight*target.offsetWidth;return{placement,weight:(area-hiddenHeight*hiddenWidth)/area}}));return weightedPlacements.sort((function(a,b){return b.weight-a.weight})),weightedPlacements[0].placement},Position.prototype.findBestPlacementAt=function(offset,target,placements,containerFunction){var _this=this;void 0===containerFunction&&(containerFunction=this.defaultContainerFunction.bind(this));return this.findBestPlacement(null,target,placements,containerFunction,(function(_,target,placement){return _this.findPositionAt(offset,target,placement)}))},Position.prototype.defaultContainerFunction=function(){return{top:0,left:0,height:windowRef.innerHeight,width:windowRef.innerWidth}},Position.prototype.calculatePosition=function(referenceOffset,referenceRect,target,placement){return this.positions[placement]?this.positions[placement](referenceOffset,target,referenceRect):(console.error("No function found for placement, defaulting to 0,0"),{left:0,top:0})},Position}(),position=new Position;const __WEBPACK_DEFAULT_EXPORT__=Position},"./src/toggle/toggle.stories.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Basic:()=>Basic,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/toggle/index.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Components/Toggle",decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_0__.moduleMetadata)({imports:[___WEBPACK_IMPORTED_MODULE_1__.vm]})],component:___WEBPACK_IMPORTED_MODULE_1__.ZD},Basic=(args=>({props:args,template:'\n\t\t<cds-toggle\n\t\t\t[skeleton]="skeleton"\n\t\t\t[label]="label"\n\t\t\t[hideLabel]="hideLabel"\n\t\t\t[onText]="onText"\n\t\t\t[offText]="offText"\n\t\t\t[disabled]="disabled"\n\t\t\t[checked]="checked"\n\t\t\t(checkedChange)="onChange($event)"\n\t\t\t[size]="size">\n\t\t</cds-toggle>\n\t'})).bind({});Basic.args={disabled:!1,checked:!1,hideLabel:!1,label:"Toggle element label",onText:"On",offText:"Off",skeleton:!1},Basic.argTypes={onChange:{control:"Toggled!"},size:{options:["sm","md"],defaultValue:"md",control:"radio"}}},"./src/checkbox/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{XZ:()=>Checkbox,nD:()=>CheckboxModule});var CheckboxState,tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.js"),core=__webpack_require__("./node_modules/@angular/core/fesm2020/core.mjs"),fesm2020_forms=__webpack_require__("./node_modules/@angular/forms/fesm2020/forms.mjs");!function(CheckboxState){CheckboxState[CheckboxState.Init=0]="Init",CheckboxState[CheckboxState.Indeterminate=1]="Indeterminate",CheckboxState[CheckboxState.Checked=2]="Checked",CheckboxState[CheckboxState.Unchecked=3]="Unchecked"}(CheckboxState||(CheckboxState={}));let Checkbox=class Checkbox{constructor(changeDetectorRef){this.changeDetectorRef=changeDetectorRef,this.disabled=!1,this.skeleton=!1,this.hideLabel=!1,this.id=`checkbox-${Checkbox.checkboxCount}`,this.ariaLabel="",this.click=new core.EventEmitter,this.checkedChange=new core.EventEmitter,this.indeterminateChange=new core.EventEmitter,this._checked=!1,this._indeterminate=!1,this.currentCheckboxState=CheckboxState.Init,this.onTouched=()=>{},this.propagateChange=_=>{},Checkbox.checkboxCount++}set indeterminate(indeterminate){indeterminate!==this._indeterminate&&(this._indeterminate=indeterminate,this._indeterminate?this.transitionCheckboxState(CheckboxState.Indeterminate):this.transitionCheckboxState(this.checked?CheckboxState.Checked:CheckboxState.Unchecked),this.inputCheckbox&&this.inputCheckbox.nativeElement&&(this.inputCheckbox.nativeElement.indeterminate=indeterminate),this.changeDetectorRef.markForCheck(),this.indeterminateChange.emit(this._indeterminate))}get indeterminate(){return this._indeterminate}set checked(checked){this.setChecked(checked,!1)}get checked(){return this._checked}toggle(){this.setChecked(!this.checked,!0)}writeValue(value){this.setChecked(!!value,!0)}registerOnChange(fn){this.propagateChange=fn}registerOnTouched(fn){this.onTouched=fn}setDisabledState(isDisabled){this.disabled=isDisabled,this.changeDetectorRef.markForCheck()}focusOut(){this.onTouched()}onChange(event){event.stopPropagation()}onClick(event){if(this.click.observers.length)return event.preventDefault(),void this.click.emit();this.disabled||(this.toggle(),this.transitionCheckboxState(this._checked?CheckboxState.Checked:CheckboxState.Unchecked),this.emitChangeEvent())}transitionCheckboxState(newState){this.currentCheckboxState=newState}emitChangeEvent(){this.checkedChange.emit(this.checked),this.propagateChange(this.checked)}ngAfterViewInit(){this.indeterminate&&this.inputCheckbox&&this.inputCheckbox.nativeElement&&(this.inputCheckbox.nativeElement.indeterminate=!0)}setChecked(checked,resetIndeterminate){checked!==this._checked&&(this._checked=checked,resetIndeterminate&&this._indeterminate&&(this._indeterminate=!1,Promise.resolve().then((()=>{this.indeterminateChange.emit(this._indeterminate)}))),this.changeDetectorRef.markForCheck())}};Checkbox.checkboxCount=0,Checkbox.ctorParameters=()=>[{type:core.ChangeDetectorRef}],Checkbox.propDecorators={disabled:[{type:core.Input}],skeleton:[{type:core.Input}],hideLabel:[{type:core.Input}],name:[{type:core.Input}],id:[{type:core.Input}],required:[{type:core.Input}],value:[{type:core.Input}],ariaLabel:[{type:core.Input}],ariaLabelledby:[{type:core.Input}],indeterminate:[{type:core.Input}],checked:[{type:core.Input}],click:[{type:core.Output}],checkedChange:[{type:core.Output}],indeterminateChange:[{type:core.Output}],inputCheckbox:[{type:core.ViewChild,args:["inputCheckbox"]}],focusOut:[{type:core.HostListener,args:["focusout"]}]},Checkbox=(0,tslib_es6.gn)([(0,core.Component)({selector:"cds-checkbox, ibm-checkbox",template:'\n\t\t<div class="cds--form-item cds--checkbox-wrapper">\n\t\t\t<input\n\t\t\t\t#inputCheckbox\n\t\t\t\tclass="cds--checkbox"\n\t\t\t\ttype="checkbox"\n\t\t\t\t[id]="id + \'_input\'"\n\t\t\t\t[value]="value"\n\t\t\t\t[name]="name"\n\t\t\t\t[required]="required"\n\t\t\t\t[checked]="checked"\n\t\t\t\t[disabled]="disabled"\n\t\t\t\t[attr.aria-labelledby]="ariaLabelledby"\n\t\t\t\t(change)="onChange($event)"\n\t\t\t\t(click)="onClick($event)">\n\t\t\t<label\n\t\t\t\t[for]="id + \'_input\'"\n\t\t\t\t[attr.aria-label]="ariaLabel"\n\t\t\t\tclass="cds--checkbox-label"\n\t\t\t\t[ngClass]="{\n\t\t\t\t\t\'cds--skeleton\' : skeleton\n\t\t\t\t}">\n\t\t\t\t<span [ngClass]="{\'cds--visually-hidden\' : hideLabel}" class="cds--checkbox-label-text">\n\t\t\t\t\t<ng-content></ng-content>\n\t\t\t\t</span>\n\t\t\t</label>\n\t\t</div>\n\t',providers:[{provide:fesm2020_forms.JU,useExisting:Checkbox,multi:!0}],changeDetection:core.ChangeDetectionStrategy.OnPush})],Checkbox);var common=__webpack_require__("./node_modules/@angular/common/fesm2020/common.mjs");let CheckboxModule=class CheckboxModule{};CheckboxModule=(0,tslib_es6.gn)([(0,core.NgModule)({declarations:[Checkbox],exports:[Checkbox],imports:[common.CommonModule,fesm2020_forms.u5]})],CheckboxModule)},"./src/toggle/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{ZD:()=>Toggle,vm:()=>ToggleModule});var ToggleState,tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.js"),src_checkbox=__webpack_require__("./src/checkbox/index.ts"),core=__webpack_require__("./node_modules/@angular/core/fesm2020/core.mjs"),fesm2020_forms=__webpack_require__("./node_modules/@angular/forms/fesm2020/forms.mjs"),i18n=__webpack_require__("./src/i18n/index.ts");!function(ToggleState){ToggleState[ToggleState.Init=0]="Init",ToggleState[ToggleState.Checked=1]="Checked",ToggleState[ToggleState.Unchecked=2]="Unchecked"}(ToggleState||(ToggleState={}));let Toggle=class Toggle extends src_checkbox.XZ{constructor(changeDetectorRef,i18n){super(changeDetectorRef),this.changeDetectorRef=changeDetectorRef,this.i18n=i18n,this.size="md",this.hideLabel=!1,this.skeleton=!1,this.toggleClass=!0,this.id="toggle-"+Toggle.toggleCount,this._offValues=this.i18n.getOverridable("TOGGLE.OFF"),this._onValues=this.i18n.getOverridable("TOGGLE.ON"),Toggle.toggleCount++}set offText(value){this._offValues.override(value)}get offText(){return this._offValues.value}set onText(value){this._onValues.override(value)}get onText(){return this._onValues.value}get disabledClass(){return this.disabled}get formItem(){return!this.skeleton}setDisabledState(isDisabled){this.disabled=isDisabled}getOffText(){return this._offValues.subject}getOnText(){return this._onValues.subject}getCheckedText(){return this.checked?this._onValues.subject:this._offValues.subject}emitChangeEvent(){this.checkedChange.emit(this.checked),this.propagateChange(this.checked)}isTemplate(value){return value instanceof core.TemplateRef}};Toggle.toggleCount=0,Toggle.ctorParameters=()=>[{type:core.ChangeDetectorRef},{type:i18n.oc}],Toggle.propDecorators={offText:[{type:core.Input}],onText:[{type:core.Input}],label:[{type:core.Input}],size:[{type:core.Input}],hideLabel:[{type:core.Input}],skeleton:[{type:core.HostBinding,args:["class.cds--toggle--skeleton"]},{type:core.Input}],toggleClass:[{type:core.HostBinding,args:["class.cds--toggle"]}],disabledClass:[{type:core.HostBinding,args:["class.cds--toggle--disabled"]}],formItem:[{type:core.HostBinding,args:["class.cds--form-item"]}]},Toggle=(0,tslib_es6.gn)([(0,core.Component)({selector:"cds-toggle, ibm-toggle",template:'\n\t\t<ng-container *ngIf="!skeleton; else skeletonTemplate;">\n\t\t\t<button\n\t\t\t\tclass="cds--toggle__button"\n\t\t\t\t[disabled]="disabled"\n\t\t\t\t[id]="id"\n\t\t\t\trole="switch"\n\t\t\t\ttype="button"\n\t\t\t\t[attr.aria-checked]="checked"\n\t\t\t\t(click)="onClick($event)">\n\t\t\t</button>\n\t\t\t<label\n\t\t\t\tclass="cds--toggle__label"\n\t\t\t\t[for]="id">\n\t\t\t\t<span\n\t\t\t\t\tclass="cds--toggle__label-text"\n\t\t\t\t\t[ngClass]="{\n\t\t\t\t\t\t\'cds--visually-hidden\': hideLabel\n\t\t\t\t\t}">\n\t\t\t\t\t<ng-container *ngIf="!isTemplate(label)">{{label}}</ng-container>\n\t\t\t\t\t<ng-template *ngIf="isTemplate(label)" [ngTemplateOutlet]="label"></ng-template>\n\t\t\t\t</span>\n\t\t\t\t<div\n\t\t\t\t\tclass="cds--toggle__appearance"\n\t\t\t\t\t[ngClass]="{\n\t\t\t\t\t\t\'cds--toggle__appearance--sm\': size === \'sm\'\n\t\t\t\t\t}">\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass="cds--toggle__switch"\n\t\t\t\t\t\t[ngClass]="{\n\t\t\t\t\t\t\t\'cds--toggle__switch--checked\': checked\n\t\t\t\t\t\t}">\n\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\t*ngIf="size === \'sm\'"\n\t\t\t\t\t\t\tclass=\'cds--toggle__check\'\n\t\t\t\t\t\t\twidth="6px"\n\t\t\t\t\t\t\theight="5px"\n\t\t\t\t\t\t\tviewBox="0 0 6 5">\n\t\t\t\t\t\t\t<path d="M2.2 2.7L5 0 6 1 2.2 5 0 2.7 1 1.5z" />\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</div>\n\t\t\t\t\t<span class="cds--toggle__text">\n\t\t\t\t\t\t{{(hideLabel ? label : (getCheckedText() | async))}}\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t</label>\n\t\t</ng-container>\n\t\t<ng-template #skeletonTemplate>\n\t\t\t<div class="cds--toggle__skeleton-circle"></div>\n\t\t\t<div class="cds--toggle__skeleton-rectangle"></div>\n\t\t</ng-template>\n\t',providers:[{provide:fesm2020_forms.JU,useExisting:Toggle,multi:!0}]})],Toggle);var common=__webpack_require__("./node_modules/@angular/common/fesm2020/common.mjs");let ToggleModule=class ToggleModule{};ToggleModule=(0,tslib_es6.gn)([(0,core.NgModule)({declarations:[Toggle],exports:[Toggle],imports:[common.CommonModule,fesm2020_forms.u5,i18n.LU]})],ToggleModule)},"./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.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}})},"./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 core_client_1=__webpack_require__("@storybook/core-client"),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,core_client_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__,"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}})}}]);
|