@platformscode/core 0.0.35 → 0.0.38
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/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/date-cell_3.cjs.entry.js +12 -12
- package/dist/cjs/dga-accordion.cjs.entry.js +3 -3
- package/dist/cjs/dga-actions.cjs.entry.js +1 -1
- package/dist/cjs/dga-apex-chart.cjs.entry.js +1 -1
- package/dist/cjs/dga-avatar_10.cjs.entry.js +985 -0
- package/dist/cjs/dga-button-leading-icon.cjs.entry.js +1 -1
- package/dist/cjs/dga-card-actions_4.cjs.entry.js +4 -4
- package/dist/cjs/dga-card-image.cjs.entry.js +1 -1
- package/dist/cjs/dga-card-title.cjs.entry.js +1 -1
- package/dist/cjs/dga-card.cjs.entry.js +2 -2
- package/dist/cjs/dga-carousel-v2.cjs.entry.js +1 -1
- package/dist/cjs/dga-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/dga-chip.cjs.entry.js +2 -2
- package/dist/cjs/dga-circular-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/dga-codesnippet.cjs.entry.js +4 -4
- package/dist/cjs/dga-collapse.cjs.entry.js +1 -1
- package/dist/cjs/dga-content-switcher_3.cjs.entry.js +3 -3
- package/dist/cjs/dga-data-table-usage.cjs.entry.js +1 -1
- package/dist/cjs/dga-data-table.cjs.entry.js +1 -1
- package/dist/cjs/dga-date-field.cjs.entry.js +2 -2
- package/dist/cjs/dga-digital-signature.cjs.entry.js +2 -2
- package/dist/cjs/dga-divider.cjs.entry.js +1 -1
- package/dist/cjs/dga-drawer_3.cjs.entry.js +3 -3
- package/dist/cjs/dga-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/dga-featured-icon-usage.cjs.entry.js +1 -1
- package/dist/cjs/dga-file-upload.cjs.entry.js +2 -2
- package/dist/cjs/dga-flex.cjs.entry.js +1 -1
- package/dist/cjs/dga-footer.cjs.entry.js +2 -2
- package/dist/cjs/dga-header-menu_5.cjs.entry.js +1 -1
- package/dist/cjs/dga-helper-text_3.cjs.entry.js +2 -2
- package/dist/cjs/dga-inline-alert.cjs.entry.js +1 -1
- package/dist/cjs/dga-list-item_2.cjs.entry.js +2 -2
- package/dist/cjs/dga-loading.cjs.entry.js +1 -1
- package/dist/cjs/dga-metric-chart-v2.cjs.entry.js +1 -1
- package/dist/cjs/dga-metric-v2.cjs.entry.js +3 -3
- package/dist/cjs/dga-metric.cjs.entry.js +3 -3
- package/dist/cjs/dga-modal.cjs.entry.js +1 -1
- package/dist/cjs/dga-notification-toast.cjs.entry.js +1 -1
- package/dist/cjs/dga-notification.cjs.entry.js +9 -28
- package/dist/cjs/dga-number-input.cjs.entry.js +1 -1
- package/dist/cjs/dga-pagination.cjs.entry.js +1 -1
- package/dist/cjs/dga-prefix.cjs.entry.js +1 -1
- package/dist/cjs/dga-quote.cjs.entry.js +2 -1
- package/dist/cjs/dga-radial-stepper.cjs.entry.js +4 -4
- package/dist/cjs/dga-radio-button.cjs.entry.js +4 -4
- package/dist/cjs/dga-search-box_2.cjs.entry.js +3 -3
- package/dist/cjs/dga-suffix.cjs.entry.js +1 -1
- package/dist/cjs/dga-table-body.cjs.entry.js +1 -1
- package/dist/cjs/dga-table-of-content.cjs.entry.js +1 -1
- package/dist/cjs/dga-table.cjs.entry.js +1 -1
- package/dist/cjs/dga-tabs.cjs.entry.js +3 -3
- package/dist/cjs/dga-tag_3.cjs.entry.js +2 -2
- package/dist/cjs/dga-textarea.cjs.entry.js +2 -2
- package/dist/cjs/floating-button.cjs.entry.js +1 -1
- package/dist/cjs/index-BCWGzgj9.js +57 -0
- package/dist/cjs/{index-D9eOytNW.js → index-BKdUE5XK.js} +10 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nds-avatar.cjs.entry.js +1 -1
- package/dist/cjs/nds-button.cjs.entry.js +1 -1
- package/dist/cjs/nds-table-of-content.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/dga-accordion/dga-accordion.js +2 -2
- package/dist/collection/components/dga-actions/dga-actions.js +1 -1
- package/dist/collection/components/dga-apex-chart/dga-apex-chart.js +1 -1
- package/dist/collection/components/dga-avatar/dga-avatar.js +7 -4
- package/dist/collection/components/dga-avatar-group/dga-avatar-group.css +7 -2
- package/dist/collection/components/dga-avatar-group/dga-avatar-group.js +2 -2
- package/dist/collection/components/dga-breadcrumbs/dga-breadcrumbs.js +1 -1
- package/dist/collection/components/dga-button/dga-button.js +2 -2
- package/dist/collection/components/dga-button-v2/dga-button-leading-icon.js +1 -1
- package/dist/collection/components/dga-button-v2/dga-button-v2.js +2 -2
- package/dist/collection/components/dga-card/dga-card.js +2 -2
- package/dist/collection/components/dga-card-v2/dga-card-actions.js +1 -1
- package/dist/collection/components/dga-card-v2/dga-card-content.js +1 -1
- package/dist/collection/components/dga-card-v2/dga-card-expandable-content.js +1 -1
- package/dist/collection/components/dga-card-v2/dga-card-image.js +1 -1
- package/dist/collection/components/dga-card-v2/dga-card-title.js +1 -1
- package/dist/collection/components/dga-card-v2/dga-card-v2.js +1 -1
- package/dist/collection/components/dga-carousel/dga-carousel.js +7 -6
- package/dist/collection/components/dga-carousel-item/dga-carousel-item.js +1 -1
- package/dist/collection/components/dga-carousel-v2/dga-carousel-v2.js +1 -1
- package/dist/collection/components/dga-chart/dga-chart.js +5 -5
- package/dist/collection/components/dga-checkbox/dga-checkbox.js +3 -3
- package/dist/collection/components/dga-chip/dga-chip.js +2 -2
- package/dist/collection/components/dga-circular-progress-bar/dga-circular-progress-bar.js +1 -1
- package/dist/collection/components/dga-codeSnippet/dga-codeSnippet.js +4 -4
- package/dist/collection/components/dga-collapse/dga-collapse.js +1 -1
- package/dist/collection/components/dga-content-switcher/dga-content-switcher-item.js +1 -1
- package/dist/collection/components/dga-content-switcher/dga-content-switcher-panel.js +1 -1
- package/dist/collection/components/dga-content-switcher/dga-content-switcher.js +1 -1
- package/dist/collection/components/dga-data-table/dga-data-table-usage.js +1 -1
- package/dist/collection/components/dga-data-table/dga-data-table.js +2 -2
- package/dist/collection/components/dga-data-table/dga-table.body.js +1 -1
- package/dist/collection/components/dga-data-table/dga-table.js +1 -1
- package/dist/collection/components/dga-date-field/dga-date-field.js +1 -1
- package/dist/collection/components/dga-datepicker/DateCell.js +1 -1
- package/dist/collection/components/dga-datepicker/MonthNavigator.js +4 -4
- package/dist/collection/components/dga-datepicker/dga-datepicker.js +7 -7
- package/dist/collection/components/dga-digital-signature/dga-digital-signature.js +1 -1
- package/dist/collection/components/dga-divider/dga-divider.js +1 -1
- package/dist/collection/components/dga-drawer/DrawerMenu.js +1 -1
- package/dist/collection/components/dga-drawer/dga-drawer.js +1 -1
- package/dist/collection/components/dga-drawer/tab-component.js +1 -1
- package/dist/collection/components/dga-dropdown/dga-dropdown.js +2 -2
- package/dist/collection/components/dga-featured-icon/dga-featured-icon.js +1 -1
- package/dist/collection/components/dga-feedback-icon/dga-feedback-icon.js +1 -1
- package/dist/collection/components/dga-file-upload/dga-file-upload.js +1 -1
- package/dist/collection/components/dga-filteration/dga-filteration.js +4 -4
- package/dist/collection/components/dga-flex/dga-flex.js +1 -1
- package/dist/collection/components/dga-floating-button/dga-floatingButton.js +1 -1
- package/dist/collection/components/dga-footer/dga-footer.js +1 -1
- package/dist/collection/components/dga-grid/dga-grid-container.js +4 -4
- package/dist/collection/components/dga-grid/dga-grid-item.js +6 -6
- package/dist/collection/components/dga-header/dga-header-menu.js +1 -1
- package/dist/collection/components/dga-header/dga-header-mobile-actions.js +1 -1
- package/dist/collection/components/dga-header/dga-header.js +1 -1
- package/dist/collection/components/dga-header/dga-nav-header-sub-menu.js +1 -1
- package/dist/collection/components/dga-icon/dga-icon.js +45 -24
- package/dist/collection/components/dga-icon/utils.js +83 -5
- package/dist/collection/components/dga-list/dga-list-item.js +3 -3
- package/dist/collection/components/dga-list/dga-list-v2.js +2 -2
- package/dist/collection/components/dga-loading/dga-loading.js +3 -3
- package/dist/collection/components/dga-metric/dga-metric-chart-v2.js +3 -3
- package/dist/collection/components/dga-metric/dga-metric.js +5 -5
- package/dist/collection/components/dga-metric-v2/dga-metric-v2.js +5 -5
- package/dist/collection/components/dga-notification/dga-notification.js +9 -28
- package/dist/collection/components/dga-quote/dga-quote.js +22 -1
- package/dist/collection/components/dga-radial-stepper/dga-radial-stepper.js +5 -5
- package/dist/collection/components/dga-radio-button/dga-radio-button.js +3 -3
- package/dist/collection/components/dga-table-of-content/dga-table-of-content.js +2 -2
- package/dist/collection/components/dga-tabs/dga-tabs.js +4 -4
- package/dist/collection/components/dga-tag/dga-tag.css +3 -3
- package/dist/collection/components/dga-text-input/dga-prefix.js +1 -1
- package/dist/collection/components/dga-text-input/dga-suffix.js +1 -1
- package/dist/collection/components/dga-tooltip/dga-tooltip.js +6 -6
- package/dist/collection/nds-components/nds-avatar/nds-avatar.js +4 -4
- package/dist/collection/nds-components/nds-button/nds-button.js +3 -3
- package/dist/collection/nds-components/nds-link/nds-link.js +1 -1
- package/dist/collection/nds-components/nds-table-of-content/nds-table-of-content.js +2 -2
- package/dist/collection/utils/index.js +47 -0
- package/dist/components/date-cell.js +1 -1
- package/dist/components/dga-accordion-usage.js +2 -2
- package/dist/components/dga-accordion.js +1 -1
- package/dist/components/dga-actions.js +1 -1
- package/dist/components/dga-apex-chart.js +1 -1
- package/dist/components/dga-avatar-group.js +1 -1
- package/dist/components/dga-avatar-usage.js +3 -3
- package/dist/components/dga-avatar.js +1 -1
- package/dist/components/dga-breadcrumbs-usage.js +2 -2
- package/dist/components/dga-breadcrumbs.js +1 -1
- package/dist/components/dga-button-leading-icon.js +1 -1
- package/dist/components/dga-button-usage.js +2 -2
- package/dist/components/dga-button-v2-usage.js +4 -4
- package/dist/components/dga-button-v2.js +1 -1
- package/dist/components/dga-button.js +1 -1
- package/dist/components/dga-card-actions.js +1 -1
- package/dist/components/dga-card-content.js +1 -1
- package/dist/components/dga-card-expandable-content.js +1 -1
- package/dist/components/dga-card-image.js +1 -1
- package/dist/components/dga-card-title.js +1 -1
- package/dist/components/dga-card-usage.js +6 -6
- package/dist/components/dga-card-v2-usage.js +9 -9
- package/dist/components/dga-card-v2.js +1 -1
- package/dist/components/dga-card.js +1 -1
- package/dist/components/dga-carousel-item.js +1 -1
- package/dist/components/dga-carousel-usage.js +3 -3
- package/dist/components/dga-carousel-v2.js +1 -1
- package/dist/components/dga-carousel.js +1 -1
- package/dist/components/dga-checkbox-usage.js +2 -2
- package/dist/components/dga-checkbox.js +1 -1
- package/dist/components/dga-chip-usage.js +2 -2
- package/dist/components/dga-chip.js +1 -1
- package/dist/components/dga-circular-progress-bar-usage.js +2 -2
- package/dist/components/dga-circular-progress-bar.js +1 -1
- package/dist/components/dga-codesnippet-usage.js +5 -5
- package/dist/components/dga-codesnippet.js +1 -1
- package/dist/components/dga-collapse-usage.js +1 -1
- package/dist/components/dga-collapse.js +1 -1
- package/dist/components/dga-content-switcher-item.js +1 -1
- package/dist/components/dga-content-switcher-panel.js +1 -1
- package/dist/components/dga-content-switcher-usage.js +3 -3
- package/dist/components/dga-content-switcher.js +1 -1
- package/dist/components/dga-data-table-usage.js +5 -5
- package/dist/components/dga-data-table.js +1 -1
- package/dist/components/dga-date-field-usage.js +8 -8
- package/dist/components/dga-date-field.js +1 -1
- package/dist/components/dga-datepicker-usage.js +7 -7
- package/dist/components/dga-datepicker.js +1 -1
- package/dist/components/dga-digital-signature-usage.js +2 -2
- package/dist/components/dga-digital-signature.js +1 -1
- package/dist/components/dga-divider-usage.js +1 -1
- package/dist/components/dga-divider.js +1 -1
- package/dist/components/dga-drawer-usage.js +7 -7
- package/dist/components/dga-drawer.js +1 -1
- package/dist/components/dga-dropdown-usage.js +2 -2
- package/dist/components/dga-dropdown.js +1 -1
- package/dist/components/dga-featured-icon-usage.js +3 -3
- package/dist/components/dga-featured-icon.js +1 -1
- package/dist/components/dga-feedback-icon.js +1 -1
- package/dist/components/dga-file-upload-usage.js +3 -3
- package/dist/components/dga-file-upload.js +1 -1
- package/dist/components/dga-filteration-usage.js +8 -8
- package/dist/components/dga-filteration.js +1 -1
- package/dist/components/dga-flex.js +1 -1
- package/dist/components/dga-floating-button-usage.js +2 -2
- package/dist/components/dga-footer-usage.js +2 -2
- package/dist/components/dga-footer.js +1 -1
- package/dist/components/dga-header-action-btn.js +1 -1
- package/dist/components/dga-header-menu-item-usage.js +13 -13
- package/dist/components/dga-header-menu.js +1 -1
- package/dist/components/dga-header-sub-menu-item.js +1 -1
- package/dist/components/dga-header-usage.js +18 -18
- package/dist/components/dga-header.js +4 -4
- package/dist/components/dga-helper-text.js +1 -1
- package/dist/components/dga-huge-icon-usage.js +1 -1
- package/dist/components/dga-icon.js +1 -1
- package/dist/components/dga-inline-alert-usage.js +2 -2
- package/dist/components/dga-inline-alert.js +1 -1
- package/dist/components/dga-list-item.js +1 -1
- package/dist/components/dga-list-usage.js +3 -3
- package/dist/components/dga-list-v2.js +1 -1
- package/dist/components/dga-loading-usage.js +1 -1
- package/dist/components/dga-loading.js +1 -1
- package/dist/components/dga-menu-usage.js +1 -1
- package/dist/components/dga-metric-chart-v2.js +1 -1
- package/dist/components/dga-metric-usage.js +1 -1
- package/dist/components/dga-metric-v2.js +5 -5
- package/dist/components/dga-metric.js +5 -5
- package/dist/components/dga-modal-usage.js +4 -4
- package/dist/components/dga-modal-v2-usage.js +5 -5
- package/dist/components/dga-modal-v2.js +1 -1
- package/dist/components/dga-modal.js +1 -1
- package/dist/components/dga-nav-header-actions.js +1 -1
- package/dist/components/dga-nav-header-link.js +1 -1
- package/dist/components/dga-nav-header-sub-menu-link.js +1 -1
- package/dist/components/dga-nav-header-sub-menu.js +1 -1
- package/dist/components/dga-notification-toast-usage.js +3 -3
- package/dist/components/dga-notification-toast.js +1 -1
- package/dist/components/dga-notification-usage.js +2 -2
- package/dist/components/dga-notification.js +1 -1
- package/dist/components/dga-number-input-usage.js +3 -3
- package/dist/components/dga-number-input.js +1 -1
- package/dist/components/dga-pagination-usage.js +1 -1
- package/dist/components/dga-pagination.js +1 -1
- package/dist/components/dga-prefix.js +1 -1
- package/dist/components/dga-progress-indicator-step-v3.js +1 -1
- package/dist/components/dga-progress-indicator-step.js +1 -1
- package/dist/components/dga-progress-indicator-usage.js +2 -2
- package/dist/components/dga-progress-indicator-v3-usage.js +2 -2
- package/dist/components/dga-quote-usage.js +4 -4
- package/dist/components/dga-quote.js +1 -1
- package/dist/components/dga-radial-stepper-usage.js +2 -2
- package/dist/components/dga-radial-stepper.js +1 -1
- package/dist/components/dga-radio-button-usage.js +2 -2
- package/dist/components/dga-radio-button.js +1 -1
- package/dist/components/dga-search-box-usage.js +3 -3
- package/dist/components/dga-search-box.js +1 -1
- package/dist/components/dga-second-nav-header-usage.js +5 -5
- package/dist/components/dga-slideout-menu-header.js +1 -1
- package/dist/components/dga-slideout-menu-usage.js +8 -8
- package/dist/components/dga-slideout-menu.js +1 -1
- package/dist/components/dga-suffix.js +2 -2
- package/dist/components/dga-table-body.js +1 -1
- package/dist/components/dga-table-of-content-usage.js +1 -1
- package/dist/components/dga-table-of-content.js +1 -1
- package/dist/components/dga-table-usage.js +3 -3
- package/dist/components/dga-table.js +1 -1
- package/dist/components/dga-tabs-usage.js +3 -3
- package/dist/components/dga-tabs.js +1 -1
- package/dist/components/dga-tag-usage.js +2 -2
- package/dist/components/dga-tag.js +1 -1
- package/dist/components/dga-text-input-usage.js +4 -4
- package/dist/components/dga-text-input.js +1 -1
- package/dist/components/dga-textarea-usage.js +2 -2
- package/dist/components/dga-textarea.js +1 -1
- package/dist/components/dga-tooltip-usage.js +2 -2
- package/dist/components/dga-tooltip.js +1 -1
- package/dist/components/floating-button.js +1 -1
- package/dist/components/month-navigator.js +1 -1
- package/dist/components/nds-avatar-usage.js +3 -3
- package/dist/components/nds-avatar.js +2 -2
- package/dist/components/nds-button-usage.js +5 -5
- package/dist/components/nds-button.js +1 -1
- package/dist/components/nds-floating-button-usage.js +1 -1
- package/dist/components/nds-link-usage.js +2 -2
- package/dist/components/nds-table-of-content-usage.js +1 -1
- package/dist/components/nds-table-of-content.js +1 -1
- package/dist/components/{p-Bjxp-Bzv.js → p--j_c9xzb.js} +5 -5
- package/dist/components/{p-BM-plR02.js → p-0khNFxl0.js} +9 -9
- package/dist/components/{p-DS3wOmQO.js → p-9t9pP5wb.js} +2 -2
- package/dist/components/{p-Dd1XVYJF.js → p-B-0hBREP.js} +1 -1
- package/dist/components/{p-Bs_sPiZE.js → p-B1kxhXdl.js} +1 -1
- package/dist/components/{p-BbTFdVcG.js → p-BFp2aZZz.js} +6 -4
- package/dist/components/{p-gl2x-iRx.js → p-BFq0-7mf.js} +4 -4
- package/dist/components/{p-D1MMwYa8.js → p-BK2eNLm-.js} +7 -7
- package/dist/components/{p-ZelDjkxQ.js → p-BKbPoVUo.js} +3 -3
- package/dist/components/{p-DiP2bKrV.js → p-BLvJ2oPi.js} +3 -3
- package/dist/components/{p-Dosu8q7R.js → p-BMmSCWCu.js} +1 -1
- package/dist/components/{p-Dxf245we.js → p-BNYQpuTv.js} +1 -1
- package/dist/components/{p-D_WncN0b.js → p-BNhIil8E.js} +3 -3
- package/dist/components/{p-BfhhEgg-.js → p-BOjMTu4v.js} +5 -5
- package/dist/components/{p-Pml5NKmL.js → p-BT-zFDF3.js} +3 -3
- package/dist/components/{p-BXNu0jRu.js → p-BZ7tXFNm.js} +1 -1
- package/dist/components/{p-GDuInssM.js → p-BZPI28S4.js} +3 -3
- package/dist/components/{p-awnvl4MX.js → p-B_3saRrm.js} +1 -1
- package/dist/components/{p-YcCmBZW3.js → p-BdIwaaMc.js} +6 -1
- package/dist/components/{p-D9uV831l.js → p-Bg_-hNst.js} +2 -2
- package/dist/components/{p-Don4li2O.js → p-Bgym2s7u.js} +6 -6
- package/dist/components/{p-KLIoWA81.js → p-BptOYTd-.js} +1 -1
- package/dist/components/{p-DMuRo8EU.js → p-BuRQ_6As.js} +2 -2
- package/dist/components/{p-BQEjovbJ.js → p-Bwl3mtDP.js} +7 -6
- package/dist/components/{p-BLDzt_Uq.js → p-BzIa2Cq3.js} +1 -1
- package/dist/components/{p-Cmg--ZO6.js → p-C-IvTIch.js} +4 -5
- package/dist/components/{p-FjQbvIG7.js → p-C16HXFfa.js} +1 -1
- package/dist/components/{p-DR5P_P16.js → p-C5RYd_IA.js} +1 -1
- package/dist/components/{p-CnoQYu5E.js → p-C8mvgvMh.js} +1 -1
- package/dist/components/{p-DmiaKdLo.js → p-CFUMF5YN.js} +5 -2
- package/dist/components/{p-C-62j229.js → p-CG1PUR2T.js} +6 -7
- package/dist/components/{p-B7B0P3Tp.js → p-CGrf7k7J.js} +2 -2
- package/dist/components/{p-DzkNYNWQ.js → p-CK4S8BVY.js} +13 -13
- package/dist/components/p-CKmBHs6n.js +68 -0
- package/dist/components/{p-CvMsg1eu.js → p-CPgUKuiN.js} +5 -5
- package/dist/components/{p-DDV4TUDe.js → p-CPvxSDej.js} +1 -2
- package/dist/components/{p-CHHI-Ocu.js → p-CWHgkXX0.js} +1 -1
- package/dist/components/{p-TR-8p4D-.js → p-CXATKgnl.js} +1 -1
- package/dist/components/{p-CKrmM6in.js → p-CZCeh3H_.js} +3 -3
- package/dist/components/{p-CfQ8F8Bh.js → p-CdnvAuto.js} +2 -2
- package/dist/components/{p-ybSjjgRd.js → p-ClRnWVkd.js} +1 -1
- package/dist/components/{p-DJ_HacYp.js → p-CncwSLJZ.js} +4 -4
- package/dist/components/{p-DgX1GhOA.js → p-Cpuem5Xg.js} +1 -1
- package/dist/components/{p-Cyhpb_Rn.js → p-D25UKaEu.js} +8 -8
- package/dist/components/{p-KG6K-VfA.js → p-D3RrJHe2.js} +1 -1
- package/dist/components/{p-ZhmbbVrl.js → p-D4GcJ_x8.js} +3 -3
- package/dist/components/{p-CKPSKhfQ.js → p-D6avvN5k.js} +1 -1
- package/dist/components/{p-Q1ZPiOaS.js → p-D70Rxxoo.js} +1 -1
- package/dist/components/{p-DSD9HLIM.js → p-D95vhfgu.js} +2 -2
- package/dist/components/{p-COOZpHM-.js → p-DSwWrZlM.js} +4 -4
- package/dist/components/{p-CcNS0CYN.js → p-DWDgZ64y.js} +112 -22
- package/dist/components/{p-Cp4XrPXy.js → p-D_XsbuGG.js} +4 -4
- package/dist/components/{p-Cg2ruBZP.js → p-DboQJAUi.js} +1 -1
- package/dist/components/{p-C0pZ4KiI.js → p-DcTPr2gD.js} +10 -29
- package/dist/components/{p-CgHnB4Ok.js → p-DlvOoZQ9.js} +2 -2
- package/dist/components/{p-CgCfk7bZ.js → p-DnLupBQZ.js} +5 -5
- package/dist/components/{p-BAiv59EH.js → p-DnuBXAJ-.js} +3 -3
- package/dist/components/{p-SDJFYO-x.js → p-Dva9vsYN.js} +7 -7
- package/dist/components/{p-DOVT1GBx.js → p-Dvv3BdO_.js} +3 -3
- package/dist/components/{p-BAXB5c8Q.js → p-DzGU0x_h.js} +1 -1
- package/dist/components/{p-B7hJ4SNj.js → p-F66ktz1L.js} +3 -3
- package/dist/components/{p-CrHBgvRw.js → p-HV9tkfWL.js} +1 -1
- package/dist/components/{p-B1e2w8kd.js → p-HdgDxvir.js} +1 -1
- package/dist/components/{p-CGgOSMdv.js → p-J8MM0JsY.js} +7 -7
- package/dist/components/{p-VIZKxB_k.js → p-NSwdL19x.js} +2 -2
- package/dist/components/{p-DLER3hMX.js → p-PzjGna5K.js} +2 -2
- package/dist/components/{p-B_m6I75z.js → p-TfV0XO6J.js} +2 -2
- package/dist/components/{p-CSDgLEi4.js → p-UOJXt-FO.js} +4 -4
- package/dist/components/{p-CvASpWqB.js → p-XxWV99_u.js} +3 -3
- package/dist/components/{p-CYqnvK_U.js → p-ZwTMDF83.js} +3 -3
- package/dist/components/{p-B9KjUgb6.js → p-_-CzWbeq.js} +1 -1
- package/dist/components/{p-Bs1WQBbi.js → p-f2MDwTxU.js} +5 -6
- package/dist/components/{p-CD4HEP4m.js → p-gvnvuiD2.js} +1 -1
- package/dist/components/{p-DdRMnDyJ.js → p-ojgiY2yB.js} +1 -1
- package/dist/components/{p-DBxuY-4b.js → p-q1GCTpAl.js} +1 -1
- package/dist/components/{p-DIBv3sUd.js → p-y48iBw8b.js} +6 -6
- package/dist/components/{p-BTlGi_b5.js → p-yHix8HTT.js} +1 -1
- package/dist/components/{p-Bb9KX6Pu.js → p-z4AKbeqV.js} +3 -3
- package/dist/components/side-panel-menu.js +1 -1
- package/dist/components/submenu-component.js +1 -1
- package/dist/components/tab-component.js +1 -1
- package/dist/components/tab-link.js +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/{p-dbf58c4d.entry.js → p-07c3c350.entry.js} +1 -1
- package/dist/core/{p-45ad4858.entry.js → p-0fc50a9a.entry.js} +1 -1
- package/dist/core/{p-bd2f0ad8.entry.js → p-11a331a1.entry.js} +1 -1
- package/dist/core/{p-06b434a6.entry.js → p-15a804c0.entry.js} +1 -1
- package/dist/core/{p-f251b80d.entry.js → p-16399b5d.entry.js} +1 -1
- package/dist/core/{p-31bbf39e.entry.js → p-17884b9c.entry.js} +1 -1
- package/dist/core/{p-065d1649.entry.js → p-1ba77ae3.entry.js} +1 -1
- package/dist/core/{p-2eee0460.entry.js → p-1da2536d.entry.js} +1 -1
- package/dist/core/{p-9763bcac.entry.js → p-20074a5c.entry.js} +1 -1
- package/dist/core/{p-463e1d5d.entry.js → p-209e3e85.entry.js} +1 -1
- package/dist/core/{p-a2798609.entry.js → p-30100ced.entry.js} +1 -1
- package/dist/core/p-397f73c9.entry.js +1 -0
- package/dist/core/p-3a8c8253.entry.js +1 -0
- package/dist/core/p-3cc7ee7f.entry.js +1 -0
- package/dist/core/{p-9af64a20.entry.js → p-3e5b3bae.entry.js} +1 -1
- package/dist/core/{p-9d4ab931.entry.js → p-3e84194b.entry.js} +1 -1
- package/dist/core/{p-7a74b3c2.entry.js → p-4011fa2f.entry.js} +1 -1
- package/dist/core/{p-99bc050e.entry.js → p-441d800c.entry.js} +1 -1
- package/dist/core/{p-f64603bc.entry.js → p-45836373.entry.js} +1 -1
- package/dist/core/p-46d64e7f.entry.js +1 -0
- package/dist/core/{p-29e5b60c.entry.js → p-4f67210b.entry.js} +1 -1
- package/dist/core/{p-8e1d79b3.entry.js → p-592ad114.entry.js} +1 -1
- package/dist/core/{p-401383fb.entry.js → p-648402eb.entry.js} +1 -1
- package/dist/core/{p-0cef2fd7.entry.js → p-7417fe10.entry.js} +1 -1
- package/dist/core/p-79714384.entry.js +1 -0
- package/dist/core/p-7b9f73e7.entry.js +1 -0
- package/dist/core/{p-f5c3e86e.entry.js → p-7d6fecd1.entry.js} +1 -1
- package/dist/core/{p-3c4a5f5a.entry.js → p-8c0cd059.entry.js} +1 -1
- package/dist/core/{p-19c8b2ee.entry.js → p-90c8f575.entry.js} +1 -1
- package/dist/core/{p-1fb8604b.entry.js → p-91141f0c.entry.js} +1 -1
- package/dist/core/{p-8faccf2c.entry.js → p-91e1fff8.entry.js} +1 -1
- package/dist/core/{p-4c4b3d2e.entry.js → p-94769efd.entry.js} +1 -1
- package/dist/core/{p-4a765c14.entry.js → p-96049578.entry.js} +1 -1
- package/dist/core/{p-BgIVAeDg.js → p-BYA91_SW.js} +1 -1
- package/dist/core/p-OZG1OajU.js +1 -0
- package/dist/core/{p-c7867f2b.entry.js → p-a22233fe.entry.js} +1 -1
- package/dist/core/{p-664ceda8.entry.js → p-a7ed9d80.entry.js} +1 -1
- package/dist/core/{p-27ce521d.entry.js → p-a96f4b11.entry.js} +1 -1
- package/dist/core/{p-681585ef.entry.js → p-aea272f6.entry.js} +1 -1
- package/dist/core/{p-bdb9b997.entry.js → p-b6b80d9f.entry.js} +1 -1
- package/dist/core/{p-bc146fbc.entry.js → p-b82b874c.entry.js} +1 -1
- package/dist/core/{p-0d644700.entry.js → p-c5766c7b.entry.js} +1 -1
- package/dist/core/{p-54350028.entry.js → p-c844adbd.entry.js} +1 -1
- package/dist/core/{p-834a11a3.entry.js → p-ca658904.entry.js} +1 -1
- package/dist/core/{p-b1ede2c9.entry.js → p-cf5eb90f.entry.js} +1 -1
- package/dist/core/{p-73e72929.entry.js → p-d5149ac4.entry.js} +1 -1
- package/dist/core/{p-21d8b1ab.entry.js → p-daafb4d4.entry.js} +1 -1
- package/dist/core/{p-2c0ce8a8.entry.js → p-dda02fce.entry.js} +1 -1
- package/dist/core/{p-8772aecf.entry.js → p-df25beeb.entry.js} +1 -1
- package/dist/core/{p-d3d905c2.entry.js → p-df81dccf.entry.js} +1 -1
- package/dist/core/p-e2db0483.entry.js +1 -0
- package/dist/core/{p-15faa2d3.entry.js → p-e484115f.entry.js} +1 -1
- package/dist/core/{p-f76c7951.entry.js → p-e5deff13.entry.js} +1 -1
- package/dist/core/p-e769c217.entry.js +1 -0
- package/dist/core/{p-8e5c541e.entry.js → p-e9f54e9e.entry.js} +1 -1
- package/dist/core/{p-1d784936.entry.js → p-ee9eebbf.entry.js} +1 -1
- package/dist/core/{p-c3362e4f.entry.js → p-f139edeb.entry.js} +1 -1
- package/dist/core/{p-3af2644d.entry.js → p-f7442a5a.entry.js} +1 -1
- package/dist/core/{p-5e64c6b2.entry.js → p-fcaf0061.entry.js} +1 -1
- package/dist/esm/core.js +1 -1
- package/dist/esm/date-cell_3.entry.js +12 -12
- package/dist/esm/dga-accordion.entry.js +3 -3
- package/dist/esm/dga-actions.entry.js +1 -1
- package/dist/esm/dga-apex-chart.entry.js +1 -1
- package/dist/esm/dga-avatar_10.entry.js +974 -0
- package/dist/esm/dga-button-leading-icon.entry.js +1 -1
- package/dist/esm/dga-card-actions_4.entry.js +4 -4
- package/dist/esm/dga-card-image.entry.js +1 -1
- package/dist/esm/dga-card-title.entry.js +1 -1
- package/dist/esm/dga-card.entry.js +2 -2
- package/dist/esm/dga-carousel-v2.entry.js +1 -1
- package/dist/esm/dga-checkbox.entry.js +5 -5
- package/dist/esm/dga-chip.entry.js +2 -2
- package/dist/esm/dga-circular-progress-bar.entry.js +2 -2
- package/dist/esm/dga-codesnippet.entry.js +4 -4
- package/dist/esm/dga-collapse.entry.js +1 -1
- package/dist/esm/dga-content-switcher_3.entry.js +3 -3
- package/dist/esm/dga-data-table-usage.entry.js +1 -1
- package/dist/esm/dga-data-table.entry.js +1 -1
- package/dist/esm/dga-date-field.entry.js +2 -2
- package/dist/esm/dga-digital-signature.entry.js +2 -2
- package/dist/esm/dga-divider.entry.js +1 -1
- package/dist/esm/dga-drawer_3.entry.js +3 -3
- package/dist/esm/dga-dropdown.entry.js +4 -4
- package/dist/esm/dga-featured-icon-usage.entry.js +1 -1
- package/dist/esm/dga-file-upload.entry.js +2 -2
- package/dist/esm/dga-flex.entry.js +1 -1
- package/dist/esm/dga-footer.entry.js +2 -2
- package/dist/esm/dga-header-menu_5.entry.js +1 -1
- package/dist/esm/dga-helper-text_3.entry.js +2 -2
- package/dist/esm/dga-inline-alert.entry.js +1 -1
- package/dist/esm/dga-list-item_2.entry.js +2 -2
- package/dist/esm/dga-loading.entry.js +1 -1
- package/dist/esm/dga-metric-chart-v2.entry.js +1 -1
- package/dist/esm/dga-metric-v2.entry.js +3 -3
- package/dist/esm/dga-metric.entry.js +3 -3
- package/dist/esm/dga-modal.entry.js +1 -1
- package/dist/esm/dga-notification-toast.entry.js +1 -1
- package/dist/esm/dga-notification.entry.js +9 -28
- package/dist/esm/dga-number-input.entry.js +1 -1
- package/dist/esm/dga-pagination.entry.js +1 -1
- package/dist/esm/dga-prefix.entry.js +1 -1
- package/dist/esm/dga-quote.entry.js +2 -1
- package/dist/esm/dga-radial-stepper.entry.js +4 -4
- package/dist/esm/dga-radio-button.entry.js +4 -4
- package/dist/esm/dga-search-box_2.entry.js +3 -3
- package/dist/esm/dga-suffix.entry.js +1 -1
- package/dist/esm/dga-table-body.entry.js +1 -1
- package/dist/esm/dga-table-of-content.entry.js +1 -1
- package/dist/esm/dga-table.entry.js +1 -1
- package/dist/esm/dga-tabs.entry.js +3 -3
- package/dist/esm/dga-tag_3.entry.js +2 -2
- package/dist/esm/dga-textarea.entry.js +2 -2
- package/dist/esm/floating-button.entry.js +1 -1
- package/dist/esm/{index-BgIVAeDg.js → index-BYA91_SW.js} +6 -1
- package/dist/esm/index-OZG1OajU.js +54 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nds-avatar.entry.js +1 -1
- package/dist/esm/nds-button.entry.js +1 -1
- package/dist/esm/nds-table-of-content.entry.js +1 -1
- package/dist/types/components/dga-icon/dga-icon.d.ts +20 -7
- package/dist/types/components/dga-icon/utils.d.ts +14 -0
- package/dist/types/components/dga-quote/dga-quote.d.ts +1 -0
- package/dist/types/components.d.ts +22 -12
- package/dist/types/utils/index.d.ts +14 -0
- package/package.json +2 -2
- package/dist/cjs/dga-avatar-group.cjs.entry.js +0 -39
- package/dist/cjs/dga-avatar-usage.cjs.entry.js +0 -47
- package/dist/cjs/dga-avatar.cjs.entry.js +0 -75
- package/dist/cjs/dga-breadcrumbs-usage.cjs.entry.js +0 -33
- package/dist/cjs/dga-breadcrumbs.cjs.entry.js +0 -148
- package/dist/cjs/dga-carousel_2.cjs.entry.js +0 -137
- package/dist/cjs/dga-huge-icon-usage.cjs.entry.js +0 -14
- package/dist/cjs/dga-icon.cjs.entry.js +0 -402
- package/dist/cjs/dga-link.cjs.entry.js +0 -30
- package/dist/cjs/index-ByjaZgsn.js +0 -9
- package/dist/components/p-CH66vbCC.js +0 -15
- package/dist/components/p-DEtoWGOc.js +0 -7
- package/dist/core/p-0f02946a.entry.js +0 -1
- package/dist/core/p-1ab215e2.entry.js +0 -1
- package/dist/core/p-205ee115.entry.js +0 -1
- package/dist/core/p-4217a2f1.entry.js +0 -1
- package/dist/core/p-585d1776.entry.js +0 -1
- package/dist/core/p-66983bcd.entry.js +0 -1
- package/dist/core/p-8eb0f4d8.entry.js +0 -1
- package/dist/core/p-91cdbf84.entry.js +0 -1
- package/dist/core/p-927475f3.entry.js +0 -1
- package/dist/core/p-DEtoWGOc.js +0 -1
- package/dist/core/p-ae4f95b0.entry.js +0 -1
- package/dist/core/p-cec8de25.entry.js +0 -1
- package/dist/core/p-d619ccb5.entry.js +0 -1
- package/dist/core/p-dce286c8.entry.js +0 -1
- package/dist/core/p-e3e5ddcb.entry.js +0 -1
- package/dist/core/p-f1ece870.entry.js +0 -1
- package/dist/core/p-f28050f0.entry.js +0 -1
- package/dist/esm/dga-avatar-group.entry.js +0 -37
- package/dist/esm/dga-avatar-usage.entry.js +0 -45
- package/dist/esm/dga-avatar.entry.js +0 -73
- package/dist/esm/dga-breadcrumbs-usage.entry.js +0 -31
- package/dist/esm/dga-breadcrumbs.entry.js +0 -146
- package/dist/esm/dga-carousel_2.entry.js +0 -134
- package/dist/esm/dga-huge-icon-usage.entry.js +0 -12
- package/dist/esm/dga-icon.entry.js +0 -400
- package/dist/esm/dga-link.entry.js +0 -28
- package/dist/esm/index-DEtoWGOc.js +0 -7
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Build, Host, h } from "@stencil/core";
|
|
2
2
|
import { getSvgContent, gdsIconContent } from "./request";
|
|
3
|
-
import { getName, getUrl } from "./utils";
|
|
3
|
+
import { getName, getUrl, parseIconString, isStr, isSrc } from "./utils";
|
|
4
4
|
import { inheritAttributes } from "../../utils/helpers";
|
|
5
5
|
import { isRTL } from "../../utils/rtl/dir";
|
|
6
|
+
import { parseCSSValue } from "../../utils/index";
|
|
6
7
|
export class Icon {
|
|
7
8
|
constructor() {
|
|
8
9
|
this.iconName = null;
|
|
@@ -10,12 +11,20 @@ export class Icon {
|
|
|
10
11
|
this.didLoadIcon = false;
|
|
11
12
|
this.isVisible = false;
|
|
12
13
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
* The variant of the icon.
|
|
15
|
+
* Supported options are: `"stroke"` and `"solid"`.
|
|
16
|
+
*
|
|
17
|
+
* Deprecated options:
|
|
18
|
+
* - `"twotone"` → `"stroke"`
|
|
19
|
+
* - `"duotone"` → `"solid"`
|
|
20
|
+
* - `"bulk"` → `"solid"`
|
|
21
|
+
*
|
|
22
|
+
* Deprecated options: `"duotone"`, `"twotone"`, `"bulk"`.
|
|
23
|
+
* @default "stroke"
|
|
24
|
+
*/
|
|
25
|
+
this.variant = 'stroke';
|
|
18
26
|
/**
|
|
27
|
+
* @deprecated This prop will be removed in a future release.
|
|
19
28
|
* The type/style of the icon.
|
|
20
29
|
* Available options are: `"rounded"`, `"sharp"`, `"standard"`.
|
|
21
30
|
* @default "rounded"
|
|
@@ -107,7 +116,7 @@ export class Icon {
|
|
|
107
116
|
io.observe(el);
|
|
108
117
|
}
|
|
109
118
|
/**
|
|
110
|
-
* Watch for changes to the icon name, src, icon,
|
|
119
|
+
* Watch for changes to the icon name, src, icon, or variant properties.
|
|
111
120
|
* When a change is detected, the icon will be loaded.
|
|
112
121
|
*/
|
|
113
122
|
loadIcon() {
|
|
@@ -125,6 +134,14 @@ export class Icon {
|
|
|
125
134
|
this.didLoadIcon = true;
|
|
126
135
|
}
|
|
127
136
|
}
|
|
137
|
+
// Handle parsed icon strings (e.g., "home-solid-rounded") for iconName
|
|
138
|
+
if (this.icon && isStr(this.icon) && !isSrc(this.icon)) {
|
|
139
|
+
const parsed = parseIconString(this.icon);
|
|
140
|
+
if (parsed.variant) {
|
|
141
|
+
this.iconName = parsed.name;
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
128
145
|
this.iconName = getName(this.name, this.icon);
|
|
129
146
|
}
|
|
130
147
|
render() {
|
|
@@ -133,19 +150,17 @@ export class Icon {
|
|
|
133
150
|
* we have designated that arrows & chevrons should automatically flip (unless flip-rtl
|
|
134
151
|
* is set to false) because "back" is left in ltr and right in rtl, and "forward" is the opposite
|
|
135
152
|
*/
|
|
136
|
-
const shouldAutoFlip = iconName
|
|
137
|
-
? (iconName.includes('arrow') || iconName.includes('chevron')) && flipRtl !== false
|
|
138
|
-
: false;
|
|
153
|
+
const shouldAutoFlip = iconName ? (iconName.includes('arrow') || iconName.includes('chevron')) && flipRtl !== false : false;
|
|
139
154
|
/**
|
|
140
155
|
* if shouldBeFlippable is true, the icon should change direction when `dir` changes
|
|
141
156
|
*/
|
|
142
157
|
const shouldBeFlippable = flipRtl || shouldAutoFlip;
|
|
143
|
-
return (h(Host, Object.assign({ key: '
|
|
158
|
+
return (h(Host, Object.assign({ key: 'cca86354e98f7bc83a4cfce895be2ef308ae6ba6', role: "img", class: {
|
|
144
159
|
'flip-rtl': shouldBeFlippable,
|
|
145
160
|
'icon-rtl': shouldBeFlippable && isRTL(el),
|
|
146
161
|
} }, inheritedAttributes, { style: {
|
|
147
162
|
color: color !== null && color !== void 0 ? color : 'inherit',
|
|
148
|
-
fontSize:
|
|
163
|
+
fontSize: parseCSSValue(size),
|
|
149
164
|
} }), Build.isBrowser && this.svgContent ? (h("div", { class: {
|
|
150
165
|
'icon-inner': true,
|
|
151
166
|
}, innerHTML: this.svgContent })) : (h("div", { class: "icon-inner" }))));
|
|
@@ -227,23 +242,29 @@ export class Icon {
|
|
|
227
242
|
"attribute": "variant",
|
|
228
243
|
"mutable": false,
|
|
229
244
|
"complexType": {
|
|
230
|
-
"original": "
|
|
245
|
+
"original": "IconVariant",
|
|
231
246
|
"resolved": "\"bulk\" | \"duotone\" | \"solid\" | \"stroke\" | \"twotone\"",
|
|
232
|
-
"references": {
|
|
247
|
+
"references": {
|
|
248
|
+
"IconVariant": {
|
|
249
|
+
"location": "local",
|
|
250
|
+
"path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-icon/dga-icon.tsx",
|
|
251
|
+
"id": "src/components/dga-icon/dga-icon.tsx::IconVariant"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
233
254
|
},
|
|
234
255
|
"required": false,
|
|
235
256
|
"optional": true,
|
|
236
257
|
"docs": {
|
|
237
258
|
"tags": [{
|
|
238
259
|
"name": "default",
|
|
239
|
-
"text": "\"
|
|
260
|
+
"text": "\"stroke\""
|
|
240
261
|
}],
|
|
241
|
-
"text": "The variant of the icon.\
|
|
262
|
+
"text": "The variant of the icon.\nSupported options are: `\"stroke\"` and `\"solid\"`.\n\nDeprecated options:\n- `\"twotone\"` \u2192 `\"stroke\"`\n- `\"duotone\"` \u2192 `\"solid\"`\n- `\"bulk\"` \u2192 `\"solid\"`\n\nDeprecated options: `\"duotone\"`, `\"twotone\"`, `\"bulk\"`."
|
|
242
263
|
},
|
|
243
264
|
"getter": false,
|
|
244
265
|
"setter": false,
|
|
245
266
|
"reflect": false,
|
|
246
|
-
"defaultValue": "'
|
|
267
|
+
"defaultValue": "'stroke'"
|
|
247
268
|
},
|
|
248
269
|
"type": {
|
|
249
270
|
"type": "string",
|
|
@@ -258,10 +279,13 @@ export class Icon {
|
|
|
258
279
|
"optional": true,
|
|
259
280
|
"docs": {
|
|
260
281
|
"tags": [{
|
|
282
|
+
"name": "deprecated",
|
|
283
|
+
"text": "This prop will be removed in a future release.\nThe type/style of the icon.\nAvailable options are: `\"rounded\"`, `\"sharp\"`, `\"standard\"`."
|
|
284
|
+
}, {
|
|
261
285
|
"name": "default",
|
|
262
286
|
"text": "\"rounded\""
|
|
263
287
|
}],
|
|
264
|
-
"text": "
|
|
288
|
+
"text": ""
|
|
265
289
|
},
|
|
266
290
|
"getter": false,
|
|
267
291
|
"setter": false,
|
|
@@ -307,12 +331,12 @@ export class Icon {
|
|
|
307
331
|
"reflect": false
|
|
308
332
|
},
|
|
309
333
|
"size": {
|
|
310
|
-
"type": "
|
|
334
|
+
"type": "any",
|
|
311
335
|
"attribute": "size",
|
|
312
336
|
"mutable": false,
|
|
313
337
|
"complexType": {
|
|
314
|
-
"original": "number",
|
|
315
|
-
"resolved": "number",
|
|
338
|
+
"original": "string | number",
|
|
339
|
+
"resolved": "number | string",
|
|
316
340
|
"references": {}
|
|
317
341
|
},
|
|
318
342
|
"required": false,
|
|
@@ -391,9 +415,6 @@ export class Icon {
|
|
|
391
415
|
}, {
|
|
392
416
|
"propName": "variant",
|
|
393
417
|
"methodName": "loadIcon"
|
|
394
|
-
}, {
|
|
395
|
-
"propName": "type",
|
|
396
|
-
"methodName": "loadIcon"
|
|
397
418
|
}];
|
|
398
419
|
}
|
|
399
420
|
}
|
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
import { getAssetPath } from "@stencil/core";
|
|
2
2
|
let CACHED_MAP;
|
|
3
|
+
const VALID_VARIANTS = ['stroke', 'solid', 'duotone', 'twotone', 'bulk'];
|
|
4
|
+
const DEPRECATED_VARIANT_MAP = {
|
|
5
|
+
twotone: 'stroke',
|
|
6
|
+
duotone: 'solid',
|
|
7
|
+
bulk: 'solid',
|
|
8
|
+
};
|
|
9
|
+
const normalizeVariant = (variant) => {
|
|
10
|
+
var _a;
|
|
11
|
+
if (!variant)
|
|
12
|
+
return 'stroke';
|
|
13
|
+
return (_a = DEPRECATED_VARIANT_MAP[variant]) !== null && _a !== void 0 ? _a : variant;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Parses an icon string in the format `[icon-name]-[variant]`
|
|
17
|
+
* Example: `1st-bracket-circle-solid` -> { name: '1st-bracket-circle', variant: 'solid' }
|
|
18
|
+
* Also handles legacy `[icon-name]-[variant]-[type]` strings by stripping the type.
|
|
19
|
+
* If no variant suffix is found, returns the original string as the name.
|
|
20
|
+
*/
|
|
21
|
+
export const parseIconString = (iconString) => {
|
|
22
|
+
if (!iconString || typeof iconString !== 'string') {
|
|
23
|
+
return { name: iconString };
|
|
24
|
+
}
|
|
25
|
+
const lowerStr = iconString.toLowerCase().trim();
|
|
26
|
+
const LEGACY_TYPES = ['rounded', 'sharp', 'standard'];
|
|
27
|
+
for (const variant of VALID_VARIANTS) {
|
|
28
|
+
for (const type of LEGACY_TYPES) {
|
|
29
|
+
const suffix = `-${variant}-${type}`;
|
|
30
|
+
if (lowerStr.endsWith(suffix)) {
|
|
31
|
+
const name = lowerStr.slice(0, -suffix.length);
|
|
32
|
+
if (name.length > 0) {
|
|
33
|
+
return { name, variant };
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const suffix = `-${variant}`;
|
|
38
|
+
if (lowerStr.endsWith(suffix)) {
|
|
39
|
+
const name = lowerStr.slice(0, -suffix.length);
|
|
40
|
+
if (name.length > 0) {
|
|
41
|
+
return { name, variant };
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return { name: lowerStr };
|
|
46
|
+
};
|
|
3
47
|
export const getIconMap = () => {
|
|
4
48
|
if (typeof window === 'undefined') {
|
|
5
49
|
return new Map();
|
|
@@ -72,8 +116,23 @@ export const getUrl = (i) => {
|
|
|
72
116
|
if (url) {
|
|
73
117
|
return url;
|
|
74
118
|
}
|
|
119
|
+
// Check if icon prop contains a full icon string with variant suffix
|
|
120
|
+
// e.g., "1st-bracket-circle-solid"
|
|
121
|
+
if (i.icon && isStr(i.icon) && !isSrc(i.icon)) {
|
|
122
|
+
const parsed = parseIconString(i.icon);
|
|
123
|
+
if (parsed.variant) {
|
|
124
|
+
const iconName = getName(parsed.name, undefined);
|
|
125
|
+
if (iconName) {
|
|
126
|
+
return getNamedUrlWithVariant(iconName, parsed.variant, i);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
75
130
|
url = getName(i.name, i.icon);
|
|
76
131
|
if (url) {
|
|
132
|
+
const parsed = parseIconString(url);
|
|
133
|
+
if (parsed.variant) {
|
|
134
|
+
return getNamedUrlWithVariant(parsed.name, parsed.variant, i);
|
|
135
|
+
}
|
|
77
136
|
return getNamedUrl(url, i);
|
|
78
137
|
}
|
|
79
138
|
if (i.icon) {
|
|
@@ -84,17 +143,36 @@ export const getUrl = (i) => {
|
|
|
84
143
|
}
|
|
85
144
|
return null;
|
|
86
145
|
};
|
|
146
|
+
/**
|
|
147
|
+
* Get the URL for a named icon using an explicit variant value.
|
|
148
|
+
* Used when parsing icon strings like "icon-name-variant"
|
|
149
|
+
*/
|
|
150
|
+
const getNamedUrlWithVariant = (iconName, variant, iconEl) => {
|
|
151
|
+
const normalized = normalizeVariant(variant);
|
|
152
|
+
const fullName = `${iconName}-${normalized}`;
|
|
153
|
+
const url = getIconMap().get(fullName) || getIconMap().get(iconName);
|
|
154
|
+
if (url) {
|
|
155
|
+
return url;
|
|
156
|
+
}
|
|
157
|
+
try {
|
|
158
|
+
// const assetPath = `assets/svg/${normalized}/${iconName}-${normalized}.svg`;
|
|
159
|
+
const assetPath = `assets/svg/${iconName}-${normalized}.svg`;
|
|
160
|
+
const result = getAssetPath(assetPath);
|
|
161
|
+
return result;
|
|
162
|
+
}
|
|
163
|
+
catch (e) {
|
|
164
|
+
console.log('e', e);
|
|
165
|
+
console.warn(`[GDS Icons Warning]: Could not load icon with name "${iconName}" (variant: ${normalized}). Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.`, iconEl);
|
|
166
|
+
}
|
|
167
|
+
};
|
|
87
168
|
const getNamedUrl = (iconName, iconEl) => {
|
|
88
169
|
const url = getIconMap().get(iconName);
|
|
89
170
|
if (url) {
|
|
90
171
|
return url;
|
|
91
172
|
}
|
|
92
173
|
try {
|
|
93
|
-
|
|
94
|
-
const
|
|
95
|
-
const type = iconEl.type || 'rounded';
|
|
96
|
-
// Construct path with variant-type folder structure
|
|
97
|
-
const assetPath = `assets/svg/${variant}-${type}/${iconName}-${variant}-${type}.svg`;
|
|
174
|
+
const variant = normalizeVariant(iconEl.variant);
|
|
175
|
+
const assetPath = `assets/svg/${variant}/${iconName}-${variant}.svg`;
|
|
98
176
|
const result = getAssetPath(assetPath);
|
|
99
177
|
return result;
|
|
100
178
|
}
|
|
@@ -25,7 +25,7 @@ export class DgaListItem {
|
|
|
25
25
|
return null;
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h("li", { key: '
|
|
28
|
+
return (h("li", { key: '095ccba8b5d487a7e9ed11cb6635e08ed703391a', class: this.getListClass() }, this.type === 'with-icon' && (h("span", { key: '5e04ec4045647289dd314f49c668f27aa2266d5e', class: "list-item__icon" }, h("dga-icon", { key: '9979d04aea2fca3d11f7737bb43ecf563adf00d9', icon: this.icon, size: 16 }))), this.renderMarker(), h("span", { key: '3bb6fe07dc6087b7f8dcc5f86aa5d9910ef0ab3f', class: "list-item__text" }, this.itemText)));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "dga-list-item"; }
|
|
31
31
|
static get originalStyleUrls() {
|
|
@@ -50,7 +50,7 @@ export class DgaListItem {
|
|
|
50
50
|
"references": {
|
|
51
51
|
"ListItemProps": {
|
|
52
52
|
"location": "local",
|
|
53
|
-
"path": "/
|
|
53
|
+
"path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-list/dga-list-item.tsx",
|
|
54
54
|
"id": "src/components/dga-list/dga-list-item.tsx::ListItemProps"
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -75,7 +75,7 @@ export class DgaListItem {
|
|
|
75
75
|
"references": {
|
|
76
76
|
"ListItemProps": {
|
|
77
77
|
"location": "local",
|
|
78
|
-
"path": "/
|
|
78
|
+
"path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-list/dga-list-item.tsx",
|
|
79
79
|
"id": "src/components/dga-list/dga-list-item.tsx::ListItemProps"
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -25,7 +25,7 @@ export class DgaListV2 {
|
|
|
25
25
|
// }
|
|
26
26
|
render() {
|
|
27
27
|
const Tag = this.type === 'ordered' ? 'ol' : 'ul';
|
|
28
|
-
return (h(Tag, { key: '
|
|
28
|
+
return (h(Tag, { key: 'c33ca9f7659546ad35276b507e11dc40260e12f3', class: `list list--${this.type} list--${this.color}` }, h("slot", { key: 'ed5c5c048d7afaf5c3d467343418ffbf6890eb02' })));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "dga-list-v2"; }
|
|
31
31
|
static get originalStyleUrls() {
|
|
@@ -110,7 +110,7 @@ export class DgaListV2 {
|
|
|
110
110
|
"references": {
|
|
111
111
|
"ListItem": {
|
|
112
112
|
"location": "local",
|
|
113
|
-
"path": "/
|
|
113
|
+
"path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-list/dga-list-v2.tsx",
|
|
114
114
|
"id": "src/components/dga-list/dga-list-v2.tsx::ListItem"
|
|
115
115
|
}
|
|
116
116
|
}
|
|
@@ -38,7 +38,7 @@ export class DgaLoading {
|
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
40
|
const classes = `dga-loading dga-loading--${this.size} dga-loading--${this.variant} ${this.extraClass ? this.extraClass : ''}`;
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: 'a26a8c3c5407c0af5b128d7f830af590d3c65a03', id: this.componentId, style: this.rootStyles }, h("div", { key: '2bf09fde0a2b05205edb773af7b95dfbcff0b20b', class: classes }, h("div", { key: 'ac65ba6f0cc4118f3a367825e30d0082ffde53f3', class: "dga-loading__circle" }))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "dga-loading"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -64,7 +64,7 @@ export class DgaLoading {
|
|
|
64
64
|
"references": {
|
|
65
65
|
"LoadingSize": {
|
|
66
66
|
"location": "local",
|
|
67
|
-
"path": "/
|
|
67
|
+
"path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-loading/dga-loading.tsx",
|
|
68
68
|
"id": "src/components/dga-loading/dga-loading.tsx::LoadingSize"
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -90,7 +90,7 @@ export class DgaLoading {
|
|
|
90
90
|
"references": {
|
|
91
91
|
"LoadingStyle": {
|
|
92
92
|
"location": "local",
|
|
93
|
-
"path": "/
|
|
93
|
+
"path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-loading/dga-loading.tsx",
|
|
94
94
|
"id": "src/components/dga-loading/dga-loading.tsx::LoadingStyle"
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -216,7 +216,7 @@ export class DgaMetricChartV2 {
|
|
|
216
216
|
}
|
|
217
217
|
render() {
|
|
218
218
|
const { x: markerX, y: markerY } = this.currentMarkerPos;
|
|
219
|
-
return (h("svg", { key: '
|
|
219
|
+
return (h("svg", { key: '21cb7639e1bb84c5a07cd7228503c6db8b88960c', width: this.width, height: this.height, viewBox: "0 0 130 66", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("defs", { key: '5fbdc79365affcc8eff80dedd4a5a6a2e03001f8' }, h("linearGradient", { key: 'cacaafbb7da16fdbc8e23f15d0f089210ce9573f', id: "gradientMask", x1: "64", y1: "0", x2: "64", y2: "64", gradientUnits: "userSpaceOnUse" }, h("stop", { key: '50db3958dd54b513043360dfd29baa76a157bd50' }), h("stop", { key: '8f99ff9c56ccc69cb24689ea464311cf3fc9d5ef', offset: "1", "stop-opacity": "0" })), h("mask", { key: '6cab4fc69cd585ed810ce6e7c79531f37ce32ea9', id: "chartMask", style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "1", y: "1", width: "128", height: "64" }, h("rect", { key: '84c771ca83db1990d02db3c1604eab70619fd380', width: "128", height: "64", transform: "translate(1 1)", fill: "url(#gradientMask)" }))), h("g", { key: '5b83567dfc8cff62ba9610fbd6088847991dc11a', mask: "url(#chartMask)" }, h("path", { key: 'ef3226d18157e6d3551981bc2f28d0e373297109', opacity: "0.2", d: this.areaD, fill: this.fillColor })), h("path", { key: '9751032b599180fb3350879dbccacedd35cde80a', d: this.pathD, stroke: this.strokeColor, "stroke-width": this.strokeWidth, "stroke-linecap": "round", "stroke-linejoin": "round", fill: "none" }), this.showMarker && (h("g", { key: 'a0a87660359ed63d98a5c187a263563d06db5f1a', transform: `translate(${markerX}, ${markerY})` }, h("g", { key: 'aba29f5af07db2022089691c10b509003664e2da', opacity: "0.2" }, h("rect", { key: '60d64614d2fe846eb57cff6c7af88e77e8dc2da7', width: "20", height: "20", rx: "10", stroke: this.strokeColor, "stroke-width": this.strokeWidth })), h("rect", { key: '6b0269e79dac44fab9456f89bc4bb8f5493de5b0', x: "5", y: "5", width: "10", height: "10", rx: "5", fill: "white" }), h("rect", { key: 'd3f2b7ab612f3554b51ada107af3966fd426d1c8', x: "5", y: "5", width: "10", height: "10", rx: "5", stroke: this.strokeColor, "stroke-width": this.strokeWidth })))));
|
|
220
220
|
}
|
|
221
221
|
static get is() { return "dga-metric-chart-v2"; }
|
|
222
222
|
static get encapsulation() { return "shadow"; }
|
|
@@ -332,7 +332,7 @@ export class DgaMetricChartV2 {
|
|
|
332
332
|
"references": {
|
|
333
333
|
"DataPoint": {
|
|
334
334
|
"location": "local",
|
|
335
|
-
"path": "/
|
|
335
|
+
"path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-metric/dga-metric-chart-v2.tsx",
|
|
336
336
|
"id": "src/components/dga-metric/dga-metric-chart-v2.tsx::DataPoint"
|
|
337
337
|
}
|
|
338
338
|
}
|
|
@@ -377,7 +377,7 @@ export class DgaMetricChartV2 {
|
|
|
377
377
|
"references": {
|
|
378
378
|
"MarkerPosition": {
|
|
379
379
|
"location": "local",
|
|
380
|
-
"path": "/
|
|
380
|
+
"path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-metric/dga-metric-chart-v2.tsx",
|
|
381
381
|
"id": "src/components/dga-metric/dga-metric-chart-v2.tsx::MarkerPosition"
|
|
382
382
|
}
|
|
383
383
|
}
|
|
@@ -30,15 +30,15 @@ export class DgaMetric {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h("div", { key: '
|
|
33
|
+
return (h("div", { key: '7eee68aad1ede7c9a1ddafc3ed4cf040c72ec505', class: `dga-metric`, "data-chart-size": this.Style }, h("div", { key: '708b92c50a072e901bf51d3be917d99d35a06d51', class: "dga-metric__head" }, h("div", { key: '126c152cc0a020b3df468d0008129b3be07670e0', class: "dga-metric__head-content" }, this.showFeaturedIcon && h("div", { key: '34cee16589308772e476d1d43eec92a6cd0eb94b', class: "featured-icon featured-icon--light-brand featured-icon--circle featured-icon--sm" }, this.featuredIcon), this.label && h("span", { key: '4da9317c1d74d063679f2332b746dfbb7bf1e5e9', class: "dga-metric__head-content-text" }, this.label)), this.showMoreButton && (h("dga-button-v2", { key: '88400e2fd8ee4c3bd615a7cf6ddf52f217620f97', variant: "subtle", iconOnly: true, leadIcon: true, leadIconProps: {
|
|
34
34
|
name: 'more-vertical',
|
|
35
35
|
variant: 'stroke',
|
|
36
36
|
type: 'rounded',
|
|
37
|
-
}, onClick: this.onExpandAction }))), h("div", { key: '
|
|
37
|
+
}, onClick: this.onExpandAction }))), h("div", { key: 'a9143e06f761f06c0ff75019c617eaf096c3b6da', class: "dga-metric__body" }, h("div", { key: '260b6b154e01c81f992632a9e581044bdcccbea3', class: "dga-metric__content" }, h("h3", { key: 'f7770fdc054acbb94b6e4e9a20cdf5bdb7877ee8', class: "dga-metric__content-percentage" }, this.percentage), this.showInfo && (h("div", { key: '51cc9d19b3a29b437e139444b296bad468f3934a', class: "dga-metric__content-change", "data-change-trend": this.changeProps.trend }, h("span", { key: '05f05622179af232a4ec0d199ef21a4a89c80f6a', class: "dga-metric__content-change-icon" }, h("dga-icon", { key: 'e5c1831b21cae1af1beeb4322ed315acf89be811', icon: this.changeIcons[this.changeProps.type][this.changeProps.trend], type: "rounded", variant: "stroke", size: 24 })), h("span", { key: '547dce2ba0d90d06d814355c0cdecd4d6f06e852', class: "dga-metric__content-change-value" }, Math.abs(100), "%"), h("span", { key: '57e25c115490dcc68dfe93575641528813522956', class: "dga-metric__content-change-period" }, "vs last month")))), this.showChart && (h("div", { key: '0398a82e6fb1c86f7fddab6d1f35721d4639efad', class: "dga-metric__chart" }, h("dga-metric-chart", Object.assign({ key: '508857cbc2f3ddf9cd84840d8b65d25c24473aa6' }, this.chartProps, { size: this.Style === 'small-chart' ? 'sm' : 'lg' }))))), this.showActions && (h(Fragment, { key: '1c6a90eb89cdd7b4ab814d64deee3945f10f3869' }, h("div", { key: '6edf347e501fa6dfb3a9410b0a2979a35fc213fa', class: "dga-metric__divider" }), h("div", { key: 'eca66fa8fc10cecedca2f87cead73036bb8549c9', class: "dga-metric__actions" }, this.showSecondaryAction && (h("dga-button-v2", { key: '43c65479b3f80d9e93d9dfaccbd65e482774388a', variant: "subtle", iconOnly: true, leadIcon: true, leadIconProps: {
|
|
38
38
|
name: 'settings-02',
|
|
39
39
|
variant: 'stroke',
|
|
40
40
|
type: 'rounded',
|
|
41
|
-
}, onClick: this.onSecondaryAction })), h("dga-button-v2", { key: '
|
|
41
|
+
}, onClick: this.onSecondaryAction })), h("dga-button-v2", { key: '8cf205718bb0e48edbcd2bd260ed5a098f02812c', variant: "secondary-outline", class: "dga-metric__actions--primary", label: "View Report", onClick: this.onPrimaryAction }))))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "dga-metric"; }
|
|
44
44
|
static get originalStyleUrls() {
|
|
@@ -287,7 +287,7 @@ export class DgaMetric {
|
|
|
287
287
|
"references": {
|
|
288
288
|
"IChartProps": {
|
|
289
289
|
"location": "local",
|
|
290
|
-
"path": "/
|
|
290
|
+
"path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-metric/dga-metric.tsx",
|
|
291
291
|
"id": "src/components/dga-metric/dga-metric.tsx::IChartProps"
|
|
292
292
|
}
|
|
293
293
|
}
|
|
@@ -311,7 +311,7 @@ export class DgaMetric {
|
|
|
311
311
|
"references": {
|
|
312
312
|
"ITrend": {
|
|
313
313
|
"location": "local",
|
|
314
|
-
"path": "/
|
|
314
|
+
"path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-metric/dga-metric.tsx",
|
|
315
315
|
"id": "src/components/dga-metric/dga-metric.tsx::ITrend"
|
|
316
316
|
}
|
|
317
317
|
}
|
|
@@ -30,15 +30,15 @@ export class DgaMetric {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h("div", { key: '
|
|
33
|
+
return (h("div", { key: 'd14ab1787c8c118ea71175cc5ecbc72a33c5371d', class: `dga-metric`, "data-chart-size": this.Style }, h("div", { key: 'b82347af7ba629ff4936d949756d24212be5e7e0', class: "dga-metric__head" }, h("div", { key: 'd18c5422258a85d62937f9d18c5e9d1880a736d7', class: "dga-metric__head-content" }, this.showFeaturedIcon && h("div", { key: '0a66bc6b5a66446c8a28c9433974a37125602b63', class: "featured-icon featured-icon--light-brand featured-icon--circle featured-icon--sm" }, this.featuredIcon), this.label && h("span", { key: '7979f1e2dd404456399d9226b4dfac936a1e000e', class: "dga-metric__head-content-text" }, this.label)), this.showMoreButton && (h("dga-button-v2", { key: '5d72b1595fc8b25cd571a65efe65bf2c596caa0d', variant: "subtle", iconOnly: true, leadIcon: true, leadIconProps: {
|
|
34
34
|
name: 'more-vertical',
|
|
35
35
|
variant: 'stroke',
|
|
36
36
|
type: 'rounded',
|
|
37
|
-
}, onClick: this.onExpandAction }))), h("div", { key: '
|
|
37
|
+
}, onClick: this.onExpandAction }))), h("div", { key: 'c392fe2d83c260be2297fa662f24169804e7fc10', class: "dga-metric__body" }, h("div", { key: '1fda8b3c6f085bdcdf73d7dac44056ac0dbda5de', class: "dga-metric__content" }, h("h3", { key: 'e429d5b66b3d61f650811fe6ca3eefdb457d83fa', class: "dga-metric__content-percentage" }, this.percentage), this.showInfo && (h("div", { key: 'fd739650accd1444e38f7af40f1d7a22c19375df', class: "dga-metric__content-change", "data-change-trend": this.changeProps.trend }, h("span", { key: '8b5807df922d0905e9a918f8d8bbdea8119383c6', class: "dga-metric__content-change-icon" }, h("dga-icon", { key: '34ac0a4daa85d46244fbd239fe3ca4a08560e6c4', name: this.changeIcons[this.changeProps.type][this.changeProps.trend], type: "rounded", variant: "stroke", size: 24 })), h("span", { key: '4c8c58105a9a28e74992a13adbd2ba62f8019a26', class: "dga-metric__content-change-value" }, Math.abs(100), "%"), h("span", { key: '846e6c2126b331e9fc5235fa084095194c4cf845', class: "dga-metric__content-change-period" }, "vs last month")))), this.showChart && (h("div", { key: '71f10dfc21154d2acc0a2121be627c16c0bae7b0', class: "dga-metric__chart" }, h("dga-metric-chart", Object.assign({ key: '812b4ddcff8bae020fd7ccbefd84df25aeb14472' }, this.chartProps, { size: this.Style === 'small-chart' ? 'sm' : 'lg' }))))), this.showActions && (h(Fragment, { key: '44c5913cf09a3502fe4ae02a5ab4ff31fb7a0144' }, h("div", { key: 'f620bc446036348e32fcb9fab98ba25cf91ed840', class: "dga-metric__divider" }), h("div", { key: '8c31b9c385abae3979bfd016b1871e708fac59ca', class: "dga-metric__actions" }, this.showSecondaryAction && (h("dga-button-v2", { key: '52cae7eb9840ba93292119230e35e5998eb7c8d7', variant: "subtle", iconOnly: true, leadIcon: true, leadIconProps: {
|
|
38
38
|
name: 'settings-02',
|
|
39
39
|
variant: 'stroke',
|
|
40
40
|
type: 'rounded',
|
|
41
|
-
}, onClick: this.onSecondaryAction })), h("dga-button-v2", { key: '
|
|
41
|
+
}, onClick: this.onSecondaryAction })), h("dga-button-v2", { key: 'c562672015795df55976db881eeea6738c98a40b', variant: "secondary-outline", class: "dga-metric__actions--primary", label: "View Report", onClick: this.onPrimaryAction }))))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "dga-metric-v2"; }
|
|
44
44
|
static get originalStyleUrls() {
|
|
@@ -287,7 +287,7 @@ export class DgaMetric {
|
|
|
287
287
|
"references": {
|
|
288
288
|
"IChartProps": {
|
|
289
289
|
"location": "local",
|
|
290
|
-
"path": "/
|
|
290
|
+
"path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-metric-v2/dga-metric-v2.tsx",
|
|
291
291
|
"id": "src/components/dga-metric-v2/dga-metric-v2.tsx::IChartProps"
|
|
292
292
|
}
|
|
293
293
|
}
|
|
@@ -311,7 +311,7 @@ export class DgaMetric {
|
|
|
311
311
|
"references": {
|
|
312
312
|
"ITrend": {
|
|
313
313
|
"location": "local",
|
|
314
|
-
"path": "/
|
|
314
|
+
"path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-metric-v2/dga-metric-v2.tsx",
|
|
315
315
|
"id": "src/components/dga-metric-v2/dga-metric-v2.tsx::ITrend"
|
|
316
316
|
}
|
|
317
317
|
}
|
|
@@ -1,36 +1,17 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import { SxStyleManager } from "../../utils/sx-style-manager";
|
|
3
|
+
import { checkmarkCircle02SolidSharpIcon, informationCircleSolidSharpIcon, alert02SolidSharpIcon, alertCircleSolidSharpIcon, multiplicationSignStrokeRoundedIcon } from "../../assets/icons/index";
|
|
3
4
|
export class DgaNotification {
|
|
4
5
|
constructor() {
|
|
5
6
|
this.icon = true;
|
|
6
7
|
this.link = false;
|
|
7
8
|
this.dismissable = false;
|
|
8
9
|
this.icons = {
|
|
9
|
-
success:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
info: {
|
|
15
|
-
name: "information-circle",
|
|
16
|
-
variant: "solid",
|
|
17
|
-
type: "sharp",
|
|
18
|
-
},
|
|
19
|
-
neutral: {
|
|
20
|
-
name: "information-circle",
|
|
21
|
-
variant: "solid",
|
|
22
|
-
type: "sharp",
|
|
23
|
-
},
|
|
24
|
-
warning: {
|
|
25
|
-
name: "alert-02",
|
|
26
|
-
variant: "solid",
|
|
27
|
-
type: "sharp",
|
|
28
|
-
},
|
|
29
|
-
critical: {
|
|
30
|
-
name: "alert-circle",
|
|
31
|
-
variant: "solid",
|
|
32
|
-
type: "sharp",
|
|
33
|
-
},
|
|
10
|
+
success: checkmarkCircle02SolidSharpIcon,
|
|
11
|
+
info: informationCircleSolidSharpIcon,
|
|
12
|
+
neutral: informationCircleSolidSharpIcon,
|
|
13
|
+
warning: alert02SolidSharpIcon,
|
|
14
|
+
critical: alertCircleSolidSharpIcon,
|
|
34
15
|
};
|
|
35
16
|
// Generate a unique ID if not provided
|
|
36
17
|
this.componentId = `dga-notification-${Math.random().toString(36).substring(2, 9)}`;
|
|
@@ -65,11 +46,11 @@ export class DgaNotification {
|
|
|
65
46
|
(_a = this.sxStyleManager) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
66
47
|
}
|
|
67
48
|
render() {
|
|
68
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: 'c10fe5cf1d1b2b8e34f95c9628c93fc54ed08a63', id: this.componentId, style: this.rootStyles }, h("div", { key: '3781e8e6ee2e86b48eee4ff1499dcfb750ff53f2', class: `notification notification--${this.variant}`, role: "alert" }, h("div", { key: '1a54e54e0d597ec96a7dc1baa06e583eedf31256', class: "notification__content" }, this.icon && h("div", { key: '269d9828eab5dce7a867e93e99c46f559fb0bdee', class: "notification__icon" }, h("dga-icon", { key: '214fbd86c993ea9a7ff16b0f124b7c2a18bf26ba', icon: this.icons[this.variant], size: 24 })), this.leadText && h("strong", { key: 'd2649d7873d4457ecb5e21234cc0791f79a0aa37', class: "notification__lead-text" }, this.leadText, ": "), h("p", { key: '5018fc98e3384415f9e1872ec8920762fa2dca39' }, this.content), this.link && (h("a", { key: '82afcee551bb6768f51d7a6e990b59e40e5ce4e0', onClick: () => {
|
|
69
50
|
this.navigateTo && this.navigateTo(this.setNavigateTo);
|
|
70
|
-
}, class: "notification__link link link--md link--neutral link--inline" }, h("span", { key: '
|
|
51
|
+
}, class: "notification__link link link--md link--neutral link--inline" }, h("span", { key: '777c91d4e3d8d8c0a94c701c2a4a199d98482c77', class: "link__label" }, this.textLink)))), this.dismissable && (h("div", { key: '367e85962266e5db6997eabc0cb8a57d796a687b', class: "notification__dismiss" }, h("button", { key: 'e8ffaa3a182a8d2527dface4a0d07e6d78c3abe2', class: "dga-btn dga-btn--close dga-btn--icon dga-btn--md", onClick: () => {
|
|
71
52
|
this.dismmissed && this.dismmissed();
|
|
72
|
-
} }, h("span", { key: '
|
|
53
|
+
} }, h("span", { key: '4fab62e36b1d881c1e03a8556f2bd3eb676c27fa', class: "dga-btn-icon" }, h("dga-icon", { key: 'f4734ac6295ec9bf5aa4d3c7e13c72bdb3a0ec50', icon: multiplicationSignStrokeRoundedIcon, size: 20 }))))))));
|
|
73
54
|
}
|
|
74
55
|
static get is() { return "dga-notification"; }
|
|
75
56
|
static get encapsulation() { return "shadow"; }
|
|
@@ -12,6 +12,7 @@ export class DgaQuote {
|
|
|
12
12
|
this.authorName = '';
|
|
13
13
|
this.authorDescription = '';
|
|
14
14
|
this.showAvatar = false;
|
|
15
|
+
this.avatarSrc = '';
|
|
15
16
|
}
|
|
16
17
|
componentWillLoad() {
|
|
17
18
|
this.sxHandler = new SxHandler(this.el, 'dga-slider');
|
|
@@ -26,7 +27,7 @@ export class DgaQuote {
|
|
|
26
27
|
this.sxHandler.cleanup();
|
|
27
28
|
}
|
|
28
29
|
render() {
|
|
29
|
-
return (h("div", { key: '
|
|
30
|
+
return (h("div", { key: '07dd772dbecb2357d9b415f9d0634b8026dcd545', class: { 'dga-quote': true, 'dga-quote--white-bg': this.whiteBackground } }, h("div", { key: '6610e95353f3401a7ff3611c95fd5265940cb6ae', class: "dga-quote__body" }, h("dga-flex", { key: '0ac4e007538c281e0f77354f6b075cb1c721186e', spacing: 9 }, h("span", { key: '058665944ad2a598a97c578e469feeccaff80356', class: "quote-icon" }, "\u201D"), h("dga-flex", { key: '72675b554aae7b2818776565b5a687a7617c960f', direction: "column", spacing: 16 }, this.showQuoteTitle && h("h2", { key: 'ae55478db2150cbe3fe3958084a022c16ab1dbfe', class: "dga-quote__body-title" }, this.quoteTitle), this.showQuoteDescription && h("p", { key: '161e595a53136e146d2fc4aabd4380b10812d1ba', class: "dga-quote__body-desc" }, this.quoteDescription)))), this.showAuthorDetails && (h("div", { key: '3a3073a56b54bfe6d84e7fd1f1e2879d65684a91', class: "dga-quote__auther-details" }, h("dga-flex", { key: 'ca7ced49fdf2dc3f0e5047d13cc1736948b1b9e3', direction: "row", spacing: 16, align: "center" }, this.showAvatar && h("dga-avatar", { key: '1dd0ab142f1bfb671971289b468cc5802d7735a4', size: 80, type: "image", border: false, imgUrl: this.avatarSrc }), h("dga-flex", { key: 'a48f41654eafe4c267749edc87fa839043f2c170', direction: "column", spacing: 8 }, h("h3", { key: 'dd46a2f0c41206e1fa49dd7d6d6c0f2cb7c9a95e', class: "auther-title" }, this.authorName), h("p", { key: '14c40e6d46e0a2baaa64646e911c2aebc8b3dfcd', class: "auther-desc" }, this.authorDescription))), h("span", { key: '6905a5bbd199c912c81b2ddf5ce5d4fd2c56ebbc', class: "quote-icon" }, "\u201C")))));
|
|
30
31
|
}
|
|
31
32
|
static get is() { return "dga-quote"; }
|
|
32
33
|
static get originalStyleUrls() {
|
|
@@ -241,6 +242,26 @@ export class DgaQuote {
|
|
|
241
242
|
"reflect": false,
|
|
242
243
|
"defaultValue": "false"
|
|
243
244
|
},
|
|
245
|
+
"avatarSrc": {
|
|
246
|
+
"type": "string",
|
|
247
|
+
"attribute": "avatar-src",
|
|
248
|
+
"mutable": false,
|
|
249
|
+
"complexType": {
|
|
250
|
+
"original": "string",
|
|
251
|
+
"resolved": "string",
|
|
252
|
+
"references": {}
|
|
253
|
+
},
|
|
254
|
+
"required": false,
|
|
255
|
+
"optional": true,
|
|
256
|
+
"docs": {
|
|
257
|
+
"tags": [],
|
|
258
|
+
"text": ""
|
|
259
|
+
},
|
|
260
|
+
"getter": false,
|
|
261
|
+
"setter": false,
|
|
262
|
+
"reflect": false,
|
|
263
|
+
"defaultValue": "''"
|
|
264
|
+
},
|
|
244
265
|
"sx": {
|
|
245
266
|
"type": "string",
|
|
246
267
|
"attribute": "sx",
|