@ng-atomic/components 18.2.0 → 18.4.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/smart-menu-button/smart-menu-button.atom.d.ts +3 -3
- package/components.module.d.ts +6 -1
- package/esm2022/atoms/icon/icon.atom.mjs +2 -2
- package/esm2022/atoms/smart-menu-button/smart-menu-button.atom.mjs +77 -114
- package/esm2022/components.module.mjs +7 -3
- package/esm2022/extras/editor/editor.component.mjs +78 -46
- package/esm2022/frames/app/app.frame.mjs +130 -70
- package/esm2022/frames/auto-layout/auto-layout.frame.mjs +29 -7
- package/esm2022/frames/columns/columns.frame.mjs +2 -2
- package/esm2022/frames/divider/divider.frame.mjs +2 -2
- package/esm2022/frames/drawer/drawer.frame.mjs +2 -2
- package/esm2022/frames/entrance/entrance.frame.mjs +2 -2
- package/esm2022/frames/fab/fab.frame.mjs +2 -2
- package/esm2022/frames/frames.module.mjs +3 -3
- package/esm2022/frames/line-up/line-up.animations.mjs +3 -7
- package/esm2022/frames/line-up/line-up.frame.mjs +2 -2
- package/esm2022/frames/loading/loading.frame.mjs +2 -2
- package/esm2022/frames/progress-bar/index.mjs +2 -0
- package/esm2022/frames/progress-bar/ng-atomic-components-frames-progress-bar.mjs +5 -0
- package/esm2022/frames/progress-bar/progress-bar.frame.mjs +53 -0
- package/esm2022/frames/router-outlet/router-outlet.frame.mjs +96 -41
- package/esm2022/frames/scroll/scroll.frame.mjs +32 -14
- package/esm2022/frames/scroll-v2/index.mjs +2 -2
- package/esm2022/frames/side-app/index.mjs +2 -0
- package/esm2022/frames/side-app/ng-atomic-components-frames-side-app.mjs +5 -0
- package/esm2022/frames/side-app/side-app.frame.mjs +74 -0
- package/esm2022/frames/side-nav/side-nav.frame.mjs +27 -21
- package/esm2022/frames/smart-menu/smart-menu.frame.mjs +2 -2
- package/esm2022/frames/tabs/tabs.frame.mjs +13 -7
- package/esm2022/frames/vertical-hide/vertical-hide.frame.mjs +11 -18
- package/esm2022/molecules/action-input-field/action-input-field.molecule.mjs +2 -2
- package/esm2022/molecules/actions-column/actions-column.molecule.mjs +13 -7
- package/esm2022/molecules/checkbox-column/checkbox-column.molecule.mjs +48 -21
- package/esm2022/molecules/date-input-field/date-input-field.molecule.mjs +2 -2
- package/esm2022/molecules/date-range-input-field/date-range-input-field.molecule.mjs +2 -2
- package/esm2022/molecules/file-input-field/file-input-field.molecule.mjs +2 -2
- package/esm2022/molecules/grid-item/grid-item.molecule.mjs +2 -2
- package/esm2022/molecules/list-item/index.mjs +2 -0
- package/esm2022/molecules/list-item/list-item.molecule.mjs +198 -0
- package/esm2022/molecules/list-item/ng-atomic-components-molecules-list-item.mjs +5 -0
- package/esm2022/molecules/loading-box/loading-box.molecule.mjs +2 -2
- package/esm2022/molecules/molecules.module.mjs +4 -1
- package/esm2022/molecules/navigation-list-item/navigation-list-item.molecule.mjs +2 -2
- package/esm2022/molecules/select-input-field/select-input-field.molecule.mjs +9 -5
- package/esm2022/molecules/smart-column/smart-column.molecule.mjs +129 -43
- package/esm2022/molecules/tree-column/tree-column.molecule.mjs +37 -25
- package/esm2022/organisms/action-buttons-section/action-buttons-section.organism.mjs +2 -2
- package/esm2022/organisms/action-input-section/action-input-section.organism.mjs +2 -2
- package/esm2022/organisms/agreement-input-section/agreement-input-section.organism.mjs +3 -3
- package/esm2022/organisms/card-input-section/card-input-section.organism.mjs +2 -2
- package/esm2022/organisms/cvc-and-exp-input-section/cvc-and-exp-input-section.organism.mjs +2 -2
- package/esm2022/organisms/date-input-section/date-input-section.organism.mjs +4 -4
- package/esm2022/organisms/date-range-input-section/date-range-input-section.organism.mjs +4 -4
- package/esm2022/organisms/definition-list/definition-list.organism.mjs +2 -2
- package/esm2022/organisms/file-input-section/file-input-section.organism.mjs +2 -2
- package/esm2022/organisms/filters-section/filters-section.organism.mjs +5 -5
- package/esm2022/organisms/graphql-editor/graphql-editor.organism.mjs +1 -1
- package/esm2022/organisms/grid-cards-section/grid-cards-section.organism.mjs +2 -2
- package/esm2022/organisms/heading/heading.organism.mjs +2 -2
- package/esm2022/{sheets/actions → organisms/list}/index.mjs +2 -2
- package/esm2022/organisms/list/list.organism.mjs +161 -0
- package/esm2022/{sheets/actions/ng-atomic-components-sheets-actions.mjs → organisms/list/ng-atomic-components-organisms-list.mjs} +1 -1
- package/esm2022/organisms/menu-footer/menu-footer.organism.mjs +2 -2
- package/esm2022/organisms/menu-header/menu-header.organism.mjs +2 -2
- package/esm2022/organisms/mermaid-section/mermaid-section.organism.mjs +39 -33
- package/esm2022/organisms/messages-section/messages-section.organism.mjs +2 -2
- package/esm2022/organisms/navigation-list/navigation-list.organism.mjs +2 -2
- package/esm2022/organisms/navigator/navigator.organism.mjs +49 -19
- package/esm2022/organisms/number-input-section/number-input-section.organism.mjs +2 -2
- package/esm2022/organisms/organisms.module.mjs +5 -5
- package/esm2022/organisms/paginator/paginator.organism.mjs +2 -2
- package/esm2022/organisms/password-input-section/password-input-section.organism.mjs +2 -2
- package/esm2022/organisms/select-input-section/select-input-section.organism.mjs +4 -4
- package/esm2022/organisms/selection-list/selection-list.organism.mjs +1 -1
- package/esm2022/organisms/slider-input-section/slider-input-section.organism.mjs +4 -4
- package/esm2022/organisms/social-login-section/social-login-section.organism.mjs +2 -2
- package/esm2022/organisms/table/index.mjs +2 -1
- package/esm2022/organisms/table/table.helpers.mjs +4 -4
- package/esm2022/organisms/table/table.organism.mjs +152 -141
- package/esm2022/organisms/text-input-section/text-input-section.organism.mjs +4 -4
- package/esm2022/organisms/textarea-section/textarea-section.organism.mjs +2 -2
- package/esm2022/organisms/thread-messages-section/thread-messages-section.organism.mjs +2 -2
- package/esm2022/organisms/tree-list/index.mjs +2 -0
- package/esm2022/organisms/tree-list/ng-atomic-components-organisms-tree-list.mjs +5 -0
- package/esm2022/organisms/tree-list/tree-list.organism.mjs +125 -0
- package/esm2022/pages/_index/index.page.mjs +169 -62
- package/esm2022/pages/columns/columns.page.mjs +10 -9
- package/esm2022/pages/form/form.page.mjs +27 -12
- package/esm2022/pages/terms/terms.page.mjs +2 -2
- package/esm2022/templates/_index/index.template.mjs +276 -155
- package/esm2022/templates/background/background.template.mjs +2 -2
- package/esm2022/templates/code-editor/code-editor.template.mjs +52 -15
- package/esm2022/templates/columns/columns.template.mjs +6 -4
- package/esm2022/templates/entrance/entrance.template.mjs +12 -11
- package/esm2022/templates/form/form.builder.mjs +93 -71
- package/esm2022/templates/form/form.template.mjs +47 -28
- package/esm2022/templates/icon-button-menu/icon-button-menu.template.mjs +69 -16
- package/esm2022/templates/menu/menu.template.mjs +2 -2
- package/esm2022/templates/messages/messages.template.mjs +71 -65
- package/esm2022/templates/selection/selection.template.mjs +2 -2
- package/esm2022/templates/settings/settings.template.mjs +2 -2
- package/extras/editor/editor.component.d.ts +19 -10
- package/fesm2022/ng-atomic-components-atoms-icon.mjs +2 -2
- package/fesm2022/ng-atomic-components-atoms-smart-menu-button.mjs +76 -113
- package/fesm2022/ng-atomic-components-atoms-smart-menu-button.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-extras-editor.mjs +79 -47
- package/fesm2022/ng-atomic-components-extras-editor.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-app.mjs +129 -69
- package/fesm2022/ng-atomic-components-frames-app.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-auto-layout.mjs +29 -7
- package/fesm2022/ng-atomic-components-frames-auto-layout.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-columns.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-divider.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-drawer.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-entrance.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-fab.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-line-up.mjs +4 -8
- package/fesm2022/ng-atomic-components-frames-line-up.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-loading.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-progress-bar.mjs +60 -0
- package/fesm2022/ng-atomic-components-frames-progress-bar.mjs.map +1 -0
- package/fesm2022/ng-atomic-components-frames-router-outlet.mjs +96 -41
- package/fesm2022/ng-atomic-components-frames-router-outlet.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-scroll-v2.mjs +1 -48
- package/fesm2022/ng-atomic-components-frames-scroll-v2.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-scroll.mjs +31 -13
- package/fesm2022/ng-atomic-components-frames-scroll.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-side-app.mjs +81 -0
- package/fesm2022/ng-atomic-components-frames-side-app.mjs.map +1 -0
- package/fesm2022/ng-atomic-components-frames-side-nav.mjs +26 -20
- package/fesm2022/ng-atomic-components-frames-side-nav.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-smart-menu.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-tabs.mjs +12 -6
- package/fesm2022/ng-atomic-components-frames-tabs.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-vertical-hide.mjs +10 -17
- package/fesm2022/ng-atomic-components-frames-vertical-hide.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules-action-input-field.mjs +1 -1
- package/fesm2022/ng-atomic-components-molecules-action-input-field.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules-actions-column.mjs +12 -6
- package/fesm2022/ng-atomic-components-molecules-actions-column.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules-checkbox-column.mjs +47 -21
- package/fesm2022/ng-atomic-components-molecules-checkbox-column.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules-date-input-field.mjs +2 -2
- package/fesm2022/ng-atomic-components-molecules-date-range-input-field.mjs +2 -2
- package/fesm2022/ng-atomic-components-molecules-file-input-field.mjs +1 -1
- package/fesm2022/ng-atomic-components-molecules-file-input-field.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules-grid-item.mjs +2 -2
- package/fesm2022/ng-atomic-components-molecules-list-item.mjs +203 -0
- package/fesm2022/ng-atomic-components-molecules-list-item.mjs.map +1 -0
- package/fesm2022/ng-atomic-components-molecules-loading-box.mjs +2 -2
- package/fesm2022/ng-atomic-components-molecules-navigation-list-item.mjs +2 -2
- package/fesm2022/ng-atomic-components-molecules-select-input-field.mjs +8 -4
- package/fesm2022/ng-atomic-components-molecules-select-input-field.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules-smart-column.mjs +128 -43
- package/fesm2022/ng-atomic-components-molecules-smart-column.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules-tree-column.mjs +36 -24
- package/fesm2022/ng-atomic-components-molecules-tree-column.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules.mjs +3 -0
- package/fesm2022/ng-atomic-components-molecules.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-action-buttons-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-action-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-agreement-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-agreement-input-section.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-card-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-cvc-and-exp-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-date-input-section.mjs +3 -3
- package/fesm2022/ng-atomic-components-organisms-date-input-section.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-date-range-input-section.mjs +3 -3
- package/fesm2022/ng-atomic-components-organisms-date-range-input-section.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-definition-list.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-file-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-filters-section.mjs +4 -4
- package/fesm2022/ng-atomic-components-organisms-filters-section.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-graphql-editor.mjs +1 -1
- package/fesm2022/ng-atomic-components-organisms-graphql-editor.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-grid-cards-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-heading.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-list.mjs +166 -0
- package/fesm2022/ng-atomic-components-organisms-list.mjs.map +1 -0
- package/fesm2022/ng-atomic-components-organisms-menu-footer.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-menu-header.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-mermaid-section.mjs +38 -32
- package/fesm2022/ng-atomic-components-organisms-mermaid-section.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-messages-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-navigation-list.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-navigator.mjs +48 -18
- package/fesm2022/ng-atomic-components-organisms-navigator.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-number-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-number-input-section.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-paginator.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-password-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-password-input-section.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-select-input-section.mjs +3 -3
- package/fesm2022/ng-atomic-components-organisms-select-input-section.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-selection-list.mjs +1 -1
- package/fesm2022/ng-atomic-components-organisms-selection-list.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-slider-input-section.mjs +3 -3
- package/fesm2022/ng-atomic-components-organisms-slider-input-section.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-social-login-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-table.mjs +156 -145
- package/fesm2022/ng-atomic-components-organisms-table.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-text-input-section.mjs +3 -3
- package/fesm2022/ng-atomic-components-organisms-text-input-section.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-textarea-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-textarea-section.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-thread-messages-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-tree-list.mjs +132 -0
- package/fesm2022/ng-atomic-components-organisms-tree-list.mjs.map +1 -0
- package/fesm2022/ng-atomic-components-organisms.mjs +4 -4
- package/fesm2022/ng-atomic-components-organisms.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-pages-_index.mjs +168 -62
- package/fesm2022/ng-atomic-components-pages-_index.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-pages-columns.mjs +9 -8
- package/fesm2022/ng-atomic-components-pages-columns.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-pages-form.mjs +26 -11
- package/fesm2022/ng-atomic-components-pages-form.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-pages-terms.mjs +1 -1
- package/fesm2022/ng-atomic-components-pages-terms.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-templates-_index.mjs +276 -155
- package/fesm2022/ng-atomic-components-templates-_index.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-templates-background.mjs +2 -2
- package/fesm2022/ng-atomic-components-templates-code-editor.mjs +51 -14
- package/fesm2022/ng-atomic-components-templates-code-editor.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-templates-columns.mjs +5 -3
- package/fesm2022/ng-atomic-components-templates-columns.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-templates-entrance.mjs +11 -10
- package/fesm2022/ng-atomic-components-templates-entrance.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-templates-form.mjs +139 -99
- package/fesm2022/ng-atomic-components-templates-form.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-templates-icon-button-menu.mjs +68 -15
- package/fesm2022/ng-atomic-components-templates-icon-button-menu.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-templates-menu.mjs +2 -2
- package/fesm2022/ng-atomic-components-templates-messages.mjs +71 -65
- package/fesm2022/ng-atomic-components-templates-messages.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-templates-selection.mjs +2 -2
- package/fesm2022/ng-atomic-components-templates-settings.mjs +2 -2
- package/fesm2022/ng-atomic-components.mjs +7 -3
- package/fesm2022/ng-atomic-components.mjs.map +1 -1
- package/frames/app/app.frame.d.ts +13 -1
- package/frames/auto-layout/auto-layout.frame.d.ts +7 -1
- package/frames/progress-bar/index.d.ts +1 -0
- package/frames/progress-bar/progress-bar.frame.d.ts +14 -0
- package/frames/router-outlet/router-outlet.frame.d.ts +20 -9
- package/frames/scroll/scroll.frame.d.ts +5 -1
- package/frames/scroll-v2/index.d.ts +1 -1
- package/frames/side-app/index.d.ts +1 -0
- package/frames/side-app/side-app.frame.d.ts +20 -0
- package/frames/side-nav/side-nav.frame.d.ts +6 -2
- package/frames/tabs/tabs.frame.d.ts +2 -1
- package/frames/vertical-hide/vertical-hide.frame.d.ts +2 -2
- package/molecules/actions-column/actions-column.molecule.d.ts +3 -2
- package/molecules/checkbox-column/checkbox-column.molecule.d.ts +12 -4
- package/molecules/list-item/index.d.ts +1 -0
- package/molecules/list-item/list-item.molecule.d.ts +50 -0
- package/molecules/molecules.module.d.ts +3 -0
- package/molecules/smart-column/smart-column.molecule.d.ts +34 -9
- package/molecules/tree-column/tree-column.molecule.d.ts +6 -2
- package/organisms/list/index.d.ts +1 -0
- package/organisms/{smart-list/smart-list.organism.d.ts → list/list.organism.d.ts} +11 -11
- package/organisms/mermaid-section/mermaid-section.organism.d.ts +10 -10
- package/organisms/navigator/navigator.organism.d.ts +8 -6
- package/organisms/organisms.module.d.ts +1 -1
- package/organisms/table/index.d.ts +1 -0
- package/organisms/table/table.helpers.d.ts +1 -1
- package/organisms/table/table.organism.d.ts +32 -1
- package/organisms/tree-list/index.d.ts +1 -0
- package/organisms/tree-list/tree-list.organism.d.ts +33 -0
- package/package.json +37 -25
- package/pages/_index/index.page.d.ts +72 -43
- package/pages/columns/columns.page.d.ts +5 -2
- package/pages/form/form.page.d.ts +11 -2
- package/templates/_index/index.template.d.ts +40 -11
- package/templates/code-editor/code-editor.template.d.ts +6 -3
- package/templates/entrance/entrance.template.d.ts +1 -1
- package/templates/form/form.builder.d.ts +10 -3
- package/templates/form/form.template.d.ts +2 -1
- package/templates/icon-button-menu/icon-button-menu.template.d.ts +3 -2
- package/templates/messages/messages.template.d.ts +21 -17
- package/esm2022/frames/scroll-v2/scroll.frame.mjs +0 -46
- package/esm2022/organisms/smart-list/index.mjs +0 -2
- package/esm2022/organisms/smart-list/ng-atomic-components-organisms-smart-list.mjs +0 -5
- package/esm2022/organisms/smart-list/smart-list.organism.mjs +0 -218
- package/esm2022/sheets/actions/actions.sheet.mjs +0 -45
- package/esm2022/sheets/index.mjs +0 -3
- package/esm2022/sheets/ng-atomic-components-sheets.mjs +0 -5
- package/esm2022/sheets/sheets.module.mjs +0 -25
- package/esm2022/sheets/sheets.service.mjs +0 -20
- package/fesm2022/ng-atomic-components-organisms-smart-list.mjs +0 -223
- package/fesm2022/ng-atomic-components-organisms-smart-list.mjs.map +0 -1
- package/fesm2022/ng-atomic-components-sheets-actions.mjs +0 -52
- package/fesm2022/ng-atomic-components-sheets-actions.mjs.map +0 -1
- package/fesm2022/ng-atomic-components-sheets.mjs +0 -48
- package/fesm2022/ng-atomic-components-sheets.mjs.map +0 -1
- package/frames/scroll-v2/scroll.frame.d.ts +0 -9
- package/organisms/smart-list/index.d.ts +0 -1
- package/sheets/actions/actions.sheet.d.ts +0 -9
- package/sheets/actions/index.d.ts +0 -1
- package/sheets/index.d.ts +0 -2
- package/sheets/sheets.module.d.ts +0 -11
- package/sheets/sheets.service.d.ts +0 -10
|
@@ -1,51 +1,92 @@
|
|
|
1
|
+
import { __decorate } from 'tslib';
|
|
1
2
|
import * as i1 from '@angular/cdk/clipboard';
|
|
2
3
|
import { ClipboardModule } from '@angular/cdk/clipboard';
|
|
3
4
|
import { CdkTable, CdkColumnDef, CdkCellDef, CdkHeaderCellDef } from '@angular/cdk/table';
|
|
4
5
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { input, signal, Directive,
|
|
6
|
+
import { InjectionToken, inject, Pipe, input, signal, Directive, viewChild, EventEmitter, effect, Component, ViewEncapsulation, ChangeDetectionStrategy, Output } from '@angular/core';
|
|
7
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
6
8
|
import { MatButtonModule } from '@angular/material/button';
|
|
7
9
|
import * as i3 from '@angular/material/icon';
|
|
8
10
|
import { MatIconModule } from '@angular/material/icon';
|
|
11
|
+
import { MatInputModule } from '@angular/material/input';
|
|
9
12
|
import * as i4 from '@angular/material/table';
|
|
10
13
|
import { MatTableModule } from '@angular/material/table';
|
|
11
14
|
import * as i5 from '@angular/material/tooltip';
|
|
12
15
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
13
|
-
import { DataAccessorPipe } from '@ng-atomic/common/pipes/data-accessor';
|
|
16
|
+
import { injectDataAccessor, DataAccessorPipe } from '@ng-atomic/common/pipes/data-accessor';
|
|
14
17
|
import * as i2 from '@ng-atomic/common/pipes/smart-exp';
|
|
15
18
|
import { SmartExpModule } from '@ng-atomic/common/pipes/smart-exp';
|
|
16
|
-
import { NgAtomicComponent } from '@ng-atomic/core';
|
|
19
|
+
import { InjectableComponent, TokenizedType, NgAtomicComponent } from '@ng-atomic/core';
|
|
17
20
|
|
|
18
|
-
|
|
21
|
+
const EDITABLE_RESOLVER = new InjectionToken('EDITABLE_RESOLVER');
|
|
22
|
+
function provideEditableResolver(resolverFactory) {
|
|
23
|
+
return { provide: EDITABLE_RESOLVER, useFactory: resolverFactory };
|
|
24
|
+
}
|
|
25
|
+
class EditablePipe {
|
|
26
|
+
constructor() {
|
|
27
|
+
this.resolver = inject(EDITABLE_RESOLVER, { optional: true }) || (() => false);
|
|
28
|
+
}
|
|
29
|
+
transform(value, name) {
|
|
30
|
+
return this.resolver(value, name);
|
|
31
|
+
}
|
|
32
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: EditablePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
33
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.1.2", ngImport: i0, type: EditablePipe, isStandalone: true, name: "editable" }); }
|
|
34
|
+
}
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: EditablePipe, decorators: [{
|
|
36
|
+
type: Pipe,
|
|
37
|
+
args: [{
|
|
38
|
+
name: 'editable',
|
|
39
|
+
standalone: true,
|
|
40
|
+
pure: true,
|
|
41
|
+
}]
|
|
42
|
+
}] });
|
|
43
|
+
var ActionId;
|
|
44
|
+
(function (ActionId) {
|
|
45
|
+
ActionId["UPDATE_VALUE"] = "[@ng-atomic/components/molecules/smart-column] update value";
|
|
46
|
+
})(ActionId || (ActionId = {}));
|
|
47
|
+
let SmartColumnMoleculeStore = class SmartColumnMoleculeStore extends InjectableComponent {
|
|
19
48
|
constructor() {
|
|
49
|
+
super(...arguments);
|
|
50
|
+
this.dataAccessor = injectDataAccessor();
|
|
51
|
+
this.index = input(null);
|
|
20
52
|
this.sort = input('none');
|
|
53
|
+
this.sticky = input(false);
|
|
54
|
+
this.headerText = input('');
|
|
55
|
+
this.name = input.required();
|
|
56
|
+
this.editable = input(false);
|
|
21
57
|
this.tooltipText = signal(null);
|
|
22
58
|
}
|
|
23
|
-
static { this
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
59
|
+
static { this.ActionId = ActionId; }
|
|
60
|
+
isNumeric(value) {
|
|
61
|
+
return !isNaN(value);
|
|
62
|
+
}
|
|
63
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SmartColumnMoleculeStore, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
64
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.2", type: SmartColumnMoleculeStore, isStandalone: true, inputs: { index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: false, transformFunction: null }, sort: { classPropertyName: "sort", publicName: "sort", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null }, headerText: { classPropertyName: "headerText", publicName: "headerText", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 }); }
|
|
65
|
+
};
|
|
66
|
+
SmartColumnMoleculeStore = __decorate([
|
|
67
|
+
TokenizedType()
|
|
68
|
+
], SmartColumnMoleculeStore);
|
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SmartColumnMoleculeStore, decorators: [{
|
|
27
70
|
type: Directive,
|
|
28
71
|
args: [{ standalone: true }]
|
|
29
72
|
}] });
|
|
30
73
|
class SmartColumnMolecule extends NgAtomicComponent {
|
|
31
74
|
constructor() {
|
|
32
75
|
super();
|
|
33
|
-
this.store = inject(
|
|
76
|
+
this.store = inject(SmartColumnMoleculeStore);
|
|
34
77
|
this._table = inject(CdkTable, { optional: true });
|
|
35
|
-
this.headerText = input('');
|
|
36
|
-
this.name = input.required();
|
|
37
78
|
this.columnDef = viewChild.required(CdkColumnDef);
|
|
38
79
|
this.cell = viewChild.required(CdkCellDef);
|
|
39
80
|
this.headerCell = viewChild.required(CdkHeaderCellDef);
|
|
40
81
|
this.headerClick = new EventEmitter();
|
|
41
82
|
effect(() => {
|
|
42
83
|
if (this.columnDef())
|
|
43
|
-
this.columnDef().name = this.name();
|
|
84
|
+
this.columnDef().name = this.store.name();
|
|
44
85
|
});
|
|
45
86
|
}
|
|
46
87
|
ngOnInit() {
|
|
47
88
|
if (this._table) {
|
|
48
|
-
this.columnDef().name = this.name();
|
|
89
|
+
this.columnDef().name = this.store.name();
|
|
49
90
|
this.columnDef().cell = this.cell();
|
|
50
91
|
this.columnDef().headerCell = this.headerCell();
|
|
51
92
|
this._table.addColumnDef(this.columnDef());
|
|
@@ -56,13 +97,27 @@ class SmartColumnMolecule extends NgAtomicComponent {
|
|
|
56
97
|
this._table.removeColumnDef(this.columnDef());
|
|
57
98
|
}
|
|
58
99
|
}
|
|
100
|
+
onNgModelChange(item, event) {
|
|
101
|
+
const value = event.target.value;
|
|
102
|
+
const pre = this.store.dataAccessor(item, this.store.name());
|
|
103
|
+
if (pre === Number(value))
|
|
104
|
+
return;
|
|
105
|
+
this.dispatch({
|
|
106
|
+
id: ActionId.UPDATE_VALUE,
|
|
107
|
+
payload: {
|
|
108
|
+
item,
|
|
109
|
+
name: this.store.name(),
|
|
110
|
+
value: Number(event.target.value),
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
59
114
|
copied() {
|
|
60
115
|
this.store.tooltipText.set('copied!');
|
|
61
116
|
setTimeout(() => this.store.tooltipText.set(null), 1000);
|
|
62
117
|
}
|
|
63
118
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SmartColumnMolecule, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
64
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.2", type: SmartColumnMolecule, isStandalone: true, selector: "molecules-smart-column",
|
|
65
|
-
<ng-container matColumnDef>
|
|
119
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.2", type: SmartColumnMolecule, isStandalone: true, selector: "molecules-smart-column", outputs: { headerClick: "headerClick" }, viewQueries: [{ propertyName: "columnDef", first: true, predicate: CdkColumnDef, descendants: true, isSignal: true }, { propertyName: "cell", first: true, predicate: CdkCellDef, descendants: true, isSignal: true }, { propertyName: "headerCell", first: true, predicate: CdkHeaderCellDef, descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: SmartColumnMoleculeStore, inputs: ["index", "index", "sort", "sort", "sticky", "sticky", "headerText", "headerText", "name", "name", "editable", "editable"] }], ngImport: i0, template: `
|
|
120
|
+
<ng-container matColumnDef [sticky]="store.sticky()">
|
|
66
121
|
<th
|
|
67
122
|
mat-header-cell
|
|
68
123
|
*matHeaderCellDef
|
|
@@ -73,7 +128,7 @@ class SmartColumnMolecule extends NgAtomicComponent {
|
|
|
73
128
|
class="nowrap"
|
|
74
129
|
style="display: flex; align-items: center;"
|
|
75
130
|
>
|
|
76
|
-
<span>{{ headerText() }}</span>
|
|
131
|
+
<span>{{ store.headerText() }}</span>
|
|
77
132
|
@switch(store.sort()) {
|
|
78
133
|
@case('asc') {
|
|
79
134
|
<mat-icon class="order">south</mat-icon>
|
|
@@ -86,21 +141,31 @@ class SmartColumnMolecule extends NgAtomicComponent {
|
|
|
86
141
|
</th>
|
|
87
142
|
<td
|
|
88
143
|
mat-cell
|
|
89
|
-
*matCellDef="let item"
|
|
144
|
+
*matCellDef="let item; let i = index"
|
|
90
145
|
[style.text-align]="justify"
|
|
91
146
|
>
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
147
|
+
@if(item | editable: store.name()) {
|
|
148
|
+
<input
|
|
149
|
+
class="cell-input"
|
|
150
|
+
type="number"
|
|
151
|
+
[value]="item | dataAccessor:store.name():i"
|
|
152
|
+
(blur)="onNgModelChange(item, $event)"
|
|
153
|
+
>
|
|
154
|
+
} @else {
|
|
155
|
+
<p class="nowrap"
|
|
156
|
+
[cdkCopyToClipboard]="item | dataAccessor:store.name():i | smartExp: store.name()"
|
|
157
|
+
(click)="copied(); tooltip.show()"
|
|
158
|
+
#tooltip="matTooltip"
|
|
159
|
+
[matTooltip]="store.tooltipText() || item | dataAccessor:store.name():i"
|
|
160
|
+
matTooltipPosition="below"
|
|
161
|
+
[style.justify-content]="store.isNumeric(item | dataAccessor:store.name():i) ? 'flex-end' : 'flex-start'"
|
|
162
|
+
>
|
|
163
|
+
{{ item | dataAccessor: store.name():i | smartExp: store.name() }}
|
|
164
|
+
</p>
|
|
165
|
+
}
|
|
101
166
|
</td>
|
|
102
167
|
</ng-container>
|
|
103
|
-
`, isInline: true, styles: ["th[mat-header-cell],td[mat-cell]{cursor:pointer}th[mat-header-cell] mat-icon.order,td[mat-cell] mat-icon.order{width:12px;height:12px;font-size:12px}th[mat-header-cell] p,td[mat-cell] p{width:100%;max-width:200px}th[mat-header-cell] .nowrap,td[mat-cell] .nowrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"], dependencies: [{ kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i1.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "ngmodule", type: SmartExpModule }, { kind: "pipe", type: i2.SmartExpPipe, name: "smartExp" }, { kind: "pipe", type: DataAccessorPipe, name: "dataAccessor" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "directive", type: i4.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i4.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i4.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i4.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i4.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
168
|
+
`, isInline: true, styles: ["@charset \"UTF-8\";th[mat-header-cell],td[mat-cell]{position:relative;cursor:pointer}th[mat-header-cell] mat-icon.order,td[mat-cell] mat-icon.order{width:12px;height:12px;font-size:12px}th[mat-header-cell] .cell-input,td[mat-cell] .cell-input{width:100%;box-sizing:border-box;padding:8px 4px;border:none;text-align:right;font-size:var(--mat-table-row-item-label-text-size, 14px)}th[mat-header-cell] .cell-input[type=number]::-webkit-outer-spin-button,th[mat-header-cell] .cell-input[type=number]::-webkit-inner-spin-button,td[mat-cell] .cell-input[type=number]::-webkit-outer-spin-button,td[mat-cell] .cell-input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}th[mat-header-cell] .cell-input[type=number],td[mat-cell] .cell-input[type=number]{-moz-appearance:textfield}th[mat-header-cell] p,td[mat-cell] p{width:100%;max-width:200px}th[mat-header-cell] .nowrap,td[mat-cell] .nowrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"], dependencies: [{ kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i1.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "ngmodule", type: SmartExpModule }, { kind: "pipe", type: i2.SmartExpPipe, name: "smartExp" }, { kind: "pipe", type: DataAccessorPipe, name: "dataAccessor" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "directive", type: i4.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i4.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i4.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i4.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i4.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "pipe", type: EditablePipe, name: "editable" }, { kind: "ngmodule", type: ReactiveFormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
104
169
|
}
|
|
105
170
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SmartColumnMolecule, decorators: [{
|
|
106
171
|
type: Component,
|
|
@@ -112,8 +177,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImpor
|
|
|
112
177
|
MatIconModule,
|
|
113
178
|
MatTableModule,
|
|
114
179
|
MatTooltipModule,
|
|
180
|
+
MatInputModule,
|
|
181
|
+
EditablePipe,
|
|
182
|
+
ReactiveFormsModule,
|
|
115
183
|
], template: `
|
|
116
|
-
<ng-container matColumnDef>
|
|
184
|
+
<ng-container matColumnDef [sticky]="store.sticky()">
|
|
117
185
|
<th
|
|
118
186
|
mat-header-cell
|
|
119
187
|
*matHeaderCellDef
|
|
@@ -124,7 +192,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImpor
|
|
|
124
192
|
class="nowrap"
|
|
125
193
|
style="display: flex; align-items: center;"
|
|
126
194
|
>
|
|
127
|
-
<span>{{ headerText() }}</span>
|
|
195
|
+
<span>{{ store.headerText() }}</span>
|
|
128
196
|
@switch(store.sort()) {
|
|
129
197
|
@case('asc') {
|
|
130
198
|
<mat-icon class="order">south</mat-icon>
|
|
@@ -137,26 +205,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImpor
|
|
|
137
205
|
</th>
|
|
138
206
|
<td
|
|
139
207
|
mat-cell
|
|
140
|
-
*matCellDef="let item"
|
|
208
|
+
*matCellDef="let item; let i = index"
|
|
141
209
|
[style.text-align]="justify"
|
|
142
210
|
>
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
211
|
+
@if(item | editable: store.name()) {
|
|
212
|
+
<input
|
|
213
|
+
class="cell-input"
|
|
214
|
+
type="number"
|
|
215
|
+
[value]="item | dataAccessor:store.name():i"
|
|
216
|
+
(blur)="onNgModelChange(item, $event)"
|
|
217
|
+
>
|
|
218
|
+
} @else {
|
|
219
|
+
<p class="nowrap"
|
|
220
|
+
[cdkCopyToClipboard]="item | dataAccessor:store.name():i | smartExp: store.name()"
|
|
221
|
+
(click)="copied(); tooltip.show()"
|
|
222
|
+
#tooltip="matTooltip"
|
|
223
|
+
[matTooltip]="store.tooltipText() || item | dataAccessor:store.name():i"
|
|
224
|
+
matTooltipPosition="below"
|
|
225
|
+
[style.justify-content]="store.isNumeric(item | dataAccessor:store.name():i) ? 'flex-end' : 'flex-start'"
|
|
226
|
+
>
|
|
227
|
+
{{ item | dataAccessor: store.name():i | smartExp: store.name() }}
|
|
228
|
+
</p>
|
|
229
|
+
}
|
|
152
230
|
</td>
|
|
153
231
|
</ng-container>
|
|
154
232
|
`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [
|
|
155
233
|
{
|
|
156
|
-
directive:
|
|
157
|
-
inputs: [
|
|
234
|
+
directive: SmartColumnMoleculeStore,
|
|
235
|
+
inputs: [
|
|
236
|
+
'index',
|
|
237
|
+
'sort',
|
|
238
|
+
'sticky',
|
|
239
|
+
'headerText',
|
|
240
|
+
'name',
|
|
241
|
+
'editable',
|
|
242
|
+
],
|
|
158
243
|
},
|
|
159
|
-
], styles: ["th[mat-header-cell],td[mat-cell]{cursor:pointer}th[mat-header-cell] mat-icon.order,td[mat-cell] mat-icon.order{width:12px;height:12px;font-size:12px}th[mat-header-cell] p,td[mat-cell] p{width:100%;max-width:200px}th[mat-header-cell] .nowrap,td[mat-cell] .nowrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"] }]
|
|
244
|
+
], styles: ["@charset \"UTF-8\";th[mat-header-cell],td[mat-cell]{position:relative;cursor:pointer}th[mat-header-cell] mat-icon.order,td[mat-cell] mat-icon.order{width:12px;height:12px;font-size:12px}th[mat-header-cell] .cell-input,td[mat-cell] .cell-input{width:100%;box-sizing:border-box;padding:8px 4px;border:none;text-align:right;font-size:var(--mat-table-row-item-label-text-size, 14px)}th[mat-header-cell] .cell-input[type=number]::-webkit-outer-spin-button,th[mat-header-cell] .cell-input[type=number]::-webkit-inner-spin-button,td[mat-cell] .cell-input[type=number]::-webkit-outer-spin-button,td[mat-cell] .cell-input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}th[mat-header-cell] .cell-input[type=number],td[mat-cell] .cell-input[type=number]{-moz-appearance:textfield}th[mat-header-cell] p,td[mat-cell] p{width:100%;max-width:200px}th[mat-header-cell] .nowrap,td[mat-cell] .nowrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"] }]
|
|
160
245
|
}], ctorParameters: () => [], propDecorators: { headerClick: [{
|
|
161
246
|
type: Output
|
|
162
247
|
}] } });
|
|
@@ -165,5 +250,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImpor
|
|
|
165
250
|
* Generated bundle index. Do not edit.
|
|
166
251
|
*/
|
|
167
252
|
|
|
168
|
-
export { SmartColumnMolecule,
|
|
253
|
+
export { EDITABLE_RESOLVER, EditablePipe, SmartColumnMolecule, SmartColumnMoleculeStore, provideEditableResolver };
|
|
169
254
|
//# sourceMappingURL=ng-atomic-components-molecules-smart-column.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-components-molecules-smart-column.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/smart-column/smart-column.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/smart-column/ng-atomic-components-molecules-smart-column.ts"],"sourcesContent":["import { ClipboardModule } from '@angular/cdk/clipboard';\nimport { CdkCellDef, CdkColumnDef, CdkHeaderCellDef, CdkTable } from '@angular/cdk/table';\nimport { ChangeDetectionStrategy, Output, EventEmitter, Component, ViewEncapsulation, Directive, input, signal, inject, effect, viewChild, OnInit, OnDestroy } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTableModule } from '@angular/material/table';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { DataAccessorPipe } from '@ng-atomic/common/pipes/data-accessor';\nimport { SmartExpModule } from '@ng-atomic/common/pipes/smart-exp';\nimport { NgAtomicComponent } from '@ng-atomic/core';\n\n@Directive({ standalone: true })\nexport class SmartColumnTemplateStore<T> {\n readonly sort = input<'asc' | 'desc' | 'none'>('none');\n readonly tooltipText = signal<string | null>(null);\n}\n\n@Component({\n selector: 'molecules-smart-column',\n standalone: true,\n imports: [\n ClipboardModule,\n SmartExpModule,\n DataAccessorPipe,\n MatButtonModule,\n MatIconModule,\n MatTableModule,\n MatTooltipModule,\n ],\n template: `\n <ng-container matColumnDef>\n <th\n mat-header-cell\n *matHeaderCellDef\n [style.text-align]=\"justify\"\n (click)=\"headerClick.emit()\"\n >\n <p\n class=\"nowrap\"\n style=\"display: flex; align-items: center;\"\n >\n <span>{{ headerText() }}</span>\n @switch(store.sort()) {\n @case('asc') {\n <mat-icon class=\"order\">south</mat-icon>\n }\n @case('desc') {\n <mat-icon class=\"order\">north</mat-icon>\n }\n }\n </p>\n </th>\n <td\n mat-cell\n *matCellDef=\"let item\"\n [style.text-align]=\"justify\"\n >\n <p class=\"nowrap\"\n [cdkCopyToClipboard]=\"item | dataAccessor: name() | smartExp: name()\"\n (click)=\"copied(); tooltip.show()\"\n #tooltip=\"matTooltip\"\n [matTooltip]=\"store.tooltipText() || item | dataAccessor: name()\"\n matTooltipPosition=\"below\"\n >\n {{ item | dataAccessor: name() | smartExp: name() }}\n </p>\n </td>\n </ng-container>\n `,\n styleUrls: ['./smart-column.molecule.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: SmartColumnTemplateStore,\n inputs: ['sort'],\n },\n ],\n})\nexport class SmartColumnMolecule extends NgAtomicComponent implements OnInit, OnDestroy {\n protected store = inject(SmartColumnTemplateStore);\n private _table = inject(CdkTable, {optional: true});\n readonly headerText = input<string>('');\n readonly name = input.required<string>();\n readonly columnDef = viewChild.required(CdkColumnDef);\n readonly cell = viewChild.required(CdkCellDef);\n readonly headerCell = viewChild.required(CdkHeaderCellDef);\n\n constructor() {\n super();\n effect(() => {\n if (this.columnDef()) this.columnDef().name = this.name();\n })\n }\n\n ngOnInit() {\n if (this._table) {\n this.columnDef().name = this.name();\n this.columnDef().cell = this.cell();\n this.columnDef().headerCell = this.headerCell();\n this._table.addColumnDef(this.columnDef());\n }\n }\n\n ngOnDestroy() {\n if (this._table) {\n this._table.removeColumnDef(this.columnDef());\n }\n }\n\n @Output() headerClick = new EventEmitter<void>();\n\n protected copied() {\n this.store.tooltipText.set('copied!');\n setTimeout(() => this.store.tooltipText.set(null), 1000);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;MAYa,wBAAwB,CAAA;AADrC,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAA0B,MAAM,CAAC,CAAC;AAC9C,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAgB,IAAI,CAAC,CAAC;AACpD,KAAA;8GAHY,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBADpC,SAAS;mBAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAA;;AAoEzB,MAAO,mBAAoB,SAAQ,iBAAiB,CAAA;AASxD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE,CAAC;AATA,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC;QAC3C,IAAM,CAAA,MAAA,GAAG,MAAM,CAAC,QAAQ,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC;AAC3C,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAC/B,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;AAChC,QAAA,IAAA,CAAA,SAAS,GAAG,S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,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACd,gBAAgB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,UAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,oBAAA,EAAA,4BAAA,EAAA,oBAAA,EAAA,qBAAA,EAAA,qBAAA,EAAA,yBAAA,EAAA,YAAA,EAAA,iBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;2FAoDP,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBA9D/B,SAAS;+BACE,wBAAwB,EAAA,UAAA,EACtB,IAAI,EACP,OAAA,EAAA;wBACP,eAAe;wBACf,cAAc;wBACd,gBAAgB;wBAChB,eAAe;wBACf,aAAa;wBACb,cAAc;wBACd,gBAAgB;qBACjB,EACS,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCT,EAAA,CAAA,EAAA,aAAA,EAEc,iBAAiB,CAAC,IAAI,mBACpB,uBAAuB,CAAC,MAAM,EAC/B,cAAA,EAAA;AACd,wBAAA;AACE,4BAAA,SAAS,EAAE,wBAAwB;4BACnC,MAAM,EAAE,CAAC,MAAM,CAAC;AACjB,yBAAA;AACF,qBAAA,EAAA,MAAA,EAAA,CAAA,oUAAA,CAAA,EAAA,CAAA;wDAiCS,WAAW,EAAA,CAAA;sBAApB,MAAM;;;AC9GT;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-molecules-smart-column.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/smart-column/smart-column.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/smart-column/ng-atomic-components-molecules-smart-column.ts"],"sourcesContent":["import { ClipboardModule } from '@angular/cdk/clipboard';\nimport { CdkCellDef, CdkColumnDef, CdkHeaderCellDef, CdkTable } from '@angular/cdk/table';\nimport { ChangeDetectionStrategy, Output, EventEmitter, Component, ViewEncapsulation, Directive, input, signal, inject, effect, viewChild, OnInit, OnDestroy, Pipe, InjectionToken } from '@angular/core';\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatTableModule } from '@angular/material/table';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { DataAccessorPipe, injectDataAccessor } from '@ng-atomic/common/pipes/data-accessor';\nimport { SmartExpModule } from '@ng-atomic/common/pipes/smart-exp';\nimport { InjectableComponent, NgAtomicComponent, TokenizedType } from '@ng-atomic/core';\nimport { Null } from '@nx-ddd/firestore/decorators/decorators';\n\nexport type EditableResolver = (value: any, name: string) => boolean;\nexport const EDITABLE_RESOLVER = new InjectionToken<EditableResolver>('EDITABLE_RESOLVER');\nexport function provideEditableResolver(resolverFactory: () => EditableResolver) {\n return { provide: EDITABLE_RESOLVER, useFactory: resolverFactory };\n}\n \n@Pipe({\n name: 'editable',\n standalone: true,\n pure: true,\n})\nexport class EditablePipe {\n readonly resolver = inject(EDITABLE_RESOLVER, {optional: true}) || (() => false);\n\n transform(value: any, name: string) {\n return this.resolver(value, name);\n }\n}\n\nenum ActionId {\n UPDATE_VALUE = '[@ng-atomic/components/molecules/smart-column] update value',\n}\n\n@TokenizedType()\n@Directive({ standalone: true })\nexport class SmartColumnMoleculeStore<T> extends InjectableComponent {\n static readonly ActionId = ActionId;\n\n readonly dataAccessor = injectDataAccessor();\n\n readonly index = input<number>(null);\n readonly sort = input<'asc' | 'desc' | 'none'>('none');\n readonly sticky = input<boolean>(false);\n readonly headerText = input<string>('');\n readonly name = input.required<string>();\n readonly editable = input<boolean>(false);\n \n readonly tooltipText = signal<string | null>(null);\n\n isNumeric(value: any) {\n return !isNaN(value);\n }\n}\n\n@Component({\n selector: 'molecules-smart-column',\n standalone: true,\n imports: [\n ClipboardModule,\n SmartExpModule,\n DataAccessorPipe,\n MatButtonModule,\n MatIconModule,\n MatTableModule,\n MatTooltipModule,\n MatInputModule,\n EditablePipe,\n ReactiveFormsModule,\n ],\n template: `\n <ng-container matColumnDef [sticky]=\"store.sticky()\">\n <th\n mat-header-cell\n *matHeaderCellDef\n [style.text-align]=\"justify\"\n (click)=\"headerClick.emit()\"\n >\n <p\n class=\"nowrap\"\n style=\"display: flex; align-items: center;\"\n >\n <span>{{ store.headerText() }}</span>\n @switch(store.sort()) {\n @case('asc') {\n <mat-icon class=\"order\">south</mat-icon>\n }\n @case('desc') {\n <mat-icon class=\"order\">north</mat-icon>\n }\n }\n </p>\n </th>\n <td\n mat-cell\n *matCellDef=\"let item; let i = index\"\n [style.text-align]=\"justify\"\n >\n @if(item | editable: store.name()) {\n <input\n class=\"cell-input\"\n type=\"number\"\n [value]=\"item | dataAccessor:store.name():i\"\n (blur)=\"onNgModelChange(item, $event)\"\n >\n } @else {\n <p class=\"nowrap\"\n [cdkCopyToClipboard]=\"item | dataAccessor:store.name():i | smartExp: store.name()\"\n (click)=\"copied(); tooltip.show()\"\n #tooltip=\"matTooltip\"\n [matTooltip]=\"store.tooltipText() || item | dataAccessor:store.name():i\"\n matTooltipPosition=\"below\"\n [style.justify-content]=\"store.isNumeric(item | dataAccessor:store.name():i) ? 'flex-end' : 'flex-start'\"\n >\n {{ item | dataAccessor: store.name():i | smartExp: store.name() }}\n </p>\n }\n </td>\n </ng-container>\n `,\n styleUrls: ['./smart-column.molecule.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: SmartColumnMoleculeStore,\n inputs: [\n 'index',\n 'sort',\n 'sticky',\n 'headerText',\n 'name',\n 'editable',\n ],\n },\n ],\n})\nexport class SmartColumnMolecule extends NgAtomicComponent implements OnInit, OnDestroy {\n protected store = inject(SmartColumnMoleculeStore);\n private _table = inject(CdkTable, {optional: true});\n readonly columnDef = viewChild.required(CdkColumnDef);\n readonly cell = viewChild.required(CdkCellDef);\n readonly headerCell = viewChild.required(CdkHeaderCellDef);\n\n constructor() {\n super();\n effect(() => {\n if (this.columnDef()) this.columnDef().name = this.store.name();\n })\n }\n\n ngOnInit() {\n if (this._table) {\n this.columnDef().name = this.store.name();\n this.columnDef().cell = this.cell();\n this.columnDef().headerCell = this.headerCell();\n this._table.addColumnDef(this.columnDef());\n }\n }\n\n ngOnDestroy() {\n if (this._table) {\n this._table.removeColumnDef(this.columnDef());\n }\n }\n\n onNgModelChange(item: any, event: {target: HTMLInputElement}) {\n const value = event.target.value;\n const pre = this.store.dataAccessor(item, this.store.name());\n if (pre === Number(value)) return;\n\n this.dispatch({\n id: ActionId.UPDATE_VALUE,\n payload: {\n item,\n name: this.store.name(),\n value: Number(event.target.value),\n }\n });\n }\n\n @Output() headerClick = new EventEmitter<void>();\n\n protected copied() {\n this.store.tooltipText.set('copied!');\n setTimeout(() => this.store.tooltipText.set(null), 1000);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;MAea,iBAAiB,GAAG,IAAI,cAAc,CAAmB,mBAAmB,EAAE;AACrF,SAAU,uBAAuB,CAAC,eAAuC,EAAA;IAC7E,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,eAAe,EAAE,CAAC;AACrE,CAAC;MAOY,YAAY,CAAA;AALzB,IAAA,WAAA,GAAA;AAMW,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,iBAAiB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,KAAK,MAAM,KAAK,CAAC,CAAC;AAKlF,KAAA;IAHC,S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AY;wBACZ,mBAAmB;qBACpB,EACS,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDT,EAAA,CAAA,EAAA,aAAA,EAEc,iBAAiB,CAAC,IAAI,mBACpB,uBAAuB,CAAC,MAAM,EAC/B,cAAA,EAAA;AACd,wBAAA;AACE,4BAAA,SAAS,EAAE,wBAAwB;AACnC,4BAAA,MAAM,EAAE;gCACN,OAAO;gCACP,MAAM;gCACN,QAAQ;gCACR,YAAY;gCACZ,MAAM;gCACN,UAAU;AACX,6BAAA;AACF,yBAAA;AACF,qBAAA,EAAA,MAAA,EAAA,CAAA,08BAAA,CAAA,EAAA,CAAA;wDA8CS,WAAW,EAAA,CAAA;sBAApB,MAAM;;;ACxLT;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, Directive, inject, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Output } from '@angular/core';
|
|
2
|
+
import { input, signal, Directive, inject, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Output } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import * as i5 from '@angular/material/table';
|
|
5
5
|
import { MatTextColumn, MatTableModule } from '@angular/material/table';
|
|
@@ -12,6 +12,7 @@ import * as i3 from '@angular/material/button';
|
|
|
12
12
|
import { MatButtonModule } from '@angular/material/button';
|
|
13
13
|
import * as i4 from '@angular/material/icon';
|
|
14
14
|
import { MatIconModule } from '@angular/material/icon';
|
|
15
|
+
import * as i6 from '@angular/material/tooltip';
|
|
15
16
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
16
17
|
import { FlatTreeControl } from '@angular/cdk/tree';
|
|
17
18
|
|
|
@@ -21,9 +22,12 @@ class TreeColumnMoleculeStore {
|
|
|
21
22
|
this.sort = input('none');
|
|
22
23
|
this.treeControl = input(new FlatTreeControl((node) => node.level, (node) => node.isExpandable));
|
|
23
24
|
this.width = input(200);
|
|
25
|
+
this.sticky = input(false);
|
|
26
|
+
this.name = input.required();
|
|
27
|
+
this.tooltipText = signal(null);
|
|
24
28
|
}
|
|
25
29
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: TreeColumnMoleculeStore, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
26
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.2", type: TreeColumnMoleculeStore, isStandalone: true, selector: "molecules-tree-column", inputs: { headerText: { classPropertyName: "headerText", publicName: "headerText", isSignal: true, isRequired: false, transformFunction: null }, sort: { classPropertyName: "sort", publicName: "sort", isSignal: true, isRequired: false, transformFunction: null }, treeControl: { classPropertyName: "treeControl", publicName: "treeControl", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
30
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.2", type: TreeColumnMoleculeStore, isStandalone: true, selector: "molecules-tree-column", inputs: { headerText: { classPropertyName: "headerText", publicName: "headerText", isSignal: true, isRequired: false, transformFunction: null }, sort: { classPropertyName: "sort", publicName: "sort", isSignal: true, isRequired: false, transformFunction: null }, treeControl: { classPropertyName: "treeControl", publicName: "treeControl", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
|
|
27
31
|
}
|
|
28
32
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: TreeColumnMoleculeStore, decorators: [{
|
|
29
33
|
type: Directive,
|
|
@@ -41,8 +45,8 @@ class TreeColumnMolecule extends MatTextColumn {
|
|
|
41
45
|
setTimeout(() => this.text = 'copy', 1000);
|
|
42
46
|
}
|
|
43
47
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: TreeColumnMolecule, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
44
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.2", type: TreeColumnMolecule, isStandalone: true, selector: "molecules-tree-column", outputs: { headerClick: "headerClick" }, usesInheritance: true, hostDirectives: [{ directive: TreeColumnMoleculeStore, inputs: ["headerText", "headerText", "sort", "sort", "treeControl", "treeControl", "width", "width"] }], ngImport: i0, template: `
|
|
45
|
-
<ng-container matColumnDef>
|
|
48
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.2", type: TreeColumnMolecule, isStandalone: true, selector: "molecules-tree-column", outputs: { headerClick: "headerClick" }, usesInheritance: true, hostDirectives: [{ directive: TreeColumnMoleculeStore, inputs: ["headerText", "headerText", "sort", "sort", "treeControl", "treeControl", "width", "width", "sticky", "sticky", "name", "name"] }], ngImport: i0, template: `
|
|
49
|
+
<ng-container matColumnDef [sticky]="store.sticky()">
|
|
46
50
|
<th
|
|
47
51
|
mat-header-cell
|
|
48
52
|
*matHeaderCellDef
|
|
@@ -61,27 +65,30 @@ class TreeColumnMolecule extends MatTextColumn {
|
|
|
61
65
|
}
|
|
62
66
|
</p>
|
|
63
67
|
</th>
|
|
64
|
-
<td mat-cell *matCellDef="let
|
|
68
|
+
<td mat-cell *matCellDef="let item">
|
|
65
69
|
<p class="nowrap"
|
|
66
|
-
[cdkCopyToClipboard]="
|
|
67
|
-
|
|
70
|
+
[cdkCopyToClipboard]="item | dataAccessor: name | smartExp: name"
|
|
71
|
+
#tooltip="matTooltip"
|
|
72
|
+
[matTooltip]="store.tooltipText() || item | dataAccessor: store.name()"
|
|
73
|
+
matTooltipPosition="below"
|
|
74
|
+
[style.maxWidth.px]="item.level * 48 + store.width()"
|
|
68
75
|
>
|
|
69
|
-
<span [style.paddingLeft.px]="(
|
|
70
|
-
@if (
|
|
76
|
+
<span [style.paddingLeft.px]="(item.level + (item.isExpandable ? 0 : 1)) * 48"></span>
|
|
77
|
+
@if (item.isExpandable) {
|
|
71
78
|
<button
|
|
72
79
|
mat-icon-button
|
|
73
|
-
[style.visibility]="!
|
|
74
|
-
(click)="store.treeControl().toggle(
|
|
80
|
+
[style.visibility]="!item.isExpandable ? 'hidden' : ''"
|
|
81
|
+
(click)="store.treeControl().toggle(item)"
|
|
75
82
|
>
|
|
76
83
|
<mat-icon>
|
|
77
|
-
{{ store.treeControl().isExpanded(
|
|
84
|
+
{{ store.treeControl().isExpanded(item) ? 'expand_more' : 'chevron_right' }}
|
|
78
85
|
</mat-icon>
|
|
79
86
|
</button>
|
|
80
87
|
}
|
|
81
|
-
<span> {{
|
|
88
|
+
<span> {{ item | dataAccessor: name }} </span>
|
|
82
89
|
</p>
|
|
83
90
|
</td>
|
|
84
|
-
</ng-container> `, isInline: true, styles: ["th[mat-header-cell],td[mat-cell]{cursor:pointer}th[mat-header-cell] mat-icon.order,td[mat-cell] mat-icon.order{width:12px;height:12px;font-size:12px}th[mat-header-cell] p.nowrap,td[mat-cell] p.nowrap{margin-block-start:0em;margin-block-end:0em;display:flex;justify-content:flex-start;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i1.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "ngmodule", type: SmartExpModule }, { kind: "pipe", type: i2.SmartExpPipe, name: "smartExp" }, { kind: "pipe", type: DataAccessorPipe, name: "dataAccessor" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "directive", type: i5.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i5.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i5.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i5.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i5.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "ngmodule", type: MatTooltipModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
91
|
+
</ng-container> `, isInline: true, styles: ["th[mat-header-cell],td[mat-cell]{cursor:pointer}th[mat-header-cell] mat-icon.order,td[mat-cell] mat-icon.order{width:12px;height:12px;font-size:12px}th[mat-header-cell] p.nowrap,td[mat-cell] p.nowrap{margin-block-start:0em;margin-block-end:0em;display:flex;justify-content:flex-start;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i1.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "ngmodule", type: SmartExpModule }, { kind: "pipe", type: i2.SmartExpPipe, name: "smartExp" }, { kind: "pipe", type: DataAccessorPipe, name: "dataAccessor" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "directive", type: i5.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i5.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i5.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i5.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i5.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i6.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
85
92
|
}
|
|
86
93
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: TreeColumnMolecule, decorators: [{
|
|
87
94
|
type: Component,
|
|
@@ -95,7 +102,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImpor
|
|
|
95
102
|
MatTableModule,
|
|
96
103
|
MatTooltipModule,
|
|
97
104
|
], template: `
|
|
98
|
-
<ng-container matColumnDef>
|
|
105
|
+
<ng-container matColumnDef [sticky]="store.sticky()">
|
|
99
106
|
<th
|
|
100
107
|
mat-header-cell
|
|
101
108
|
*matHeaderCellDef
|
|
@@ -114,24 +121,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImpor
|
|
|
114
121
|
}
|
|
115
122
|
</p>
|
|
116
123
|
</th>
|
|
117
|
-
<td mat-cell *matCellDef="let
|
|
124
|
+
<td mat-cell *matCellDef="let item">
|
|
118
125
|
<p class="nowrap"
|
|
119
|
-
[cdkCopyToClipboard]="
|
|
120
|
-
|
|
126
|
+
[cdkCopyToClipboard]="item | dataAccessor: name | smartExp: name"
|
|
127
|
+
#tooltip="matTooltip"
|
|
128
|
+
[matTooltip]="store.tooltipText() || item | dataAccessor: store.name()"
|
|
129
|
+
matTooltipPosition="below"
|
|
130
|
+
[style.maxWidth.px]="item.level * 48 + store.width()"
|
|
121
131
|
>
|
|
122
|
-
<span [style.paddingLeft.px]="(
|
|
123
|
-
@if (
|
|
132
|
+
<span [style.paddingLeft.px]="(item.level + (item.isExpandable ? 0 : 1)) * 48"></span>
|
|
133
|
+
@if (item.isExpandable) {
|
|
124
134
|
<button
|
|
125
135
|
mat-icon-button
|
|
126
|
-
[style.visibility]="!
|
|
127
|
-
(click)="store.treeControl().toggle(
|
|
136
|
+
[style.visibility]="!item.isExpandable ? 'hidden' : ''"
|
|
137
|
+
(click)="store.treeControl().toggle(item)"
|
|
128
138
|
>
|
|
129
139
|
<mat-icon>
|
|
130
|
-
{{ store.treeControl().isExpanded(
|
|
140
|
+
{{ store.treeControl().isExpanded(item) ? 'expand_more' : 'chevron_right' }}
|
|
131
141
|
</mat-icon>
|
|
132
142
|
</button>
|
|
133
143
|
}
|
|
134
|
-
<span> {{
|
|
144
|
+
<span> {{ item | dataAccessor: name }} </span>
|
|
135
145
|
</p>
|
|
136
146
|
</td>
|
|
137
147
|
</ng-container> `, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [
|
|
@@ -142,6 +152,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImpor
|
|
|
142
152
|
'sort',
|
|
143
153
|
'treeControl',
|
|
144
154
|
'width',
|
|
155
|
+
'sticky',
|
|
156
|
+
'name'
|
|
145
157
|
],
|
|
146
158
|
}
|
|
147
159
|
], styles: ["th[mat-header-cell],td[mat-cell]{cursor:pointer}th[mat-header-cell] mat-icon.order,td[mat-cell] mat-icon.order{width:12px;height:12px;font-size:12px}th[mat-header-cell] p.nowrap,td[mat-cell] p.nowrap{margin-block-start:0em;margin-block-end:0em;display:flex;justify-content:flex-start;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"] }]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-components-molecules-tree-column.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/tree-column/tree-column.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/tree-column/ng-atomic-components-molecules-tree-column.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Directive, EventEmitter, Input, Output, ViewEncapsulation, inject, input } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatTableModule, MatTextColumn } from '@angular/material/table';\nimport { ClipboardModule } from '@angular/cdk/clipboard';\nimport { SmartExpModule } from '@ng-atomic/common/pipes/smart-exp';\nimport { DataAccessorPipe } from '@ng-atomic/common/pipes/data-accessor';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { FlatTreeControl } from '@angular/cdk/tree';\n\n@Directive({standalone: true, selector: 'molecules-tree-column'})\nexport class TreeColumnMoleculeStore {\n readonly headerText = input<string>('');\n readonly sort = input<'asc' | 'desc' | 'none'>('none');\n readonly treeControl = input(new FlatTreeControl<any>(\n (node) => node.level,\n (node) => node.isExpandable\n ));\n readonly width = input<number>(200);\n}\n\n@Component({\n selector: 'molecules-tree-column',\n standalone: true,\n imports: [\n CommonModule,\n ClipboardModule,\n SmartExpModule,\n DataAccessorPipe,\n MatButtonModule,\n MatIconModule,\n MatTableModule,\n MatTooltipModule,\n ],\n template: `\n <ng-container matColumnDef>\n <th\n mat-header-cell\n *matHeaderCellDef\n [style.text-align]=\"justify\"\n (click)=\"headerClick.emit()\"\n >\n <p class=\"nowrap\" style=\"display: flex; align-items: center; margin-left: 48px\">\n <span>{{ store.headerText() }}</span>\n @switch(store.sort()) {\n @case ('asc') {\n <mat-icon class=\"order\">south</mat-icon>\n }\n @case ('desc') { \n <mat-icon class=\"order\">north</mat-icon>\n }\n }\n </p>\n </th>\n <td mat-cell *matCellDef=\"let
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-molecules-tree-column.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/tree-column/tree-column.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/tree-column/ng-atomic-components-molecules-tree-column.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Directive, EventEmitter, Input, Output, ViewEncapsulation, inject, input, signal } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatTableModule, MatTextColumn } from '@angular/material/table';\nimport { ClipboardModule } from '@angular/cdk/clipboard';\nimport { SmartExpModule } from '@ng-atomic/common/pipes/smart-exp';\nimport { DataAccessorPipe } from '@ng-atomic/common/pipes/data-accessor';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { FlatTreeControl } from '@angular/cdk/tree';\n\n@Directive({standalone: true, selector: 'molecules-tree-column'})\nexport class TreeColumnMoleculeStore {\n readonly headerText = input<string>('');\n readonly sort = input<'asc' | 'desc' | 'none'>('none');\n readonly treeControl = input(new FlatTreeControl<any>(\n (node) => node.level,\n (node) => node.isExpandable\n ));\n re\n readonly width = input<number>(200);\n readonly sticky = input<boolean>(false);\n readonly name = input.required<string>();\n readonly tooltipText = signal<string | null>(null);\n}\n\n@Component({\n selector: 'molecules-tree-column',\n standalone: true,\n imports: [\n CommonModule,\n ClipboardModule,\n SmartExpModule,\n DataAccessorPipe,\n MatButtonModule,\n MatIconModule,\n MatTableModule,\n MatTooltipModule,\n ],\n template: `\n <ng-container matColumnDef [sticky]=\"store.sticky()\">\n <th\n mat-header-cell\n *matHeaderCellDef\n [style.text-align]=\"justify\"\n (click)=\"headerClick.emit()\"\n >\n <p class=\"nowrap\" style=\"display: flex; align-items: center; margin-left: 48px\">\n <span>{{ store.headerText() }}</span>\n @switch(store.sort()) {\n @case ('asc') {\n <mat-icon class=\"order\">south</mat-icon>\n }\n @case ('desc') { \n <mat-icon class=\"order\">north</mat-icon>\n }\n }\n </p>\n </th>\n <td mat-cell *matCellDef=\"let item\"> \n <p class=\"nowrap\"\n [cdkCopyToClipboard]=\"item | dataAccessor: name | smartExp: name\"\n #tooltip=\"matTooltip\"\n [matTooltip]=\"store.tooltipText() || item | dataAccessor: store.name()\"\n matTooltipPosition=\"below\"\n [style.maxWidth.px]=\"item.level * 48 + store.width()\"\n >\n <span [style.paddingLeft.px]=\"(item.level + (item.isExpandable ? 0 : 1)) * 48\"></span>\n @if (item.isExpandable) {\n <button \n mat-icon-button \n [style.visibility]=\"!item.isExpandable ? 'hidden' : ''\"\n (click)=\"store.treeControl().toggle(item)\"\n >\n <mat-icon>\n {{ store.treeControl().isExpanded(item) ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n </button>\n }\n <span> {{ item | dataAccessor: name }} </span>\n </p>\n </td>\n </ng-container> `,\n styleUrls: ['./tree-column.molecule.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: TreeColumnMoleculeStore,\n inputs: [\n 'headerText',\n 'sort',\n 'treeControl',\n 'width',\n 'sticky',\n 'name'\n ],\n }\n ],\n})\nexport class TreeColumnMolecule<T> extends MatTextColumn<T> {\n protected store = inject(TreeColumnMoleculeStore);\n\n @Output()\n headerClick = new EventEmitter<void>();\n\n text = 'copy';\n\n copied() {\n this.text = 'copied!';\n setTimeout(() => this.text = 'copy', 1000);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;MAYa,uBAAuB,CAAA;AADpC,IAAA,WAAA,GAAA;AAEW,QAAA,IAA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AAa;gCACb,OAAO;gCACP,QAAQ;gCACR,MAAM;AACP,6BAAA;AACF,yBAAA;AACF,qBAAA,EAAA,MAAA,EAAA,CAAA,6WAAA,CAAA,EAAA,CAAA;8BAMD,WAAW,EAAA,CAAA;sBADV,MAAM;;;ACvGT;;AAEG;;;;"}
|
|
@@ -8,6 +8,7 @@ import { MatChipsModule } from '@angular/material/chips';
|
|
|
8
8
|
import { TextInputFieldMoleculeStore } from '@ng-atomic/components/molecules/text-input-field';
|
|
9
9
|
import { LoadingBoxMoleculeStore } from '@ng-atomic/components/molecules/loading-box';
|
|
10
10
|
import { ActionsColumnMoleculeStore } from '@ng-atomic/components/molecules/actions-column';
|
|
11
|
+
import { ListItemMoleculeStore } from '@ng-atomic/components/molecules/list-item';
|
|
11
12
|
|
|
12
13
|
class NgAtomicMoleculesModule {
|
|
13
14
|
static forRoot() {
|
|
@@ -19,6 +20,8 @@ class NgAtomicMoleculesModule {
|
|
|
19
20
|
provideComponent(ChipsInputFieldMoleculeStore, () => import('@ng-atomic/components/molecules/chips-input-field').then(m => m.ChipsInputFieldMolecule)),
|
|
20
21
|
ChipsInputFieldMoleculeStore.Config.provide(),
|
|
21
22
|
provideComponent(HeaderMoleculeStore, () => import('@ng-atomic/components/molecules/header').then(m => m.HeaderMolecule)),
|
|
23
|
+
ListItemMoleculeStore.Config.provide(),
|
|
24
|
+
provideComponent(ListItemMoleculeStore, () => import('@ng-atomic/components/molecules/list-item').then(m => m.ListItemMolecule)),
|
|
22
25
|
LoadingBoxMoleculeStore.Config.provide(),
|
|
23
26
|
provideComponent(LoadingBoxMoleculeStore, () => {
|
|
24
27
|
return import('@ng-atomic/components/molecules/loading-box').then(m => m.LoadingBoxMolecule);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-components-molecules.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/molecules.module.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/ng-atomic-components-molecules.ts"],"sourcesContent":["import { NgModule } from \"@angular/core\";\nimport { provideComponent } from \"@ng-atomic/core\";\nimport { NavigationListItemMoleculeStore } from \"@ng-atomic/components/molecules/navigation-list-item\";\nimport { ChipsInputFieldMoleculeStore } from \"@ng-atomic/components/molecules/chips-input-field\";\nimport { HeaderMoleculeStore } from \"@ng-atomic/components/molecules/header\";\nimport { MatChipsModule } from \"@angular/material/chips\";\nimport { TextInputFieldMoleculeStore } from \"@ng-atomic/components/molecules/text-input-field\";\nimport { LoadingBoxMoleculeStore } from \"@ng-atomic/components/molecules/loading-box\";\nimport { ActionsColumnMoleculeStore } from \"@ng-atomic/components/molecules/actions-column\";\n\n@NgModule({\n imports: [\n MatChipsModule,\n ]\n})\nexport class NgAtomicMoleculesModule {\n static forRoot() {\n return {\n ngModule: NgAtomicMoleculesModule,\n providers: [\n ActionsColumnMoleculeStore.Config.provide(),\n provideComponent(ActionsColumnMoleculeStore, () => import('@ng-atomic/components/molecules/actions-column').then(m => m.ActionsColumnMolecule)),\n provideComponent(ChipsInputFieldMoleculeStore, () => import('@ng-atomic/components/molecules/chips-input-field').then(m => m.ChipsInputFieldMolecule)),\n ChipsInputFieldMoleculeStore.Config.provide(),\n provideComponent(HeaderMoleculeStore, () => import('@ng-atomic/components/molecules/header').then(m => m.HeaderMolecule)),\n LoadingBoxMoleculeStore.Config.provide(),\n provideComponent(LoadingBoxMoleculeStore, () => {\n return import('@ng-atomic/components/molecules/loading-box').then(m => m.LoadingBoxMolecule);\n }),\n provideComponent(NavigationListItemMoleculeStore, () => import('@ng-atomic/components/molecules/navigation-list-item').then(m => m.NavigationListItemMolecule)),\n provideComponent(\n NavigationListItemMoleculeStore,\n () => import('@ng-atomic/components/molecules/navigation-list-item')\n .then(m => m.NavigationListItemMolecule)\n ),\n provideComponent(TextInputFieldMoleculeStore, () => import('@ng-atomic/components/molecules/text-input-field').then(m => m.TextInputFieldMolecule)),\n ],\n };\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-molecules.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/molecules.module.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/ng-atomic-components-molecules.ts"],"sourcesContent":["import { NgModule } from \"@angular/core\";\nimport { provideComponent } from \"@ng-atomic/core\";\nimport { NavigationListItemMoleculeStore } from \"@ng-atomic/components/molecules/navigation-list-item\";\nimport { ChipsInputFieldMoleculeStore } from \"@ng-atomic/components/molecules/chips-input-field\";\nimport { HeaderMoleculeStore } from \"@ng-atomic/components/molecules/header\";\nimport { MatChipsModule } from \"@angular/material/chips\";\nimport { TextInputFieldMoleculeStore } from \"@ng-atomic/components/molecules/text-input-field\";\nimport { LoadingBoxMoleculeStore } from \"@ng-atomic/components/molecules/loading-box\";\nimport { ActionsColumnMoleculeStore } from \"@ng-atomic/components/molecules/actions-column\";\nimport { ListItemMoleculeStore } from \"@ng-atomic/components/molecules/list-item\";\n\n@NgModule({\n imports: [\n MatChipsModule,\n ]\n})\nexport class NgAtomicMoleculesModule {\n static forRoot() {\n return {\n ngModule: NgAtomicMoleculesModule,\n providers: [\n ActionsColumnMoleculeStore.Config.provide(),\n provideComponent(ActionsColumnMoleculeStore, () => import('@ng-atomic/components/molecules/actions-column').then(m => m.ActionsColumnMolecule)),\n provideComponent(ChipsInputFieldMoleculeStore, () => import('@ng-atomic/components/molecules/chips-input-field').then(m => m.ChipsInputFieldMolecule)),\n ChipsInputFieldMoleculeStore.Config.provide(),\n provideComponent(HeaderMoleculeStore, () => import('@ng-atomic/components/molecules/header').then(m => m.HeaderMolecule)),\n ListItemMoleculeStore.Config.provide(),\n provideComponent(ListItemMoleculeStore, () => import('@ng-atomic/components/molecules/list-item').then(m => m.ListItemMolecule)),\n LoadingBoxMoleculeStore.Config.provide(),\n provideComponent(LoadingBoxMoleculeStore, () => {\n return import('@ng-atomic/components/molecules/loading-box').then(m => m.LoadingBoxMolecule);\n }),\n provideComponent(NavigationListItemMoleculeStore, () => import('@ng-atomic/components/molecules/navigation-list-item').then(m => m.NavigationListItemMolecule)),\n provideComponent(\n NavigationListItemMoleculeStore,\n () => import('@ng-atomic/components/molecules/navigation-list-item')\n .then(m => m.NavigationListItemMolecule)\n ),\n provideComponent(TextInputFieldMoleculeStore, () => import('@ng-atomic/components/molecules/text-input-field').then(m => m.TextInputFieldMolecule)),\n ],\n };\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;MAgBa,uBAAuB,CAAA;AAClC,IAAA,OAAO,OAAO,GAAA;QACZ,OAAO;AACL,YAAA,QAAQ,EAAE,uBAAuB;AACjC,YAAA,SAAS,EAAE;AACT,gBAAA,0BAA0B,CAAC,MAAM,CAAC,OAAO,EAAE;gBAC3C,gBAAgB,CAAC,0BAA0B,EAAE,MAAM,OAAO,gDAAgD,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,qBAAqB,CAAC,CAAC;gBAC/I,gBAAgB,CAAC,4BAA4B,EAAE,MAAM,OAAO,mDAAmD,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,uBAAuB,CAAC,CAAC;AACtJ,gBAAA,4BAA4B,CAAC,MAAM,CAAC,OAAO,EAAE;gBAC7C,gBAAgB,CAAC,mBAAmB,EAAE,MAAM,OAAO,wCAAwC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC;AACzH,gBAAA,qBAAqB,CAAC,MAAM,CAAC,OAAO,EAAE;gBACtC,gBAAgB,CAAC,qBAAqB,EAAE,MAAM,OAAO,2CAA2C,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,gBAAgB,CAAC,CAAC;AAChI,gBAAA,uBAAuB,CAAC,MAAM,CAAC,OAAO,EAAE;AACxC,gBAAA,gBAAgB,CAAC,uBAAuB,EAAE,MAAK;AAC7C,oBAAA,O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,7 +76,7 @@ class ActionButtonsSectionOrganism extends NgAtomicComponent {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
`, isInline: true, styles: [":host{--vertical-padding: 16px;--vertical-padding-SCOPED-IN-action-buttons-section-
|
|
79
|
+
`, isInline: true, styles: [":host{--vertical-padding: 16px;--vertical-padding-SCOPED-IN-action-buttons-section-bmDR: var(--vertical-padding);--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-buttons-section-bmDR: var(--horizontal-padding)}:host{display:flex;flex-direction:row;gap:8px;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-action-buttons-section-bmDR);box-sizing:border-box}:host button{width:100%;height:48px;text-wrap:nowrap}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
80
80
|
}
|
|
81
81
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ActionButtonsSectionOrganism, decorators: [{
|
|
82
82
|
type: Component,
|
|
@@ -132,7 +132,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImpor
|
|
|
132
132
|
directive: ActionButtonsSectionOrganismStore,
|
|
133
133
|
inputs: ['actions', 'type'],
|
|
134
134
|
}
|
|
135
|
-
], styles: [":host{--vertical-padding: 16px;--vertical-padding-SCOPED-IN-action-buttons-section-
|
|
135
|
+
], styles: [":host{--vertical-padding: 16px;--vertical-padding-SCOPED-IN-action-buttons-section-bmDR: var(--vertical-padding);--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-buttons-section-bmDR: var(--horizontal-padding)}:host{display:flex;flex-direction:row;gap:8px;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-action-buttons-section-bmDR);box-sizing:border-box}:host button{width:100%;height:48px;text-wrap:nowrap}\n"] }]
|
|
136
136
|
}] });
|
|
137
137
|
|
|
138
138
|
/**
|