@carbon/ibmdotcom-web-components 2.28.0 → 2.30.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/custom-elements.json +62 -66
- package/dist/dotcom-shell.js +1 -1
- package/dist/dotcom-shell.min.js +2 -2
- package/dist/ibmdotcom-web-components-dotcom-shell.js +1 -1
- package/dist/ibmdotcom-web-components-dotcom-shell.min.js +2 -2
- package/dist/{index-cc7138d9.js → index-70141123.js} +13 -13
- package/dist/{index-01b63aeb.js → index-dbec7dea.js} +28 -10
- package/dist/{left-nav-menu-aac029b1.js → left-nav-menu-4547bc31.js} +1 -1
- package/dist/{left-nav-menu-category-heading-b3ff93f8.js → left-nav-menu-category-heading-40a84206.js} +1 -1
- package/dist/{left-nav-menu-category-heading-986429d0.js → left-nav-menu-category-heading-ea7b8fd0.js} +2 -2
- package/dist/{left-nav-menu-5bb4c667.js → left-nav-menu-e123e07b.js} +2 -2
- package/dist/{left-nav-menu-item-db321bca.js → left-nav-menu-item-b13fa9bd.js} +2 -2
- package/dist/{left-nav-menu-item-28232edc.js → left-nav-menu-item-f0de1048.js} +1 -1
- package/dist/{left-nav-menu-section-3cb98ba9.js → left-nav-menu-section-12c63c9c.js} +2 -2
- package/dist/{left-nav-menu-section-3101ac3a.js → left-nav-menu-section-46049aa9.js} +1 -1
- package/dist/{left-nav-overlay-3438362c.js → left-nav-overlay-d67d0a6a.js} +1 -1
- package/dist/{left-nav-overlay-23bc48bd.js → left-nav-overlay-f71e3d74.js} +2 -2
- package/dist/{megamenu-category-group-350529dd.js → megamenu-category-group-2098af3d.js} +1 -1
- package/dist/{megamenu-category-group-42c2e7c6.js → megamenu-category-group-c85b1d1c.js} +2 -2
- package/dist/{megamenu-category-group-copy-7aeee6b6.js → megamenu-category-group-copy-74dadbb3.js} +2 -2
- package/dist/{megamenu-category-group-copy-ab52b66e.js → megamenu-category-group-copy-fd64eb79.js} +1 -1
- package/dist/{megamenu-category-heading-304c82c0.js → megamenu-category-heading-24704ad6.js} +1 -1
- package/dist/{megamenu-category-heading-de185d0d.js → megamenu-category-heading-88fb4721.js} +2 -2
- package/dist/{megamenu-category-link-74c8f943.js → megamenu-category-link-ae6d2273.js} +2 -2
- package/dist/{megamenu-category-link-84cc5c34.js → megamenu-category-link-af006474.js} +1 -1
- package/dist/{megamenu-category-link-group-677ac299.js → megamenu-category-link-group-06a95043.js} +1 -1
- package/dist/{megamenu-category-link-group-902363db.js → megamenu-category-link-group-8c6969cd.js} +2 -2
- package/dist/{megamenu-left-navigation-5904eb28.js → megamenu-left-navigation-382f79e5.js} +2 -2
- package/dist/{megamenu-left-navigation-68980017.js → megamenu-left-navigation-7796fe5e.js} +1 -1
- package/dist/{megamenu-overlay-4181ba67.js → megamenu-overlay-327917c7.js} +2 -2
- package/dist/{megamenu-overlay-512ee689.js → megamenu-overlay-d33c2656.js} +1 -1
- package/dist/{megamenu-tab-057e644c.js → megamenu-tab-819a92be.js} +2 -2
- package/dist/{megamenu-tab-2fa6c908.js → megamenu-tab-d7354c99.js} +1 -1
- package/es/components/back-to-top/__stories__/back-to-top.stories.css.js +1 -1
- package/es/components/card/card-footer.d.ts +6 -1
- package/es/components/card/card-footer.js +18 -1
- package/es/components/card/card-footer.js.map +1 -1
- package/es/components/card/card.css.js +1 -1
- package/es/components/card-group/card-group.css.js +1 -1
- package/es/components/card-in-card/card-in-card.css.js +1 -1
- package/es/components/card-link/card-link.css.js +1 -1
- package/es/components/card-section-offset/card-section-offset.css.js +1 -1
- package/es/components/card-section-simple/card-section-simple.css.js +1 -1
- package/es/components/content-block/content-block.css.js +1 -1
- package/es/components/content-block-cards/content-block-cards.css.js +1 -1
- package/es/components/content-block-horizontal/content-block-horizontal.css.js +1 -1
- package/es/components/content-block-media/content-block-media.css.js +1 -1
- package/es/components/content-block-mixed/content-block-mixed.css.js +1 -1
- package/es/components/content-group-cards/content-group-cards.css.js +1 -1
- package/es/components/content-item-row/content-item-row-media.css.js +1 -1
- package/es/components/content-item-row/content-item-row.css.js +1 -1
- package/es/components/cta/cta.css.js +1 -1
- package/es/components/cta/defs.d.ts +5 -1
- package/es/components/cta/defs.js +2 -1
- package/es/components/cta/defs.js.map +1 -1
- package/es/components/dotcom-shell/dotcom-shell.css.js +1 -1
- package/es/components/feature-card/feature-card.css.js +1 -1
- package/es/components/footer/footer.css.js +1 -1
- package/es/components/leadspace-block/leadspace-block.css.js +1 -1
- package/es/components/leadspace-with-search/leadspace-with-search.css.js +1 -1
- package/es/components/link-list/link-list.css.js +1 -1
- package/es/components/locale-modal/locale-modal.css.js +1 -1
- package/es/components/masthead/masthead.css.js +1 -1
- package/es/components/notice-choice/notice-choice.d.ts +53 -39
- package/es/components/notice-choice/notice-choice.js +529 -474
- package/es/components/notice-choice/notice-choice.js.map +1 -1
- package/es/components/notice-choice/services.d.ts +1 -0
- package/es/components/notice-choice/services.js +23 -0
- package/es/components/notice-choice/services.js.map +1 -1
- package/es/components/table-of-contents/table-of-contents.js +5 -3
- package/es/components/table-of-contents/table-of-contents.js.map +1 -1
- package/es/components/tabs-extended-media/tabs-extended-media.css.js +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/lib/components/cta/defs.js +2 -1
- package/lib/components/cta/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/package.json +5 -5
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
9
|
+
import { LitElement } from 'lit';
|
|
10
|
+
import '@carbon/web-components/es/components/skeleton-text/index.js';
|
|
10
11
|
declare const NoticeChoice_base: {
|
|
11
12
|
new (...args: any[]): {
|
|
12
13
|
linkNode: any;
|
|
@@ -353,6 +354,7 @@ declare const NoticeChoice_base: {
|
|
|
353
354
|
*
|
|
354
355
|
* @element c4d-notice-choice
|
|
355
356
|
* @fires c4d-notice-choice-change
|
|
357
|
+
* @fires c4d-notice-choice-email-status-changed
|
|
356
358
|
* The custom event fired when default choice loaded or user change some preferences.
|
|
357
359
|
* The field and value should be taken from the detail object and send it to MRS.
|
|
358
360
|
* @csspart checkbox-wrapper - The checkbox wrapper. Usage `c4d-notice-choice::part(checkbox-wrapper)`
|
|
@@ -369,16 +371,21 @@ declare class NoticeChoice extends NoticeChoice_base {
|
|
|
369
371
|
* properties for passed attributes.
|
|
370
372
|
*/
|
|
371
373
|
questionchoices: string;
|
|
374
|
+
email: string;
|
|
372
375
|
country: string;
|
|
373
376
|
state: string;
|
|
374
377
|
language: string;
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
defaultValues: {};
|
|
379
|
-
hideErrorMessage: boolean;
|
|
380
|
-
combineEmailPhone: boolean;
|
|
378
|
+
termsConditionLink: import("lit-html").TemplateResult<1>;
|
|
379
|
+
enableAllOptIn: string;
|
|
380
|
+
hideErrorMessage: string;
|
|
381
381
|
environment: string;
|
|
382
|
+
/**
|
|
383
|
+
* End properties for passed attributes.
|
|
384
|
+
*/
|
|
385
|
+
/**
|
|
386
|
+
* properties for local state state management.
|
|
387
|
+
*/
|
|
388
|
+
defaultValues: {};
|
|
382
389
|
checkboxes: {};
|
|
383
390
|
ncData: any;
|
|
384
391
|
changed: boolean;
|
|
@@ -391,54 +398,61 @@ declare class NoticeChoice extends NoticeChoice_base {
|
|
|
391
398
|
};
|
|
392
399
|
countrySettings: any;
|
|
393
400
|
noticeOnly: any;
|
|
394
|
-
|
|
401
|
+
emailValid: boolean;
|
|
395
402
|
telephonePrechecked: boolean;
|
|
396
403
|
combinedEmailPhonePrechecked: boolean;
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
*/
|
|
403
|
-
preText: TemplateResult<1>;
|
|
404
|
-
defaultPreText: TemplateResult<1>;
|
|
404
|
+
isAnnualPeriodExpired: boolean;
|
|
405
|
+
showCheckBox: boolean;
|
|
406
|
+
isLoading: boolean;
|
|
407
|
+
preText: import("lit-html").TemplateResult<1>;
|
|
408
|
+
defaultPreText: import("lit-html").TemplateResult<1>;
|
|
405
409
|
values: {
|
|
406
410
|
EMAIL: boolean;
|
|
407
411
|
PHONE: boolean;
|
|
408
412
|
NC_HIDDEN_EMAIL: string;
|
|
409
413
|
NC_HIDDEN_PHONE: string;
|
|
410
414
|
};
|
|
415
|
+
valuesForEmailPhone: {
|
|
416
|
+
EMAIL: {
|
|
417
|
+
checkBoxStatus: string;
|
|
418
|
+
punsStatus: string;
|
|
419
|
+
};
|
|
420
|
+
};
|
|
411
421
|
hiddenEmail: string;
|
|
412
422
|
hiddenPhone: string;
|
|
413
|
-
ncTeleDetail: string;
|
|
414
|
-
ncEmailDetail: string;
|
|
415
|
-
prepareCheckboxes(): void;
|
|
416
|
-
defaultLoadContent(): void;
|
|
417
|
-
defaultLoadSettings(): void;
|
|
418
423
|
connectedCallback(): void;
|
|
419
|
-
|
|
424
|
+
static get stableSelector(): string;
|
|
425
|
+
static styles: any;
|
|
426
|
+
updated(changedProps: Map<string, unknown>): void;
|
|
427
|
+
private _dispatchChange;
|
|
428
|
+
onEmailChange(): void;
|
|
429
|
+
/**
|
|
430
|
+
* Centralized handler for failed or invalid responses.
|
|
431
|
+
*/
|
|
432
|
+
private _handleEmailCheckFailure;
|
|
433
|
+
private _initSettingsAndContent;
|
|
420
434
|
countryChangeAction(): void;
|
|
435
|
+
postTextTemplate(): import("lit-html").TemplateResult<1>;
|
|
421
436
|
countryChanged(): void;
|
|
437
|
+
setDefaultSelections(): void;
|
|
438
|
+
protected _buildCheckboxes(): any;
|
|
439
|
+
prepareCheckboxes(): void;
|
|
440
|
+
defaultLoadContent(): void;
|
|
441
|
+
defaultLoadSettings(): void;
|
|
442
|
+
checkCombineEmailPhoneBoxChange($event: any): void;
|
|
443
|
+
renderCheckbox(preText: any, checked: any): import("lit-html").TemplateResult<1>;
|
|
444
|
+
combinedPreTextTemplate(): import("lit-html").TemplateResult<1>;
|
|
445
|
+
checkBoxLegalChange(event: Event): void;
|
|
446
|
+
countryBasedLegalNotice(): import("lit-html").TemplateResult<1>[];
|
|
447
|
+
renderCombinedEmailPhoneSection(): import("lit-html").TemplateResult<1>;
|
|
448
|
+
pwsFieldsMap: Map<string, string>;
|
|
422
449
|
/**
|
|
423
|
-
*
|
|
424
|
-
* @param name name of the attribute
|
|
425
|
-
* @param oldVal old value of the attribute
|
|
426
|
-
* @param newVal new value of the attrbute
|
|
450
|
+
* Dispatch field change event to parent form
|
|
427
451
|
*/
|
|
428
|
-
|
|
429
|
-
static get stableSelector(): string;
|
|
430
|
-
static styles: any;
|
|
431
|
-
checkBoxLegalChange($event: any): void;
|
|
432
|
-
countryBasedLegalNotice(): TemplateResult[];
|
|
433
|
-
postTextTemplate(): TemplateResult<1>;
|
|
434
|
-
combinedPreTextTemplate(): any;
|
|
435
|
-
checkCombineEmailPhoneBoxChange($event: any): void;
|
|
436
|
-
renderCheckbox(preText: any, checked: any): TemplateResult<1>;
|
|
437
|
-
renderCombinedEmailPhoneSection(): TemplateResult<1>;
|
|
438
|
-
render(): TemplateResult<1>;
|
|
439
|
-
protected _getOptionByQuestion: (question: any) => any;
|
|
440
|
-
protected _buildCheckboxes(): any;
|
|
452
|
+
private dispatchCustomEvent;
|
|
441
453
|
_onChange(field: string, value: string | null): void;
|
|
454
|
+
_onEmailStatusChanged(field: string, value: string | null): void;
|
|
455
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
442
456
|
}
|
|
443
457
|
export default NoticeChoice;
|
|
444
458
|
|