@3ddv/software-division-components 1.0.0-alpha.4 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.backup.md +575 -0
- package/README.md +81 -48
- package/dist/README.md +575 -0
- package/dist/backoffice/checkbox/checkbox.component.d.ts +103 -0
- package/dist/backoffice/checkbox/checkbox.component.d.ts.map +1 -0
- package/dist/backoffice/checkbox/index.d.ts.map +1 -0
- package/dist/backoffice/checkbox/public-api.d.ts +2 -0
- package/{backoffice/table → dist/backoffice/checkbox}/public-api.d.ts.map +1 -1
- package/dist/backoffice/datepicker/datepicker.component.d.ts +150 -0
- package/dist/backoffice/datepicker/datepicker.component.d.ts.map +1 -0
- package/dist/backoffice/datepicker/index.d.ts.map +1 -0
- package/dist/backoffice/datepicker/public-api.d.ts +2 -0
- package/dist/backoffice/datepicker/public-api.d.ts.map +1 -0
- package/dist/backoffice/datepicker/ui/ui-calendar-helm/src/index.d.ts +14 -0
- package/dist/backoffice/datepicker/ui/ui-calendar-helm/src/index.d.ts.map +1 -0
- package/dist/backoffice/datepicker/ui/ui-calendar-helm/src/lib/hlm-calendar-multi.d.ts +38 -0
- package/dist/backoffice/datepicker/ui/ui-calendar-helm/src/lib/hlm-calendar-multi.d.ts.map +1 -0
- package/dist/backoffice/datepicker/ui/ui-calendar-helm/src/lib/hlm-calendar.d.ts +34 -0
- package/dist/backoffice/datepicker/ui/ui-calendar-helm/src/lib/hlm-calendar.d.ts.map +1 -0
- package/dist/backoffice/datepicker/ui/ui-date-picker-helm/src/index.d.ts +15 -0
- package/dist/backoffice/datepicker/ui/ui-date-picker-helm/src/index.d.ts.map +1 -0
- package/dist/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker-multi.d.ts +53 -0
- package/dist/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker-multi.d.ts.map +1 -0
- package/dist/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker-multi.token.d.ts +24 -0
- package/dist/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker-multi.token.d.ts.map +1 -0
- package/dist/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker.d.ts +53 -0
- package/dist/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker.d.ts.map +1 -0
- package/dist/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker.token.d.ts +24 -0
- package/dist/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker.token.d.ts.map +1 -0
- package/dist/backoffice/datepicker/ui/ui-icon-helm/src/index.d.ts +10 -0
- package/dist/backoffice/datepicker/ui/ui-icon-helm/src/index.d.ts.map +1 -0
- package/dist/backoffice/datepicker/ui/ui-icon-helm/src/lib/hlm-icon.d.ts +10 -0
- package/dist/backoffice/datepicker/ui/ui-icon-helm/src/lib/hlm-icon.d.ts.map +1 -0
- package/dist/backoffice/datepicker/ui/ui-icon-helm/src/lib/hlm-icon.token.d.ts +8 -0
- package/dist/backoffice/datepicker/ui/ui-icon-helm/src/lib/hlm-icon.token.d.ts.map +1 -0
- package/dist/backoffice/datepicker/ui/ui-popover-helm/src/index.d.ts +14 -0
- package/dist/backoffice/datepicker/ui/ui-popover-helm/src/index.d.ts.map +1 -0
- package/dist/backoffice/datepicker/ui/ui-popover-helm/src/lib/hlm-popover-close.d.ts +9 -0
- package/dist/backoffice/datepicker/ui/ui-popover-helm/src/lib/hlm-popover-close.d.ts.map +1 -0
- package/dist/backoffice/datepicker/ui/ui-popover-helm/src/lib/hlm-popover-content.d.ts +14 -0
- package/dist/backoffice/datepicker/ui/ui-popover-helm/src/lib/hlm-popover-content.d.ts.map +1 -0
- package/dist/backoffice/input/index.d.ts.map +1 -0
- package/dist/backoffice/input/input.component.d.ts +200 -0
- package/dist/backoffice/input/input.component.d.ts.map +1 -0
- package/dist/backoffice/input/public-api.d.ts +2 -0
- package/dist/backoffice/input/public-api.d.ts.map +1 -0
- package/dist/backoffice/public-api.d.ts +6 -0
- package/dist/backoffice/public-api.d.ts.map +1 -0
- package/dist/backoffice/radio/index.d.ts.map +1 -0
- package/dist/backoffice/radio/public-api.d.ts +2 -0
- package/dist/backoffice/radio/public-api.d.ts.map +1 -0
- package/dist/backoffice/radio/radio.component.d.ts +73 -0
- package/dist/backoffice/radio/radio.component.d.ts.map +1 -0
- package/dist/backoffice/table/_components/pagination/pagination.component.d.ts +18 -0
- package/dist/backoffice/table/_components/pagination/pagination.component.d.ts.map +1 -0
- package/dist/backoffice/table/_components/selection-table-head/selection-table-head.component.d.ts +11 -0
- package/dist/backoffice/table/_components/selection-table-head/selection-table-head.component.d.ts.map +1 -0
- package/dist/backoffice/table/_components/selection-table-row/selection-table-row.component.d.ts +8 -0
- package/dist/backoffice/table/_components/selection-table-row/selection-table-row.component.d.ts.map +1 -0
- package/dist/backoffice/table/_components/sort-header-button/sort-header-button.component.d.ts +16 -0
- package/dist/backoffice/table/_components/sort-header-button/sort-header-button.component.d.ts.map +1 -0
- package/dist/backoffice/table/public-api.d.ts +3 -0
- package/dist/backoffice/table/public-api.d.ts.map +1 -0
- package/dist/backoffice/table/table.component.d.ts +111 -0
- package/dist/backoffice/table/table.component.d.ts.map +1 -0
- package/dist/backoffice/table/ui/ui-icon-helm/src/index.d.ts +10 -0
- package/dist/backoffice/table/ui/ui-icon-helm/src/index.d.ts.map +1 -0
- package/dist/backoffice/table/ui/ui-icon-helm/src/lib/hlm-icon.d.ts +10 -0
- package/dist/backoffice/table/ui/ui-icon-helm/src/lib/hlm-icon.d.ts.map +1 -0
- package/dist/backoffice/table/ui/ui-icon-helm/src/lib/hlm-icon.token.d.ts +8 -0
- package/dist/backoffice/table/ui/ui-icon-helm/src/lib/hlm-icon.token.d.ts.map +1 -0
- package/dist/backoffice/table/ui/ui-table-helm/src/index.d.ts +11 -0
- package/dist/backoffice/table/ui/ui-table-helm/src/index.d.ts.map +1 -0
- package/dist/backoffice/table/ui/ui-table-helm/src/lib/hlm-table.d.ts +112 -0
- package/dist/backoffice/table/ui/ui-table-helm/src/lib/hlm-table.d.ts.map +1 -0
- package/{dvm → dist/dvm}/cart/cart.component.d.ts +1 -3
- package/dist/dvm/cart/cart.component.d.ts.map +1 -0
- package/{dvm → dist/dvm}/cart-item/cart-item.component.d.ts +1 -3
- package/dist/dvm/cart-item/cart-item.component.d.ts.map +1 -0
- package/dist/dvm/legend/legend.component.d.ts +17 -0
- package/dist/dvm/legend/legend.component.d.ts.map +1 -0
- package/dist/dvm/legend/public-api.d.ts +4 -0
- package/{dvm → dist/dvm}/legend/public-api.d.ts.map +1 -1
- package/dist/dvm/legend/types.d.ts +6 -0
- package/dist/dvm/legend/types.d.ts.map +1 -0
- package/dist/dvm/legend/ui/legend-elements/index.d.ts +2 -0
- package/dist/dvm/legend/ui/legend-elements/index.d.ts.map +1 -0
- package/dist/dvm/legend/ui/legend-elements/legend-elements.component.d.ts +16 -0
- package/dist/dvm/legend/ui/legend-elements/legend-elements.component.d.ts.map +1 -0
- package/{dvm → dist/dvm}/loader/loader.component.d.ts +1 -3
- package/dist/dvm/loader/loader.component.d.ts.map +1 -0
- package/dist/dvm/map-loader/index.d.ts.map +1 -0
- package/dist/dvm/map-loader/map-loader.component.d.ts +55 -0
- package/dist/dvm/map-loader/map-loader.component.d.ts.map +1 -0
- package/dist/dvm/map-loader/public-api.d.ts +2 -0
- package/dist/dvm/map-loader/public-api.d.ts.map +1 -0
- package/dist/dvm/neighbors/index.d.ts.map +1 -0
- package/dist/dvm/neighbors/neighbors.component.d.ts +45 -0
- package/dist/dvm/neighbors/neighbors.component.d.ts.map +1 -0
- package/dist/dvm/neighbors/public-api.d.ts +3 -0
- package/dist/dvm/neighbors/public-api.d.ts.map +1 -0
- package/dist/dvm/neighbors/types.d.ts +8 -0
- package/dist/dvm/neighbors/types.d.ts.map +1 -0
- package/dist/dvm/popover/popover.component.d.ts +39 -0
- package/dist/dvm/popover/popover.component.d.ts.map +1 -0
- package/dist/dvm/popover/popover.config.d.ts +20 -0
- package/dist/dvm/popover/popover.config.d.ts.map +1 -0
- package/dist/dvm/popover/popover.service.d.ts +85 -0
- package/dist/dvm/popover/popover.service.d.ts.map +1 -0
- package/dist/dvm/popover/public-api.d.ts +5 -0
- package/{dvm → dist/dvm}/popover/public-api.d.ts.map +1 -1
- package/dist/dvm/popover/types.d.ts +33 -0
- package/dist/dvm/popover/types.d.ts.map +1 -0
- package/{dvm → dist/dvm}/public-api.d.ts +2 -1
- package/{dvm → dist/dvm}/public-api.d.ts.map +1 -1
- package/dist/dvm/stepper/public-api.d.ts +2 -0
- package/{dvm → dist/dvm}/stepper/public-api.d.ts.map +1 -1
- package/dist/dvm/stepper/stepper.component.d.ts +26 -0
- package/dist/dvm/stepper/stepper.component.d.ts.map +1 -0
- package/dist/dvm/stepper/types.d.ts +9 -0
- package/dist/dvm/stepper/types.d.ts.map +1 -0
- package/{dvm → dist/dvm}/ticket-info-item/ticket-info-item.component.d.ts +1 -3
- package/{dvm → dist/dvm}/ticket-info-item/ticket-info-item.component.d.ts.map +1 -1
- package/dist/fesm2022/3ddv-software-division-components.mjs +5944 -0
- package/dist/fesm2022/3ddv-software-division-components.mjs.map +1 -0
- package/dist/generic/add-digital-wallet/add-digital-wallet.component.d.ts +21 -0
- package/dist/generic/add-digital-wallet/add-digital-wallet.component.d.ts.map +1 -0
- package/dist/generic/add-digital-wallet/index.d.ts.map +1 -0
- package/dist/generic/add-digital-wallet/public-api.d.ts +2 -0
- package/dist/generic/add-digital-wallet/public-api.d.ts.map +1 -0
- package/dist/generic/braintree/braintree.component.d.ts +33 -0
- package/dist/generic/braintree/braintree.component.d.ts.map +1 -0
- package/dist/generic/braintree/index.d.ts.map +1 -0
- package/dist/generic/braintree/public-api.d.ts +3 -0
- package/dist/generic/braintree/public-api.d.ts.map +1 -0
- package/dist/generic/braintree/types.d.ts +27 -0
- package/dist/generic/braintree/types.d.ts.map +1 -0
- package/dist/generic/button/button.component.d.ts +142 -0
- package/dist/generic/button/button.component.d.ts.map +1 -0
- package/dist/generic/button/ui/ui-button-helm/src/index.d.ts +10 -0
- package/dist/generic/button/ui/ui-button-helm/src/index.d.ts.map +1 -0
- package/dist/generic/button/ui/ui-button-helm/src/lib/hlm-button.d.ts +20 -0
- package/dist/generic/button/ui/ui-button-helm/src/lib/hlm-button.d.ts.map +1 -0
- package/dist/generic/button/ui/ui-button-helm/src/lib/hlm-button.token.d.ts +9 -0
- package/dist/generic/button/ui/ui-button-helm/src/lib/hlm-button.token.d.ts.map +1 -0
- package/dist/generic/dialog/dialog.component.d.ts +11 -0
- package/dist/generic/dialog/dialog.component.d.ts.map +1 -0
- package/dist/generic/dialog/index.d.ts +2 -0
- package/dist/generic/dialog/index.d.ts.map +1 -0
- package/dist/generic/dialog/libs/ui-dialog-helm/src/index.d.ts +25 -0
- package/dist/generic/dialog/libs/ui-dialog-helm/src/index.d.ts.map +1 -0
- package/dist/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-close.d.ts +9 -0
- package/dist/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-close.d.ts.map +1 -0
- package/dist/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-content.d.ts +15 -0
- package/dist/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-content.d.ts.map +1 -0
- package/dist/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-description.d.ts +10 -0
- package/dist/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-description.d.ts.map +1 -0
- package/dist/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-footer.d.ts +9 -0
- package/dist/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-footer.d.ts.map +1 -0
- package/dist/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-header.d.ts +9 -0
- package/dist/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-header.d.ts.map +1 -0
- package/dist/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-overlay.d.ts +12 -0
- package/dist/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-overlay.d.ts.map +1 -0
- package/dist/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-title.d.ts +10 -0
- package/dist/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-title.d.ts.map +1 -0
- package/dist/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog.d.ts +7 -0
- package/dist/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog.d.ts.map +1 -0
- package/dist/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog.service.d.ts +21 -0
- package/dist/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog.service.d.ts.map +1 -0
- package/dist/generic/dialog/public-api.d.ts +3 -0
- package/dist/generic/dialog/public-api.d.ts.map +1 -0
- package/{generic → dist/generic}/drawer/drawer.component.d.ts +1 -3
- package/dist/generic/drawer/drawer.component.d.ts.map +1 -0
- package/dist/generic/drawer/index.d.ts +2 -0
- package/dist/generic/icon/icon.component.d.ts +21 -0
- package/dist/generic/icon/icon.component.d.ts.map +1 -0
- package/dist/generic/icon/index.d.ts +2 -0
- package/dist/generic/icon/index.d.ts.map +1 -0
- package/dist/generic/icon/lib/ui-icon-helm/src/index.d.ts +10 -0
- package/dist/generic/icon/lib/ui-icon-helm/src/index.d.ts.map +1 -0
- package/dist/generic/icon/lib/ui-icon-helm/src/lib/hlm-icon.d.ts +10 -0
- package/dist/generic/icon/lib/ui-icon-helm/src/lib/hlm-icon.d.ts.map +1 -0
- package/dist/generic/icon/lib/ui-icon-helm/src/lib/hlm-icon.token.d.ts +8 -0
- package/dist/generic/icon/lib/ui-icon-helm/src/lib/hlm-icon.token.d.ts.map +1 -0
- package/dist/generic/icon/public-api.d.ts +2 -0
- package/dist/generic/icon/public-api.d.ts.map +1 -0
- package/dist/generic/index.d.ts +2 -0
- package/dist/generic/public-api.d.ts +8 -0
- package/dist/generic/public-api.d.ts.map +1 -0
- package/dist/generic/select/index.d.ts +2 -0
- package/dist/generic/select/index.d.ts.map +1 -0
- package/dist/generic/select/lib/hlm-select-content.d.ts +13 -0
- package/dist/generic/select/lib/hlm-select-content.d.ts.map +1 -0
- package/dist/generic/select/lib/hlm-select-group.d.ts +10 -0
- package/dist/generic/select/lib/hlm-select-group.d.ts.map +1 -0
- package/dist/generic/select/lib/hlm-select-label.d.ts +12 -0
- package/dist/generic/select/lib/hlm-select-label.d.ts.map +1 -0
- package/dist/generic/select/lib/hlm-select-option.d.ts +12 -0
- package/dist/generic/select/lib/hlm-select-option.d.ts.map +1 -0
- package/dist/generic/select/lib/hlm-select-scroll-down.d.ts +9 -0
- package/dist/generic/select/lib/hlm-select-scroll-down.d.ts.map +1 -0
- package/dist/generic/select/lib/hlm-select-scroll-up.d.ts +9 -0
- package/dist/generic/select/lib/hlm-select-scroll-up.d.ts.map +1 -0
- package/dist/generic/select/lib/hlm-select-trigger.d.ts +17 -0
- package/dist/generic/select/lib/hlm-select-trigger.d.ts.map +1 -0
- package/dist/generic/select/lib/hlm-select-value.d.ts +9 -0
- package/dist/generic/select/lib/hlm-select-value.d.ts.map +1 -0
- package/dist/generic/select/lib/hlm-select.d.ts +9 -0
- package/dist/generic/select/lib/hlm-select.d.ts.map +1 -0
- package/dist/generic/select/lib/index.d.ts +35 -0
- package/dist/generic/select/lib/index.d.ts.map +1 -0
- package/dist/generic/select/public-api.d.ts +3 -0
- package/dist/generic/select/public-api.d.ts.map +1 -0
- package/dist/generic/select/select.component.d.ts +13 -0
- package/dist/generic/select/select.component.d.ts.map +1 -0
- package/dist/generic/select/types.d.ts +5 -0
- package/dist/generic/select/types.d.ts.map +1 -0
- package/dist/public-api.d.ts +8 -0
- package/dist/public-api.d.ts.map +1 -0
- package/dist/shared/declare-theme-variables/declare-theme-variables.d.ts +5 -0
- package/dist/shared/declare-theme-variables/declare-theme-variables.d.ts.map +1 -0
- package/dist/shared/declare-theme-variables/index.d.ts +2 -0
- package/dist/shared/declare-theme-variables/index.d.ts.map +1 -0
- package/dist/shared/lib-provider/index.d.ts +2 -0
- package/{shared → dist/shared}/lib-provider/provide-sdc.d.ts +0 -1
- package/{shared → dist/shared}/lib-provider/provide-sdc.d.ts.map +1 -1
- package/dist/shared/screen-observer/index.d.ts +3 -0
- package/dist/shared/screen-observer/index.d.ts.map +1 -0
- package/dist/shared/screen-observer/provide-screen-observer.d.ts +5 -0
- package/dist/shared/screen-observer/provide-screen-observer.d.ts.map +1 -0
- package/dist/shared/screen-observer/screen-observer.d.ts +15 -0
- package/dist/shared/screen-observer/screen-observer.d.ts.map +1 -0
- package/dist/shared/types.d.ts +19 -0
- package/dist/shared/types.d.ts.map +1 -0
- package/dist/styles.css +2 -0
- package/dist/tailwind.config.js +19 -0
- package/dist/types/sizes.type.d.ts +3 -0
- package/dist/types/sizes.type.d.ts.map +1 -0
- package/package.json +130 -81
- package/backoffice/public-api.d.ts +0 -2
- package/backoffice/public-api.d.ts.map +0 -1
- package/backoffice/table/components/body-row/body-row.component.d.ts +0 -9
- package/backoffice/table/components/body-row/body-row.component.d.ts.map +0 -1
- package/backoffice/table/components/header-row/header-row.component.d.ts +0 -11
- package/backoffice/table/components/header-row/header-row.component.d.ts.map +0 -1
- package/backoffice/table/directives/table.directive.d.ts +0 -10
- package/backoffice/table/directives/table.directive.d.ts.map +0 -1
- package/backoffice/table/public-api.d.ts +0 -3
- package/backoffice/table/table.component.d.ts +0 -37
- package/backoffice/table/table.component.d.ts.map +0 -1
- package/backoffice/table/table.service.d.ts +0 -7
- package/backoffice/table/table.service.d.ts.map +0 -1
- package/backoffice/table/types.d.ts +0 -18
- package/backoffice/table/types.d.ts.map +0 -1
- package/dvm/cart/cart.component.d.ts.map +0 -1
- package/dvm/cart-item/cart-item.component.d.ts.map +0 -1
- package/dvm/legend/legend.component.d.ts +0 -8
- package/dvm/legend/legend.component.d.ts.map +0 -1
- package/dvm/legend/legend.service.d.ts +0 -7
- package/dvm/legend/legend.service.d.ts.map +0 -1
- package/dvm/legend/public-api.d.ts +0 -3
- package/dvm/loader/loader.component.d.ts.map +0 -1
- package/dvm/neighbours/index.d.ts.map +0 -1
- package/dvm/neighbours/neighbours.component.d.ts +0 -124
- package/dvm/neighbours/neighbours.component.d.ts.map +0 -1
- package/dvm/neighbours/public-api.d.ts +0 -3
- package/dvm/neighbours/public-api.d.ts.map +0 -1
- package/dvm/neighbours/styles/side-button.tokens.d.ts +0 -16
- package/dvm/neighbours/styles/side-button.tokens.d.ts.map +0 -1
- package/dvm/neighbours/types.d.ts +0 -8
- package/dvm/neighbours/types.d.ts.map +0 -1
- package/dvm/popover/popover.component.d.ts +0 -8
- package/dvm/popover/popover.component.d.ts.map +0 -1
- package/dvm/popover/popover.service.d.ts +0 -7
- package/dvm/popover/popover.service.d.ts.map +0 -1
- package/dvm/popover/public-api.d.ts +0 -3
- package/dvm/stepper/public-api.d.ts +0 -3
- package/dvm/stepper/stepper.component.d.ts +0 -8
- package/dvm/stepper/stepper.component.d.ts.map +0 -1
- package/dvm/stepper/stepper.service.d.ts +0 -7
- package/dvm/stepper/stepper.service.d.ts.map +0 -1
- package/esm2022/3ddv-software-division-components.mjs +0 -5
- package/esm2022/backoffice/index.mjs +0 -2
- package/esm2022/backoffice/public-api.mjs +0 -2
- package/esm2022/backoffice/table/components/body-row/body-row.component.mjs +0 -14
- package/esm2022/backoffice/table/components/header-row/header-row.component.mjs +0 -18
- package/esm2022/backoffice/table/directives/table.directive.mjs +0 -98
- package/esm2022/backoffice/table/index.mjs +0 -2
- package/esm2022/backoffice/table/public-api.mjs +0 -3
- package/esm2022/backoffice/table/table.component.mjs +0 -62
- package/esm2022/backoffice/table/table.service.mjs +0 -14
- package/esm2022/backoffice/table/types.mjs +0 -2
- package/esm2022/dvm/cart/cart.component.mjs +0 -16
- package/esm2022/dvm/cart/cart.service.mjs +0 -14
- package/esm2022/dvm/cart/index.mjs +0 -2
- package/esm2022/dvm/cart/public-api.mjs +0 -6
- package/esm2022/dvm/cart-item/cart-item.component.mjs +0 -16
- package/esm2022/dvm/cart-item/cart-item.service.mjs +0 -14
- package/esm2022/dvm/cart-item/index.mjs +0 -2
- package/esm2022/dvm/cart-item/public-api.mjs +0 -6
- package/esm2022/dvm/index.mjs +0 -2
- package/esm2022/dvm/legend/index.mjs +0 -2
- package/esm2022/dvm/legend/legend.component.mjs +0 -16
- package/esm2022/dvm/legend/legend.service.mjs +0 -14
- package/esm2022/dvm/legend/public-api.mjs +0 -6
- package/esm2022/dvm/loader/index.mjs +0 -2
- package/esm2022/dvm/loader/loader.component.mjs +0 -16
- package/esm2022/dvm/loader/loader.service.mjs +0 -14
- package/esm2022/dvm/loader/public-api.mjs +0 -6
- package/esm2022/dvm/neighbours/index.mjs +0 -2
- package/esm2022/dvm/neighbours/neighbours.component.mjs +0 -181
- package/esm2022/dvm/neighbours/public-api.mjs +0 -2
- package/esm2022/dvm/neighbours/styles/side-button.tokens.mjs +0 -20
- package/esm2022/dvm/neighbours/types.mjs +0 -2
- package/esm2022/dvm/popover/index.mjs +0 -2
- package/esm2022/dvm/popover/popover.component.mjs +0 -16
- package/esm2022/dvm/popover/popover.service.mjs +0 -14
- package/esm2022/dvm/popover/public-api.mjs +0 -6
- package/esm2022/dvm/public-api.mjs +0 -9
- package/esm2022/dvm/stepper/index.mjs +0 -2
- package/esm2022/dvm/stepper/public-api.mjs +0 -6
- package/esm2022/dvm/stepper/stepper.component.mjs +0 -16
- package/esm2022/dvm/stepper/stepper.service.mjs +0 -14
- package/esm2022/dvm/ticket-info-item/index.mjs +0 -2
- package/esm2022/dvm/ticket-info-item/public-api.mjs +0 -6
- package/esm2022/dvm/ticket-info-item/ticket-info-item.component.mjs +0 -16
- package/esm2022/dvm/ticket-info-item/ticket-info-item.service.mjs +0 -14
- package/esm2022/generic/button/button.component.mjs +0 -86
- package/esm2022/generic/button/index.mjs +0 -2
- package/esm2022/generic/button/public-api.mjs +0 -5
- package/esm2022/generic/button/types.mjs +0 -6
- package/esm2022/generic/drawer/drawer.component.mjs +0 -16
- package/esm2022/generic/drawer/drawer.service.mjs +0 -14
- package/esm2022/generic/drawer/index.mjs +0 -2
- package/esm2022/generic/drawer/public-api.mjs +0 -6
- package/esm2022/generic/index.mjs +0 -2
- package/esm2022/generic/modal/index.mjs +0 -2
- package/esm2022/generic/modal/modal.component.mjs +0 -16
- package/esm2022/generic/modal/modal.service.mjs +0 -14
- package/esm2022/generic/modal/public-api.mjs +0 -6
- package/esm2022/generic/public-api.mjs +0 -4
- package/esm2022/private-exports.mjs +0 -2
- package/esm2022/public-api.mjs +0 -7
- package/esm2022/shared/format-value.pipe.mjs +0 -28
- package/esm2022/shared/index.mjs +0 -2
- package/esm2022/shared/lib-provider/config-token.mjs +0 -3
- package/esm2022/shared/lib-provider/index.mjs +0 -2
- package/esm2022/shared/lib-provider/provide-sdc.mjs +0 -36
- package/esm2022/shared/lib-provider/public-api.mjs +0 -2
- package/esm2022/shared/public-api.mjs +0 -5
- package/esm2022/shared/theme-provider/generic-theme.mjs +0 -10
- package/esm2022/shared/theme-provider/index.mjs +0 -2
- package/esm2022/shared/theme-provider/public-api.mjs +0 -3
- package/esm2022/shared/theme-provider/theme-provider.directive.mjs +0 -29
- package/esm2022/shared/types.mjs +0 -2
- package/esm2022/utils/index.mjs +0 -2
- package/esm2022/utils/public-api.mjs +0 -2
- package/esm2022/utils/validate-styles-for-component.mjs +0 -33
- package/fesm2022/3ddv-software-division-components.mjs +0 -857
- package/fesm2022/3ddv-software-division-components.mjs.map +0 -1
- package/generic/button/button.component.d.ts +0 -62
- package/generic/button/button.component.d.ts.map +0 -1
- package/generic/button/types.d.ts +0 -2
- package/generic/button/types.d.ts.map +0 -1
- package/generic/drawer/drawer.component.d.ts.map +0 -1
- package/generic/modal/index.d.ts.map +0 -1
- package/generic/modal/modal.component.d.ts +0 -8
- package/generic/modal/modal.component.d.ts.map +0 -1
- package/generic/modal/modal.service.d.ts +0 -7
- package/generic/modal/modal.service.d.ts.map +0 -1
- package/generic/modal/public-api.d.ts +0 -3
- package/generic/modal/public-api.d.ts.map +0 -1
- package/generic/public-api.d.ts +0 -4
- package/generic/public-api.d.ts.map +0 -1
- package/private-exports.d.ts +0 -2
- package/private-exports.d.ts.map +0 -1
- package/public-api.d.ts +0 -5
- package/public-api.d.ts.map +0 -1
- package/shared/format-value.pipe.d.ts +0 -10
- package/shared/format-value.pipe.d.ts.map +0 -1
- package/shared/index.d.ts.map +0 -1
- package/shared/public-api.d.ts +0 -5
- package/shared/public-api.d.ts.map +0 -1
- package/shared/theme-provider/generic-theme.d.ts +0 -2
- package/shared/theme-provider/generic-theme.d.ts.map +0 -1
- package/shared/theme-provider/index.d.ts.map +0 -1
- package/shared/theme-provider/public-api.d.ts +0 -3
- package/shared/theme-provider/public-api.d.ts.map +0 -1
- package/shared/theme-provider/theme-provider.directive.d.ts +0 -11
- package/shared/theme-provider/theme-provider.directive.d.ts.map +0 -1
- package/shared/types.d.ts +0 -6
- package/shared/types.d.ts.map +0 -1
- package/utils/index.d.ts.map +0 -1
- package/utils/public-api.d.ts +0 -2
- package/utils/public-api.d.ts.map +0 -1
- package/utils/validate-styles-for-component.d.ts +0 -2
- package/utils/validate-styles-for-component.d.ts.map +0 -1
- /package/{3ddv-software-division-components.d.ts.map → dist/3ddv-software-division-components.d.ts.map} +0 -0
- /package/{backoffice → dist/backoffice/checkbox}/index.d.ts +0 -0
- /package/{backoffice/table → dist/backoffice/datepicker}/index.d.ts +0 -0
- /package/{dvm/cart-item → dist/backoffice}/index.d.ts +0 -0
- /package/{backoffice → dist/backoffice}/index.d.ts.map +0 -0
- /package/{dvm/cart → dist/backoffice/input}/index.d.ts +0 -0
- /package/{dvm → dist/backoffice/radio}/index.d.ts +0 -0
- /package/{dvm/legend → dist/backoffice/table}/index.d.ts +0 -0
- /package/{backoffice → dist/backoffice}/table/index.d.ts.map +0 -0
- /package/{dvm → dist/dvm}/cart/cart.service.d.ts +0 -0
- /package/{dvm → dist/dvm}/cart/cart.service.d.ts.map +0 -0
- /package/{dvm/neighbours → dist/dvm/cart}/index.d.ts +0 -0
- /package/{dvm → dist/dvm}/cart/index.d.ts.map +0 -0
- /package/{dvm → dist/dvm}/cart/public-api.d.ts +0 -0
- /package/{dvm → dist/dvm}/cart/public-api.d.ts.map +0 -0
- /package/{dvm → dist/dvm}/cart-item/cart-item.service.d.ts +0 -0
- /package/{dvm → dist/dvm}/cart-item/cart-item.service.d.ts.map +0 -0
- /package/{dvm/loader → dist/dvm/cart-item}/index.d.ts +0 -0
- /package/{dvm → dist/dvm}/cart-item/index.d.ts.map +0 -0
- /package/{dvm → dist/dvm}/cart-item/public-api.d.ts +0 -0
- /package/{dvm → dist/dvm}/cart-item/public-api.d.ts.map +0 -0
- /package/{dvm/popover → dist/dvm}/index.d.ts +0 -0
- /package/{dvm → dist/dvm}/index.d.ts.map +0 -0
- /package/{dvm/stepper → dist/dvm/legend}/index.d.ts +0 -0
- /package/{dvm → dist/dvm}/legend/index.d.ts.map +0 -0
- /package/{dvm/ticket-info-item → dist/dvm/loader}/index.d.ts +0 -0
- /package/{dvm → dist/dvm}/loader/index.d.ts.map +0 -0
- /package/{dvm → dist/dvm}/loader/loader.service.d.ts +0 -0
- /package/{dvm → dist/dvm}/loader/loader.service.d.ts.map +0 -0
- /package/{dvm → dist/dvm}/loader/public-api.d.ts +0 -0
- /package/{dvm → dist/dvm}/loader/public-api.d.ts.map +0 -0
- /package/{generic/button → dist/dvm/map-loader}/index.d.ts +0 -0
- /package/{generic/drawer → dist/dvm/neighbors}/index.d.ts +0 -0
- /package/{generic → dist/dvm/popover}/index.d.ts +0 -0
- /package/{dvm → dist/dvm}/popover/index.d.ts.map +0 -0
- /package/{generic/modal → dist/dvm/stepper}/index.d.ts +0 -0
- /package/{dvm → dist/dvm}/stepper/index.d.ts.map +0 -0
- /package/{shared → dist/dvm/ticket-info-item}/index.d.ts +0 -0
- /package/{dvm → dist/dvm}/ticket-info-item/index.d.ts.map +0 -0
- /package/{dvm → dist/dvm}/ticket-info-item/public-api.d.ts +0 -0
- /package/{dvm → dist/dvm}/ticket-info-item/public-api.d.ts.map +0 -0
- /package/{dvm → dist/dvm}/ticket-info-item/ticket-info-item.service.d.ts +0 -0
- /package/{dvm → dist/dvm}/ticket-info-item/ticket-info-item.service.d.ts.map +0 -0
- /package/{shared/lib-provider → dist/generic/add-digital-wallet}/index.d.ts +0 -0
- /package/{shared/theme-provider → dist/generic/braintree}/index.d.ts +0 -0
- /package/{utils → dist/generic/button}/index.d.ts +0 -0
- /package/{generic → dist/generic}/button/index.d.ts.map +0 -0
- /package/{generic → dist/generic}/button/public-api.d.ts +0 -0
- /package/{generic → dist/generic}/button/public-api.d.ts.map +0 -0
- /package/{generic → dist/generic}/drawer/drawer.service.d.ts +0 -0
- /package/{generic → dist/generic}/drawer/drawer.service.d.ts.map +0 -0
- /package/{generic → dist/generic}/drawer/index.d.ts.map +0 -0
- /package/{generic → dist/generic}/drawer/public-api.d.ts +0 -0
- /package/{generic → dist/generic}/drawer/public-api.d.ts.map +0 -0
- /package/{generic → dist/generic}/index.d.ts.map +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{shared → dist/shared}/lib-provider/config-token.d.ts +0 -0
- /package/{shared → dist/shared}/lib-provider/config-token.d.ts.map +0 -0
- /package/{shared → dist/shared}/lib-provider/index.d.ts.map +0 -0
- /package/{shared → dist/shared}/lib-provider/public-api.d.ts +0 -0
- /package/{shared → dist/shared}/lib-provider/public-api.d.ts.map +0 -0
package/README.md
CHANGED
|
@@ -2,20 +2,57 @@
|
|
|
2
2
|
|
|
3
3
|
## **Overview**
|
|
4
4
|
|
|
5
|
-

