@ng-atomic/components 17.14.0 → 18.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/atoms/chips-input/chips-input.atom.d.ts +2 -2
- package/esm2022/atoms/atoms.module.mjs +4 -4
- package/esm2022/atoms/badge/badge.atom.mjs +3 -3
- package/esm2022/atoms/chips-input/chips-input.atom.mjs +4 -4
- package/esm2022/atoms/icon/icon.atom.mjs +5 -5
- package/esm2022/atoms/smart-menu-button/smart-menu-button.atom.mjs +9 -9
- package/esm2022/components.module.mjs +4 -4
- package/esm2022/extras/editor/editor.component.mjs +4 -4
- package/esm2022/extras/extras.module.mjs +4 -4
- package/esm2022/frames/app/app.frame.mjs +23 -24
- package/esm2022/frames/auto-layout/auto-layout.frame.mjs +4 -4
- package/esm2022/frames/card/card.frame.mjs +3 -3
- package/esm2022/frames/columns/columns.frame.mjs +22 -22
- package/esm2022/frames/divider/divider.frame.mjs +20 -13
- package/esm2022/frames/drawer/drawer.frame.mjs +8 -8
- package/esm2022/frames/entrance/entrance.frame.mjs +8 -8
- package/esm2022/frames/fab/fab.frame.mjs +8 -8
- package/esm2022/frames/fab/fab.service.mjs +3 -3
- package/esm2022/frames/frames.module.mjs +4 -4
- package/esm2022/frames/line-up/line-up.frame.mjs +9 -9
- package/esm2022/frames/line-up/line-up.service.mjs +3 -3
- package/esm2022/frames/loading/loading.frame.mjs +8 -8
- package/esm2022/frames/overlay/overlay.frame.mjs +6 -6
- package/esm2022/frames/router-outlet/router-outlet.frame.mjs +9 -9
- package/esm2022/frames/scroll/scroll.frame.mjs +5 -5
- package/esm2022/frames/scroll-v2/scroll.frame.mjs +6 -6
- package/esm2022/frames/side-nav/side-nav.frame.mjs +28 -29
- package/esm2022/frames/smart-menu/smart-menu.frame.mjs +5 -5
- package/esm2022/frames/tabs/tabs.frame.mjs +4 -4
- package/esm2022/frames/toggle/toggle.frame.mjs +5 -5
- package/esm2022/frames/vertical-hide/vertical-hide.frame.mjs +5 -5
- package/esm2022/molecules/action-input-field/action-input-field.molecule.mjs +6 -6
- package/esm2022/molecules/actions-column/actions-column.molecule.mjs +10 -10
- package/esm2022/molecules/checkbox-column/checkbox-column.molecule.mjs +5 -5
- package/esm2022/molecules/chips-input-field/chips-input-field.molecule.mjs +7 -7
- package/esm2022/molecules/date-input-field/date-input-field.molecule.mjs +8 -8
- package/esm2022/molecules/date-range-input-field/date-range-input-field.molecule.mjs +8 -8
- package/esm2022/molecules/file-input-field/file-input-field.molecule.mjs +9 -9
- package/esm2022/molecules/grid-item/grid-item.molecule.mjs +5 -5
- package/esm2022/molecules/header/header.molecule.mjs +6 -6
- package/esm2022/molecules/loading-box/loading-box.molecule.mjs +8 -8
- package/esm2022/molecules/molecules.module.mjs +4 -4
- package/esm2022/molecules/navigation-list-item/navigation-list-item.molecule.mjs +8 -8
- package/esm2022/molecules/nested-menu/nested-menu.molecule.mjs +3 -3
- package/esm2022/molecules/select-input-field/select-input-field.molecule.mjs +8 -8
- package/esm2022/molecules/smart-column/smart-column.molecule.mjs +8 -8
- package/esm2022/molecules/text-input-field/text-input-field.molecule.mjs +9 -9
- package/esm2022/molecules/textarea-field/textarea-field.molecule.mjs +7 -7
- package/esm2022/molecules/tree-column/tree-column.molecule.mjs +14 -12
- package/esm2022/organisms/action-buttons-section/action-buttons-section.organism.mjs +8 -8
- package/esm2022/organisms/action-input-section/action-input-section.organism.mjs +8 -8
- package/esm2022/organisms/agreement-input-section/agreement-input-section.organism.mjs +6 -6
- package/esm2022/organisms/card-input-section/card-input-section.organism.mjs +4 -4
- package/esm2022/organisms/chips-input-section/chips-input-section.organism.mjs +26 -16
- package/esm2022/organisms/cvc-and-exp-input-section/cvc-and-exp-input-section.organism.mjs +4 -4
- package/esm2022/organisms/date-input-section/date-input-section.organism.mjs +8 -8
- package/esm2022/organisms/date-range-input-section/date-range-input-section.organism.mjs +8 -8
- package/esm2022/organisms/definition-list/definition-list.organism.mjs +8 -8
- package/esm2022/organisms/file-input-section/file-input-section.organism.mjs +8 -8
- package/esm2022/organisms/filters-section/filters-section.organism.mjs +3 -3
- package/esm2022/organisms/graphql-editor/graphql-editor.organism.mjs +4 -4
- package/esm2022/organisms/grid-cards-section/grid-cards-section.organism.mjs +5 -5
- package/esm2022/organisms/grid-toolbar/grid-toolbar.organism.mjs +6 -6
- package/esm2022/organisms/heading/heading.organism.mjs +5 -5
- package/esm2022/organisms/image-preview-section/image-preview-section.organism.mjs +3 -3
- package/esm2022/organisms/markdown-preview-section/markdown-preview-section.organism.mjs +6 -6
- package/esm2022/organisms/menu-footer/menu-footer.organism.mjs +8 -8
- package/esm2022/organisms/menu-header/menu-header.organism.mjs +8 -8
- package/esm2022/organisms/mermaid-section/mermaid-section.organism.mjs +4 -4
- package/esm2022/organisms/message-input-section/message-input-section.organism.mjs +3 -3
- package/esm2022/organisms/messages-section/messages-section.organism.mjs +5 -5
- package/esm2022/organisms/navigation-list/navigation-list.organism.mjs +8 -8
- package/esm2022/organisms/navigator/navigator.organism.mjs +8 -8
- package/esm2022/organisms/number-input-section/number-input-section.organism.mjs +8 -8
- package/esm2022/organisms/organisms.module.mjs +4 -4
- package/esm2022/organisms/paginator/paginator.organism.mjs +8 -8
- package/esm2022/organisms/password-input-section/password-input-section.organism.mjs +8 -8
- package/esm2022/organisms/select-input-section/select-input-section.organism.mjs +8 -8
- package/esm2022/organisms/selection-list/selection-list.organism.mjs +3 -3
- package/esm2022/organisms/slider-input-section/slider-input-section.organism.mjs +8 -8
- package/esm2022/organisms/smart-list/smart-list.organism.mjs +6 -6
- package/esm2022/organisms/social-login-section/social-login-section.organism.mjs +4 -4
- package/esm2022/organisms/stripe-input-section/stripe-input-section.organism.mjs +11 -11
- package/esm2022/organisms/table/table.organism.mjs +13 -9
- package/esm2022/organisms/terminal/terminal.organism.mjs +4 -4
- package/esm2022/organisms/text-input-section/text-input-section.organism.mjs +8 -8
- package/esm2022/organisms/text-preview-section/text-preview-section.organism.mjs +6 -6
- package/esm2022/organisms/textarea-section/textarea-section.organism.mjs +8 -8
- package/esm2022/organisms/thread-messages-section/thread-messages-section.organism.mjs +8 -8
- package/esm2022/organisms/time-range-input-section/time-range-input-section.organism.mjs +3 -3
- package/esm2022/organisms/toolbar/toolbar.organism.mjs +3 -3
- package/esm2022/organisms/tree-section/tree-section.organism.mjs +4 -4
- package/esm2022/organisms/vertical-divider/vertical-divider.organism.mjs +3 -3
- package/esm2022/organisms/video-section/video-section.organism.mjs +17 -17
- package/esm2022/pages/_index/index.page.mjs +10 -10
- package/esm2022/pages/blank/blank.page.mjs +3 -3
- package/esm2022/pages/columns/columns.page.mjs +6 -6
- package/esm2022/pages/form/form.page.mjs +9 -9
- package/esm2022/pages/pages.module.mjs +4 -4
- package/esm2022/pages/terms/terms.page.mjs +6 -6
- package/esm2022/sheets/actions/actions.sheet.mjs +3 -3
- package/esm2022/sheets/sheets.module.mjs +4 -4
- package/esm2022/sheets/sheets.service.mjs +3 -3
- package/esm2022/templates/_index/index.template.mjs +61 -59
- package/esm2022/templates/background/background.template.mjs +7 -7
- package/esm2022/templates/code-editor/code-editor.template.mjs +6 -6
- package/esm2022/templates/columns/columns.template.mjs +9 -9
- package/esm2022/templates/entrance/entrance.template.mjs +24 -25
- package/esm2022/templates/file-tree/file-tree.template.mjs +3 -3
- package/esm2022/templates/form/form.builder.mjs +28 -37
- package/esm2022/templates/form/form.template.mjs +9 -9
- package/esm2022/templates/icon-button-menu/icon-button-menu.template.mjs +8 -8
- package/esm2022/templates/loading/loading.template.mjs +3 -3
- package/esm2022/templates/menu/menu.template.mjs +8 -8
- package/esm2022/templates/messages/messages.template.mjs +4 -4
- package/esm2022/templates/selection/selection.template.mjs +8 -8
- package/esm2022/templates/settings/settings.template.mjs +5 -5
- package/esm2022/templates/tab-editor/tab-editor.template.mjs +3 -3
- package/esm2022/templates/templates.module.mjs +4 -4
- package/esm2022/templates/term/term.template.mjs +6 -6
- package/extras/editor/editor.component.d.ts +2 -2
- package/fesm2022/ng-atomic-components-atoms-badge.mjs +3 -3
- package/fesm2022/ng-atomic-components-atoms-chips-input.mjs +3 -3
- package/fesm2022/ng-atomic-components-atoms-chips-input.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-atoms-icon.mjs +5 -5
- package/fesm2022/ng-atomic-components-atoms-smart-menu-button.mjs +9 -9
- package/fesm2022/ng-atomic-components-atoms.mjs +4 -4
- package/fesm2022/ng-atomic-components-extras-editor.mjs +3 -3
- package/fesm2022/ng-atomic-components-extras-editor.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-extras.mjs +4 -4
- package/fesm2022/ng-atomic-components-frames-app.mjs +22 -23
- package/fesm2022/ng-atomic-components-frames-app.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-auto-layout.mjs +4 -4
- package/fesm2022/ng-atomic-components-frames-card.mjs +3 -3
- package/fesm2022/ng-atomic-components-frames-columns.mjs +21 -21
- package/fesm2022/ng-atomic-components-frames-columns.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-divider.mjs +19 -12
- package/fesm2022/ng-atomic-components-frames-divider.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-drawer.mjs +8 -8
- package/fesm2022/ng-atomic-components-frames-entrance.mjs +8 -8
- package/fesm2022/ng-atomic-components-frames-fab.mjs +11 -11
- package/fesm2022/ng-atomic-components-frames-line-up.mjs +11 -11
- package/fesm2022/ng-atomic-components-frames-line-up.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-loading.mjs +8 -8
- package/fesm2022/ng-atomic-components-frames-overlay.mjs +6 -6
- package/fesm2022/ng-atomic-components-frames-router-outlet.mjs +8 -8
- package/fesm2022/ng-atomic-components-frames-router-outlet.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-scroll-v2.mjs +5 -5
- package/fesm2022/ng-atomic-components-frames-scroll-v2.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-scroll.mjs +5 -5
- package/fesm2022/ng-atomic-components-frames-side-nav.mjs +27 -28
- package/fesm2022/ng-atomic-components-frames-side-nav.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-smart-menu.mjs +4 -4
- package/fesm2022/ng-atomic-components-frames-smart-menu.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-tabs.mjs +3 -3
- package/fesm2022/ng-atomic-components-frames-tabs.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-toggle.mjs +4 -4
- package/fesm2022/ng-atomic-components-frames-toggle.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-vertical-hide.mjs +5 -5
- package/fesm2022/ng-atomic-components-frames.mjs +4 -4
- package/fesm2022/ng-atomic-components-molecules-action-input-field.mjs +5 -5
- package/fesm2022/ng-atomic-components-molecules-action-input-field.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules-actions-column.mjs +9 -9
- package/fesm2022/ng-atomic-components-molecules-actions-column.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules-checkbox-column.mjs +4 -4
- package/fesm2022/ng-atomic-components-molecules-checkbox-column.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules-chips-input-field.mjs +6 -6
- package/fesm2022/ng-atomic-components-molecules-chips-input-field.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules-date-input-field.mjs +8 -8
- package/fesm2022/ng-atomic-components-molecules-date-range-input-field.mjs +8 -8
- package/fesm2022/ng-atomic-components-molecules-file-input-field.mjs +8 -8
- package/fesm2022/ng-atomic-components-molecules-file-input-field.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules-grid-item.mjs +5 -5
- package/fesm2022/ng-atomic-components-molecules-header.mjs +6 -6
- package/fesm2022/ng-atomic-components-molecules-loading-box.mjs +8 -8
- package/fesm2022/ng-atomic-components-molecules-navigation-list-item.mjs +8 -8
- package/fesm2022/ng-atomic-components-molecules-nested-menu.mjs +3 -3
- package/fesm2022/ng-atomic-components-molecules-select-input-field.mjs +8 -8
- package/fesm2022/ng-atomic-components-molecules-smart-column.mjs +7 -7
- package/fesm2022/ng-atomic-components-molecules-smart-column.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules-text-input-field.mjs +8 -8
- package/fesm2022/ng-atomic-components-molecules-text-input-field.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules-textarea-field.mjs +6 -6
- package/fesm2022/ng-atomic-components-molecules-textarea-field.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules-tree-column.mjs +13 -11
- package/fesm2022/ng-atomic-components-molecules-tree-column.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules.mjs +4 -4
- package/fesm2022/ng-atomic-components-organisms-action-buttons-section.mjs +8 -8
- package/fesm2022/ng-atomic-components-organisms-action-input-section.mjs +8 -8
- package/fesm2022/ng-atomic-components-organisms-agreement-input-section.mjs +6 -6
- package/fesm2022/ng-atomic-components-organisms-card-input-section.mjs +4 -4
- package/fesm2022/ng-atomic-components-organisms-chips-input-section.mjs +25 -15
- package/fesm2022/ng-atomic-components-organisms-chips-input-section.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-cvc-and-exp-input-section.mjs +4 -4
- package/fesm2022/ng-atomic-components-organisms-date-input-section.mjs +8 -8
- package/fesm2022/ng-atomic-components-organisms-date-range-input-section.mjs +8 -8
- package/fesm2022/ng-atomic-components-organisms-definition-list.mjs +8 -8
- package/fesm2022/ng-atomic-components-organisms-file-input-section.mjs +8 -8
- package/fesm2022/ng-atomic-components-organisms-filters-section.mjs +3 -3
- package/fesm2022/ng-atomic-components-organisms-graphql-editor.mjs +3 -3
- package/fesm2022/ng-atomic-components-organisms-graphql-editor.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-grid-cards-section.mjs +5 -5
- package/fesm2022/ng-atomic-components-organisms-grid-toolbar.mjs +6 -6
- package/fesm2022/ng-atomic-components-organisms-heading.mjs +5 -5
- package/fesm2022/ng-atomic-components-organisms-image-preview-section.mjs +3 -3
- package/fesm2022/ng-atomic-components-organisms-markdown-preview-section.mjs +6 -6
- package/fesm2022/ng-atomic-components-organisms-menu-footer.mjs +8 -8
- package/fesm2022/ng-atomic-components-organisms-menu-header.mjs +8 -8
- package/fesm2022/ng-atomic-components-organisms-menu-header.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-mermaid-section.mjs +3 -3
- package/fesm2022/ng-atomic-components-organisms-mermaid-section.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-message-input-section.mjs +3 -3
- package/fesm2022/ng-atomic-components-organisms-messages-section.mjs +5 -5
- package/fesm2022/ng-atomic-components-organisms-navigation-list.mjs +8 -8
- package/fesm2022/ng-atomic-components-organisms-navigator.mjs +8 -8
- package/fesm2022/ng-atomic-components-organisms-number-input-section.mjs +8 -8
- package/fesm2022/ng-atomic-components-organisms-paginator.mjs +8 -8
- package/fesm2022/ng-atomic-components-organisms-password-input-section.mjs +8 -8
- package/fesm2022/ng-atomic-components-organisms-select-input-section.mjs +8 -8
- package/fesm2022/ng-atomic-components-organisms-selection-list.mjs +3 -3
- package/fesm2022/ng-atomic-components-organisms-slider-input-section.mjs +8 -8
- package/fesm2022/ng-atomic-components-organisms-smart-list.mjs +6 -6
- package/fesm2022/ng-atomic-components-organisms-social-login-section.mjs +4 -4
- package/fesm2022/ng-atomic-components-organisms-stripe-input-section.mjs +10 -10
- package/fesm2022/ng-atomic-components-organisms-stripe-input-section.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-table.mjs +12 -8
- package/fesm2022/ng-atomic-components-organisms-table.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-terminal.mjs +3 -3
- package/fesm2022/ng-atomic-components-organisms-terminal.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-text-input-section.mjs +8 -8
- package/fesm2022/ng-atomic-components-organisms-text-preview-section.mjs +6 -6
- package/fesm2022/ng-atomic-components-organisms-textarea-section.mjs +8 -8
- package/fesm2022/ng-atomic-components-organisms-thread-messages-section.mjs +8 -8
- package/fesm2022/ng-atomic-components-organisms-time-range-input-section.mjs +3 -3
- package/fesm2022/ng-atomic-components-organisms-toolbar.mjs +3 -3
- package/fesm2022/ng-atomic-components-organisms-tree-section.mjs +3 -3
- package/fesm2022/ng-atomic-components-organisms-tree-section.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-vertical-divider.mjs +3 -3
- package/fesm2022/ng-atomic-components-organisms-video-section.mjs +16 -16
- package/fesm2022/ng-atomic-components-organisms-video-section.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms.mjs +4 -4
- package/fesm2022/ng-atomic-components-pages-_index.mjs +9 -9
- package/fesm2022/ng-atomic-components-pages-_index.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-pages-blank.mjs +3 -3
- package/fesm2022/ng-atomic-components-pages-columns.mjs +6 -6
- package/fesm2022/ng-atomic-components-pages-form.mjs +8 -8
- package/fesm2022/ng-atomic-components-pages-form.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-pages-terms.mjs +6 -6
- package/fesm2022/ng-atomic-components-pages.mjs +4 -4
- package/fesm2022/ng-atomic-components-sheets-actions.mjs +3 -3
- package/fesm2022/ng-atomic-components-sheets.mjs +7 -7
- package/fesm2022/ng-atomic-components-templates-_index.mjs +61 -59
- package/fesm2022/ng-atomic-components-templates-_index.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-templates-background.mjs +7 -7
- package/fesm2022/ng-atomic-components-templates-code-editor.mjs +6 -6
- package/fesm2022/ng-atomic-components-templates-columns.mjs +8 -8
- package/fesm2022/ng-atomic-components-templates-columns.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-templates-entrance.mjs +23 -24
- package/fesm2022/ng-atomic-components-templates-entrance.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-templates-file-tree.mjs +3 -3
- package/fesm2022/ng-atomic-components-templates-form.mjs +36 -44
- package/fesm2022/ng-atomic-components-templates-form.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-templates-icon-button-menu.mjs +8 -8
- package/fesm2022/ng-atomic-components-templates-loading.mjs +3 -3
- package/fesm2022/ng-atomic-components-templates-menu.mjs +8 -8
- package/fesm2022/ng-atomic-components-templates-messages.mjs +3 -3
- package/fesm2022/ng-atomic-components-templates-messages.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-templates-selection.mjs +8 -8
- package/fesm2022/ng-atomic-components-templates-settings.mjs +5 -5
- package/fesm2022/ng-atomic-components-templates-tab-editor.mjs +3 -3
- package/fesm2022/ng-atomic-components-templates-term.mjs +6 -6
- package/fesm2022/ng-atomic-components-templates.mjs +4 -4
- package/fesm2022/ng-atomic-components.mjs +4 -4
- package/frames/app/app.frame.d.ts +17 -17
- package/frames/divider/divider.frame.d.ts +1 -0
- package/frames/fab/fab.frame.d.ts +3 -3
- package/frames/line-up/line-up.frame.d.ts +2 -2
- package/frames/side-nav/side-nav.frame.d.ts +2 -2
- package/frames/tabs/tabs.frame.d.ts +2 -2
- package/molecules/action-input-field/action-input-field.molecule.d.ts +2 -1
- package/molecules/actions-column/actions-column.molecule.d.ts +4 -3
- package/molecules/checkbox-column/checkbox-column.molecule.d.ts +2 -1
- package/molecules/chips-input-field/chips-input-field.molecule.d.ts +2 -1
- package/molecules/file-input-field/file-input-field.molecule.d.ts +2 -2
- package/molecules/molecules.module.d.ts +1 -1
- package/molecules/smart-column/smart-column.molecule.d.ts +4 -4
- package/molecules/tree-column/tree-column.molecule.d.ts +3 -2
- package/organisms/chips-input-section/chips-input-section.organism.d.ts +6 -2
- package/organisms/graphql-editor/graphql-editor.organism.d.ts +2 -2
- package/organisms/mermaid-section/mermaid-section.organism.d.ts +2 -2
- package/organisms/navigator/navigator.organism.d.ts +3 -3
- package/organisms/stripe-input-section/stripe-input-section.organism.d.ts +11 -11
- package/organisms/terminal/terminal.organism.d.ts +2 -2
- package/organisms/tree-section/tree-section.organism.d.ts +2 -2
- package/organisms/video-section/video-section.organism.d.ts +2 -2
- package/package.json +10 -11
- package/pages/_index/index.page.d.ts +21 -21
- package/pages/columns/columns.page.d.ts +6 -6
- package/pages/form/form.page.d.ts +19 -17
- package/templates/_index/index.template.d.ts +31 -27
- package/templates/form/form.template.d.ts +8 -8
- package/templates/messages/messages.template.d.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-components-molecules-chips-input-field.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/chips-input-field/chips-input-field.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/chips-input-field/ng-atomic-components-molecules-chips-input-field.ts"],"sourcesContent":["import { COMMA, ENTER, SPACE } from '@angular/cdk/keycodes';\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, DestroyRef, Directive, inject, input } from '@angular/core';\nimport { MatChipInputEvent, MatChipsModule } from '@angular/material/chips';\nimport { MatFormFieldAppearance } from '@angular/material/form-field';\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\nimport { ChipsManager } from '@ng-atomic/common/services/chips-manager';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { ErrorPipe } from '@ng-atomic/common/pipes/error';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { makeConfig } from '@ng-atomic/common/services/ui';\nimport { InjectableComponent, NgAtomicComponent, TokenizedType, _computed } from '@ng-atomic/core';\n\nexport interface ChipsInputMoleculeState {\n appearance: MatFormFieldAppearance;\n control: FormControl<string>;\n floatLabel: 'auto' | 'always' | 'never';\n label: string;\n hint: string;\n placeholder: string;\n separators: readonly (typeof ENTER | typeof COMMA | typeof SPACE)[];\n}\n\n@TokenizedType()\n@Directive({ standalone: true, selector: 'molecules-chips-input-field' })\nexport class ChipsInputFieldMoleculeStore extends InjectableComponent {\n static readonly Config = makeConfig(() => {\n return () => ({\n appearance: 'outline',\n control: new FormControl<string>(''),\n floatLabel: 'auto',\n label: 'label',\n hint: 'hint',\n placeholder: 'placeholder',\n separators: [ENTER, COMMA, SPACE] as const,\n });\n }, ['components', 'molecules', 'chips-input-field']);\n protected readonly config = ChipsInputFieldMoleculeStore.Config.inject();\n\n readonly appearance = input(_computed(() => this.config().appearance));\n readonly control = input(_computed(() => this.config().control));\n readonly floatLabel = input(_computed(() => this.config().floatLabel));\n readonly label = input(_computed(() => this.config().label));\n readonly hint = input(_computed(() => this.config().hint));\n readonly placeholder = input(_computed(() => this.config().placeholder));\n readonly separators = input(_computed(() => this.config().separators));\n}\n\n@Component({\n selector: 'molecules-chips-input-field',\n standalone: true,\n imports: [\n ReactiveFormsModule,\n MatChipsModule,\n MatIconModule,\n MatInputModule,\n ErrorPipe,\n ],\n template: `\n <mat-form-field [appearance]=\"store.appearance()\" [floatLabel]=\"store.floatLabel()\">\n <mat-label>{{ store.label() }}</mat-label>\n <mat-chip-grid #chipGrid>\n @for (chip of chipsManager.chips; track chip) {\n <mat-chip-row (removed)=\"remove(chip)\" [editable]=\"false\">\n {{ chip }}\n <button matChipRemove><mat-icon>cancel</mat-icon></button>\n </mat-chip-row>\n }\n <input\n matInput\n [placeholder]=\"store.placeholder()\"\n [matChipInputFor]=\"chipGrid\"\n [matChipInputSeparatorKeyCodes]=\"store.separators()\"\n [matChipInputAddOnBlur]=\"true\"\n (matChipInputTokenEnd)=\"onChiInputTokenEnd($event)\"\n >\n </mat-chip-grid>\n @if (store.hint()) {\n <mat-hint>{{ store.hint() }}</mat-hint>\n }\n <mat-error>{{ store.control().errors | error }}</mat-error>\n </mat-form-field>\n `,\n styleUrls: ['./chips-input-field.molecule.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [ChipsManager],\n hostDirectives: [\n {\n directive: ChipsInputFieldMoleculeStore,\n inputs: ['appearance', 'control', 'floatLabel', 'label', 'hint', 'placeholder', 'separators'],\n },\n ],\n})\nexport class ChipsInputFieldMolecule extends NgAtomicComponent {\n private readonly destroyRef = inject(DestroyRef);\n private readonly cd = inject(ChangeDetectorRef);\n protected readonly chipsManager = inject(ChipsManager);\n protected store = inject(ChipsInputFieldMoleculeStore);\n\n ngOnInit(): void {\n this.chipsManager.setValue(this.store.control().value!);\n this.store.control().valueChanges.pipe(\n takeUntilDestroyed(this.destroyRef),\n ).subscribe((value) => {\n this.chipsManager.setValue(value!);\n this.cd.markForCheck();\n });\n }\n\n protected onChiInputTokenEnd(event: MatChipInputEvent): void {\n this.chipsManager.add(event.value);\n this.store.control().setValue(this.chipsManager.getValue());\n event.input.value = '';\n }\n\n protected remove(value: string): void {\n this.chipsManager.remove(value);\n this.store.control().setValue(this.chipsManager.getValue());\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAyBO,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,mBAAmB,CAAA;AAA9D,IAAA,WAAA,GAAA;;AAYc,QAAA,IAAA,CAAA,MAAM,GAAG,8BAA4B,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhE,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;AAC9D,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;AACxD,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;AAC9D,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AACpD,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAClD,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,SAAS,CAAC,MA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|
+
{"version":3,"file":"ng-atomic-components-molecules-chips-input-field.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/chips-input-field/chips-input-field.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/chips-input-field/ng-atomic-components-molecules-chips-input-field.ts"],"sourcesContent":["import { COMMA, ENTER, SPACE } from '@angular/cdk/keycodes';\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, DestroyRef, Directive, inject, input, OnInit } from '@angular/core';\nimport { MatChipInputEvent, MatChipsModule } from '@angular/material/chips';\nimport { MatFormFieldAppearance } from '@angular/material/form-field';\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\nimport { ChipsManager } from '@ng-atomic/common/services/chips-manager';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { ErrorPipe } from '@ng-atomic/common/pipes/error';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { makeConfig } from '@ng-atomic/common/services/ui';\nimport { InjectableComponent, NgAtomicComponent, TokenizedType, _computed } from '@ng-atomic/core';\n\nexport interface ChipsInputMoleculeState {\n appearance: MatFormFieldAppearance;\n control: FormControl<string>;\n floatLabel: 'auto' | 'always' | 'never';\n label: string;\n hint: string;\n placeholder: string;\n separators: readonly (typeof ENTER | typeof COMMA | typeof SPACE)[];\n}\n\n@TokenizedType()\n@Directive({ standalone: true, selector: 'molecules-chips-input-field' })\nexport class ChipsInputFieldMoleculeStore extends InjectableComponent {\n static readonly Config = makeConfig(() => {\n return () => ({\n appearance: 'outline',\n control: new FormControl<string>(''),\n floatLabel: 'auto',\n label: 'label',\n hint: 'hint',\n placeholder: 'placeholder',\n separators: [ENTER, COMMA, SPACE] as const,\n });\n }, ['components', 'molecules', 'chips-input-field']);\n protected readonly config = ChipsInputFieldMoleculeStore.Config.inject();\n\n readonly appearance = input(_computed(() => this.config().appearance));\n readonly control = input(_computed(() => this.config().control));\n readonly floatLabel = input(_computed(() => this.config().floatLabel));\n readonly label = input(_computed(() => this.config().label));\n readonly hint = input(_computed(() => this.config().hint));\n readonly placeholder = input(_computed(() => this.config().placeholder));\n readonly separators = input(_computed(() => this.config().separators));\n}\n\n@Component({\n selector: 'molecules-chips-input-field',\n standalone: true,\n imports: [\n ReactiveFormsModule,\n MatChipsModule,\n MatIconModule,\n MatInputModule,\n ErrorPipe,\n ],\n template: `\n <mat-form-field [appearance]=\"store.appearance()\" [floatLabel]=\"store.floatLabel()\">\n <mat-label>{{ store.label() }}</mat-label>\n <mat-chip-grid #chipGrid>\n @for (chip of chipsManager.chips; track chip) {\n <mat-chip-row (removed)=\"remove(chip)\" [editable]=\"false\">\n {{ chip }}\n <button matChipRemove><mat-icon>cancel</mat-icon></button>\n </mat-chip-row>\n }\n <input\n matInput\n [placeholder]=\"store.placeholder()\"\n [matChipInputFor]=\"chipGrid\"\n [matChipInputSeparatorKeyCodes]=\"store.separators()\"\n [matChipInputAddOnBlur]=\"true\"\n (matChipInputTokenEnd)=\"onChiInputTokenEnd($event)\"\n >\n </mat-chip-grid>\n @if (store.hint()) {\n <mat-hint>{{ store.hint() }}</mat-hint>\n }\n <mat-error>{{ store.control().errors | error }}</mat-error>\n </mat-form-field>\n `,\n styleUrls: ['./chips-input-field.molecule.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [ChipsManager],\n hostDirectives: [\n {\n directive: ChipsInputFieldMoleculeStore,\n inputs: ['appearance', 'control', 'floatLabel', 'label', 'hint', 'placeholder', 'separators'],\n },\n ],\n})\nexport class ChipsInputFieldMolecule extends NgAtomicComponent implements OnInit {\n private readonly destroyRef = inject(DestroyRef);\n private readonly cd = inject(ChangeDetectorRef);\n protected readonly chipsManager = inject(ChipsManager);\n protected store = inject(ChipsInputFieldMoleculeStore);\n\n ngOnInit(): void {\n this.chipsManager.setValue(this.store.control().value!);\n this.store.control().valueChanges.pipe(\n takeUntilDestroyed(this.destroyRef),\n ).subscribe((value) => {\n this.chipsManager.setValue(value!);\n this.cd.markForCheck();\n });\n }\n\n protected onChiInputTokenEnd(event: MatChipInputEvent): void {\n this.chipsManager.add(event.value);\n this.store.control().setValue(this.chipsManager.getValue());\n event.input.value = '';\n }\n\n protected remove(value: string): void {\n this.chipsManager.remove(value);\n this.store.control().setValue(this.chipsManager.getValue());\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAyBO,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,mBAAmB,CAAA;AAA9D,IAAA,WAAA,GAAA;;AAYc,QAAA,IAAA,CAAA,MAAM,GAAG,8BAA4B,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhE,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;AAC9D,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;AACxD,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;AAC9D,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AACpD,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAClD,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;AAChE,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,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,UAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACd,aAAa,EACb,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,SAAA,EAAA,SAAA,EAAA,UAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,cAAc,uyBACd,SAAS,EAAA,IAAA,EAAA,OAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAqCA,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBA7CnC,SAAS;+BACE,6BAA6B,EAAA,UAAA,EAC3B,IAAI,EACP,OAAA,EAAA;wBACP,mBAAmB;wBACnB,cAAc;wBACd,aAAa;wBACb,cAAc;wBACd,SAAS;qBACV,EACS,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;AAwBT,EAAA,CAAA,EAAA,eAAA,EAEgB,uBAAuB,CAAC,MAAM,aACpC,CAAC,YAAY,CAAC,EACT,cAAA,EAAA;AACd,wBAAA;AACE,4BAAA,SAAS,EAAE,4BAA4B;AACvC,4BAAA,MAAM,EAAE,CAAC,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,YAAY,CAAC;AAC9F,yBAAA;AACF,qBAAA,EAAA,MAAA,EAAA,CAAA,wIAAA,CAAA,EAAA,CAAA;;;AC3FH;;AAEG;;;;"}
|
|
@@ -22,10 +22,10 @@ class DateInputFieldMoleculeStore extends InjectableComponent {
|
|
|
22
22
|
this.toggle = input(true);
|
|
23
23
|
this.control$ = toObservable(this.control);
|
|
24
24
|
}
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
26
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: DateInputFieldMoleculeStore, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
26
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.2", type: DateInputFieldMoleculeStore, isStandalone: true, selector: "molecules-date-input-field", inputs: { control: { classPropertyName: "control", publicName: "control", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, toggle: { classPropertyName: "toggle", publicName: "toggle", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 }); }
|
|
27
27
|
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: DateInputFieldMoleculeStore, decorators: [{
|
|
29
29
|
type: Directive,
|
|
30
30
|
args: [{ standalone: true, selector: 'molecules-date-input-field' }]
|
|
31
31
|
}] });
|
|
@@ -33,8 +33,8 @@ class DateInputFieldMolecule {
|
|
|
33
33
|
constructor() {
|
|
34
34
|
this.store = inject(DateInputFieldMoleculeStore);
|
|
35
35
|
}
|
|
36
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
37
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
36
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: DateInputFieldMolecule, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
37
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.2", type: DateInputFieldMolecule, isStandalone: true, selector: "molecules-date-input-field", host: { classAttribute: "molecule field" }, providers: [
|
|
38
38
|
// provideDayjsDateAdapter(),
|
|
39
39
|
], hostDirectives: [{ directive: DateInputFieldMoleculeStore, inputs: ["control", "control", "label", "label", "placeholder", "placeholder", "hint", "hint", "toggle", "toggle"] }], ngImport: i0, template: `
|
|
40
40
|
<mat-form-field appearance="outline">
|
|
@@ -47,9 +47,9 @@ class DateInputFieldMolecule {
|
|
|
47
47
|
@if (store.hint()) { <mat-hint>{{ store.hint() }}</mat-hint> }
|
|
48
48
|
<mat-error>{{ store.control().errors | error }}</mat-error>
|
|
49
49
|
</mat-form-field>
|
|
50
|
-
`, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-field-
|
|
50
|
+
`, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-field-A7Hu: var(--horizontal-padding)}:host{display:block;width:100%}:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i4.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i4.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i4.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "pipe", type: ErrorPipe, name: "error" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
51
51
|
}
|
|
52
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: DateInputFieldMolecule, decorators: [{
|
|
53
53
|
type: Component,
|
|
54
54
|
args: [{ selector: 'molecules-date-input-field', standalone: true, imports: [
|
|
55
55
|
ReactiveFormsModule,
|
|
@@ -74,7 +74,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImpor
|
|
|
74
74
|
}
|
|
75
75
|
], host: { class: 'molecule field' }, providers: [
|
|
76
76
|
// provideDayjsDateAdapter(),
|
|
77
|
-
], styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-field-
|
|
77
|
+
], styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-field-A7Hu: var(--horizontal-padding)}:host{display:block;width:100%}:host mat-form-field{width:100%}\n"] }]
|
|
78
78
|
}] });
|
|
79
79
|
|
|
80
80
|
/**
|
|
@@ -22,10 +22,10 @@ class DateRangeInputFieldMoleculeStore {
|
|
|
22
22
|
console.debug('control:', this.control().value);
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
26
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: DateRangeInputFieldMoleculeStore, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
26
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.2", type: DateRangeInputFieldMoleculeStore, isStandalone: true, selector: "molecules-date-range-input-field", inputs: { control: { classPropertyName: "control", publicName: "control", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
27
27
|
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: DateRangeInputFieldMoleculeStore, decorators: [{
|
|
29
29
|
type: Directive,
|
|
30
30
|
args: [{ selector: 'molecules-date-range-input-field', standalone: true }]
|
|
31
31
|
}], ctorParameters: () => [] });
|
|
@@ -33,8 +33,8 @@ class DateRangeInputFieldMolecule {
|
|
|
33
33
|
constructor() {
|
|
34
34
|
this.store = inject(DateRangeInputFieldMoleculeStore);
|
|
35
35
|
}
|
|
36
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
37
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
36
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: DateRangeInputFieldMolecule, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
37
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.2", type: DateRangeInputFieldMolecule, isStandalone: true, selector: "molecules-date-range-input-field", hostDirectives: [{ directive: DateRangeInputFieldMoleculeStore, inputs: ["control", "control", "label", "label", "hint", "hint"] }], ngImport: i0, template: `
|
|
38
38
|
<mat-form-field appearance="outline">
|
|
39
39
|
<mat-label>{{ store.label() }}</mat-label>
|
|
40
40
|
<mat-date-range-input
|
|
@@ -52,9 +52,9 @@ class DateRangeInputFieldMolecule {
|
|
|
52
52
|
<mat-datepicker-toggle matIconSuffix [for]="picker"></mat-datepicker-toggle>
|
|
53
53
|
<mat-date-range-picker #picker></mat-date-range-picker>
|
|
54
54
|
</mat-form-field>
|
|
55
|
-
`, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-range-input-field-
|
|
55
|
+
`, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-range-input-field-Z13M: var(--horizontal-padding)}:host{display:block;width:100%}:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i3.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "component", type: i3.MatDateRangeInput, selector: "mat-date-range-input", inputs: ["rangePicker", "required", "dateFilter", "min", "max", "disabled", "separator", "comparisonStart", "comparisonEnd"], exportAs: ["matDateRangeInput"] }, { kind: "directive", type: i3.MatStartDate, selector: "input[matStartDate]", outputs: ["dateChange", "dateInput"] }, { kind: "directive", type: i3.MatEndDate, selector: "input[matEndDate]", outputs: ["dateChange", "dateInput"] }, { kind: "component", type: i3.MatDateRangePicker, selector: "mat-date-range-picker", exportAs: ["matDateRangePicker"] }, { kind: "pipe", type: ErrorPipe, name: "error" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
56
56
|
}
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: DateRangeInputFieldMolecule, decorators: [{
|
|
58
58
|
type: Component,
|
|
59
59
|
args: [{ selector: 'molecules-date-range-input-field', standalone: true, imports: [
|
|
60
60
|
CommonModule,
|
|
@@ -85,7 +85,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImpor
|
|
|
85
85
|
directive: DateRangeInputFieldMoleculeStore,
|
|
86
86
|
inputs: ['control', 'label', 'hint']
|
|
87
87
|
}
|
|
88
|
-
], styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-range-input-field-
|
|
88
|
+
], styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-range-input-field-Z13M: var(--horizontal-padding)}:host{display:block;width:100%}:host mat-form-field{width:100%}\n"] }]
|
|
89
89
|
}] });
|
|
90
90
|
|
|
91
91
|
/**
|
|
@@ -65,10 +65,10 @@ class FileInputFieldStore {
|
|
|
65
65
|
});
|
|
66
66
|
this.controlValue$.subscribe(value => this._control.setValue(value));
|
|
67
67
|
}
|
|
68
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
69
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
68
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FileInputFieldStore, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
69
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.2", type: FileInputFieldStore, isStandalone: true, inputs: { control: { classPropertyName: "control", publicName: "control", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, progress: { classPropertyName: "progress", publicName: "progress", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
70
70
|
}
|
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FileInputFieldStore, decorators: [{
|
|
72
72
|
type: Directive,
|
|
73
73
|
args: [{ standalone: true }]
|
|
74
74
|
}], ctorParameters: () => [] });
|
|
@@ -86,8 +86,8 @@ class FileInputFieldMolecule extends NgAtomicComponent {
|
|
|
86
86
|
this.dispatch({ id: ActionId.FILE_SELECTED, payload: event.target.files });
|
|
87
87
|
// this.fileUpload().nativeElement.value = '';
|
|
88
88
|
}
|
|
89
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
90
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
89
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FileInputFieldMolecule, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
90
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.2", type: FileInputFieldMolecule, isStandalone: true, selector: "molecules-file-input-field", viewQueries: [{ propertyName: "fileUpload", first: true, predicate: ["fileUpload"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: FileInputFieldStore, inputs: ["control", "control", "label", "label", "placeholder", "placeholder", "hint", "hint", "progress", "progress", "name", "name", "appearance", "appearance"] }], ngImport: i0, template: `
|
|
91
91
|
<mat-form-field [appearance]="store.appearance()">
|
|
92
92
|
<mat-label>{{ store.label() }}</mat-label>
|
|
93
93
|
<input matInput [name]="store.name()" type="text" [formControl]="store._control" [placeholder]="store.placeholder()">
|
|
@@ -104,7 +104,7 @@ class FileInputFieldMolecule extends NgAtomicComponent {
|
|
|
104
104
|
(action)="dispatch($event)"
|
|
105
105
|
></atoms-smart-menu-button>
|
|
106
106
|
<input style="display: none" type="file" (change)="onFileSelected($event)" #fileUpload>
|
|
107
|
-
`, isInline: true, styles: [":host{display:block}:host{display:flex;width:100%;flex-direction:row;align-items:center;justify-content:space-between}:host mat-form-field{width:100%}:host atoms-smart-menu-button{width
|
|
107
|
+
`, isInline: true, styles: [":host{display:block}:host{display:flex;width:100%;flex-direction:row;align-items:center;justify-content:space-between}:host mat-form-field{width:100%}:host atoms-smart-menu-button{width:fit-content;margin-bottom:20px}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: SmartMenuButtonAtom, selector: "atoms-smart-menu-button" }, { kind: "pipe", type: ErrorPipe, name: "error" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
108
108
|
}
|
|
109
109
|
__decorate([
|
|
110
110
|
Effect(ActionId.FILE_SELECT_BUTTON_CLICK),
|
|
@@ -112,7 +112,7 @@ __decorate([
|
|
|
112
112
|
__metadata("design:paramtypes", []),
|
|
113
113
|
__metadata("design:returntype", void 0)
|
|
114
114
|
], FileInputFieldMolecule.prototype, "onFileSelectButtonClick", null);
|
|
115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FileInputFieldMolecule, decorators: [{
|
|
116
116
|
type: Component,
|
|
117
117
|
args: [{ selector: 'molecules-file-input-field', standalone: true, imports: [
|
|
118
118
|
ReactiveFormsModule,
|
|
@@ -141,7 +141,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImpor
|
|
|
141
141
|
directive: FileInputFieldStore,
|
|
142
142
|
inputs: ['control', 'label', 'placeholder', 'hint', 'progress', 'name', 'appearance'],
|
|
143
143
|
}
|
|
144
|
-
], styles: [":host{display:block}:host{display:flex;width:100%;flex-direction:row;align-items:center;justify-content:space-between}:host mat-form-field{width:100%}:host atoms-smart-menu-button{width
|
|
144
|
+
], styles: [":host{display:block}:host{display:flex;width:100%;flex-direction:row;align-items:center;justify-content:space-between}:host mat-form-field{width:100%}:host atoms-smart-menu-button{width:fit-content;margin-bottom:20px}\n"] }]
|
|
145
145
|
}], propDecorators: { onFileSelectButtonClick: [] } });
|
|
146
146
|
|
|
147
147
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-components-molecules-file-input-field.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/file-input-field/file-input-field.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/file-input-field/ng-atomic-components-molecules-file-input-field.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Directive, ElementRef, computed, effect, inject, input, viewChild } from '@angular/core';\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\nimport { MatInputModule } from '@angular/material/input';\nimport { SmartMenuButtonAtom } from '@ng-atomic/components/atoms/smart-menu-button';\nimport { Effect, NgAtomicComponent } from '@ng-atomic/core';\nimport { ErrorPipe } from '@ng-atomic/common/pipes/error';\nimport { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop';\nimport { startWith, switchMap } from 'rxjs';\n\nenum ActionId {\n FILE_SELECT_BUTTON_CLICK = '[@ng-atomic/components/molecules/file-input-field] File select button click',\n FILE_SELECTED = '[@ng-atomic/components/molecules/file-input-field] File selected',\n CANCEL = '[@ng-atomic/components/molecules/file-input-field] Cancel',\n}\n\n@Directive({ standalone: true })\nexport class FileInputFieldStore {\n readonly control = input(new FormControl(null));\n readonly control$ = toObservable(this.control).pipe(takeUntilDestroyed());\n readonly controlValue$ = this.control$.pipe(\n switchMap(control => control.valueChanges.pipe(startWith(control.value))),\n );\n readonly label = input('label');\n readonly placeholder = input('placeholder');\n readonly hint = input<string | null>(null);\n readonly progress = input<number | false>(false);\n readonly name = input<string | null>(null);\n readonly appearance = input<'outline' | 'fill'>('outline');\n readonly _control = new FormControl<string | number>({value: '', disabled: true});\n\n constructor() {\n // super();\n effect(() => {\n console.debug('progress:', this.progress());\n });\n }\n\n ngOnInit() {\n // super.ngOnInit();\n this.control$.subscribe(control => {\n this._control.setValidators(control['_rawValidators']);\n this._control.setAsyncValidators(control['_rawAsyncValidators']);\n });\n\n this.controlValue$.subscribe(value => this._control.setValue(value));\n }\n\n readonly actions = computed(() => {\n if (this.progress()) {\n return [\n {\n id: ActionId.CANCEL,\n icon: 'cancel',\n name: 'Cancel',\n disabled: this.control().disabled,\n },\n ];\n } else {\n return [\n {\n id: ActionId.FILE_SELECT_BUTTON_CLICK,\n icon: 'attach_file',\n name: 'Select file',\n disabled: this.control().disabled,\n },\n ];\n }\n });\n}\n\n@Component({\n selector: 'molecules-file-input-field',\n standalone: true,\n imports: [\n ReactiveFormsModule,\n MatInputModule,\n SmartMenuButtonAtom,\n ErrorPipe,\n ],\n template: `\n <mat-form-field [appearance]=\"store.appearance()\">\n <mat-label>{{ store.label() }}</mat-label>\n <input matInput [name]=\"store.name()\" type=\"text\" [formControl]=\"store._control\" [placeholder]=\"store.placeholder()\">\n <!-- <mat-icon matSuffix>sentiment_very_satisfied</mat-icon> -->\n @if (store.progress()) {\n <mat-hint>Uploading...({{ store.progress() ? store.progress()?.toFixed(2) : '' }}%)</mat-hint>\n } @else if (store.hint()) {\n <mat-hint>{{ store.hint() }}</mat-hint>\n }\n <mat-error>{{ store.control().errors | error }}</mat-error>\n </mat-form-field>\n <atoms-smart-menu-button\n [actions]=\"store.actions()\"\n (action)=\"dispatch($event)\"\n ></atoms-smart-menu-button>\n <input style=\"display: none\" type=\"file\" (change)=\"onFileSelected($event)\" #fileUpload>\n `,\n styleUrls: ['./file-input-field.molecule.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: FileInputFieldStore,\n inputs: ['control', 'label', 'placeholder', 'hint', 'progress', 'name', 'appearance'],\n }\n ]\n})\nexport class FileInputFieldMolecule extends NgAtomicComponent {\n static readonly ActionId = ActionId;\n protected readonly store = inject(FileInputFieldStore);\n protected readonly fileUpload = viewChild.required<ElementRef<HTMLInputElement>>('fileUpload');\n \n @Effect(ActionId.FILE_SELECT_BUTTON_CLICK)\n protected onFileSelectButtonClick() {\n this.fileUpload().nativeElement.click();\n }\n\n protected onFileSelected(event: Event & {target: HTMLInputElement}) {\n this.dispatch({id: ActionId.FILE_SELECTED, payload: event.target.files});\n // this.fileUpload().nativeElement.value = '';\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AASA,IAAK,QAIJ,CAAA;AAJD,CAAA,UAAK,QAAQ,EAAA;AACX,IAAA,QAAA,CAAA,0BAAA,CAAA,GAAA,6EAAwG,CAAA;AACxG,IAAA,QAAA,CAAA,eAAA,CAAA,GAAA,kEAAkF,CAAA;AAClF,IAAA,QAAA,CAAA,QAAA,CAAA,GAAA,2DAAoE,CAAA;AACtE,CAAC,EAJI,QAAQ,KAAR,QAAQ,GAIZ,EAAA,CAAA,CAAA,CAAA;MAGY,mBAAmB,CAAA;AAc9B,IAAA,WAAA,GAAA;QAbS,IAAO,CAAA,OAAA,GAAG,KAAK,CAAC,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;AACvC,QAAA,IAAA,CAAA,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC,CAAC;AACjE,QAAA,IAAA,CAAA,aAAa,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CACzC,SAAS,CAAC,OAAO,IAAI,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAC1E,CAAC;AACO,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AACvB,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;AACnC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAgB,IAAI,CAAC,CAAC;AAClC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAiB,KAAK,CAAC,CAAC;AACxC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAgB,IAAI,CAAC,CAAC;AAClC,QAAA,IAAA,CAAA,UA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Aa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,CAAC;AACtF,yBAAA;AACF,qBAAA,EAAA,MAAA,EAAA,CAAA,oPAAA,CAAA,EAAA,CAAA;8BAQS,uBAAuB,EAAA,EAAA,EAAA,EAAA,CAAA;;AChHnC;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-molecules-file-input-field.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/file-input-field/file-input-field.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/file-input-field/ng-atomic-components-molecules-file-input-field.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Directive, ElementRef, computed, effect, inject, input, viewChild, OnInit } from '@angular/core';\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\nimport { MatInputModule } from '@angular/material/input';\nimport { SmartMenuButtonAtom } from '@ng-atomic/components/atoms/smart-menu-button';\nimport { Effect, NgAtomicComponent } from '@ng-atomic/core';\nimport { ErrorPipe } from '@ng-atomic/common/pipes/error';\nimport { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop';\nimport { startWith, switchMap } from 'rxjs';\n\nenum ActionId {\n FILE_SELECT_BUTTON_CLICK = '[@ng-atomic/components/molecules/file-input-field] File select button click',\n FILE_SELECTED = '[@ng-atomic/components/molecules/file-input-field] File selected',\n CANCEL = '[@ng-atomic/components/molecules/file-input-field] Cancel',\n}\n\n@Directive({ standalone: true })\nexport class FileInputFieldStore implements OnInit {\n readonly control = input(new FormControl(null));\n readonly control$ = toObservable(this.control).pipe(takeUntilDestroyed());\n readonly controlValue$ = this.control$.pipe(\n switchMap(control => control.valueChanges.pipe(startWith(control.value))),\n );\n readonly label = input('label');\n readonly placeholder = input('placeholder');\n readonly hint = input<string | null>(null);\n readonly progress = input<number | false>(false);\n readonly name = input<string | null>(null);\n readonly appearance = input<'outline' | 'fill'>('outline');\n readonly _control = new FormControl<string | number>({value: '', disabled: true});\n\n constructor() {\n // super();\n effect(() => {\n console.debug('progress:', this.progress());\n });\n }\n\n ngOnInit() {\n // super.ngOnInit();\n this.control$.subscribe(control => {\n this._control.setValidators(control['_rawValidators']);\n this._control.setAsyncValidators(control['_rawAsyncValidators']);\n });\n\n this.controlValue$.subscribe(value => this._control.setValue(value));\n }\n\n readonly actions = computed(() => {\n if (this.progress()) {\n return [\n {\n id: ActionId.CANCEL,\n icon: 'cancel',\n name: 'Cancel',\n disabled: this.control().disabled,\n },\n ];\n } else {\n return [\n {\n id: ActionId.FILE_SELECT_BUTTON_CLICK,\n icon: 'attach_file',\n name: 'Select file',\n disabled: this.control().disabled,\n },\n ];\n }\n });\n}\n\n@Component({\n selector: 'molecules-file-input-field',\n standalone: true,\n imports: [\n ReactiveFormsModule,\n MatInputModule,\n SmartMenuButtonAtom,\n ErrorPipe,\n ],\n template: `\n <mat-form-field [appearance]=\"store.appearance()\">\n <mat-label>{{ store.label() }}</mat-label>\n <input matInput [name]=\"store.name()\" type=\"text\" [formControl]=\"store._control\" [placeholder]=\"store.placeholder()\">\n <!-- <mat-icon matSuffix>sentiment_very_satisfied</mat-icon> -->\n @if (store.progress()) {\n <mat-hint>Uploading...({{ store.progress() ? store.progress()?.toFixed(2) : '' }}%)</mat-hint>\n } @else if (store.hint()) {\n <mat-hint>{{ store.hint() }}</mat-hint>\n }\n <mat-error>{{ store.control().errors | error }}</mat-error>\n </mat-form-field>\n <atoms-smart-menu-button\n [actions]=\"store.actions()\"\n (action)=\"dispatch($event)\"\n ></atoms-smart-menu-button>\n <input style=\"display: none\" type=\"file\" (change)=\"onFileSelected($event)\" #fileUpload>\n `,\n styleUrls: ['./file-input-field.molecule.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: FileInputFieldStore,\n inputs: ['control', 'label', 'placeholder', 'hint', 'progress', 'name', 'appearance'],\n }\n ]\n})\nexport class FileInputFieldMolecule extends NgAtomicComponent {\n static readonly ActionId = ActionId;\n protected readonly store = inject(FileInputFieldStore);\n protected readonly fileUpload = viewChild.required<ElementRef<HTMLInputElement>>('fileUpload');\n \n @Effect(ActionId.FILE_SELECT_BUTTON_CLICK)\n protected onFileSelectButtonClick() {\n this.fileUpload().nativeElement.click();\n }\n\n protected onFileSelected(event: Event & {target: HTMLInputElement}) {\n this.dispatch({id: ActionId.FILE_SELECTED, payload: event.target.files});\n // this.fileUpload().nativeElement.value = '';\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AASA,IAAK,QAIJ,CAAA;AAJD,CAAA,UAAK,QAAQ,EAAA;AACX,IAAA,QAAA,CAAA,0BAAA,CAAA,GAAA,6EAAwG,CAAA;AACxG,IAAA,QAAA,CAAA,eAAA,CAAA,GAAA,kEAAkF,CAAA;AAClF,IAAA,QAAA,CAAA,QAAA,CAAA,GAAA,2DAAoE,CAAA;AACtE,CAAC,EAJI,QAAQ,KAAR,QAAQ,GAIZ,EAAA,CAAA,CAAA,CAAA;MAGY,mBAAmB,CAAA;AAc9B,IAAA,WAAA,GAAA;QAbS,IAAO,CAAA,OAAA,GAAG,KAAK,CAAC,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;AACvC,QAAA,IAAA,CAAA,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC,CAAC;AACjE,QAAA,IAAA,CAAA,aAAa,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CACzC,SAAS,CAAC,OAAO,IAAI,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAC1E,CAAC;AACO,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AACvB,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;AACnC,QAAA,IAAA,CAAA,IAAI,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;;;;;;;;;;GAiBT,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAC/B,cAAA,EAAA;AACd,wBAAA;AACE,4BAAA,SAAS,EAAE,mBAAmB;AAC9B,4BAAA,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,CAAC;AACtF,yBAAA;AACF,qBAAA,EAAA,MAAA,EAAA,CAAA,6NAAA,CAAA,EAAA,CAAA;8BAQS,uBAAuB,EAAA,EAAA,EAAA,EAAA,CAAA;;AChHnC;;AAEG;;;;"}
|
|
@@ -23,8 +23,8 @@ class GridItemMolecule extends NgAtomicComponent {
|
|
|
23
23
|
onItemMenuClick(item, $event) {
|
|
24
24
|
$event.stopPropagation();
|
|
25
25
|
}
|
|
26
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
27
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
26
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GridItemMolecule, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
27
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.1.2", type: GridItemMolecule, isStandalone: true, selector: "molecules-grid-item", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
28
28
|
<div class="content" matRipple>
|
|
29
29
|
<button mat-icon-button color="primary" (click)="onItemMenuClick(item(), $event)">
|
|
30
30
|
<mat-icon>menu</mat-icon>
|
|
@@ -39,9 +39,9 @@ class GridItemMolecule extends NgAtomicComponent {
|
|
|
39
39
|
<div class="sub"><span>{{ item() | dataAccessor:'sub' }}</span></div>
|
|
40
40
|
</div>
|
|
41
41
|
</div>
|
|
42
|
-
`, isInline: true, styles: [":host{display:block;--primary-color: #444;--primary-color-SCOPED-IN-grid-item-
|
|
42
|
+
`, isInline: true, styles: [":host{display:block;--primary-color: #444;--primary-color-SCOPED-IN-grid-item-LYo7: var(--primary-color);--on-surface-color: #444;--on-surface-color-SCOPED-IN-grid-item-LYo7: var(--on-surface-color)}:host{position:relative;text-align:center;cursor:pointer;aspect-ratio:1/1}:host button{position:absolute;top:0;right:0}:host ::ng-deep>mat-card{display:flex;justify-content:flex-start;align-items:flex-start}:host .eye-catch{position:relative;width:100%;aspect-ratio:16/9;background-color:#444;border-radius:0 0 8px 8px;overflow:hidden}:host .eye-catch img{width:100%;aspect-ratio:16/9;object-fit:cover}:host .eye-catch .label{position:absolute;right:6px;bottom:8px;line-height:1.5em;font-size:1.2em;color:#fff;background:#000;opacity:.6;border-radius:6px;padding:4px 8px}:host .meta{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;padding:8px 8px 24px;box-sizing:border-box}:host .meta .title{display:-webkit-box;text-align:start;font-size:1.4em;font-weight:700;line-height:1.5em;letter-spacing:.04em;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;white-space:normal;overflow:hidden;color:var(--on-surface-color-SCOPED-IN-grid-item-LYo7)}:host .meta .description,:host .meta .sub{overflow:hidden;text-align:start;font-size:1.2em;letter-spacing:.04em;color:gray}:host .meta .description span,:host .meta .sub span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}\n"], dependencies: [{ kind: "pipe", type: DataAccessorPipe, name: "dataAccessor" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatRippleModule }, { kind: "directive", type: i3.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { kind: "directive", type: FallbackSrcDirective, selector: "[fallbackSrc]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
43
43
|
}
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GridItemMolecule, decorators: [{
|
|
45
45
|
type: Component,
|
|
46
46
|
args: [{ selector: 'molecules-grid-item', standalone: true, imports: [
|
|
47
47
|
DataAccessorPipe,
|
|
@@ -64,7 +64,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImpor
|
|
|
64
64
|
<div class="sub"><span>{{ item() | dataAccessor:'sub' }}</span></div>
|
|
65
65
|
</div>
|
|
66
66
|
</div>
|
|
67
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;--primary-color: #444;--primary-color-SCOPED-IN-grid-item-
|
|
67
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;--primary-color: #444;--primary-color-SCOPED-IN-grid-item-LYo7: var(--primary-color);--on-surface-color: #444;--on-surface-color-SCOPED-IN-grid-item-LYo7: var(--on-surface-color)}:host{position:relative;text-align:center;cursor:pointer;aspect-ratio:1/1}:host button{position:absolute;top:0;right:0}:host ::ng-deep>mat-card{display:flex;justify-content:flex-start;align-items:flex-start}:host .eye-catch{position:relative;width:100%;aspect-ratio:16/9;background-color:#444;border-radius:0 0 8px 8px;overflow:hidden}:host .eye-catch img{width:100%;aspect-ratio:16/9;object-fit:cover}:host .eye-catch .label{position:absolute;right:6px;bottom:8px;line-height:1.5em;font-size:1.2em;color:#fff;background:#000;opacity:.6;border-radius:6px;padding:4px 8px}:host .meta{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;padding:8px 8px 24px;box-sizing:border-box}:host .meta .title{display:-webkit-box;text-align:start;font-size:1.4em;font-weight:700;line-height:1.5em;letter-spacing:.04em;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;white-space:normal;overflow:hidden;color:var(--on-surface-color-SCOPED-IN-grid-item-LYo7)}:host .meta .description,:host .meta .sub{overflow:hidden;text-align:start;font-size:1.2em;letter-spacing:.04em;color:gray}:host .meta .description span,:host .meta .sub span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}\n"] }]
|
|
68
68
|
}] });
|
|
69
69
|
|
|
70
70
|
/**
|
|
@@ -9,13 +9,13 @@ let HeaderMoleculeStore = class HeaderMoleculeStore extends InjectableComponent
|
|
|
9
9
|
this.title = input('title');
|
|
10
10
|
this.description = input('');
|
|
11
11
|
}
|
|
12
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: HeaderMoleculeStore, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
13
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.2", type: HeaderMoleculeStore, isStandalone: true, selector: "molecules-header", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 }); }
|
|
14
14
|
};
|
|
15
15
|
HeaderMoleculeStore = __decorate([
|
|
16
16
|
TokenizedType()
|
|
17
17
|
], HeaderMoleculeStore);
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: HeaderMoleculeStore, decorators: [{
|
|
19
19
|
type: Directive,
|
|
20
20
|
args: [{ standalone: true, selector: 'molecules-header' }]
|
|
21
21
|
}] });
|
|
@@ -24,13 +24,13 @@ class HeaderMolecule extends NgAtomicComponent {
|
|
|
24
24
|
super(...arguments);
|
|
25
25
|
this.store = inject(HeaderMoleculeStore);
|
|
26
26
|
}
|
|
27
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
28
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: HeaderMolecule, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
28
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: HeaderMolecule, isStandalone: true, selector: "molecules-header", usesInheritance: true, hostDirectives: [{ directive: HeaderMoleculeStore, inputs: ["title", "title", "description", "description"] }], ngImport: i0, template: `
|
|
29
29
|
<span class="title">{{ store.title() ?? '' }}</span>
|
|
30
30
|
<span class="description">{{ store.description() ?? '' }}</span>
|
|
31
31
|
`, isInline: true, styles: [":host{display:block}:host{display:flex;flex-direction:row;align-items:flex-end;width:100%;justify-content:flex-start}:host .title{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}:host .description{line-height:1em;font-size:12px;margin-bottom:8px;margin-left:4px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
32
32
|
}
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: HeaderMolecule, decorators: [{
|
|
34
34
|
type: Component,
|
|
35
35
|
args: [{ selector: 'molecules-header', standalone: true, template: `
|
|
36
36
|
<span class="title">{{ store.title() ?? '' }}</span>
|
|
@@ -17,13 +17,13 @@ let LoadingBoxMoleculeStore = class LoadingBoxMoleculeStore extends InjectableCo
|
|
|
17
17
|
loadingMessage: 'initializing...'
|
|
18
18
|
});
|
|
19
19
|
}, ['components', 'molecules', 'loading-box']); }
|
|
20
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
21
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: LoadingBoxMoleculeStore, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
21
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.2", type: LoadingBoxMoleculeStore, isStandalone: true, selector: "molecules-loading-box", inputs: { loadingMessage: { classPropertyName: "loadingMessage", publicName: "loadingMessage", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 }); }
|
|
22
22
|
};
|
|
23
23
|
LoadingBoxMoleculeStore = LoadingBoxMoleculeStore_1 = __decorate([
|
|
24
24
|
TokenizedType()
|
|
25
25
|
], LoadingBoxMoleculeStore);
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: LoadingBoxMoleculeStore, decorators: [{
|
|
27
27
|
type: Directive,
|
|
28
28
|
args: [{ standalone: true, selector: 'molecules-loading-box' }]
|
|
29
29
|
}] });
|
|
@@ -31,15 +31,15 @@ class LoadingBoxMolecule {
|
|
|
31
31
|
constructor() {
|
|
32
32
|
this.store = inject(LoadingBoxMoleculeStore);
|
|
33
33
|
}
|
|
34
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
35
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
34
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: LoadingBoxMolecule, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
35
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.2", type: LoadingBoxMolecule, isStandalone: true, selector: "molecules-loading-box", hostDirectives: [{ directive: LoadingBoxMoleculeStore, inputs: ["loadingMessage", "loadingMessage"] }], ngImport: i0, template: `
|
|
36
36
|
<span class="initializing">決済フォーム初期化中</span>
|
|
37
37
|
<div class="loading-dots">
|
|
38
38
|
@for (i of [0, 1, 2]; track $index) { <div class="dot"></div> }
|
|
39
39
|
</div>
|
|
40
|
-
`, isInline: true, styles: [":host{display:block;--mdc-outlined-text-field-label-text-color-SCOPED-IN-definition-list-gBL6: rgba(0, 0, 0, .6);--mdc-outlined-text-field-label-text-color-SCOPED-IN-definition-list-gBL6-SCOPED-IN-loading-box-
|
|
40
|
+
`, isInline: true, styles: [":host{display:block;--mdc-outlined-text-field-label-text-color-SCOPED-IN-definition-list-gBL6: rgba(0, 0, 0, .6);--mdc-outlined-text-field-label-text-color-SCOPED-IN-definition-list-gBL6-SCOPED-IN-loading-box-96Dv: var(--mdc-outlined-text-field-label-text-color-SCOPED-IN-definition-list-gBL6)}:host{display:flex;width:100%;justify-content:center}:host .initializing{color:var(--mdc-outlined-text-field-label-text-color-SCOPED-IN-definition-list-gBL6-SCOPED-IN-loading-box-96Dv);font-size:12px}@keyframes dotFlashing{0%,to{opacity:0}50%{opacity:1}}:host .loading-box{display:flex;justify-content:center;align-items:center;flex-direction:column}:host .loading-dots .dot{height:10px;width:10px;margin:0 5px;background-color:#333;border-radius:50%;display:inline-block;animation:dotFlashing 1s infinite}:host .loading-dots .dot:nth-child(1){animation-delay:0s}:host .loading-dots .dot:nth-child(2){animation-delay:.2s}:host .loading-dots .dot:nth-child(3){animation-delay:.4s}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
41
41
|
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: LoadingBoxMolecule, decorators: [{
|
|
43
43
|
type: Component,
|
|
44
44
|
args: [{ selector: 'molecules-loading-box', standalone: true, imports: [], template: `
|
|
45
45
|
<span class="initializing">決済フォーム初期化中</span>
|
|
@@ -51,7 +51,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImpor
|
|
|
51
51
|
directive: LoadingBoxMoleculeStore,
|
|
52
52
|
inputs: ['loadingMessage'],
|
|
53
53
|
}
|
|
54
|
-
], styles: [":host{display:block;--mdc-outlined-text-field-label-text-color-SCOPED-IN-definition-list-gBL6: rgba(0, 0, 0, .6);--mdc-outlined-text-field-label-text-color-SCOPED-IN-definition-list-gBL6-SCOPED-IN-loading-box-
|
|
54
|
+
], styles: [":host{display:block;--mdc-outlined-text-field-label-text-color-SCOPED-IN-definition-list-gBL6: rgba(0, 0, 0, .6);--mdc-outlined-text-field-label-text-color-SCOPED-IN-definition-list-gBL6-SCOPED-IN-loading-box-96Dv: var(--mdc-outlined-text-field-label-text-color-SCOPED-IN-definition-list-gBL6)}:host{display:flex;width:100%;justify-content:center}:host .initializing{color:var(--mdc-outlined-text-field-label-text-color-SCOPED-IN-definition-list-gBL6-SCOPED-IN-loading-box-96Dv);font-size:12px}@keyframes dotFlashing{0%,to{opacity:0}50%{opacity:1}}:host .loading-box{display:flex;justify-content:center;align-items:center;flex-direction:column}:host .loading-dots .dot{height:10px;width:10px;margin:0 5px;background-color:#333;border-radius:50%;display:inline-block;animation:dotFlashing 1s infinite}:host .loading-dots .dot:nth-child(1){animation-delay:0s}:host .loading-dots .dot:nth-child(2){animation-delay:.2s}:host .loading-dots .dot:nth-child(3){animation-delay:.4s}\n"] }]
|
|
55
55
|
}] });
|
|
56
56
|
|
|
57
57
|
/**
|
|
@@ -17,13 +17,13 @@ let NavigationListItemMoleculeStore = class NavigationListItemMoleculeStore exte
|
|
|
17
17
|
this.selected = input(false);
|
|
18
18
|
this.activated = input(false);
|
|
19
19
|
}
|
|
20
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
21
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NavigationListItemMoleculeStore, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
21
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.2", type: NavigationListItemMoleculeStore, isStandalone: true, selector: "molecules-navigation-list-item", inputs: { action: { classPropertyName: "action", publicName: "action", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, activated: { classPropertyName: "activated", publicName: "activated", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 }); }
|
|
22
22
|
};
|
|
23
23
|
NavigationListItemMoleculeStore = __decorate([
|
|
24
24
|
TokenizedType()
|
|
25
25
|
], NavigationListItemMoleculeStore);
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NavigationListItemMoleculeStore, decorators: [{
|
|
27
27
|
type: Directive,
|
|
28
28
|
args: [{ standalone: true, selector: 'molecules-navigation-list-item' }]
|
|
29
29
|
}] });
|
|
@@ -32,8 +32,8 @@ class NavigationListItemMolecule extends NgAtomicComponent {
|
|
|
32
32
|
super(...arguments);
|
|
33
33
|
this.store = inject(NavigationListItemMoleculeStore);
|
|
34
34
|
}
|
|
35
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
36
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NavigationListItemMolecule, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
36
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.2", type: NavigationListItemMolecule, isStandalone: true, selector: "molecules-navigation-list-item", usesInheritance: true, hostDirectives: [{ directive: NavigationListItemMoleculeStore, inputs: ["action", "action", "selected", "selected", "activated", "activated"] }], ngImport: i0, template: `
|
|
37
37
|
<mat-list-item [activated]="store.activated()" [ngClass]="{activated: store.activated()}">
|
|
38
38
|
<atoms-icon
|
|
39
39
|
matListItemIcon
|
|
@@ -48,9 +48,9 @@ class NavigationListItemMolecule extends NgAtomicComponent {
|
|
|
48
48
|
}
|
|
49
49
|
</div>
|
|
50
50
|
</mat-list-item>
|
|
51
|
-
`, isInline: true, styles: [":host{display:block;--primary-color: #404040;--primary-color-SCOPED-IN-navigation-list-item-
|
|
51
|
+
`, isInline: true, styles: [":host{display:block;--primary-color: #404040;--primary-color-SCOPED-IN-navigation-list-item-om3U: var(--primary-color);--surface-color: #f0f0f0;--surface-color-SCOPED-IN-navigation-list-item-om3U: var(--surface-color);--background-color: #f0f0f0;--background-color-SCOPED-IN-navigation-list-item-om3U: var(--background-color);--on-primary-color: #f0f0f0;--on-primary-color-SCOPED-IN-navigation-list-item-om3U: var(--on-primary-color);--on-background-color: #404040;--on-background-color-SCOPED-IN-navigation-list-item-om3U: var(--on-background-color);--on-surface-color: #404040;--on-surface-color-SCOPED-IN-navigation-list-item-om3U: var(--on-surface-color);--mat-badge-background-color-SCOPED-IN-navigation-list-item-om3U: var(--mat-badge-background-color)}:host{--mdc-list-list-item-hover-label-text-color: var(--on-background-color);--mdc-list-list-item-label-text-color: var(--on-background-color);--mdc-list-list-item-supporting-text-color: var(--on-background-color);--mat-list-list-item-leading-icon-end-space: 16px}:host [matListItemTitle]{display:flex;align-items:center;gap:4px}:host mat-list-item.activated{background-color:var(--on-background-color-SCOPED-IN-navigation-list-item-om3U);color:var(--on-surface-color-SCOPED-IN-navigation-list-item-om3U)}:host mat-list-item.activated atoms-icon{--on-background-color: var(--background-color-SCOPED-IN-navigation-list-item-om3U)}:host ::ng-deep .mat-list-item .mat-list-item-content{display:flex;align-items:center;grid-gap:8px;padding-top:8px;padding-bottom:8px;cursor:pointer;color:var(--on-background-color-SCOPED-IN-navigation-list-item-om3U);font-size:12px}:host ::ng-deep .mat-list-item .mat-list-text{padding-left:8px!important}:host *{--background-color: var(--background-color-SCOPED-IN-navigation-list-item-om3U);--on-background-color: var(--on-background-color-SCOPED-IN-navigation-list-item-om3U);--surface-color: var(--surface-color-SCOPED-IN-navigation-list-item-om3U);--on-surface-color: var(--on-surface-color-SCOPED-IN-navigation-list-item-om3U);--primary-color: var(--on-primary-color-SCOPED-IN-navigation-list-item-om3U);--on-primary-color: var(--primary-color-SCOPED-IN-navigation-list-item-om3U)}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i1.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i1.MatListItemIcon, selector: "[matListItemIcon]" }, { kind: "directive", type: i1.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "directive", type: i1.MatListItemMeta, selector: "[matListItemMeta]" }, { kind: "ngmodule", type: MatBadgeModule }, { kind: "component", type: IconAtom, selector: "atoms-icon", inputs: ["name", "color"] }, { kind: "component", type: BadgeAtom, selector: "atoms-badge", inputs: ["value"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
52
52
|
}
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NavigationListItemMolecule, decorators: [{
|
|
54
54
|
type: Component,
|
|
55
55
|
args: [{ selector: 'molecules-navigation-list-item', standalone: true, imports: [
|
|
56
56
|
MatIconModule,
|
|
@@ -79,7 +79,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImpor
|
|
|
79
79
|
directive: NavigationListItemMoleculeStore,
|
|
80
80
|
inputs: ['action', 'selected', 'activated'],
|
|
81
81
|
},
|
|
82
|
-
], styles: [":host{display:block;--primary-color: #404040;--primary-color-SCOPED-IN-navigation-list-item-
|
|
82
|
+
], styles: [":host{display:block;--primary-color: #404040;--primary-color-SCOPED-IN-navigation-list-item-om3U: var(--primary-color);--surface-color: #f0f0f0;--surface-color-SCOPED-IN-navigation-list-item-om3U: var(--surface-color);--background-color: #f0f0f0;--background-color-SCOPED-IN-navigation-list-item-om3U: var(--background-color);--on-primary-color: #f0f0f0;--on-primary-color-SCOPED-IN-navigation-list-item-om3U: var(--on-primary-color);--on-background-color: #404040;--on-background-color-SCOPED-IN-navigation-list-item-om3U: var(--on-background-color);--on-surface-color: #404040;--on-surface-color-SCOPED-IN-navigation-list-item-om3U: var(--on-surface-color);--mat-badge-background-color-SCOPED-IN-navigation-list-item-om3U: var(--mat-badge-background-color)}:host{--mdc-list-list-item-hover-label-text-color: var(--on-background-color);--mdc-list-list-item-label-text-color: var(--on-background-color);--mdc-list-list-item-supporting-text-color: var(--on-background-color);--mat-list-list-item-leading-icon-end-space: 16px}:host [matListItemTitle]{display:flex;align-items:center;gap:4px}:host mat-list-item.activated{background-color:var(--on-background-color-SCOPED-IN-navigation-list-item-om3U);color:var(--on-surface-color-SCOPED-IN-navigation-list-item-om3U)}:host mat-list-item.activated atoms-icon{--on-background-color: var(--background-color-SCOPED-IN-navigation-list-item-om3U)}:host ::ng-deep .mat-list-item .mat-list-item-content{display:flex;align-items:center;grid-gap:8px;padding-top:8px;padding-bottom:8px;cursor:pointer;color:var(--on-background-color-SCOPED-IN-navigation-list-item-om3U);font-size:12px}:host ::ng-deep .mat-list-item .mat-list-text{padding-left:8px!important}:host *{--background-color: var(--background-color-SCOPED-IN-navigation-list-item-om3U);--on-background-color: var(--on-background-color-SCOPED-IN-navigation-list-item-om3U);--surface-color: var(--surface-color-SCOPED-IN-navigation-list-item-om3U);--on-surface-color: var(--on-surface-color-SCOPED-IN-navigation-list-item-om3U);--primary-color: var(--on-primary-color-SCOPED-IN-navigation-list-item-om3U);--on-primary-color: var(--primary-color-SCOPED-IN-navigation-list-item-om3U)}\n"] }]
|
|
83
83
|
}] });
|
|
84
84
|
|
|
85
85
|
/**
|
|
@@ -9,8 +9,8 @@ class NestedMenuMolecule {
|
|
|
9
9
|
constructor() {
|
|
10
10
|
this.action = new EventEmitter();
|
|
11
11
|
}
|
|
12
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NestedMenuMolecule, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: NestedMenuMolecule, isStandalone: true, selector: "molecules-nested-menu", inputs: { actions: "actions" }, outputs: { action: "action" }, viewQueries: [{ propertyName: "childMenu", first: true, predicate: ["childMenu"], descendants: true }], ngImport: i0, template: `
|
|
14
14
|
<mat-menu #childMenu="matMenu" [overlapTrigger]="false">
|
|
15
15
|
<span *ngFor="let _action of actions">
|
|
16
16
|
<span *ngIf="_action?.children">
|
|
@@ -35,7 +35,7 @@ class NestedMenuMolecule {
|
|
|
35
35
|
</mat-menu>
|
|
36
36
|
`, isInline: true, dependencies: [{ kind: "component", type: NestedMenuMolecule, selector: "molecules-nested-menu", inputs: ["actions"], outputs: ["action"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i2.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
37
37
|
}
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NestedMenuMolecule, decorators: [{
|
|
39
39
|
type: Component,
|
|
40
40
|
args: [{
|
|
41
41
|
selector: 'molecules-nested-menu',
|