@3ddv/software-division-components 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +17 -0
- package/.husky/commit-msg +1 -0
- package/.prettierrc +11 -0
- package/README.backup.md +579 -0
- package/angular.json +144 -0
- package/commitlint-config.ts +7 -0
- package/components.json +6 -0
- package/docs/conventions.md +151 -0
- package/docs/installation.md +131 -0
- package/docs/releasing.md +306 -0
- package/eslint.config.ts +209 -0
- package/lerna-debug.log +71 -0
- package/lerna.json +8 -0
- package/package.json +130 -172
- package/pnpm-workspace.yaml +2 -0
- package/postcss.config.js +6 -0
- package/process-styles.js +31 -0
- package/projects/consumer-app/public/favicon.ico +0 -0
- package/projects/consumer-app/src/app/app.component.css +45 -0
- package/projects/consumer-app/src/app/app.component.html +11 -0
- package/projects/consumer-app/src/app/app.component.ts +14 -0
- package/projects/consumer-app/src/app/app.config.ts +8 -0
- package/projects/consumer-app/src/app/app.routes.ts +9 -0
- package/projects/consumer-app/src/app/form/form.component.css +82 -0
- package/projects/consumer-app/src/app/form/form.component.html +196 -0
- package/projects/consumer-app/src/app/form/form.component.ts +101 -0
- package/projects/consumer-app/src/app/table/action-column.component.ts +46 -0
- package/projects/consumer-app/src/app/table/table.component.css +3 -0
- package/projects/consumer-app/src/app/table/table.component.html +17 -0
- package/projects/consumer-app/src/app/table/table.component.ts +277 -0
- package/projects/consumer-app/src/index.html +13 -0
- package/projects/consumer-app/src/main.ts +6 -0
- package/projects/consumer-app/src/styles.css +35 -0
- package/projects/consumer-app/tsconfig.app.json +11 -0
- package/projects/consumer-app/tsconfig.spec.json +15 -0
- package/projects/software-division-components/.claude/settings.local.json +9 -0
- package/projects/software-division-components/.postcssrc.json +5 -0
- package/projects/software-division-components/.storybook/main.ts +28 -0
- package/projects/software-division-components/.storybook/manager-head.html +1 -0
- package/projects/software-division-components/.storybook/preview.ts +30 -0
- package/projects/software-division-components/.storybook/tsconfig.json +13 -0
- package/projects/software-division-components/.storybook/typings.d.ts +4 -0
- package/projects/software-division-components/LICENSE.md +21 -0
- package/projects/software-division-components/components.json +3 -0
- package/projects/software-division-components/documentation.json +5052 -0
- package/projects/software-division-components/ng-package.json +10 -0
- package/projects/software-division-components/node_modules/.bin/acorn +21 -0
- package/projects/software-division-components/node_modules/.bin/browserslist +21 -0
- package/projects/software-division-components/node_modules/.bin/chroma +21 -0
- package/projects/software-division-components/node_modules/.bin/chromatic +21 -0
- package/projects/software-division-components/node_modules/.bin/chromatic-cli +21 -0
- package/projects/software-division-components/node_modules/.bin/compodoc +21 -0
- package/projects/software-division-components/node_modules/.bin/eslint +21 -0
- package/projects/software-division-components/node_modules/.bin/getstorybook +21 -0
- package/projects/software-division-components/node_modules/.bin/jiti +21 -0
- package/projects/software-division-components/node_modules/.bin/js-yaml +21 -0
- package/projects/software-division-components/node_modules/.bin/karma +21 -0
- package/projects/software-division-components/node_modules/.bin/lessc +21 -0
- package/projects/software-division-components/node_modules/.bin/mf +21 -0
- package/projects/software-division-components/node_modules/.bin/ng +21 -0
- package/projects/software-division-components/node_modules/.bin/ng-packagr +21 -0
- package/projects/software-division-components/node_modules/.bin/ng-xi18n +21 -0
- package/projects/software-division-components/node_modules/.bin/ngc +21 -0
- package/projects/software-division-components/node_modules/.bin/ngcc +21 -0
- package/projects/software-division-components/node_modules/.bin/nx +21 -0
- package/projects/software-division-components/node_modules/.bin/nx-cloud +21 -0
- package/projects/software-division-components/node_modules/.bin/prettier +21 -0
- package/projects/software-division-components/node_modules/.bin/sass +21 -0
- package/projects/software-division-components/node_modules/.bin/sb +21 -0
- package/projects/software-division-components/node_modules/.bin/storybook +21 -0
- package/projects/software-division-components/node_modules/.bin/tailwind +21 -0
- package/projects/software-division-components/node_modules/.bin/tailwindcss +21 -0
- package/projects/software-division-components/node_modules/.bin/terser +21 -0
- package/projects/software-division-components/node_modules/.bin/tsc +21 -0
- package/projects/software-division-components/node_modules/.bin/tsserver +21 -0
- package/projects/software-division-components/node_modules/.bin/vite +21 -0
- package/projects/software-division-components/node_modules/.bin/webpack +21 -0
- package/projects/software-division-components/node_modules/.bin/yaml +21 -0
- package/projects/software-division-components/package.json +216 -0
- package/projects/software-division-components/public/3ddv-logo.jpg +0 -0
- package/projects/software-division-components/public/neighbours-after.png +0 -0
- package/projects/software-division-components/public/neighbours-before.png +0 -0
- package/projects/software-division-components/src/backoffice/checkbox/checkbox.component.css +193 -0
- package/projects/software-division-components/src/backoffice/checkbox/checkbox.component.html +23 -0
- package/projects/software-division-components/src/backoffice/checkbox/checkbox.component.ts +252 -0
- package/projects/software-division-components/src/backoffice/checkbox/index.ts +1 -0
- package/projects/software-division-components/src/backoffice/checkbox/public-api.ts +1 -0
- package/projects/software-division-components/src/backoffice/checkbox/story/checkbox.stories.ts +304 -0
- package/projects/software-division-components/src/backoffice/datepicker/datepicker.component.css +262 -0
- package/projects/software-division-components/src/backoffice/datepicker/datepicker.component.html +40 -0
- package/projects/software-division-components/src/backoffice/datepicker/datepicker.component.ts +366 -0
- package/projects/software-division-components/src/backoffice/datepicker/index.ts +1 -0
- package/{backoffice/datepicker/public-api.d.ts → projects/software-division-components/src/backoffice/datepicker/public-api.ts} +1 -1
- package/projects/software-division-components/src/backoffice/datepicker/story/datepicker.stories.ts +32 -0
- package/projects/software-division-components/src/backoffice/datepicker/ui/ui-calendar-helm/src/index.ts +14 -0
- package/projects/software-division-components/src/backoffice/datepicker/ui/ui-calendar-helm/src/lib/hlm-calendar-multi.ts +183 -0
- package/projects/software-division-components/src/backoffice/datepicker/ui/ui-calendar-helm/src/lib/hlm-calendar.ts +171 -0
- package/projects/software-division-components/src/backoffice/datepicker/ui/ui-date-picker-helm/src/index.ts +16 -0
- package/projects/software-division-components/src/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker-multi.token.ts +43 -0
- package/projects/software-division-components/src/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker-multi.ts +177 -0
- package/projects/software-division-components/src/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker.token.ts +43 -0
- package/projects/software-division-components/src/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker.ts +167 -0
- package/projects/software-division-components/src/backoffice/datepicker/ui/ui-icon-helm/src/index.ts +11 -0
- package/projects/software-division-components/src/backoffice/datepicker/ui/ui-icon-helm/src/lib/hlm-icon.token.ts +20 -0
- package/projects/software-division-components/src/backoffice/datepicker/ui/ui-icon-helm/src/lib/hlm-icon.ts +35 -0
- package/projects/software-division-components/src/backoffice/datepicker/ui/ui-popover-helm/src/index.ts +15 -0
- package/projects/software-division-components/src/backoffice/datepicker/ui/ui-popover-helm/src/lib/hlm-popover-close.ts +19 -0
- package/projects/software-division-components/src/backoffice/datepicker/ui/ui-popover-helm/src/lib/hlm-popover-content.ts +30 -0
- package/projects/software-division-components/src/backoffice/index.ts +1 -0
- package/projects/software-division-components/src/backoffice/input/index.ts +1 -0
- package/projects/software-division-components/src/backoffice/input/input.component.css +319 -0
- package/projects/software-division-components/src/backoffice/input/input.component.html +51 -0
- package/projects/software-division-components/src/backoffice/input/input.component.ts +497 -0
- package/projects/software-division-components/src/backoffice/input/public-api.ts +2 -0
- package/projects/software-division-components/src/backoffice/input/story/input.stories.ts +243 -0
- package/projects/software-division-components/src/backoffice/package.json +8 -0
- package/{backoffice/public-api.d.ts → projects/software-division-components/src/backoffice/public-api.ts} +0 -1
- package/projects/software-division-components/src/backoffice/radio/index.ts +1 -0
- package/projects/software-division-components/src/backoffice/radio/public-api.ts +1 -0
- package/projects/software-division-components/src/backoffice/radio/radio.component.css +143 -0
- package/projects/software-division-components/src/backoffice/radio/radio.component.html +15 -0
- package/projects/software-division-components/src/backoffice/radio/radio.component.ts +154 -0
- package/projects/software-division-components/src/backoffice/radio/story/radio.stories.ts +287 -0
- package/projects/software-division-components/src/backoffice/table/_components/pagination/pagination.component.css +117 -0
- package/projects/software-division-components/src/backoffice/table/_components/pagination/pagination.component.html +55 -0
- package/projects/software-division-components/src/backoffice/table/_components/pagination/pagination.component.ts +79 -0
- package/projects/software-division-components/src/backoffice/table/_components/selection-table-head/selection-table-head.component.css +0 -0
- package/projects/software-division-components/src/backoffice/table/_components/selection-table-head/selection-table-head.component.html +6 -0
- package/projects/software-division-components/src/backoffice/table/_components/selection-table-head/selection-table-head.component.ts +36 -0
- package/projects/software-division-components/src/backoffice/table/_components/selection-table-row/selection-table-row.component.css +0 -0
- package/projects/software-division-components/src/backoffice/table/_components/selection-table-row/selection-table-row.component.html +5 -0
- package/projects/software-division-components/src/backoffice/table/_components/selection-table-row/selection-table-row.component.ts +12 -0
- package/projects/software-division-components/src/backoffice/table/_components/sort-header-button/sort-header-button.component.css +14 -0
- package/projects/software-division-components/src/backoffice/table/_components/sort-header-button/sort-header-button.component.html +11 -0
- package/projects/software-division-components/src/backoffice/table/_components/sort-header-button/sort-header-button.component.ts +55 -0
- package/projects/software-division-components/src/backoffice/table/index.ts +1 -0
- package/projects/software-division-components/src/backoffice/table/public-api.ts +43 -0
- package/projects/software-division-components/src/backoffice/table/story/table.stories.ts +364 -0
- package/projects/software-division-components/src/backoffice/table/table.component.css +172 -0
- package/projects/software-division-components/src/backoffice/table/table.component.html +53 -0
- package/projects/software-division-components/src/backoffice/table/table.component.ts +347 -0
- package/projects/software-division-components/src/backoffice/table/ui/ui-icon-helm/src/index.ts +11 -0
- package/projects/software-division-components/src/backoffice/table/ui/ui-icon-helm/src/lib/hlm-icon.token.ts +20 -0
- package/projects/software-division-components/src/backoffice/table/ui/ui-icon-helm/src/lib/hlm-icon.ts +35 -0
- package/projects/software-division-components/src/backoffice/table/ui/ui-table-helm/src/index.ts +13 -0
- package/projects/software-division-components/src/backoffice/table/ui/ui-table-helm/src/lib/hlm-table.ts +220 -0
- package/projects/software-division-components/src/dvm/cart/cart.component.css +103 -0
- package/projects/software-division-components/src/dvm/cart/cart.component.html +31 -0
- package/projects/software-division-components/src/dvm/cart/cart.component.ts +49 -0
- package/projects/software-division-components/src/dvm/cart/cart.stories.ts +370 -0
- package/projects/software-division-components/src/dvm/cart/cart.types.ts +8 -0
- package/projects/software-division-components/src/dvm/cart/index.ts +2 -0
- package/{dvm/cart/public-api.d.ts → projects/software-division-components/src/dvm/cart/public-api.ts} +5 -1
- package/projects/software-division-components/src/dvm/cart/seat-list.component.css +281 -0
- package/projects/software-division-components/src/dvm/cart/seat-list.component.html +85 -0
- package/projects/software-division-components/src/dvm/cart/seat-list.component.ts +76 -0
- package/projects/software-division-components/src/dvm/cart/seat-list.stories.ts +337 -0
- package/projects/software-division-components/src/dvm/cart-item/cart-item.component.html +1 -0
- package/projects/software-division-components/src/dvm/cart-item/cart-item.component.ts +8 -0
- package/projects/software-division-components/src/dvm/cart-item/cart-item.service.ts +8 -0
- package/projects/software-division-components/src/dvm/cart-item/cart.stories.ts +31 -0
- package/projects/software-division-components/src/dvm/cart-item/index.ts +1 -0
- package/projects/software-division-components/src/dvm/cart-item/package.json +5 -0
- package/{dvm/cart-item/public-api.d.ts → projects/software-division-components/src/dvm/cart-item/public-api.ts} +4 -1
- package/projects/software-division-components/src/dvm/index.ts +1 -0
- package/projects/software-division-components/src/dvm/legend/index.ts +1 -0
- package/projects/software-division-components/src/dvm/legend/legend.component.css +49 -0
- package/projects/software-division-components/src/dvm/legend/legend.component.html +8 -0
- package/projects/software-division-components/src/dvm/legend/legend.component.ts +41 -0
- package/projects/software-division-components/src/dvm/legend/legend.stories.ts +16 -0
- package/projects/software-division-components/src/dvm/legend/package.json +5 -0
- package/{dvm/legend/public-api.d.ts → projects/software-division-components/src/dvm/legend/public-api.ts} +4 -1
- package/{dvm/legend/types.d.ts → projects/software-division-components/src/dvm/legend/types.ts} +3 -3
- package/{dvm/legend/ui/legend-elements/index.d.ts → projects/software-division-components/src/dvm/legend/ui/legend-elements/index.ts} +0 -1
- package/projects/software-division-components/src/dvm/legend/ui/legend-elements/legend-elements.component.css +49 -0
- package/projects/software-division-components/src/dvm/legend/ui/legend-elements/legend-elements.component.html +8 -0
- package/projects/software-division-components/src/dvm/legend/ui/legend-elements/legend-elements.component.ts +41 -0
- package/projects/software-division-components/src/dvm/loader/index.ts +1 -0
- package/projects/software-division-components/src/dvm/loader/loader.component.html +1 -0
- package/projects/software-division-components/src/dvm/loader/loader.component.ts +8 -0
- package/projects/software-division-components/src/dvm/loader/loader.service.ts +8 -0
- package/projects/software-division-components/src/dvm/loader/loader.stories.ts +31 -0
- package/projects/software-division-components/src/dvm/loader/package.json +5 -0
- package/{dvm/loader/public-api.d.ts → projects/software-division-components/src/dvm/loader/public-api.ts} +4 -1
- package/projects/software-division-components/src/dvm/map-loader/index.ts +1 -0
- package/projects/software-division-components/src/dvm/map-loader/map-loader.component.css +91 -0
- package/projects/software-division-components/src/dvm/map-loader/map-loader.component.html +23 -0
- package/projects/software-division-components/src/dvm/map-loader/map-loader.component.ts +187 -0
- package/projects/software-division-components/src/dvm/map-loader/map-loader.stories.ts +16 -0
- package/projects/software-division-components/src/dvm/map-loader/package.json +5 -0
- package/projects/software-division-components/src/dvm/map-loader/public-api.ts +5 -0
- package/projects/software-division-components/src/dvm/neighbors/index.ts +1 -0
- package/projects/software-division-components/src/dvm/neighbors/neighbors.component.css +158 -0
- package/projects/software-division-components/src/dvm/neighbors/neighbors.component.html +45 -0
- package/projects/software-division-components/src/dvm/neighbors/neighbors.component.ts +218 -0
- package/projects/software-division-components/src/dvm/neighbors/package.json +5 -0
- package/projects/software-division-components/src/dvm/neighbors/public-api.ts +2 -0
- package/projects/software-division-components/src/dvm/neighbors/story/arrow-left-black-icon.svg +3 -0
- package/projects/software-division-components/src/dvm/neighbors/story/mock-data.ts +15 -0
- package/projects/software-division-components/src/dvm/neighbors/story/neighbours.stories.css +12 -0
- package/projects/software-division-components/src/dvm/neighbors/story/neighbours.stories.ts +117 -0
- package/{dvm/neighbors/types.d.ts → projects/software-division-components/src/dvm/neighbors/types.ts} +7 -7
- package/projects/software-division-components/src/dvm/package.json +7 -0
- package/projects/software-division-components/src/dvm/popover/base-popover.component.ts +70 -0
- package/projects/software-division-components/src/dvm/popover/index.ts +1 -0
- package/projects/software-division-components/src/dvm/popover/package.json +5 -0
- package/projects/software-division-components/src/dvm/popover/popover.component.css +227 -0
- package/projects/software-division-components/src/dvm/popover/popover.component.html +27 -0
- package/projects/software-division-components/src/dvm/popover/popover.component.ts +236 -0
- package/projects/software-division-components/src/dvm/popover/popover.config.ts +30 -0
- package/projects/software-division-components/src/dvm/popover/popover.service.ts +627 -0
- package/projects/software-division-components/src/dvm/popover/popover.stories.ts +873 -0
- package/{dvm/popover/public-api.d.ts → projects/software-division-components/src/dvm/popover/public-api.ts} +4 -1
- package/projects/software-division-components/src/dvm/popover/seat-popover/seat-popover.component.css +89 -0
- package/projects/software-division-components/src/dvm/popover/seat-popover/seat-popover.component.html +40 -0
- package/projects/software-division-components/src/dvm/popover/seat-popover/seat-popover.component.ts +74 -0
- package/projects/software-division-components/src/dvm/popover/section-popover/section-popover.component.css +157 -0
- package/projects/software-division-components/src/dvm/popover/section-popover/section-popover.component.html +58 -0
- package/projects/software-division-components/src/dvm/popover/section-popover/section-popover.component.ts +106 -0
- package/projects/software-division-components/src/dvm/popover/services/dvm-popover-positioner.service.ts +73 -0
- package/projects/software-division-components/src/dvm/popover/services/popover-manager.service.ts +88 -0
- package/projects/software-division-components/src/dvm/popover/transformers/base-popover-data-transformer.ts +36 -0
- package/projects/software-division-components/src/dvm/popover/types.ts +104 -0
- package/{dvm/public-api.d.ts → projects/software-division-components/src/dvm/public-api.ts} +0 -1
- package/projects/software-division-components/src/dvm/stepper/index.ts +1 -0
- package/projects/software-division-components/src/dvm/stepper/package.json +5 -0
- package/projects/software-division-components/src/dvm/stepper/public-api.ts +5 -0
- package/projects/software-division-components/src/dvm/stepper/stepper.component.css +142 -0
- package/projects/software-division-components/src/dvm/stepper/stepper.component.html +9 -0
- package/projects/software-division-components/src/dvm/stepper/stepper.component.ts +102 -0
- package/{dvm/stepper/types.d.ts → projects/software-division-components/src/dvm/stepper/types.ts} +2 -5
- package/projects/software-division-components/src/dvm/ticket-info-item/index.ts +1 -0
- package/projects/software-division-components/src/dvm/ticket-info-item/package.json +5 -0
- package/{dvm/ticket-info-item/public-api.d.ts → projects/software-division-components/src/dvm/ticket-info-item/public-api.ts} +4 -1
- package/projects/software-division-components/src/dvm/ticket-info-item/ticket-info-item.component.html +1 -0
- package/projects/software-division-components/src/dvm/ticket-info-item/ticket-info-item.component.ts +8 -0
- package/projects/software-division-components/src/dvm/ticket-info-item/ticket-info-item.service.ts +8 -0
- package/projects/software-division-components/src/dvm/ticket-info-item/ticket-info-item.stories.ts +31 -0
- package/projects/software-division-components/src/generic/add-digital-wallet/add-digital-wallet.component.css +76 -0
- package/projects/software-division-components/src/generic/add-digital-wallet/add-digital-wallet.component.html +46 -0
- package/projects/software-division-components/src/generic/add-digital-wallet/add-digital-wallet.component.ts +45 -0
- package/projects/software-division-components/src/generic/add-digital-wallet/index.ts +1 -0
- package/{generic/add-digital-wallet/public-api.d.ts → projects/software-division-components/src/generic/add-digital-wallet/public-api.ts} +0 -1
- package/projects/software-division-components/src/generic/braintree/braintree.component.css +7 -0
- package/projects/software-division-components/src/generic/braintree/braintree.component.ts +134 -0
- package/projects/software-division-components/src/generic/braintree/index.ts +1 -0
- package/projects/software-division-components/src/generic/braintree/package.json +5 -0
- package/{generic/braintree/public-api.d.ts → projects/software-division-components/src/generic/braintree/public-api.ts} +4 -1
- package/projects/software-division-components/src/generic/braintree/story/braintree.stories.css +3 -0
- package/projects/software-division-components/src/generic/braintree/story/braintree.stories.ts +27 -0
- package/projects/software-division-components/src/generic/braintree/types.ts +28 -0
- package/projects/software-division-components/src/generic/button/button.component.css +295 -0
- package/projects/software-division-components/src/generic/button/button.component.html +10 -0
- package/projects/software-division-components/src/generic/button/button.component.ts +352 -0
- package/projects/software-division-components/src/generic/button/index.ts +1 -0
- package/projects/software-division-components/src/generic/button/package.json +5 -0
- package/projects/software-division-components/src/generic/button/public-api.ts +5 -0
- package/projects/software-division-components/src/generic/button/story/button.stories.ts +384 -0
- package/projects/software-division-components/src/generic/button/ui/ui-button-helm/src/index.ts +10 -0
- package/projects/software-division-components/src/generic/button/ui/ui-button-helm/src/lib/hlm-button.token.ts +22 -0
- package/projects/software-division-components/src/generic/button/ui/ui-button-helm/src/lib/hlm-button.ts +62 -0
- package/projects/software-division-components/src/generic/carousel/carousel-item.component.ts +15 -0
- package/projects/software-division-components/src/generic/carousel/carousel-item.directive.ts +14 -0
- package/projects/software-division-components/src/generic/carousel/carousel.component.css +90 -0
- package/projects/software-division-components/src/generic/carousel/carousel.component.html +13 -0
- package/projects/software-division-components/src/generic/carousel/carousel.component.ts +44 -0
- package/projects/software-division-components/src/generic/carousel/index.ts +1 -0
- package/{generic/carousel/public-api.d.ts → projects/software-division-components/src/generic/carousel/public-api.ts} +0 -1
- package/projects/software-division-components/src/generic/carousel/ui/ui-carousel-helm/src/index.ts +29 -0
- package/projects/software-division-components/src/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel-content.ts +23 -0
- package/projects/software-division-components/src/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel-item.ts +25 -0
- package/projects/software-division-components/src/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel-next.ts +58 -0
- package/projects/software-division-components/src/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel-previous.ts +61 -0
- package/projects/software-division-components/src/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel-slide-display.ts +36 -0
- package/projects/software-division-components/src/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel.ts +105 -0
- package/projects/software-division-components/src/generic/dialog/dialog.component.css +5 -0
- package/projects/software-division-components/src/generic/dialog/dialog.component.html +3 -0
- package/projects/software-division-components/src/generic/dialog/dialog.component.ts +20 -0
- package/projects/software-division-components/src/generic/dialog/dialog.stories.ts +14 -0
- package/projects/software-division-components/src/generic/dialog/index.ts +1 -0
- package/{generic/dialog/libs/ui-dialog-helm/src/index.d.ts → projects/software-division-components/src/generic/dialog/libs/ui-dialog-helm/src/index.ts} +20 -8
- package/projects/software-division-components/src/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-close.ts +20 -0
- package/projects/software-division-components/src/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-content.ts +56 -0
- package/projects/software-division-components/src/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-description.ts +17 -0
- package/projects/software-division-components/src/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-footer.ts +19 -0
- package/projects/software-division-components/src/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-header.ts +19 -0
- package/projects/software-division-components/src/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-overlay.ts +23 -0
- package/projects/software-division-components/src/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-title.ts +19 -0
- package/projects/software-division-components/src/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog.service.ts +59 -0
- package/projects/software-division-components/src/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog.ts +31 -0
- package/projects/software-division-components/src/generic/dialog/package.json +9 -0
- package/{generic/dialog/public-api.d.ts → projects/software-division-components/src/generic/dialog/public-api.ts} +4 -1
- package/projects/software-division-components/src/generic/dialog/tsconfig.json +7 -0
- package/projects/software-division-components/src/generic/dialog/ui/dialog-close-button/dialog-close-button.component.css +0 -0
- package/projects/software-division-components/src/generic/dialog/ui/dialog-close-button/dialog-close-button.component.html +1 -0
- package/projects/software-division-components/src/generic/dialog/ui/dialog-close-button/dialog-close-button.component.ts +17 -0
- package/projects/software-division-components/src/generic/dialog/ui/dialog-footer/dialog-footer.component.css +0 -0
- package/projects/software-division-components/src/generic/dialog/ui/dialog-footer/dialog-footer.component.html +3 -0
- package/projects/software-division-components/src/generic/dialog/ui/dialog-footer/dialog-footer.component.ts +11 -0
- package/projects/software-division-components/src/generic/dialog/ui/dialog-header/dialog-header.component.css +0 -0
- package/projects/software-division-components/src/generic/dialog/ui/dialog-header/dialog-header.component.html +8 -0
- package/projects/software-division-components/src/generic/dialog/ui/dialog-header/dialog-header.component.ts +14 -0
- package/projects/software-division-components/src/generic/drawer/drawer.component.html +1 -0
- package/projects/software-division-components/src/generic/drawer/drawer.component.ts +8 -0
- package/projects/software-division-components/src/generic/drawer/drawer.service.ts +8 -0
- package/projects/software-division-components/src/generic/drawer/drawer.stories.ts +31 -0
- package/projects/software-division-components/src/generic/drawer/index.ts +1 -0
- package/projects/software-division-components/src/generic/drawer/package.json +5 -0
- package/{generic/drawer/public-api.d.ts → projects/software-division-components/src/generic/drawer/public-api.ts} +4 -1
- package/projects/software-division-components/src/generic/icon/icon.component.css +7 -0
- package/projects/software-division-components/src/generic/icon/icon.component.html +3 -0
- package/projects/software-division-components/src/generic/icon/icon.component.ts +86 -0
- package/projects/software-division-components/src/generic/icon/icon.stories.ts +16 -0
- package/projects/software-division-components/src/generic/icon/index.ts +1 -0
- package/projects/software-division-components/src/generic/icon/lib/ui-icon-helm/src/index.ts +11 -0
- package/projects/software-division-components/src/generic/icon/lib/ui-icon-helm/src/lib/hlm-icon.token.ts +20 -0
- package/projects/software-division-components/src/generic/icon/lib/ui-icon-helm/src/lib/hlm-icon.ts +36 -0
- package/projects/software-division-components/src/generic/icon/package.json +9 -0
- package/projects/software-division-components/src/generic/icon/public-api.ts +5 -0
- package/projects/software-division-components/src/generic/icon/tsconfig.json +7 -0
- package/projects/software-division-components/src/generic/index.ts +1 -0
- package/projects/software-division-components/src/generic/package.json +7 -0
- package/{generic/public-api.d.ts → projects/software-division-components/src/generic/public-api.ts} +0 -1
- package/projects/software-division-components/src/generic/select/index.ts +1 -0
- package/projects/software-division-components/src/generic/select/lib/hlm-select-content.ts +29 -0
- package/projects/software-division-components/src/generic/select/lib/hlm-select-group.ts +17 -0
- package/projects/software-division-components/src/generic/select/lib/hlm-select-label.ts +26 -0
- package/projects/software-division-components/src/generic/select/lib/hlm-select-option.ts +37 -0
- package/projects/software-division-components/src/generic/select/lib/hlm-select-scroll-down.ts +24 -0
- package/projects/software-division-components/src/generic/select/lib/hlm-select-scroll-up.ts +23 -0
- package/projects/software-division-components/src/generic/select/lib/hlm-select-trigger.ts +53 -0
- package/projects/software-division-components/src/generic/select/lib/hlm-select-value.ts +17 -0
- package/projects/software-division-components/src/generic/select/lib/hlm-select.ts +15 -0
- package/projects/software-division-components/src/generic/select/lib/index.ts +38 -0
- package/{generic/select/public-api.d.ts → projects/software-division-components/src/generic/select/public-api.ts} +0 -1
- package/projects/software-division-components/src/generic/select/select.component.css +65 -0
- package/projects/software-division-components/src/generic/select/select.component.html +19 -0
- package/projects/software-division-components/src/generic/select/select.component.ts +25 -0
- package/projects/software-division-components/src/generic/select/types.ts +4 -0
- package/projects/software-division-components/src/private-exports.ts +1 -0
- package/{public-api.d.ts → projects/software-division-components/src/public-api.ts} +3 -1
- package/projects/software-division-components/src/shared/apply-theme-variables/apply-theme-variables.ts +35 -0
- package/{shared/apply-theme-variables/index.d.ts → projects/software-division-components/src/shared/apply-theme-variables/index.ts} +0 -1
- package/projects/software-division-components/src/shared/format-value.pipe.ts +23 -0
- package/projects/software-division-components/src/shared/index.ts +1 -0
- package/projects/software-division-components/src/shared/lib-provider/config-token.ts +4 -0
- package/projects/software-division-components/src/shared/lib-provider/index.ts +1 -0
- package/projects/software-division-components/src/shared/lib-provider/provide-sdc.ts +24 -0
- package/{shared/lib-provider/public-api.d.ts → projects/software-division-components/src/shared/lib-provider/public-api.ts} +0 -1
- package/projects/software-division-components/src/shared/public-api.ts +6 -0
- package/{shared/screen-observer/index.d.ts → projects/software-division-components/src/shared/screen-observer/index.ts} +0 -1
- package/projects/software-division-components/src/shared/screen-observer/provide-screen-observer.ts +17 -0
- package/projects/software-division-components/src/shared/screen-observer/screen-observer.ts +56 -0
- package/projects/software-division-components/src/shared/screen-observer/sizable-base.ts +70 -0
- package/projects/software-division-components/src/shared/theme-provider/generic-theme.ts +1 -0
- package/projects/software-division-components/src/shared/theme-provider/index.ts +1 -0
- package/projects/software-division-components/src/shared/theme-provider/public-api.ts +1 -0
- package/projects/software-division-components/src/shared/theme-provider/theme-provider.directive.ts +17 -0
- package/projects/software-division-components/src/shared/themes/sdc.css +153 -0
- package/{shared/types.d.ts → projects/software-division-components/src/shared/types.ts} +8 -12
- package/projects/software-division-components/src/types/sizes.type.ts +3 -0
- package/projects/software-division-components/src/utils/index.ts +1 -0
- package/projects/software-division-components/src/utils/public-api.ts +1 -0
- package/projects/software-division-components/src/utils/validate-styles-for-component.ts +39 -0
- package/projects/software-division-components/styles.css +40 -0
- package/projects/software-division-components/tsconfig.json +30 -0
- package/projects/software-division-components/tsconfig.spec.json +15 -0
- package/scripts/generate-versions.js +60 -0
- package/scripts/watch-dist.js +222 -0
- package/tsconfig.json +46 -0
- package/3ddv-software-division-components.d.ts.map +0 -1
- package/backoffice/checkbox/checkbox.component.d.ts +0 -103
- package/backoffice/checkbox/checkbox.component.d.ts.map +0 -1
- package/backoffice/checkbox/index.d.ts +0 -2
- package/backoffice/checkbox/index.d.ts.map +0 -1
- package/backoffice/checkbox/public-api.d.ts +0 -2
- package/backoffice/checkbox/public-api.d.ts.map +0 -1
- package/backoffice/datepicker/datepicker.component.d.ts +0 -150
- package/backoffice/datepicker/datepicker.component.d.ts.map +0 -1
- package/backoffice/datepicker/index.d.ts +0 -2
- package/backoffice/datepicker/index.d.ts.map +0 -1
- package/backoffice/datepicker/public-api.d.ts.map +0 -1
- package/backoffice/datepicker/ui/ui-calendar-helm/src/index.d.ts +0 -14
- package/backoffice/datepicker/ui/ui-calendar-helm/src/index.d.ts.map +0 -1
- package/backoffice/datepicker/ui/ui-calendar-helm/src/lib/hlm-calendar-multi.d.ts +0 -38
- package/backoffice/datepicker/ui/ui-calendar-helm/src/lib/hlm-calendar-multi.d.ts.map +0 -1
- package/backoffice/datepicker/ui/ui-calendar-helm/src/lib/hlm-calendar.d.ts +0 -34
- package/backoffice/datepicker/ui/ui-calendar-helm/src/lib/hlm-calendar.d.ts.map +0 -1
- package/backoffice/datepicker/ui/ui-date-picker-helm/src/index.d.ts +0 -15
- package/backoffice/datepicker/ui/ui-date-picker-helm/src/index.d.ts.map +0 -1
- package/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker-multi.d.ts +0 -53
- package/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker-multi.d.ts.map +0 -1
- package/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker-multi.token.d.ts +0 -24
- package/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker-multi.token.d.ts.map +0 -1
- package/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker.d.ts +0 -53
- package/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker.d.ts.map +0 -1
- package/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker.token.d.ts +0 -24
- package/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker.token.d.ts.map +0 -1
- package/backoffice/datepicker/ui/ui-icon-helm/src/index.d.ts +0 -10
- package/backoffice/datepicker/ui/ui-icon-helm/src/index.d.ts.map +0 -1
- package/backoffice/datepicker/ui/ui-icon-helm/src/lib/hlm-icon.d.ts +0 -10
- package/backoffice/datepicker/ui/ui-icon-helm/src/lib/hlm-icon.d.ts.map +0 -1
- package/backoffice/datepicker/ui/ui-icon-helm/src/lib/hlm-icon.token.d.ts +0 -8
- package/backoffice/datepicker/ui/ui-icon-helm/src/lib/hlm-icon.token.d.ts.map +0 -1
- package/backoffice/datepicker/ui/ui-popover-helm/src/index.d.ts +0 -14
- package/backoffice/datepicker/ui/ui-popover-helm/src/index.d.ts.map +0 -1
- package/backoffice/datepicker/ui/ui-popover-helm/src/lib/hlm-popover-close.d.ts +0 -9
- package/backoffice/datepicker/ui/ui-popover-helm/src/lib/hlm-popover-close.d.ts.map +0 -1
- package/backoffice/datepicker/ui/ui-popover-helm/src/lib/hlm-popover-content.d.ts +0 -14
- package/backoffice/datepicker/ui/ui-popover-helm/src/lib/hlm-popover-content.d.ts.map +0 -1
- package/backoffice/index.d.ts +0 -2
- package/backoffice/index.d.ts.map +0 -1
- package/backoffice/input/index.d.ts +0 -2
- package/backoffice/input/index.d.ts.map +0 -1
- package/backoffice/input/input.component.d.ts +0 -200
- package/backoffice/input/input.component.d.ts.map +0 -1
- package/backoffice/input/public-api.d.ts +0 -2
- package/backoffice/input/public-api.d.ts.map +0 -1
- package/backoffice/public-api.d.ts.map +0 -1
- package/backoffice/radio/index.d.ts +0 -2
- package/backoffice/radio/index.d.ts.map +0 -1
- package/backoffice/radio/public-api.d.ts +0 -2
- package/backoffice/radio/public-api.d.ts.map +0 -1
- package/backoffice/radio/radio.component.d.ts +0 -73
- package/backoffice/radio/radio.component.d.ts.map +0 -1
- package/backoffice/table/_components/pagination/pagination.component.d.ts +0 -18
- package/backoffice/table/_components/pagination/pagination.component.d.ts.map +0 -1
- package/backoffice/table/_components/selection-table-head/selection-table-head.component.d.ts +0 -11
- package/backoffice/table/_components/selection-table-head/selection-table-head.component.d.ts.map +0 -1
- package/backoffice/table/_components/selection-table-row/selection-table-row.component.d.ts +0 -8
- package/backoffice/table/_components/selection-table-row/selection-table-row.component.d.ts.map +0 -1
- package/backoffice/table/_components/sort-header-button/sort-header-button.component.d.ts +0 -16
- package/backoffice/table/_components/sort-header-button/sort-header-button.component.d.ts.map +0 -1
- package/backoffice/table/index.d.ts +0 -2
- package/backoffice/table/index.d.ts.map +0 -1
- package/backoffice/table/public-api.d.ts +0 -3
- package/backoffice/table/public-api.d.ts.map +0 -1
- package/backoffice/table/table.component.d.ts +0 -111
- package/backoffice/table/table.component.d.ts.map +0 -1
- package/backoffice/table/ui/ui-icon-helm/src/index.d.ts +0 -10
- package/backoffice/table/ui/ui-icon-helm/src/index.d.ts.map +0 -1
- package/backoffice/table/ui/ui-icon-helm/src/lib/hlm-icon.d.ts +0 -10
- package/backoffice/table/ui/ui-icon-helm/src/lib/hlm-icon.d.ts.map +0 -1
- package/backoffice/table/ui/ui-icon-helm/src/lib/hlm-icon.token.d.ts +0 -8
- package/backoffice/table/ui/ui-icon-helm/src/lib/hlm-icon.token.d.ts.map +0 -1
- package/backoffice/table/ui/ui-table-helm/src/index.d.ts +0 -11
- package/backoffice/table/ui/ui-table-helm/src/index.d.ts.map +0 -1
- package/backoffice/table/ui/ui-table-helm/src/lib/hlm-table.d.ts +0 -112
- package/backoffice/table/ui/ui-table-helm/src/lib/hlm-table.d.ts.map +0 -1
- package/dvm/cart/cart.component.d.ts +0 -31
- package/dvm/cart/cart.component.d.ts.map +0 -1
- package/dvm/cart/cart.types.d.ts +0 -8
- package/dvm/cart/cart.types.d.ts.map +0 -1
- package/dvm/cart/index.d.ts +0 -2
- package/dvm/cart/index.d.ts.map +0 -1
- package/dvm/cart/public-api.d.ts.map +0 -1
- package/dvm/cart/seat-list.component.d.ts +0 -38
- package/dvm/cart/seat-list.component.d.ts.map +0 -1
- package/dvm/cart-item/cart-item.component.d.ts +0 -6
- package/dvm/cart-item/cart-item.component.d.ts.map +0 -1
- package/dvm/cart-item/cart-item.service.d.ts +0 -7
- package/dvm/cart-item/cart-item.service.d.ts.map +0 -1
- package/dvm/cart-item/index.d.ts +0 -2
- package/dvm/cart-item/index.d.ts.map +0 -1
- package/dvm/cart-item/public-api.d.ts.map +0 -1
- package/dvm/index.d.ts +0 -2
- package/dvm/index.d.ts.map +0 -1
- package/dvm/legend/index.d.ts +0 -2
- package/dvm/legend/index.d.ts.map +0 -1
- package/dvm/legend/legend.component.d.ts +0 -17
- package/dvm/legend/legend.component.d.ts.map +0 -1
- package/dvm/legend/public-api.d.ts.map +0 -1
- package/dvm/legend/types.d.ts.map +0 -1
- package/dvm/legend/ui/legend-elements/index.d.ts.map +0 -1
- package/dvm/legend/ui/legend-elements/legend-elements.component.d.ts +0 -16
- package/dvm/legend/ui/legend-elements/legend-elements.component.d.ts.map +0 -1
- package/dvm/loader/index.d.ts +0 -2
- package/dvm/loader/index.d.ts.map +0 -1
- package/dvm/loader/loader.component.d.ts +0 -6
- package/dvm/loader/loader.component.d.ts.map +0 -1
- package/dvm/loader/loader.service.d.ts +0 -7
- package/dvm/loader/loader.service.d.ts.map +0 -1
- package/dvm/loader/public-api.d.ts.map +0 -1
- package/dvm/map-loader/index.d.ts +0 -2
- package/dvm/map-loader/index.d.ts.map +0 -1
- package/dvm/map-loader/map-loader.component.d.ts +0 -56
- package/dvm/map-loader/map-loader.component.d.ts.map +0 -1
- package/dvm/map-loader/public-api.d.ts +0 -2
- package/dvm/map-loader/public-api.d.ts.map +0 -1
- package/dvm/neighbors/index.d.ts +0 -2
- package/dvm/neighbors/index.d.ts.map +0 -1
- package/dvm/neighbors/neighbors.component.d.ts +0 -41
- package/dvm/neighbors/neighbors.component.d.ts.map +0 -1
- package/dvm/neighbors/public-api.d.ts +0 -3
- package/dvm/neighbors/public-api.d.ts.map +0 -1
- package/dvm/neighbors/types.d.ts.map +0 -1
- package/dvm/popover/base-popover.component.d.ts +0 -28
- package/dvm/popover/base-popover.component.d.ts.map +0 -1
- package/dvm/popover/index.d.ts +0 -2
- package/dvm/popover/index.d.ts.map +0 -1
- package/dvm/popover/popover.component.d.ts +0 -69
- package/dvm/popover/popover.component.d.ts.map +0 -1
- package/dvm/popover/popover.config.d.ts +0 -25
- package/dvm/popover/popover.config.d.ts.map +0 -1
- package/dvm/popover/popover.service.d.ts +0 -140
- package/dvm/popover/popover.service.d.ts.map +0 -1
- package/dvm/popover/public-api.d.ts.map +0 -1
- package/dvm/popover/seat-popover/seat-popover.component.d.ts +0 -21
- package/dvm/popover/seat-popover/seat-popover.component.d.ts.map +0 -1
- package/dvm/popover/section-popover/section-popover.component.d.ts +0 -32
- package/dvm/popover/section-popover/section-popover.component.d.ts.map +0 -1
- package/dvm/popover/services/dvm-popover-positioner.service.d.ts +0 -30
- package/dvm/popover/services/dvm-popover-positioner.service.d.ts.map +0 -1
- package/dvm/popover/services/popover-manager.service.d.ts +0 -29
- package/dvm/popover/services/popover-manager.service.d.ts.map +0 -1
- package/dvm/popover/transformers/base-popover-data-transformer.d.ts +0 -29
- package/dvm/popover/transformers/base-popover-data-transformer.d.ts.map +0 -1
- package/dvm/popover/types.d.ts +0 -79
- package/dvm/popover/types.d.ts.map +0 -1
- package/dvm/public-api.d.ts.map +0 -1
- package/dvm/stepper/index.d.ts +0 -2
- package/dvm/stepper/index.d.ts.map +0 -1
- package/dvm/stepper/public-api.d.ts +0 -2
- package/dvm/stepper/public-api.d.ts.map +0 -1
- package/dvm/stepper/stepper.component.d.ts +0 -27
- package/dvm/stepper/stepper.component.d.ts.map +0 -1
- package/dvm/stepper/types.d.ts.map +0 -1
- package/dvm/ticket-info-item/index.d.ts +0 -2
- package/dvm/ticket-info-item/index.d.ts.map +0 -1
- package/dvm/ticket-info-item/public-api.d.ts.map +0 -1
- package/dvm/ticket-info-item/ticket-info-item.component.d.ts +0 -6
- package/dvm/ticket-info-item/ticket-info-item.component.d.ts.map +0 -1
- package/dvm/ticket-info-item/ticket-info-item.service.d.ts +0 -7
- package/dvm/ticket-info-item/ticket-info-item.service.d.ts.map +0 -1
- package/fesm2022/3ddv-software-division-components.mjs +0 -5964
- package/fesm2022/3ddv-software-division-components.mjs.map +0 -1
- package/generic/add-digital-wallet/add-digital-wallet.component.d.ts +0 -21
- package/generic/add-digital-wallet/add-digital-wallet.component.d.ts.map +0 -1
- package/generic/add-digital-wallet/index.d.ts +0 -2
- package/generic/add-digital-wallet/index.d.ts.map +0 -1
- package/generic/add-digital-wallet/public-api.d.ts.map +0 -1
- package/generic/braintree/braintree.component.d.ts +0 -33
- package/generic/braintree/braintree.component.d.ts.map +0 -1
- package/generic/braintree/index.d.ts +0 -2
- package/generic/braintree/index.d.ts.map +0 -1
- package/generic/braintree/public-api.d.ts.map +0 -1
- package/generic/braintree/types.d.ts +0 -27
- package/generic/braintree/types.d.ts.map +0 -1
- package/generic/button/button.component.d.ts +0 -149
- package/generic/button/button.component.d.ts.map +0 -1
- package/generic/button/index.d.ts +0 -2
- package/generic/button/index.d.ts.map +0 -1
- package/generic/button/public-api.d.ts +0 -2
- package/generic/button/public-api.d.ts.map +0 -1
- package/generic/button/ui/ui-button-helm/src/index.d.ts +0 -10
- package/generic/button/ui/ui-button-helm/src/index.d.ts.map +0 -1
- package/generic/button/ui/ui-button-helm/src/lib/hlm-button.d.ts +0 -20
- package/generic/button/ui/ui-button-helm/src/lib/hlm-button.d.ts.map +0 -1
- package/generic/button/ui/ui-button-helm/src/lib/hlm-button.token.d.ts +0 -9
- package/generic/button/ui/ui-button-helm/src/lib/hlm-button.token.d.ts.map +0 -1
- package/generic/carousel/carousel-item.component.d.ts +0 -8
- package/generic/carousel/carousel-item.component.d.ts.map +0 -1
- package/generic/carousel/carousel.component.d.ts +0 -20
- package/generic/carousel/carousel.component.d.ts.map +0 -1
- package/generic/carousel/index.d.ts +0 -2
- package/generic/carousel/index.d.ts.map +0 -1
- package/generic/carousel/public-api.d.ts.map +0 -1
- package/generic/carousel/ui/ui-carousel-helm/src/index.d.ts +0 -26
- package/generic/carousel/ui/ui-carousel-helm/src/index.d.ts.map +0 -1
- package/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel-content.d.ts +0 -10
- package/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel-content.d.ts.map +0 -1
- package/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel-item.d.ts +0 -10
- package/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel-item.d.ts.map +0 -1
- package/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel-next.d.ts +0 -15
- package/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel-next.d.ts.map +0 -1
- package/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel-previous.d.ts +0 -15
- package/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel-previous.d.ts.map +0 -1
- package/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel-slide-display.d.ts +0 -16
- package/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel-slide-display.d.ts.map +0 -1
- package/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel.d.ts +0 -28
- package/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel.d.ts.map +0 -1
- package/generic/dialog/dialog.component.d.ts +0 -11
- package/generic/dialog/dialog.component.d.ts.map +0 -1
- package/generic/dialog/index.d.ts +0 -2
- package/generic/dialog/index.d.ts.map +0 -1
- package/generic/dialog/libs/ui-dialog-helm/src/index.d.ts.map +0 -1
- package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-close.d.ts +0 -9
- package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-close.d.ts.map +0 -1
- package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-content.d.ts +0 -15
- package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-content.d.ts.map +0 -1
- package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-description.d.ts +0 -10
- package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-description.d.ts.map +0 -1
- package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-footer.d.ts +0 -9
- package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-footer.d.ts.map +0 -1
- package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-header.d.ts +0 -9
- package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-header.d.ts.map +0 -1
- package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-overlay.d.ts +0 -12
- package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-overlay.d.ts.map +0 -1
- package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-title.d.ts +0 -10
- package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-title.d.ts.map +0 -1
- package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog.d.ts +0 -7
- package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog.d.ts.map +0 -1
- package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog.service.d.ts +0 -21
- package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog.service.d.ts.map +0 -1
- package/generic/dialog/public-api.d.ts.map +0 -1
- package/generic/drawer/drawer.component.d.ts +0 -6
- package/generic/drawer/drawer.component.d.ts.map +0 -1
- package/generic/drawer/drawer.service.d.ts +0 -7
- package/generic/drawer/drawer.service.d.ts.map +0 -1
- package/generic/drawer/index.d.ts +0 -2
- package/generic/drawer/index.d.ts.map +0 -1
- package/generic/drawer/public-api.d.ts.map +0 -1
- package/generic/icon/icon.component.d.ts +0 -21
- package/generic/icon/icon.component.d.ts.map +0 -1
- package/generic/icon/index.d.ts +0 -2
- package/generic/icon/index.d.ts.map +0 -1
- package/generic/icon/lib/ui-icon-helm/src/index.d.ts +0 -10
- package/generic/icon/lib/ui-icon-helm/src/index.d.ts.map +0 -1
- package/generic/icon/lib/ui-icon-helm/src/lib/hlm-icon.d.ts +0 -10
- package/generic/icon/lib/ui-icon-helm/src/lib/hlm-icon.d.ts.map +0 -1
- package/generic/icon/lib/ui-icon-helm/src/lib/hlm-icon.token.d.ts +0 -8
- package/generic/icon/lib/ui-icon-helm/src/lib/hlm-icon.token.d.ts.map +0 -1
- package/generic/icon/public-api.d.ts +0 -2
- package/generic/icon/public-api.d.ts.map +0 -1
- package/generic/index.d.ts +0 -2
- package/generic/index.d.ts.map +0 -1
- package/generic/public-api.d.ts.map +0 -1
- package/generic/select/index.d.ts +0 -2
- package/generic/select/index.d.ts.map +0 -1
- package/generic/select/lib/hlm-select-content.d.ts +0 -13
- package/generic/select/lib/hlm-select-content.d.ts.map +0 -1
- package/generic/select/lib/hlm-select-group.d.ts +0 -10
- package/generic/select/lib/hlm-select-group.d.ts.map +0 -1
- package/generic/select/lib/hlm-select-label.d.ts +0 -12
- package/generic/select/lib/hlm-select-label.d.ts.map +0 -1
- package/generic/select/lib/hlm-select-option.d.ts +0 -12
- package/generic/select/lib/hlm-select-option.d.ts.map +0 -1
- package/generic/select/lib/hlm-select-scroll-down.d.ts +0 -9
- package/generic/select/lib/hlm-select-scroll-down.d.ts.map +0 -1
- package/generic/select/lib/hlm-select-scroll-up.d.ts +0 -9
- package/generic/select/lib/hlm-select-scroll-up.d.ts.map +0 -1
- package/generic/select/lib/hlm-select-trigger.d.ts +0 -17
- package/generic/select/lib/hlm-select-trigger.d.ts.map +0 -1
- package/generic/select/lib/hlm-select-value.d.ts +0 -9
- package/generic/select/lib/hlm-select-value.d.ts.map +0 -1
- package/generic/select/lib/hlm-select.d.ts +0 -9
- package/generic/select/lib/hlm-select.d.ts.map +0 -1
- package/generic/select/lib/index.d.ts +0 -35
- package/generic/select/lib/index.d.ts.map +0 -1
- package/generic/select/public-api.d.ts.map +0 -1
- package/generic/select/select.component.d.ts +0 -14
- package/generic/select/select.component.d.ts.map +0 -1
- package/generic/select/types.d.ts +0 -5
- package/generic/select/types.d.ts.map +0 -1
- package/index.d.ts +0 -6
- package/public-api.d.ts.map +0 -1
- package/shared/apply-theme-variables/apply-theme-variables.d.ts +0 -4
- package/shared/apply-theme-variables/apply-theme-variables.d.ts.map +0 -1
- package/shared/apply-theme-variables/index.d.ts.map +0 -1
- package/shared/lib-provider/config-token.d.ts +0 -4
- package/shared/lib-provider/config-token.d.ts.map +0 -1
- package/shared/lib-provider/index.d.ts +0 -2
- package/shared/lib-provider/index.d.ts.map +0 -1
- package/shared/lib-provider/provide-sdc.d.ts +0 -10
- package/shared/lib-provider/provide-sdc.d.ts.map +0 -1
- package/shared/lib-provider/public-api.d.ts.map +0 -1
- package/shared/screen-observer/index.d.ts.map +0 -1
- package/shared/screen-observer/provide-screen-observer.d.ts +0 -5
- package/shared/screen-observer/provide-screen-observer.d.ts.map +0 -1
- package/shared/screen-observer/screen-observer.d.ts +0 -15
- package/shared/screen-observer/screen-observer.d.ts.map +0 -1
- package/shared/types.d.ts.map +0 -1
- package/styles.css +0 -2
- package/types/sizes.type.d.ts +0 -3
- package/types/sizes.type.d.ts.map +0 -1
- /package/{tailwind.config.js → projects/software-division-components/tailwind.config.js} +0 -0
package/projects/software-division-components/src/generic/carousel/ui/ui-carousel-helm/src/index.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { HlmCarousel } from './lib/hlm-carousel';
|
|
3
|
+
import { HlmCarouselContent } from './lib/hlm-carousel-content';
|
|
4
|
+
import { HlmCarouselItem } from './lib/hlm-carousel-item';
|
|
5
|
+
import { HlmCarouselNext } from './lib/hlm-carousel-next';
|
|
6
|
+
import { HlmCarouselPrevious } from './lib/hlm-carousel-previous';
|
|
7
|
+
import { HlmCarouselSlideDisplay } from './lib/hlm-carousel-slide-display';
|
|
8
|
+
|
|
9
|
+
export * from './lib/hlm-carousel';
|
|
10
|
+
export * from './lib/hlm-carousel-content';
|
|
11
|
+
export * from './lib/hlm-carousel-item';
|
|
12
|
+
export * from './lib/hlm-carousel-next';
|
|
13
|
+
export * from './lib/hlm-carousel-previous';
|
|
14
|
+
export * from './lib/hlm-carousel-slide-display';
|
|
15
|
+
|
|
16
|
+
export const HlmCarouselImports = [
|
|
17
|
+
HlmCarousel,
|
|
18
|
+
HlmCarouselContent,
|
|
19
|
+
HlmCarouselItem,
|
|
20
|
+
HlmCarouselPrevious,
|
|
21
|
+
HlmCarouselNext,
|
|
22
|
+
HlmCarouselSlideDisplay,
|
|
23
|
+
] as const;
|
|
24
|
+
|
|
25
|
+
@NgModule({
|
|
26
|
+
imports: [...HlmCarouselImports],
|
|
27
|
+
exports: [...HlmCarouselImports],
|
|
28
|
+
})
|
|
29
|
+
export class HlmCarouselModule {}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, inject, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
3
|
+
import type { ClassValue } from 'clsx';
|
|
4
|
+
import { HlmCarousel } from './hlm-carousel';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'hlm-carousel-content',
|
|
8
|
+
standalone: true,
|
|
9
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10
|
+
encapsulation: ViewEncapsulation.None,
|
|
11
|
+
host: {
|
|
12
|
+
'[class]': '_computedClass()',
|
|
13
|
+
},
|
|
14
|
+
template: ` <ng-content /> `,
|
|
15
|
+
})
|
|
16
|
+
export class HlmCarouselContent {
|
|
17
|
+
private readonly _orientation = inject(HlmCarousel).orientation;
|
|
18
|
+
|
|
19
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
20
|
+
protected readonly _computedClass = computed(() =>
|
|
21
|
+
hlm('flex', this._orientation() === 'horizontal' ? '-ml-4' : '-mt-4 flex-col', this.userClass())
|
|
22
|
+
);
|
|
23
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, inject, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
3
|
+
import type { ClassValue } from 'clsx';
|
|
4
|
+
import { HlmCarousel } from './hlm-carousel';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'hlm-carousel-item',
|
|
8
|
+
standalone: true,
|
|
9
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10
|
+
encapsulation: ViewEncapsulation.None,
|
|
11
|
+
host: {
|
|
12
|
+
'[class]': '_computedClass()',
|
|
13
|
+
role: 'group',
|
|
14
|
+
'aria-roledescription': 'slide',
|
|
15
|
+
},
|
|
16
|
+
template: ` <ng-content /> `,
|
|
17
|
+
})
|
|
18
|
+
export class HlmCarouselItem {
|
|
19
|
+
private readonly _orientation = inject(HlmCarousel).orientation;
|
|
20
|
+
|
|
21
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
22
|
+
protected readonly _computedClass = computed(() =>
|
|
23
|
+
hlm('min-w-0 shrink-0 grow-0 basis-full', this._orientation() === 'horizontal' ? 'pl-4' : 'pt-4', this.userClass())
|
|
24
|
+
);
|
|
25
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
ViewEncapsulation,
|
|
5
|
+
computed,
|
|
6
|
+
effect,
|
|
7
|
+
inject,
|
|
8
|
+
input,
|
|
9
|
+
untracked,
|
|
10
|
+
} from '@angular/core';
|
|
11
|
+
import { HlmButton, provideBrnButtonConfig } from '../../../../../button/ui/ui-button-helm/src';
|
|
12
|
+
import { HlmIcon } from '../../../../../icon/lib/ui-icon-helm/src';
|
|
13
|
+
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
14
|
+
import { lucideArrowRight } from '@ng-icons/lucide';
|
|
15
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
16
|
+
import type { ClassValue } from 'clsx';
|
|
17
|
+
import { HlmCarousel } from './hlm-carousel';
|
|
18
|
+
|
|
19
|
+
@Component({
|
|
20
|
+
selector: 'button[hlm-carousel-next], button[hlmCarouselNext]',
|
|
21
|
+
standalone: true,
|
|
22
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
23
|
+
encapsulation: ViewEncapsulation.None,
|
|
24
|
+
host: {
|
|
25
|
+
'[disabled]': 'isDisabled()',
|
|
26
|
+
'(click)': '_carousel.scrollNext()',
|
|
27
|
+
},
|
|
28
|
+
hostDirectives: [{ directive: HlmButton, inputs: ['variant', 'size'] }],
|
|
29
|
+
providers: [provideIcons({ lucideArrowRight }), provideBrnButtonConfig({ variant: 'outline', size: 'icon' })],
|
|
30
|
+
imports: [NgIcon, HlmIcon],
|
|
31
|
+
template: `
|
|
32
|
+
<ng-icon hlm size="sm" name="lucideArrowRight" />
|
|
33
|
+
<span class="sr-only">Next slide</span>
|
|
34
|
+
`,
|
|
35
|
+
})
|
|
36
|
+
export class HlmCarouselNext {
|
|
37
|
+
private readonly _button = inject(HlmButton);
|
|
38
|
+
protected readonly _carousel = inject(HlmCarousel);
|
|
39
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
40
|
+
private readonly _computedClass = computed(() =>
|
|
41
|
+
hlm(
|
|
42
|
+
'absolute h-8 w-8 rounded-full',
|
|
43
|
+
this._carousel.orientation() === 'horizontal'
|
|
44
|
+
? '-right-12 top-1/2 -translate-y-1/2'
|
|
45
|
+
: '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',
|
|
46
|
+
this.userClass()
|
|
47
|
+
)
|
|
48
|
+
);
|
|
49
|
+
protected readonly isDisabled = () => !this._carousel.canScrollNext();
|
|
50
|
+
|
|
51
|
+
constructor() {
|
|
52
|
+
effect(() => {
|
|
53
|
+
const computedClass = this._computedClass();
|
|
54
|
+
|
|
55
|
+
untracked(() => this._button.setClass(computedClass));
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
ViewEncapsulation,
|
|
5
|
+
computed,
|
|
6
|
+
effect,
|
|
7
|
+
inject,
|
|
8
|
+
input,
|
|
9
|
+
untracked,
|
|
10
|
+
} from '@angular/core';
|
|
11
|
+
import { HlmButton, provideBrnButtonConfig } from '../../../../../button/ui/ui-button-helm/src';
|
|
12
|
+
import { HlmIcon } from '../../../../../icon/lib/ui-icon-helm/src';
|
|
13
|
+
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
14
|
+
import { lucideArrowLeft } from '@ng-icons/lucide';
|
|
15
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
16
|
+
import type { ClassValue } from 'clsx';
|
|
17
|
+
import { HlmCarousel } from './hlm-carousel';
|
|
18
|
+
|
|
19
|
+
@Component({
|
|
20
|
+
selector: 'button[hlm-carousel-previous], button[hlmCarouselPrevious]',
|
|
21
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
22
|
+
standalone: true,
|
|
23
|
+
encapsulation: ViewEncapsulation.None,
|
|
24
|
+
host: {
|
|
25
|
+
'[disabled]': 'isDisabled()',
|
|
26
|
+
'(click)': '_carousel.scrollPrev()',
|
|
27
|
+
},
|
|
28
|
+
hostDirectives: [{ directive: HlmButton, inputs: ['variant', 'size'] }],
|
|
29
|
+
providers: [provideIcons({ lucideArrowLeft }), provideBrnButtonConfig({ variant: 'outline', size: 'icon' })],
|
|
30
|
+
imports: [NgIcon, HlmIcon],
|
|
31
|
+
template: `
|
|
32
|
+
<ng-icon hlm size="sm" name="lucideArrowLeft" />
|
|
33
|
+
<span class="sr-only">Previous slide</span>
|
|
34
|
+
`,
|
|
35
|
+
})
|
|
36
|
+
export class HlmCarouselPrevious {
|
|
37
|
+
private readonly _button = inject(HlmButton);
|
|
38
|
+
|
|
39
|
+
protected readonly _carousel = inject(HlmCarousel);
|
|
40
|
+
|
|
41
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
42
|
+
|
|
43
|
+
private readonly _computedClass = computed(() =>
|
|
44
|
+
hlm(
|
|
45
|
+
'absolute h-8 w-8 rounded-full',
|
|
46
|
+
this._carousel.orientation() === 'horizontal'
|
|
47
|
+
? '-left-12 top-1/2 -translate-y-1/2'
|
|
48
|
+
: '-top-12 left-1/2 -translate-x-1/2 rotate-90',
|
|
49
|
+
this.userClass()
|
|
50
|
+
)
|
|
51
|
+
);
|
|
52
|
+
protected readonly isDisabled = () => !this._carousel.canScrollPrev();
|
|
53
|
+
|
|
54
|
+
constructor() {
|
|
55
|
+
effect(() => {
|
|
56
|
+
const computedClass = this._computedClass();
|
|
57
|
+
|
|
58
|
+
untracked(() => this._button.setClass(computedClass));
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
import { HlmCarousel } from './hlm-carousel';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'hlm-carousel-slide-display',
|
|
8
|
+
standalone: true,
|
|
9
|
+
template: `
|
|
10
|
+
<span class="sr-only">{{ _labelContent() }}</span>
|
|
11
|
+
<div aria-hidden="true" [class]="slideClass()">{{ _currentSlide() }} / {{ _carousel.slideCount() }}</div>
|
|
12
|
+
`,
|
|
13
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
|
+
host: {
|
|
15
|
+
'[class]': '_computedClass()',
|
|
16
|
+
},
|
|
17
|
+
})
|
|
18
|
+
export class HlmCarouselSlideDisplay {
|
|
19
|
+
protected readonly _carousel = inject(HlmCarousel);
|
|
20
|
+
|
|
21
|
+
protected readonly _currentSlide = computed(() => this._carousel.currentSlide() + 1);
|
|
22
|
+
|
|
23
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
24
|
+
protected _computedClass = computed(() => hlm('', this.userClass()));
|
|
25
|
+
|
|
26
|
+
public readonly slideClass = input<ClassValue>('text-muted-foreground text-sm');
|
|
27
|
+
|
|
28
|
+
/** Screen reader only text for the slide display */
|
|
29
|
+
public readonly label = input<string>('Slide');
|
|
30
|
+
|
|
31
|
+
protected readonly _labelContent = computed(() => {
|
|
32
|
+
const currentSlide = this._currentSlide();
|
|
33
|
+
const slideCount = this._carousel.slideCount();
|
|
34
|
+
return `${this.label()} ${currentSlide} of ${slideCount} is displayed`;
|
|
35
|
+
});
|
|
36
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
type InputSignal,
|
|
5
|
+
type Signal,
|
|
6
|
+
ViewEncapsulation,
|
|
7
|
+
computed,
|
|
8
|
+
input,
|
|
9
|
+
signal,
|
|
10
|
+
viewChild,
|
|
11
|
+
} from '@angular/core';
|
|
12
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
13
|
+
import type { ClassValue } from 'clsx';
|
|
14
|
+
import {
|
|
15
|
+
EmblaCarouselDirective,
|
|
16
|
+
type EmblaEventType,
|
|
17
|
+
type EmblaOptionsType,
|
|
18
|
+
type EmblaPluginType,
|
|
19
|
+
} from 'embla-carousel-angular';
|
|
20
|
+
|
|
21
|
+
@Component({
|
|
22
|
+
selector: 'hlm-carousel',
|
|
23
|
+
standalone: true,
|
|
24
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
25
|
+
encapsulation: ViewEncapsulation.None,
|
|
26
|
+
host: {
|
|
27
|
+
'[class]': '_computedClass()',
|
|
28
|
+
role: 'region',
|
|
29
|
+
'aria-roledescription': 'carousel',
|
|
30
|
+
'(keydown)': 'onKeydown($event)',
|
|
31
|
+
},
|
|
32
|
+
imports: [EmblaCarouselDirective],
|
|
33
|
+
template: `
|
|
34
|
+
<div
|
|
35
|
+
emblaCarousel
|
|
36
|
+
class="overflow-hidden"
|
|
37
|
+
[plugins]="plugins()"
|
|
38
|
+
[options]="_emblaOptions()"
|
|
39
|
+
[subscribeToEvents]="['init', 'select', 'reInit']"
|
|
40
|
+
(emblaChange)="onEmblaEvent($event)">
|
|
41
|
+
<ng-content select="hlm-carousel-content" />
|
|
42
|
+
</div>
|
|
43
|
+
<ng-content />
|
|
44
|
+
`,
|
|
45
|
+
})
|
|
46
|
+
export class HlmCarousel {
|
|
47
|
+
protected readonly _emblaCarousel = viewChild.required(EmblaCarouselDirective);
|
|
48
|
+
|
|
49
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
50
|
+
protected readonly _computedClass = computed(() => hlm('relative', this.userClass()));
|
|
51
|
+
|
|
52
|
+
public readonly orientation = input<'horizontal' | 'vertical'>('horizontal');
|
|
53
|
+
public readonly options: InputSignal<Omit<EmblaOptionsType, 'axis'> | undefined> =
|
|
54
|
+
input<Omit<EmblaOptionsType, 'axis'>>();
|
|
55
|
+
public readonly plugins: InputSignal<EmblaPluginType[]> = input<EmblaPluginType[]>([]);
|
|
56
|
+
|
|
57
|
+
protected readonly _emblaOptions: Signal<EmblaOptionsType> = computed(() => ({
|
|
58
|
+
...this.options(),
|
|
59
|
+
axis: this.orientation() === 'horizontal' ? 'x' : 'y',
|
|
60
|
+
}));
|
|
61
|
+
|
|
62
|
+
private readonly _canScrollPrev = signal(false);
|
|
63
|
+
public readonly canScrollPrev = this._canScrollPrev.asReadonly();
|
|
64
|
+
private readonly _canScrollNext = signal(false);
|
|
65
|
+
public readonly canScrollNext = this._canScrollNext.asReadonly();
|
|
66
|
+
|
|
67
|
+
private readonly _currentSlide = signal(0);
|
|
68
|
+
public readonly currentSlide = this._currentSlide.asReadonly();
|
|
69
|
+
private readonly _slideCount = signal(0);
|
|
70
|
+
public readonly slideCount = this._slideCount.asReadonly();
|
|
71
|
+
|
|
72
|
+
protected onEmblaEvent(event: EmblaEventType) {
|
|
73
|
+
const emblaApi = this._emblaCarousel().emblaApi;
|
|
74
|
+
|
|
75
|
+
if (!emblaApi) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (event === 'select' || event === 'init' || event === 'reInit') {
|
|
80
|
+
this._canScrollPrev.set(emblaApi.canScrollPrev());
|
|
81
|
+
this._canScrollNext.set(emblaApi.canScrollNext());
|
|
82
|
+
|
|
83
|
+
this._currentSlide.set(emblaApi.selectedScrollSnap());
|
|
84
|
+
this._slideCount.set(emblaApi.scrollSnapList().length);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
protected onKeydown(event: KeyboardEvent) {
|
|
89
|
+
if (event.key === 'ArrowLeft') {
|
|
90
|
+
event.preventDefault();
|
|
91
|
+
this._emblaCarousel().scrollPrev();
|
|
92
|
+
} else if (event.key === 'ArrowRight') {
|
|
93
|
+
event.preventDefault();
|
|
94
|
+
this._emblaCarousel().scrollNext();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
scrollPrev() {
|
|
99
|
+
this._emblaCarousel().scrollPrev();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
scrollNext() {
|
|
103
|
+
this._emblaCarousel().scrollNext();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, effect, inject, viewChild } from '@angular/core';
|
|
2
|
+
import { BrnDialog } from '@spartan-ng/brain/dialog';
|
|
3
|
+
import { HlmDialog, HlmDialogContent, HlmDialogService } from './libs/ui-dialog-helm/src';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'sdc-dialog',
|
|
7
|
+
imports: [HlmDialogContent, HlmDialog],
|
|
8
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9
|
+
templateUrl: './dialog.component.html',
|
|
10
|
+
})
|
|
11
|
+
export class DialogComponent {
|
|
12
|
+
public dialogService = inject(HlmDialogService);
|
|
13
|
+
public dialogComponent = viewChild(BrnDialog);
|
|
14
|
+
|
|
15
|
+
public constructor() {
|
|
16
|
+
effect(() => {
|
|
17
|
+
this.dialogService.component.set(this.dialogComponent() ?? null);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/angular';
|
|
2
|
+
import { DialogComponent } from './dialog.component';
|
|
3
|
+
|
|
4
|
+
const meta: Meta<DialogComponent> = {
|
|
5
|
+
title: 'Generic/Dialog',
|
|
6
|
+
component: DialogComponent,
|
|
7
|
+
id: 'Dialog',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export default meta;
|
|
11
|
+
|
|
12
|
+
type Story = StoryObj<DialogComponent>;
|
|
13
|
+
|
|
14
|
+
export const Primary: Story = {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public-api';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
|
|
1
3
|
import { HlmDialog } from './lib/hlm-dialog';
|
|
2
4
|
import { HlmDialogClose } from './lib/hlm-dialog-close';
|
|
3
5
|
import { HlmDialogContent } from './lib/hlm-dialog-content';
|
|
@@ -6,7 +8,7 @@ import { HlmDialogFooter } from './lib/hlm-dialog-footer';
|
|
|
6
8
|
import { HlmDialogHeader } from './lib/hlm-dialog-header';
|
|
7
9
|
import { HlmDialogOverlay } from './lib/hlm-dialog-overlay';
|
|
8
10
|
import { HlmDialogTitle } from './lib/hlm-dialog-title';
|
|
9
|
-
|
|
11
|
+
|
|
10
12
|
export * from './lib/hlm-dialog';
|
|
11
13
|
export * from './lib/hlm-dialog-close';
|
|
12
14
|
export * from './lib/hlm-dialog-content';
|
|
@@ -16,10 +18,20 @@ export * from './lib/hlm-dialog-header';
|
|
|
16
18
|
export * from './lib/hlm-dialog-overlay';
|
|
17
19
|
export * from './lib/hlm-dialog-title';
|
|
18
20
|
export * from './lib/hlm-dialog.service';
|
|
19
|
-
|
|
20
|
-
export
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
|
|
22
|
+
export const HlmDialogImports = [
|
|
23
|
+
HlmDialog,
|
|
24
|
+
HlmDialogClose,
|
|
25
|
+
HlmDialogContent,
|
|
26
|
+
HlmDialogDescription,
|
|
27
|
+
HlmDialogFooter,
|
|
28
|
+
HlmDialogHeader,
|
|
29
|
+
HlmDialogOverlay,
|
|
30
|
+
HlmDialogTitle,
|
|
31
|
+
] as const;
|
|
32
|
+
|
|
33
|
+
@NgModule({
|
|
34
|
+
// imports: [...HlmDialogImports],
|
|
35
|
+
// exports: [...HlmDialogImports],
|
|
36
|
+
})
|
|
37
|
+
export class HlmDialogModule {}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
3
|
+
import type { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlmDialogClose],[brnDialogClose][hlm]',
|
|
7
|
+
host: {
|
|
8
|
+
'[class]': '_computedClass()',
|
|
9
|
+
},
|
|
10
|
+
})
|
|
11
|
+
export class HlmDialogClose {
|
|
12
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
13
|
+
|
|
14
|
+
protected readonly _computedClass = computed(() =>
|
|
15
|
+
hlm(
|
|
16
|
+
'absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground',
|
|
17
|
+
this.userClass()
|
|
18
|
+
)
|
|
19
|
+
);
|
|
20
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { NgComponentOutlet } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, inject, input, ViewEncapsulation } from '@angular/core';
|
|
3
|
+
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
4
|
+
import { lucideX } from '@ng-icons/lucide';
|
|
5
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
6
|
+
import { BrnDialogClose, BrnDialogRef, injectBrnDialogContext } from '@spartan-ng/brain/dialog';
|
|
7
|
+
import type { ClassValue } from 'clsx';
|
|
8
|
+
import { HlmIcon } from '../../../../../icon/lib/ui-icon-helm/src';
|
|
9
|
+
import { HlmDialogClose } from './hlm-dialog-close';
|
|
10
|
+
|
|
11
|
+
@Component({
|
|
12
|
+
selector: 'hlm-dialog-content',
|
|
13
|
+
|
|
14
|
+
imports: [NgComponentOutlet, BrnDialogClose, HlmDialogClose, NgIcon, HlmIcon],
|
|
15
|
+
providers: [provideIcons({ lucideX })],
|
|
16
|
+
host: {
|
|
17
|
+
'[class]': '_computedClass()',
|
|
18
|
+
'[attr.data-state]': 'state()',
|
|
19
|
+
},
|
|
20
|
+
template: `
|
|
21
|
+
@if (component) {
|
|
22
|
+
<ng-container [ngComponentOutlet]="component" [ngComponentOutletInputs]="componentInputs()" />
|
|
23
|
+
} @else {
|
|
24
|
+
<ng-content />
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
<button brnDialogClose class="animated-button" hlm>
|
|
28
|
+
<span class="sr-only">Close</span>
|
|
29
|
+
<ng-icon hlm name="lucideX" size="sm" />
|
|
30
|
+
</button>
|
|
31
|
+
`,
|
|
32
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
33
|
+
encapsulation: ViewEncapsulation.None,
|
|
34
|
+
})
|
|
35
|
+
export class HlmDialogContent {
|
|
36
|
+
private readonly _dialogRef = inject(BrnDialogRef);
|
|
37
|
+
private readonly _dialogContext = injectBrnDialogContext({ optional: true });
|
|
38
|
+
|
|
39
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
40
|
+
|
|
41
|
+
public readonly state = computed(() => this._dialogRef?.state() ?? 'closed');
|
|
42
|
+
public readonly componentInputs = computed(() => {
|
|
43
|
+
const { $component, $dynamicComponentClass, close, ...rest } = this._dialogContext;
|
|
44
|
+
return rest;
|
|
45
|
+
});
|
|
46
|
+
protected readonly _computedClass = computed(() =>
|
|
47
|
+
hlm(
|
|
48
|
+
'border-border grid w-full max-w-lg relative gap-4 border bg-white p-6 shadow-lg [animation-duration:200] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-top-[2%] data-[state=open]:slide-in-from-top-[2%] rounded-lg md:w-full',
|
|
49
|
+
this.userClass(),
|
|
50
|
+
this._dynamicComponentClass
|
|
51
|
+
)
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
public readonly component = this._dialogContext?.$component;
|
|
55
|
+
private readonly _dynamicComponentClass = this._dialogContext?.$dynamicComponentClass;
|
|
56
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
3
|
+
import { BrnDialogDescription } from '@spartan-ng/brain/dialog';
|
|
4
|
+
import type { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
@Directive({
|
|
7
|
+
selector: '[hlmDialogDescription]',
|
|
8
|
+
|
|
9
|
+
host: {
|
|
10
|
+
'[class]': '_computedClass()',
|
|
11
|
+
},
|
|
12
|
+
hostDirectives: [BrnDialogDescription],
|
|
13
|
+
})
|
|
14
|
+
export class HlmDialogDescription {
|
|
15
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
16
|
+
protected readonly _computedClass = computed(() => hlm('text-sm text-muted-foreground', this.userClass()));
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
3
|
+
import type { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'hlm-dialog-footer',
|
|
7
|
+
|
|
8
|
+
template: ` <ng-content /> `,
|
|
9
|
+
host: {
|
|
10
|
+
'[class]': '_computedClass()',
|
|
11
|
+
},
|
|
12
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13
|
+
})
|
|
14
|
+
export class HlmDialogFooter {
|
|
15
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
16
|
+
protected _computedClass = computed(() =>
|
|
17
|
+
hlm('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', this.userClass())
|
|
18
|
+
);
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
3
|
+
import type { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'hlm-dialog-header',
|
|
7
|
+
|
|
8
|
+
template: ` <ng-content /> `,
|
|
9
|
+
host: {
|
|
10
|
+
'[class]': '_computedClass()',
|
|
11
|
+
},
|
|
12
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13
|
+
})
|
|
14
|
+
export class HlmDialogHeader {
|
|
15
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
16
|
+
protected _computedClass = computed(() =>
|
|
17
|
+
hlm('flex flex-col space-y-1.5 text-center sm:text-left', this.userClass())
|
|
18
|
+
);
|
|
19
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { computed, Directive, effect, input, untracked } from '@angular/core';
|
|
2
|
+
import { hlm, injectCustomClassSettable } from '@spartan-ng/brain/core';
|
|
3
|
+
import type { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
export const hlmDialogOverlayClass =
|
|
6
|
+
'bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0';
|
|
7
|
+
|
|
8
|
+
@Directive({
|
|
9
|
+
selector: '[hlmDialogOverlay],brn-dialog-overlay[hlm]',
|
|
10
|
+
})
|
|
11
|
+
export class HlmDialogOverlay {
|
|
12
|
+
private readonly _classSettable = injectCustomClassSettable({ optional: true, host: true });
|
|
13
|
+
|
|
14
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
15
|
+
protected readonly _computedClass = computed(() => hlm(hlmDialogOverlayClass, this.userClass()));
|
|
16
|
+
|
|
17
|
+
constructor() {
|
|
18
|
+
effect(() => {
|
|
19
|
+
const newClass = this._computedClass();
|
|
20
|
+
untracked(() => this._classSettable?.setClassToCustomElement(newClass));
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
3
|
+
import { BrnDialogTitle } from '@spartan-ng/brain/dialog';
|
|
4
|
+
import type { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
@Directive({
|
|
7
|
+
selector: '[hlmDialogTitle]',
|
|
8
|
+
|
|
9
|
+
host: {
|
|
10
|
+
'[class]': '_computedClass()',
|
|
11
|
+
},
|
|
12
|
+
hostDirectives: [BrnDialogTitle],
|
|
13
|
+
})
|
|
14
|
+
export class HlmDialogTitle {
|
|
15
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
16
|
+
protected readonly _computedClass = computed(() =>
|
|
17
|
+
hlm('text-lg font-semibold leading-none tracking-tight', this.userClass())
|
|
18
|
+
);
|
|
19
|
+
}
|