|
|
5
|
+

|
|
7
6
|

|
|
8
7
|
|
|
9
|
-
The Software Division Components library is a wrapper around the [
|
|
8
|
+
The Software Division Components library is a wrapper around the [SpartanNG](https://spartan.ng/documentation/introduction) component library. It enhances SpartanNG components by providing additional functionality tailored to the common requirements of applications developed within the Software Division department. It also uses [Angular](https://v18.angular.dev/) for application development and [Storybook](https://storybook.js.org/) for interactive component documentation and testing.
|
|
10
9
|
|
|
11
10
|
## **Installation**
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
[Refer to the dedicated docs page](./docs/installation.md)
|
|
13
|
+
|
|
14
|
+
## **Development**
|
|
15
|
+
|
|
16
|
+
### Conventions
|
|
17
|
+
|
|
18
|
+
[Refer to the dedicated docs page](./docs/conventions.md)
|
|
19
|
+
|
|
20
|
+
### Development Workflows
|
|
21
|
+
|
|
22
|
+
#### 1. Storybook Development (Recommended)
|
|
23
|
+
|
|
24
|
+
Use Storybook for isolated component development and testing:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
pnpm storybook
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
#### 2. Consumer App Integration Testing
|
|
31
|
+
|
|
32
|
+
Use the consumer app for integration testing of components in a real application context. Each component should have its own route for testing.
|
|
33
|
+
|
|
34
|
+
**Setup requires two terminals:**
|
|
35
|
+
|
|
36
|
+
**Terminal 1 - Build Library:**
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
pnpm run build:watch
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Watches for changes in the SDC library and rebuilds to the `dist/` folder.
|
|
43
|
+
|
|
44
|
+
**Terminal 2 - Watch and Restart Consumer App:**
|
|
14
45
|
|
|
15
46
|
```bash
|
|
16
|
-
|
|
47
|
+
pnpm run start:watch
|
|
17
48
|
```
|
|
18
49
|
|
|
50
|
+
Watches the `dist/` folder and automatically restarts the consumer app when library changes are detected.
|
|
51
|
+
|
|
52
|
+
**Note:** The consumer app uses `file:dist` to link the SDC library locally, allowing real-time testing of library changes.
|
|
53
|
+
|
|
54
|
+
**Note:** This workflow was implemented because we couldn't find a better way to automatically update the library dependencies in the dev server. The current approach ensures fresh dependencies are loaded with each restart.
|
|
55
|
+
|
|
19
56
|
## **Reporting issues**
|
|
20
57
|
|
|
21
58
|
> **Note: This is a temporary workflow for reporting issues. As the usage of the library increases, we will reassess and scale the issue reporting system accordingly.**
|
|
@@ -29,7 +66,7 @@ The source folder of this project contains multiple subfolders. Below are the mo
|
|
|
29
66
|
- **Backoffice**
|
|
30
67
|
This folder contains components that are **exclusive to the backoffice setting**, such as tables or sidebars. These components do **not** receive any styling from the theme class passed on initialization (be it `generic` or `backoffice`).
|
|
31
68
|
|
|
32
|
-
Some components from the Generic folder can also be used in the backoffice, but in such cases, the backoffice theme must be passed to the library provider. This ensures that no additional styles are applied, keeping the default
|
|
69
|
+
Some components from the Generic folder can also be used in the backoffice, but in such cases, the backoffice theme must be passed to the library provider. This ensures that no additional styles are applied, keeping the default SpartanNG design intact.
|
|
33
70
|
|
|
34
71
|
- **DVM**
|
|
35
72
|
This folder includes components specific to applications that use **DVM**. Many of these components share both style and functionality, and this module is designed to **maximize reusability**. Examples include the **section navigator buttons** and the **minimap**.
|
|
@@ -62,11 +99,38 @@ If the issue persists, refer to the documentation or check for any unintended mo
|
|
|
62
99
|
|
|
63
100
|
## **How to use the library from the consuming application**
|
|
64
101
|
|
|
102
|
+
### Importing the library
|
|
103
|
+
|
|
104
|
+
#### Providing the library to the application
|
|
105
|
+
|
|
106
|
+
```ts
|
|
107
|
+
import { ApplicationConfig } from '@angular/core';
|
|
108
|
+
import { provideSdc } from '@3ddv/software-division-components';
|
|
109
|
+
|
|
110
|
+
export const appConfig: ApplicationConfig = {
|
|
111
|
+
// this provides the consuming app with all necessary modules
|
|
112
|
+
// to make it work
|
|
113
|
+
providers: [provideSdc({ theme: 'generic' })],
|
|
114
|
+
};
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
#### Import from main entry
|
|
118
|
+
|
|
119
|
+
```ts
|
|
120
|
+
import { TableComponent, ButtonComponent } from '@3ddv/software-division-components';
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
#### Import from secondary entry
|
|
124
|
+
|
|
125
|
+
```ts
|
|
126
|
+
import { ButtonComponent } from '@3ddv/software-division-components/generic/button';
|
|
127
|
+
```
|
|
128
|
+
|
|
65
129
|
### Theming and styling
|
|
66
130
|
|
|
67
|
-
This library is a wrapper to an already existing component library (
|
|
131
|
+
This library is a wrapper to an already existing component library (SpartanNG), which means that there are some styles that are already present in all the exported components. These styles are kept intact whenever the `backoffice` theme parameter is passed to the `provideSdc` method. You also have the option of passing the `generic` parameter, which in turn makes the component align to the design that several ticketing applications share. If no parameter is passed, the `generic` is assigned as a fallback option. You can check that design [here](https://xd.adobe.com/view/0ea7033e-8fdf-4fcd-8215-546d1df20d37-5bf4/), [here](https://xd.adobe.com/view/c640d5a1-b5d3-4379-8684-fb860f95f052-9313/grid) and [here](https://xd.adobe.com/view/50a2d5c5-e2e1-413f-b7a5-8f3d61c88026-05f1/screen/65dee679-9942-4a63-b790-40e3b1fec39b/).
|
|
68
132
|
|
|
69
|
-
Styling components consist of passing down CSS classes that consist of
|
|
133
|
+
Styling components consist of passing down CSS classes that consist of SpartanNG variables. Go by as if you were styling a common HTML element. Every component has a `styleClasses` input which accepts a single or several whitespace-separated CSS class/classes declared within the using application. To see the variables that each component has, please check the official PrimeNG documentation per each component. Here you can see an example for the (button component)[https://spartan.ng/components/button]. The column _Variable_ includes every single class that you can use within the your CSS classes which you will later pass into the library button to style it. The result looks as follows:
|
|
70
134
|
|
|
71
135
|
```css
|
|
72
136
|
.my-class {
|
|
@@ -90,7 +154,7 @@ If you are facing any specifity problems, each component also has an ID referenc
|
|
|
90
154
|
|
|
91
155
|
#### Encapsulation issues
|
|
92
156
|
|
|
93
|
-
Most of the time you will be declaring your styles with a CSS file declared within the component scope (my-component.component.css) and later import it with _styleUrl_ or _stylesUrl_ in your component. In that scenario, you will be dealing with the default (component View Encapsulation)[https://angular.dev/guide/components/styling] setting, which does not allow a parent component to apply styles to the child component. This brings a problem when it comes to passing down CSS classes to the library components. Following similar practices from other component
|
|
157
|
+
Most of the time you will be declaring your styles with a CSS file declared within the component scope (my-component.component.css) and later import it with _styleUrl_ or _stylesUrl_ in your component. In that scenario, you will be dealing with the default (component View Encapsulation)[https://angular.dev/guide/components/styling] setting, which does not allow a parent component to apply styles to the child component. This brings a problem when it comes to passing down CSS classes to the library components. Following similar practices from other component librariess, we bring the option to bypass View Encapsulation for a certain CSS class by declaring your classes with a pseudo-class selector:
|
|
94
158
|
|
|
95
159
|
Depending on the Encapsulation option that you are using in your component, some styles will not apply. In that scenario, declare the style as follows:
|
|
96
160
|
|
|
@@ -137,11 +201,11 @@ Some components are composed of several underlying components, so a single `styl
|
|
|
137
201
|
|
|
138
202
|
With this method, we are able to apply certain styles for the buttons on the sides ( with `sideButtonsClass`) and a different one for the `div` on the middle of the component template (with `middleDivClass`).
|
|
139
203
|
|
|
140
|
-
Styles will pierce through the
|
|
204
|
+
Styles will pierce through the SpartanNG layer and directly style the underlying HTML element. If you are facing any problem styling any component, please check the [official PrimeNG documentation on theming](https://v18.primeng.org/theming) or the individual webpage for styling each component [as in this example for the button component](https://v18.primeng.org/button).
|
|
141
205
|
|
|
142
206
|
### What if I'm using Tailwind in my application?
|
|
143
207
|
|
|
144
|
-
Tailwind does reset most of the styles that any other third party app is applying, so
|
|
208
|
+
Tailwind does reset most of the styles that any other third party app is applying, so SpartanNG styles will be overriden. In that scenario, the component library exposes several layers to scope this overriding as much as posible. If you are using Tailwind, declare the Tailwind reset as follows in your root stylesheet:
|
|
145
209
|
|
|
146
210
|
```css
|
|
147
211
|
@layer tailwind-base {
|
|
@@ -152,13 +216,11 @@ Tailwind does reset most of the styles that any other third party app is applyin
|
|
|
152
216
|
@tailwind utilities;
|
|
153
217
|
```
|
|
154
218
|
|
|
155
|
-
TODO: DOCUMENT TAILWIND OPTION
|
|
156
|
-
|
|
157
219
|
### Passing inputs to components that have a lot of props
|
|
158
220
|
|
|
159
221
|
Besides all the documented inputs that components have, some components also have the option to pass all components in an object to end up with a more concise template markup, instead of using individual bindings.
|
|
160
222
|
|
|
161
|
-
> The components that provide this functionality are usually the ones that have a more direct representation within
|
|
223
|
+
> The components that provide this functionality are usually the ones that have a more direct representation within SpartanNG, as this is intended to solve the polution that the library creates due to it having so many inputs. An example would be the **ButtonComponent**.
|
|
162
224
|
|
|
163
225
|
This is the old markup:
|
|
164
226
|
|
|
@@ -198,33 +260,6 @@ And the resulting HTML:
|
|
|
198
260
|
<sdc-button [props]="{props}" />
|
|
199
261
|
```
|
|
200
262
|
|
|
201
|
-
### Importing the library
|
|
202
|
-
|
|
203
|
-
#### Providing the library to the application
|
|
204
|
-
|
|
205
|
-
```ts
|
|
206
|
-
import { ApplicationConfig } from '@angular/core';
|
|
207
|
-
import { provideSdc } from '@3ddv/software-division-components';
|
|
208
|
-
|
|
209
|
-
export const appConfig: ApplicationConfig = {
|
|
210
|
-
// this provides the consuming app with all necessary modules
|
|
211
|
-
// to make it work
|
|
212
|
-
providers: [provideSdc({ theme: 'generic' })],
|
|
213
|
-
};
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
#### Import from main entry
|
|
217
|
-
|
|
218
|
-
```ts
|
|
219
|
-
import { TableComponent, ButtonComponent } from '@3ddv/software-division-components';
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
#### Import from secondary entry
|
|
223
|
-
|
|
224
|
-
```ts
|
|
225
|
-
import { ButtonComponent } from '@3ddv/software-division-components/generic/button';
|
|
226
|
-
```
|
|
227
|
-
|
|
228
263
|
## **How to collaborate to the library as a developer**
|
|
229
264
|
|
|
230
265
|
### Semantic versioning
|
|
@@ -250,7 +285,7 @@ If the commit message does not adhere to the Conventional Commits format, Commit
|
|
|
250
285
|
|
|
251
286
|
### Development workflow steps
|
|
252
287
|
|
|
253
|
-
- Make sure you have latest master remote changes on your local master branch
|
|
288
|
+
- Make sure you have the latest master remote changes on your local master branch
|
|
254
289
|
|
|
255
290
|
- If no release branch is created, create one checking which version is the next one to be developed on, if there is an ongoing release branch , create a branch following the [official Conventional Commits guidelines](https://www.conventionalcommits.org/en/v1.0.0/).
|
|
256
291
|
|
|
@@ -272,7 +307,7 @@ We also declare the accessibility scope, parameter types and return types of any
|
|
|
272
307
|
|
|
273
308
|
```typescript
|
|
274
309
|
/**
|
|
275
|
-
* A customizable button component built on
|
|
310
|
+
* A customizable button component built on SpartanNg Button component.
|
|
276
311
|
*
|
|
277
312
|
* This component supports various configurations, such as tooltips, badge values,
|
|
278
313
|
* and theme styles. It uses the `ThemeProviderDirective` to apply theming dynamically.
|
|
@@ -309,7 +344,7 @@ export class ButtonComponent extends Button {
|
|
|
309
344
|
}
|
|
310
345
|
```
|
|
311
346
|
|
|
312
|
-
### Internally overriding
|
|
347
|
+
### Internally overriding SpartanNG styles with component scope
|
|
313
348
|
|
|
314
349
|
> First of all, we would like to clarify that this is a different feature from the previously mentioned `styleClasses` feature. Style classes are thought of as a styling interface for the users of the library. This feature is to be used for developers working on component development and wanting to override any styles of PrimeNG components, so custom components adhere to the styling required.
|
|
315
350
|
|
|
@@ -382,11 +417,9 @@ For styling native HTML elements in our project, we adhere to the **Block-Elemen
|
|
|
382
417
|
#### Guidelines for Using BEM
|
|
383
418
|
|
|
384
419
|
- **Use BEM for anything that is not a design token.**
|
|
385
|
-
|
|
386
420
|
- Design tokens (e.g., colors, typography, spacing) should be handled via variables, custom properties, or a design system, not through BEM class names.
|
|
387
421
|
|
|
388
422
|
- **Use design tokens for everything that involves styling a native PrimeNG component.**
|
|
389
|
-
|
|
390
423
|
- PrimeNG components already use design tokens, so we must align with them instead of defining custom BEM classes.
|
|
391
424
|
|
|
392
425
|
- **Native HTML elements must always be styled using BEM classes.**
|
|
@@ -414,7 +447,7 @@ Any further information regarding the BEM methodology can be found through the f
|
|
|
414
447
|
|
|
415
448
|
###### Why no Tailwind?
|
|
416
449
|
|
|
417
|
-
We are not internally using Tailwind because this project has the intention of having a long lifespan, we do not want to introduce an extra dependency that could cause compatibility issues
|
|
450
|
+
We are not internally using Tailwind because this project has the intention of having a long lifespan, we do not want to introduce an extra dependency that could cause compatibility issues among PrimeNG, Angular, and Storybook.
|
|
418
451
|
Since our project already relies on component libraries that define their own styles and classes, Tailwind’s utility-based approach could lead to conflicts and unnecessary complexity. For all we know, Tailwind is more likely to not be that popular in the near future than native CSS :).
|
|
419
452
|
|
|
420
453
|
However, we have included in the roadmap the ability to pass Tailwind classes within the `styleClasses` prop, present in most components so you can use Tailwind from your consuming application.
|
|
@@ -501,7 +534,7 @@ export const Primary: Story = {
|
|
|
501
534
|
};
|
|
502
535
|
```
|
|
503
536
|
|
|
504
|
-
When this is done (or while you are
|
|
537
|
+
When this is done (or while you are developing the component) you can visualize it by booting up Storybook locally. Use this command:
|
|
505
538
|
|
|
506
539
|
```bash
|
|
507
540
|
pnpm run storybook
|