@ng-atomic/components 19.51.0 → 19.80.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/fesm2022/ng-atomic-components-atoms-chips-input.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-atoms-icon.mjs +2 -2
- package/fesm2022/ng-atomic-components-atoms-value-cell.mjs +2 -15
- package/fesm2022/ng-atomic-components-atoms-value-cell.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-extras-editor.mjs +0 -2
- package/fesm2022/ng-atomic-components-extras-editor.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-app.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-auto-layout.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-breadcrumb-navbar.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-card.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-columns.mjs +2 -4
- package/fesm2022/ng-atomic-components-frames-columns.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-divider.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-drawer.mjs +2 -7
- package/fesm2022/ng-atomic-components-frames-drawer.mjs.map +1 -1
- 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-horizontal-divider.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-line-up.mjs +60 -72
- 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-router-outlet.mjs +2 -4
- package/fesm2022/ng-atomic-components-frames-router-outlet.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-scroll.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-side-nav.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-smart-menu.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-vertical-hide.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames.mjs +0 -2
- package/fesm2022/ng-atomic-components-frames.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules-action-input-field.mjs +0 -3
- package/fesm2022/ng-atomic-components-molecules-action-input-field.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 +0 -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-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 +2 -2
- package/fesm2022/ng-atomic-components-molecules-thread-message.mjs +2 -2
- package/fesm2022/ng-atomic-components-molecules-tree-column.mjs +0 -7
- package/fesm2022/ng-atomic-components-molecules-tree-column.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-breadcrumb-navbar.mjs +2 -2
- 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 +2 -2
- package/fesm2022/ng-atomic-components-organisms-date-range-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-definition-list.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-definition-list.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-file-input-section.mjs +2 -2
- 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-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 +1 -2
- 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 -3
- package/fesm2022/ng-atomic-components-organisms-navigation-list.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-navigator.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-number-input-section.mjs +2 -2
- 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-select-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-slider-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-social-login-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-stripe-input-section.mjs +2 -5
- package/fesm2022/ng-atomic-components-organisms-stripe-input-section.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-table.mjs +2 -17
- package/fesm2022/ng-atomic-components-organisms-table.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-text-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-textarea-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-thread-messages-section.mjs +4 -4
- package/fesm2022/ng-atomic-components-organisms-thread-messages-section.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-tree-section.mjs +0 -22
- package/fesm2022/ng-atomic-components-organisms-tree-section.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms.mjs +0 -1
- package/fesm2022/ng-atomic-components-organisms.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-pages-_index.mjs +2 -4
- package/fesm2022/ng-atomic-components-pages-_index.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-pages-columns.mjs +2 -2
- package/fesm2022/ng-atomic-components-pages-form.mjs +2 -4
- package/fesm2022/ng-atomic-components-pages-form.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-services-global-iframe.mjs +2 -62
- package/fesm2022/ng-atomic-components-services-global-iframe.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-templates-_index.mjs +3 -15
- 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 +2 -2
- package/fesm2022/ng-atomic-components-templates-columns.mjs +2 -2
- package/fesm2022/ng-atomic-components-templates-entrance.mjs +2 -2
- package/fesm2022/ng-atomic-components-templates-form-harness.mjs +0 -3
- package/fesm2022/ng-atomic-components-templates-form-harness.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-templates-form.mjs +4 -4
- package/fesm2022/ng-atomic-components-templates-icon-button-menu.mjs +2 -2
- package/fesm2022/ng-atomic-components-templates-menu.mjs +2 -2
- 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-templates.mjs +0 -3
- package/fesm2022/ng-atomic-components-templates.mjs.map +1 -1
- package/package.json +3 -3
- package/types/ng-atomic-components-frames-line-up.d.ts +7 -18
- package/types/ng-atomic-components-frames-line-up.d.ts.map +1 -1
- package/types/ng-atomic-components-frames.d.ts.map +1 -1
- package/types/ng-atomic-components-molecules-tree-column.d.ts +0 -2
- package/types/ng-atomic-components-molecules-tree-column.d.ts.map +1 -1
- package/types/ng-atomic-components-organisms-thread-messages-section.d.ts +1 -1
- package/types/ng-atomic-components-organisms-thread-messages-section.d.ts.map +1 -1
- package/types/ng-atomic-components-organisms-tree-section.d.ts +0 -2
- package/types/ng-atomic-components-organisms-tree-section.d.ts.map +1 -1
- package/types/ng-atomic-components-pages-form.d.ts +0 -2
- package/types/ng-atomic-components-pages-form.d.ts.map +1 -1
- package/types/ng-atomic-components-services-global-iframe.d.ts +0 -34
- package/types/ng-atomic-components-services-global-iframe.d.ts.map +1 -1
- package/types/ng-atomic-components-templates-form-harness.d.ts +0 -3
- package/types/ng-atomic-components-templates-form-harness.d.ts.map +1 -1
- package/types/ng-atomic-components-templates.d.ts +0 -1
- package/types/ng-atomic-components-templates.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-components-organisms-navigation-list.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/organisms/navigation-list/navigation-list.organism.ts","../../../../../packages/@ng-atomic/components/src/lib/organisms/navigation-list/ng-atomic-components-organisms-navigation-list.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Directive, inject, input } from '@angular/core';\nimport { MatListModule } from '@angular/material/list';\nimport { InjectableComponent, NgAtomicComponent, TokenizedType } from '@ng-atomic/core';\nimport { Action } from '@ng-atomic/core';\nimport { NavigationListItemMolecule, NavigationListItemMoleculeStore } from '@ng-atomic/components/molecules/navigation-list-item';\n\n@TokenizedType()\n@Directive({ standalone: true, selector: 'organisms-navigation-list' })\nexport class NavigationListOrganismStore extends InjectableComponent {\n readonly actions = input<Action<string>[]>([]);\n readonly type = input<'selection' | 'nav'>('nav');\n}\n\n@Component({\n selector: 'organisms-navigation-list',\n imports: [\n MatListModule,\n NavigationListItemMoleculeStore,\n
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-organisms-navigation-list.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/organisms/navigation-list/navigation-list.organism.ts","../../../../../packages/@ng-atomic/components/src/lib/organisms/navigation-list/ng-atomic-components-organisms-navigation-list.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Directive, inject, input } from '@angular/core';\nimport { MatListModule } from '@angular/material/list';\nimport { InjectableComponent, NgAtomicComponent, TokenizedType } from '@ng-atomic/core';\nimport { Action } from '@ng-atomic/core';\nimport { NavigationListItemMolecule, NavigationListItemMoleculeStore } from '@ng-atomic/components/molecules/navigation-list-item';\n\n@TokenizedType()\n@Directive({ standalone: true, selector: 'organisms-navigation-list' })\nexport class NavigationListOrganismStore extends InjectableComponent {\n readonly actions = input<Action<string>[]>([]);\n readonly type = input<'selection' | 'nav'>('nav');\n}\n\n@Component({\n selector: 'organisms-navigation-list',\n imports: [\n MatListModule,\n NavigationListItemMoleculeStore,\n \n ],\n template: `\n @switch(store.type()) {\n @case ('selection') {\n <mat-selection-list [multiple]=\"false\">\n <!-- TODO(@nontangent): ClickイベントがInjectableComponentでまだ拾えていない -->\n @for (action of store.actions(); track action.id) {\n <molecules-navigation-list-item injectable\n [action]=\"action\"\n (click)=\"dispatch(action)\"\n />\n }\n </mat-selection-list>\n }\n @case ('nav') {\n <mat-nav-list>\n @for (action of store.actions(); track action.id) {\n <molecules-navigation-list-item injectable\n [activated]=\"action?.disabled\"\n [action]=\"action\"\n (click)=\"dispatch(action)\"\n />\n }\n </mat-nav-list>\n }\n }\n `,\n styleUrls: ['./navigation-list.organism.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: NavigationListOrganismStore,\n inputs: ['actions', 'type'],\n },\n ]\n})\nexport class NavigationListOrganism extends NgAtomicComponent {\n protected store = inject(NavigationListOrganismStore);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAQO,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,mBAAmB,CAAA;AAA7D,IAAA,WAAA,GAAA;;AACI,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAmB,EAAE,mDAAC;AACrC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAsB,KAAK,gDAAC;AAClD,IAAA;8GAHY,2BAA2B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA3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,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,2tCAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EA7BK,aAAa,yWACb,+BAA+B,EAAA,QAAA,EAAA,gCAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,UAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAsC1B,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBA1ClC,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,2BAA2B,EAAA,OAAA,EAC5B;wBACL,aAAa;wBACb,+BAA+B;qBAElC,EAAA,QAAA,EACS;;;;;;;;;;;;;;;;;;;;;;;;;GAyBX,EAAA,eAAA,EAEkB,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/B;AACZ,wBAAA;AACI,4BAAA,SAAS,EAAE,2BAA2B;AACtC,4BAAA,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;AAC9B,yBAAA;AACJ,qBAAA,EAAA,MAAA,EAAA,CAAA,2tCAAA,CAAA,EAAA;;;ACrDL;;AAEG;;;;"}
|
|
@@ -91,7 +91,7 @@ class NavigatorOrganism extends NgAtomicComponent {
|
|
|
91
91
|
<atoms-menu-button [action]="action" (action)="dispatch($event)" injectable/>
|
|
92
92
|
}
|
|
93
93
|
</div>
|
|
94
|
-
`, isInline: true, styles: [":host{display:block;--primary-color: #404040;--primary-color-SCOPED-IN-navigator-
|
|
94
|
+
`, isInline: true, styles: [":host{display:block;--primary-color: #404040;--primary-color-SCOPED-IN-navigator-X3s7: var(--primary-color);--on-primary-color: #f0f0f0;--on-primary-color-SCOPED-IN-navigator-X3s7: var(--on-primary-color);--secondary-color: #B0B0B0;--secondary-color-SCOPED-IN-navigator-X3s7: var(--secondary-color);--on-secondary-color: #f0f0f0;--on-secondary-color-SCOPED-IN-navigator-X3s7: var(--on-secondary-color);--background-color: #fff;--background-color-SCOPED-IN-navigator-X3s7: var(--background-color);--on-background-color: #404040;--on-background-color-SCOPED-IN-navigator-X3s7: var(--on-background-color)}:host{display:block;width:100%;height:56px}:host mat-toolbar{display:flex;width:100%;height:100%;justify-content:space-between;align-items:center;overflow:hidden;transition:background .5s ease-in-out;background-color:var(--background-color-SCOPED-IN-navigator-X3s7);color:var(--on-background-color-SCOPED-IN-navigator-X3s7)}:host mat-toolbar>div:first-child,:host mat-toolbar>div:last-child{flex:0 0 auto}:host mat-toolbar>div:nth-child(2){flex:1 1 auto;display:flex;justify-content:flex-start;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}:host div{display:flex;justify-content:center;align-items:center}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: MenuButtonAtomStore, selector: "atoms-menu-button, atoms-smart-menu-button", inputs: ["actions", "type", "action"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
95
95
|
}
|
|
96
96
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: NavigatorOrganism, decorators: [{
|
|
97
97
|
type: Component,
|
|
@@ -128,7 +128,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
|
|
|
128
128
|
'title',
|
|
129
129
|
],
|
|
130
130
|
}
|
|
131
|
-
], styles: [":host{display:block;--primary-color: #404040;--primary-color-SCOPED-IN-navigator-
|
|
131
|
+
], styles: [":host{display:block;--primary-color: #404040;--primary-color-SCOPED-IN-navigator-X3s7: var(--primary-color);--on-primary-color: #f0f0f0;--on-primary-color-SCOPED-IN-navigator-X3s7: var(--on-primary-color);--secondary-color: #B0B0B0;--secondary-color-SCOPED-IN-navigator-X3s7: var(--secondary-color);--on-secondary-color: #f0f0f0;--on-secondary-color-SCOPED-IN-navigator-X3s7: var(--on-secondary-color);--background-color: #fff;--background-color-SCOPED-IN-navigator-X3s7: var(--background-color);--on-background-color: #404040;--on-background-color-SCOPED-IN-navigator-X3s7: var(--on-background-color)}:host{display:block;width:100%;height:56px}:host mat-toolbar{display:flex;width:100%;height:100%;justify-content:space-between;align-items:center;overflow:hidden;transition:background .5s ease-in-out;background-color:var(--background-color-SCOPED-IN-navigator-X3s7);color:var(--on-background-color-SCOPED-IN-navigator-X3s7)}:host mat-toolbar>div:first-child,:host mat-toolbar>div:last-child{flex:0 0 auto}:host mat-toolbar>div:nth-child(2){flex:1 1 auto;display:flex;justify-content:flex-start;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}:host div{display:flex;justify-content:center;align-items:center}\n"] }]
|
|
132
132
|
}] });
|
|
133
133
|
|
|
134
134
|
/**
|
|
@@ -49,7 +49,7 @@ class NumberInputSectionOrganism extends NgAtomicComponent {
|
|
|
49
49
|
(action)="dispatch($event)"
|
|
50
50
|
/>
|
|
51
51
|
}
|
|
52
|
-
`, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-number-input-section-
|
|
52
|
+
`, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-number-input-section-wwca: var(--horizontal-padding)}:host{display:flex;flex-direction:row;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-number-input-section-wwca) 0;box-sizing:border-box}:host:has(atoms-smart-button){padding:0 0 0 var(--horizontal-padding-SCOPED-IN-number-input-section-wwca)}:host .molecule.input-field,:host mat-form-field{width:100%;flex:1fr}:host atoms-menu-button{flex:auto;margin-top:4px;margin-right:-16px}\n"], dependencies: [{ kind: "directive", type: TextInputFieldMoleculeStore, selector: "molecules-text-input-field", inputs: ["appearance", "type", "name", "label", "control", "placeholder", "hint", "pattern", "autoComplete"] }, { kind: "directive", type: SmartMenuButtonAtomStore, selector: "atoms-menu-button, atoms-smart-menu-button", inputs: ["actions", "type", "action"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
53
53
|
}
|
|
54
54
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: NumberInputSectionOrganism, decorators: [{
|
|
55
55
|
type: Component,
|
|
@@ -77,7 +77,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
|
|
|
77
77
|
directive: NumberInputSectionOrganismStore,
|
|
78
78
|
inputs: ['label', 'placeholder', 'hint', 'control', 'autoComplete', 'actions', 'actionButtonType'],
|
|
79
79
|
}
|
|
80
|
-
], styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-number-input-section-
|
|
80
|
+
], styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-number-input-section-wwca: var(--horizontal-padding)}:host{display:flex;flex-direction:row;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-number-input-section-wwca) 0;box-sizing:border-box}:host:has(atoms-smart-button){padding:0 0 0 var(--horizontal-padding-SCOPED-IN-number-input-section-wwca)}:host .molecule.input-field,:host mat-form-field{width:100%;flex:1fr}:host atoms-menu-button{flex:auto;margin-top:4px;margin-right:-16px}\n"] }]
|
|
81
81
|
}] });
|
|
82
82
|
|
|
83
83
|
/**
|
|
@@ -47,7 +47,7 @@ class PaginatorOrganism extends NgAtomicComponent {
|
|
|
47
47
|
[pageSizeOptions]="store.pageSizeOptions()"
|
|
48
48
|
(page)="onPageChange($event)"
|
|
49
49
|
/>
|
|
50
|
-
`, isInline: true, styles: [":host{--primary-color: #404040;--primary-color-SCOPED-IN-paginator-
|
|
50
|
+
`, isInline: true, styles: [":host{--primary-color: #404040;--primary-color-SCOPED-IN-paginator-uDUR: var(--primary-color);--on-primary-color: #f0f0f0;--on-primary-color-SCOPED-IN-paginator-uDUR: var(--on-primary-color);--secondary-color: #f0f0f0;--secondary-color-SCOPED-IN-paginator-uDUR: var(--secondary-color);--surface-color: #f0f0f0;--surface-color-SCOPED-IN-paginator-uDUR: var(--surface-color);--on-surface-color: #000;--on-surface-color-SCOPED-IN-paginator-uDUR: var(--on-surface-color);--background-color: #f0f0f0;--background-color-SCOPED-IN-paginator-uDUR: var(--background-color);--on-background-color: #000;--on-background-color-SCOPED-IN-paginator-uDUR: var(--on-background-color)}:host mat-paginator{background-color:var(--background-color-SCOPED-IN-paginator-uDUR);color:var(--on-background-color-SCOPED-IN-paginator-uDUR);min-width:440px}\n"], dependencies: [{ kind: "ngmodule", type: MatPaginatorModule }, { kind: "component", type: i1.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
51
51
|
}
|
|
52
52
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: PaginatorOrganism, decorators: [{
|
|
53
53
|
type: Component,
|
|
@@ -65,7 +65,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
|
|
|
65
65
|
directive: PaginatorOrganismStore,
|
|
66
66
|
inputs: ['form', 'pageSizeOptions', 'itemLength'],
|
|
67
67
|
},
|
|
68
|
-
], styles: [":host{--primary-color: #404040;--primary-color-SCOPED-IN-paginator-
|
|
68
|
+
], styles: [":host{--primary-color: #404040;--primary-color-SCOPED-IN-paginator-uDUR: var(--primary-color);--on-primary-color: #f0f0f0;--on-primary-color-SCOPED-IN-paginator-uDUR: var(--on-primary-color);--secondary-color: #f0f0f0;--secondary-color-SCOPED-IN-paginator-uDUR: var(--secondary-color);--surface-color: #f0f0f0;--surface-color-SCOPED-IN-paginator-uDUR: var(--surface-color);--on-surface-color: #000;--on-surface-color-SCOPED-IN-paginator-uDUR: var(--on-surface-color);--background-color: #f0f0f0;--background-color-SCOPED-IN-paginator-uDUR: var(--background-color);--on-background-color: #000;--on-background-color-SCOPED-IN-paginator-uDUR: var(--on-background-color)}:host mat-paginator{background-color:var(--background-color-SCOPED-IN-paginator-uDUR);color:var(--on-background-color-SCOPED-IN-paginator-uDUR);min-width:440px}\n"] }]
|
|
69
69
|
}] });
|
|
70
70
|
|
|
71
71
|
/**
|
|
@@ -48,7 +48,7 @@ class PasswordInputSectionOrganism extends NgAtomicComponent {
|
|
|
48
48
|
[type]="store.actionButtonType()"
|
|
49
49
|
(action)="dispatch($event)"
|
|
50
50
|
/>
|
|
51
|
-
}`, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-password-input-section-
|
|
51
|
+
}`, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-password-input-section-psTH: var(--horizontal-padding)}:host{display:flex;flex-direction:row;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-password-input-section-psTH) 0;box-sizing:border-box}:host:has(atoms-smart-button){padding:0 0 0 var(--horizontal-padding-SCOPED-IN-password-input-section-psTH)}:host .molecule.input-field,:host mat-form-field{width:100%;flex:1fr}:host atoms-menu-button{flex:auto;margin-top:4px;margin-right:-16px}\n"], dependencies: [{ kind: "directive", type: TextInputFieldMoleculeStore, selector: "molecules-text-input-field", inputs: ["appearance", "type", "name", "label", "control", "placeholder", "hint", "pattern", "autoComplete"] }, { kind: "directive", type: SmartMenuButtonAtomStore, selector: "atoms-menu-button, atoms-smart-menu-button", inputs: ["actions", "type", "action"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
52
52
|
}
|
|
53
53
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: PasswordInputSectionOrganism, decorators: [{
|
|
54
54
|
type: Component,
|
|
@@ -75,7 +75,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
|
|
|
75
75
|
directive: PasswordInputSectionOrganismStore,
|
|
76
76
|
inputs: ['label', 'placeholder', 'hint', 'control', 'autoComplete', 'actions', 'actionButtonType'],
|
|
77
77
|
},
|
|
78
|
-
], styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-password-input-section-
|
|
78
|
+
], styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-password-input-section-psTH: var(--horizontal-padding)}:host{display:flex;flex-direction:row;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-password-input-section-psTH) 0;box-sizing:border-box}:host:has(atoms-smart-button){padding:0 0 0 var(--horizontal-padding-SCOPED-IN-password-input-section-psTH)}:host .molecule.input-field,:host mat-form-field{width:100%;flex:1fr}:host atoms-menu-button{flex:auto;margin-top:4px;margin-right:-16px}\n"] }]
|
|
79
79
|
}] });
|
|
80
80
|
|
|
81
81
|
/**
|
|
@@ -47,7 +47,7 @@ class SelectInputSectionOrganism extends NgAtomicComponent {
|
|
|
47
47
|
[actions]="store.actions()"
|
|
48
48
|
(action)="dispatch($event)"
|
|
49
49
|
/>
|
|
50
|
-
}`, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-select-input-section-
|
|
50
|
+
}`, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-select-input-section-0T6H: var(--horizontal-padding)}:host{display:flex;flex-direction:row;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-select-input-section-0T6H) 0;box-sizing:border-box}:host:has(atoms-smart-button){padding:0 0 0 var(--horizontal-padding-SCOPED-IN-select-input-section-0T6H)}:host .molecule.input-field,:host mat-form-field{width:100%;flex:1fr}:host atoms-menu-button{flex:auto;margin-top:4px;margin-right:-16px}\n"], dependencies: [{ kind: "component", type: SelectInputFieldMolecule, selector: "molecules-select-input-field" }, { kind: "component", type: MenuButtonAtom, selector: "atoms-menu-button, atoms-menu-button" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
51
51
|
}
|
|
52
52
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: SelectInputSectionOrganism, decorators: [{
|
|
53
53
|
type: Component,
|
|
@@ -73,7 +73,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
|
|
|
73
73
|
directive: SelectInputSectionOrganismStore,
|
|
74
74
|
inputs: ['actions', 'hint', 'placeholder', 'label', 'control', 'options', 'multiple'],
|
|
75
75
|
}
|
|
76
|
-
], host: { 'class': 'organism input section' }, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-select-input-section-
|
|
76
|
+
], host: { 'class': 'organism input section' }, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-select-input-section-0T6H: var(--horizontal-padding)}:host{display:flex;flex-direction:row;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-select-input-section-0T6H) 0;box-sizing:border-box}:host:has(atoms-smart-button){padding:0 0 0 var(--horizontal-padding-SCOPED-IN-select-input-section-0T6H)}:host .molecule.input-field,:host mat-form-field{width:100%;flex:1fr}:host atoms-menu-button{flex:auto;margin-top:4px;margin-right:-16px}\n"] }]
|
|
77
77
|
}] });
|
|
78
78
|
|
|
79
79
|
/**
|
|
@@ -56,7 +56,7 @@ class SliderInputSectionOrganism extends NgAtomicComponent {
|
|
|
56
56
|
matSliderThumb
|
|
57
57
|
>
|
|
58
58
|
</mat-slider>
|
|
59
|
-
`, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-slider-input-section-
|
|
59
|
+
`, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-slider-input-section-WAJY: var(--horizontal-padding);--mat-form-field-outlined-label-text-populated-size-SCOPED-IN-slider-input-section-WAJY: var(--mat-form-field-outlined-label-text-populated-size);--mat-form-field-outlined-label-text-color-SCOPED-IN-slider-input-section-WAJY: var(--mat-form-field-outlined-label-text-color)}:host{display:flex;flex-direction:column;gap:8px;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-slider-input-section-WAJY);box-sizing:border-box}:host .slider{width:100%}:host span{padding-left:20px;font-size:var(--mat-form-field-outlined-label-text-populated-size-SCOPED-IN-slider-input-section-WAJY);color:var(--mat-form-field-outlined-label-text-color-SCOPED-IN-slider-input-section-WAJY);transform:scale(.75);transform-origin:top left}\n"], dependencies: [{ kind: "ngmodule", type: MatSliderModule }, { kind: "component", type: i1.MatSlider, selector: "mat-slider", inputs: ["disabled", "discrete", "showTickMarks", "min", "color", "disableRipple", "max", "step", "displayWith"], exportAs: ["matSlider"] }, { kind: "directive", type: i1.MatSliderThumb, selector: "input[matSliderThumb]", inputs: ["value"], outputs: ["valueChange", "dragStart", "dragEnd"], exportAs: ["matSliderThumb"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.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: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
60
60
|
}
|
|
61
61
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: SliderInputSectionOrganism, decorators: [{
|
|
62
62
|
type: Component,
|
|
@@ -81,7 +81,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
|
|
|
81
81
|
directive: SliderInputSectionOrganismStore,
|
|
82
82
|
inputs: ['control', 'min', 'max', 'step', 'thumbLabel', 'label'],
|
|
83
83
|
}
|
|
84
|
-
], styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-slider-input-section-
|
|
84
|
+
], styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-slider-input-section-WAJY: var(--horizontal-padding);--mat-form-field-outlined-label-text-populated-size-SCOPED-IN-slider-input-section-WAJY: var(--mat-form-field-outlined-label-text-populated-size);--mat-form-field-outlined-label-text-color-SCOPED-IN-slider-input-section-WAJY: var(--mat-form-field-outlined-label-text-color)}:host{display:flex;flex-direction:column;gap:8px;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-slider-input-section-WAJY);box-sizing:border-box}:host .slider{width:100%}:host span{padding-left:20px;font-size:var(--mat-form-field-outlined-label-text-populated-size-SCOPED-IN-slider-input-section-WAJY);color:var(--mat-form-field-outlined-label-text-color-SCOPED-IN-slider-input-section-WAJY);transform:scale(.75);transform-origin:top left}\n"] }]
|
|
85
85
|
}] });
|
|
86
86
|
|
|
87
87
|
/**
|
|
@@ -9,14 +9,14 @@ class SocialLoginSectionOrganism {
|
|
|
9
9
|
this.signInWithGoogleButtonClick = new EventEmitter();
|
|
10
10
|
}
|
|
11
11
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: SocialLoginSectionOrganism, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.6", type: SocialLoginSectionOrganism, isStandalone: true, selector: "organisms-social-login-section", outputs: { signInWithGoogleButtonClick: "signInWithGoogleButtonClick" }, ngImport: i0, template: "<button \n mat-raised-button \n color=\"primary\" \n (click)=\"signInWithGoogleButtonClick.emit()\"\n>Google\u30A2\u30AB\u30A6\u30F3\u30C8\u3067\u30ED\u30B0\u30A4\u30F3</button>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-heading-
|
|
12
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.6", type: SocialLoginSectionOrganism, isStandalone: true, selector: "organisms-social-login-section", outputs: { signInWithGoogleButtonClick: "signInWithGoogleButtonClick" }, ngImport: i0, template: "<button \n mat-raised-button \n color=\"primary\" \n (click)=\"signInWithGoogleButtonClick.emit()\"\n>Google\u30A2\u30AB\u30A6\u30F3\u30C8\u3067\u30ED\u30B0\u30A4\u30F3</button>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-heading-I6IG: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-heading-I6IG);box-sizing:border-box}:host button{width:100%;height:56px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
13
13
|
}
|
|
14
14
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: SocialLoginSectionOrganism, decorators: [{
|
|
15
15
|
type: Component,
|
|
16
16
|
args: [{ selector: 'organisms-social-login-section', standalone: true, imports: [
|
|
17
17
|
CommonModule,
|
|
18
18
|
MatButtonModule,
|
|
19
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button \n mat-raised-button \n color=\"primary\" \n (click)=\"signInWithGoogleButtonClick.emit()\"\n>Google\u30A2\u30AB\u30A6\u30F3\u30C8\u3067\u30ED\u30B0\u30A4\u30F3</button>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-heading-
|
|
19
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button \n mat-raised-button \n color=\"primary\" \n (click)=\"signInWithGoogleButtonClick.emit()\"\n>Google\u30A2\u30AB\u30A6\u30F3\u30C8\u3067\u30ED\u30B0\u30A4\u30F3</button>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-heading-I6IG: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-heading-I6IG);box-sizing:border-box}:host button{width:100%;height:56px}\n"] }]
|
|
20
20
|
}], propDecorators: { signInWithGoogleButtonClick: [{
|
|
21
21
|
type: Output
|
|
22
22
|
}] } });
|
|
@@ -19,7 +19,7 @@ class StripeFormService {
|
|
|
19
19
|
return this.fb.group({
|
|
20
20
|
email: ['', [Validators.required, Validators.email]],
|
|
21
21
|
address: this.fb.group({
|
|
22
|
-
city: ['', []],
|
|
22
|
+
city: ['', []],
|
|
23
23
|
country: ['', [Validators.required]],
|
|
24
24
|
line1: ['', [Validators.required]],
|
|
25
25
|
line2: ['', []],
|
|
@@ -128,12 +128,9 @@ class StripeInputSectionOrganism extends NgAtomicComponent {
|
|
|
128
128
|
return this.paymentElementLoaded$.pipe(map((loaded) => loaded ? null : { stripeLoaded: true }));
|
|
129
129
|
});
|
|
130
130
|
});
|
|
131
|
-
// effect(() => {
|
|
132
|
-
// this.linkAuthElement().
|
|
133
|
-
// })
|
|
134
131
|
}
|
|
135
132
|
onLoad(event) {
|
|
136
|
-
|
|
133
|
+
void 0;
|
|
137
134
|
}
|
|
138
135
|
onChangeAuthentication(event) {
|
|
139
136
|
console.debug('onChangeAuthentication', event);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-components-organisms-stripe-input-section.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/organisms/stripe-input-section/stripe-input-section.organism.ts","../../../../../packages/@ng-atomic/components/src/lib/organisms/stripe-input-section/ng-atomic-components-organisms-stripe-input-section.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Directive, Injectable, computed, effect, inject, input, viewChild } from '@angular/core';\nimport { toObservable } from '@angular/core/rxjs-interop';\nimport { FormBuilder, Validators } from '@angular/forms';\nimport { makeConfig } from '@ng-atomic/common/services/ui';\nimport { LoadingBoxMoleculeStore } from '@ng-atomic/components/molecules/loading-box';\nimport { InjectableComponent, NgAtomicComponent, TokenizedType, _computed } from '@ng-atomic/core';\nimport { Appearance, StripeAddressElementChangeEvent, StripeAddressElementOptions, StripeElementsOptions, StripeLinkAuthenticationElement, StripeLinkAuthenticationElementChangeEvent, StripeLinkAuthenticationElementOptions, StripePaymentElementChangeEvent, StripePaymentElementOptions } from '@stripe/stripe-js';\nimport { StripeAddressComponent, StripeCardComponent, StripeElementsDirective, StripeLinkAuthenticationComponent, StripePaymentElementComponent, injectStripe } from 'ngx-stripe';\nimport { computedAsync } from 'ngxtension/computed-async';\nimport { map, of } from 'rxjs';\n\n@Injectable({providedIn: 'root'})\nexport class StripeFormService {\n readonly fb = inject(FormBuilder);\n\n build() {\n return this.fb.group({\n email: ['', [Validators.required, Validators.email]],\n address: this.fb.group({\n city: ['', []], // MEMO(@nontangent): 住所のオートコンプリートによってはここが入力されないので必須を外している。\n country: ['', [Validators.required]],\n line1: ['', [Validators.required]],\n line2: ['', []],\n postalCode: ['', [Validators.required]],\n state: ['', [Validators.required]],\n }),\n name: ['', [Validators.required]],\n paymentMethodType: ['', [Validators.required]],\n });\n }\n}\n\n@TokenizedType()\n@Directive({standalone: true, selector: 'organisms-stripe-input-section'})\nexport class StripeInputSectionOrganismStore extends InjectableComponent {\n static readonly Config = makeConfig(() => {\n return () => ({\n form: inject(StripeFormService).build(),\n clientSecret: null as string | null,\n appearance: {\n theme: 'stripe',\n labels: 'above',\n variables: {\n colorPrimary: 'var(--accent-color)',\n },\n } as Appearance,\n linkOptions: {\n defaultValues: {\n email: ''\n },\n } as StripeLinkAuthenticationElementOptions,\n addressOptions: {\n mode: 'shipping',\n defaultValues: { }\n } as StripeAddressElementOptions,\n paymentOptions: {\n defaultValues: {\n billingDetails: {},\n },\n terms: {\n card: 'always',\n applePay: 'never',\n },\n } as StripePaymentElementOptions,\n elementsOptions: {\n locale: 'ja',\n language: 'ja',\n appearance: {\n theme: 'stripe',\n labels: 'above',\n variables: {\n colorPrimary: '#404040',\n },\n },\n loader: 'always',\n } as StripeElementsOptions,\n })\n }, ['components', 'organisms', 'organisms-stripe-input-section']);\n readonly config = StripeInputSectionOrganismStore.Config.inject();\n readonly form = input(_computed(() => this.config().form));\n readonly clientSecret = input(_computed(() => this.config()?.clientSecret));\n readonly ephemeralKey = input<{ ephemeralKey: { associated_objects: {id: string}[], secret: string} }>();\n readonly appearance = input(_computed(() => this.config().appearance));\n readonly linkOptions = input(_computed(() => this.config().linkOptions));\n readonly addressOptions = input(_computed(() => this.config().addressOptions));\n readonly paymentOptions = input(_computed(() => this.config().paymentOptions));\n readonly elementsOptions = input(_computed(() => this.config().elementsOptions));\n readonly _elementsOptions = computed(() => ({\n ...this.elementsOptions(),\n clientSecret: this.clientSecret(),\n }));\n}\n\n@Component({\n selector: 'organisms-stripe-input-section',\n imports: [\n StripeElementsDirective,\n StripePaymentElementComponent,\n StripeLinkAuthenticationComponent,\n StripeAddressComponent,\n LoadingBoxMoleculeStore,\n ],\n template: `\n @if (store._elementsOptions()?.clientSecret) {\n <ngx-stripe-elements\n [stripe]=\"stripe\"\n [elementsOptions]=\"store._elementsOptions()\"\n >\n <ngx-stripe-link-authentication\n [options]=\"store.linkOptions()\"\n (change)=\"onChangeAuthentication($event)\"\n (load)=\"onLoad($event)\"\n />\n <ngx-stripe-address\n [options]=\"store.addressOptions()\"\n (change)=\"onChangeAddress($event)\"\n />\n <ngx-stripe-payment\n [appearance]=\"store.appearance()\"\n [elementsOptions]=\"store.elementsOptions()\"\n [options]=\"store.paymentOptions()\"\n (change)=\"onChangePayment($event)\"\n />\n </ngx-stripe-elements>\n } @else { <molecules-loading-box [loadingMessage]=\"'支払いフォームを初期化中'\" injectable/> }\n `,\n styleUrl: './stripe-input-section.organism.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: StripeInputSectionOrganismStore,\n inputs: [\n 'form',\n 'clientSecret', 'ephemeralKey', 'appearance',\n 'linkOptions', 'addressOptions', 'paymentOptions', 'elementsOptions'\n ],\n },\n ]\n})\nexport class StripeInputSectionOrganism extends NgAtomicComponent {\n protected readonly store = inject(StripeInputSectionOrganismStore);\n readonly stripe = injectStripe();\n readonly linkAuthElement = viewChild(StripeLinkAuthenticationComponent);\n readonly paymentElement = viewChild(StripePaymentElementComponent);\n readonly addressElement = viewChild(StripeAddressComponent);\n\n readonly paymentElementLoaded = computedAsync(() => {\n if (this.paymentElement()) {\n return this.paymentElement()?.load.pipe(map(() => true));\n }\n return of(false);\n });\n readonly paymentElementLoaded$ = toObservable(this.paymentElementLoaded);\n\n constructor() {\n super();\n effect(() => {\n this.store.form().setAsyncValidators(() => {\n return this.paymentElementLoaded$.pipe(map((loaded) => loaded ? null : {stripeLoaded: true}));\n });\n });\n\n // effect(() => {\n // this.linkAuthElement().\n // })\n }\n\n protected onLoad(event: StripeLinkAuthenticationElement) {\n // console.debug('onLoad:', event.);\n }\n \n protected onChangeAuthentication(event: StripeLinkAuthenticationElementChangeEvent) {\n console.debug('onChangeAuthentication', event);\n this.store.form().patchValue({email: event.value.email});\n }\n\n protected onChangeAddress(event: StripeAddressElementChangeEvent) {\n this.store.form().patchValue({\n address: {\n ...event.value.address,\n postalCode: event.value.address.postal_code,\n },\n name: event.value.name\n });\n }\n\n protected onChangePayment(event: StripePaymentElementChangeEvent) {\n this.store.form().patchValue({paymentMethodType: event.value.type});\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;MAYa,iBAAiB,CAAA;AAD9B,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,EAAE,GAAG,MAAM,CAAC,WAAW,CAAC;AAiBlC,IAAA;IAfC,KAAK,GAAA;AACH,QAAA,OAAO,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AACnB,YAAA,KAAK,EAA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AA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AChJ5D;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-organisms-stripe-input-section.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/organisms/stripe-input-section/stripe-input-section.organism.ts","../../../../../packages/@ng-atomic/components/src/lib/organisms/stripe-input-section/ng-atomic-components-organisms-stripe-input-section.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Directive, Injectable, computed, effect, inject, input, viewChild } from '@angular/core';\nimport { toObservable } from '@angular/core/rxjs-interop';\nimport { FormBuilder, Validators } from '@angular/forms';\nimport { makeConfig } from '@ng-atomic/common/services/ui';\nimport { LoadingBoxMoleculeStore } from '@ng-atomic/components/molecules/loading-box';\nimport { InjectableComponent, NgAtomicComponent, TokenizedType, _computed } from '@ng-atomic/core';\nimport { Appearance, StripeAddressElementChangeEvent, StripeAddressElementOptions, StripeElementsOptions, StripeLinkAuthenticationElement, StripeLinkAuthenticationElementChangeEvent, StripeLinkAuthenticationElementOptions, StripePaymentElementChangeEvent, StripePaymentElementOptions } from '@stripe/stripe-js';\nimport { StripeAddressComponent, StripeCardComponent, StripeElementsDirective, StripeLinkAuthenticationComponent, StripePaymentElementComponent, injectStripe } from 'ngx-stripe';\nimport { computedAsync } from 'ngxtension/computed-async';\nimport { map, of } from 'rxjs';\n\n@Injectable({providedIn: 'root'})\nexport class StripeFormService {\n readonly fb = inject(FormBuilder);\n\n build() {\n return this.fb.group({\n email: ['', [Validators.required, Validators.email]],\n address: this.fb.group({\n city: ['', []], \n country: ['', [Validators.required]],\n line1: ['', [Validators.required]],\n line2: ['', []],\n postalCode: ['', [Validators.required]],\n state: ['', [Validators.required]],\n }),\n name: ['', [Validators.required]],\n paymentMethodType: ['', [Validators.required]],\n });\n }\n}\n\n@TokenizedType()\n@Directive({standalone: true, selector: 'organisms-stripe-input-section'})\nexport class StripeInputSectionOrganismStore extends InjectableComponent {\n static readonly Config = makeConfig(() => {\n return () => ({\n form: inject(StripeFormService).build(),\n clientSecret: null as string | null,\n appearance: {\n theme: 'stripe',\n labels: 'above',\n variables: {\n colorPrimary: 'var(--accent-color)',\n },\n } as Appearance,\n linkOptions: {\n defaultValues: {\n email: ''\n },\n } as StripeLinkAuthenticationElementOptions,\n addressOptions: {\n mode: 'shipping',\n defaultValues: { }\n } as StripeAddressElementOptions,\n paymentOptions: {\n defaultValues: {\n billingDetails: {},\n },\n terms: {\n card: 'always',\n applePay: 'never',\n },\n } as StripePaymentElementOptions,\n elementsOptions: {\n locale: 'ja',\n language: 'ja',\n appearance: {\n theme: 'stripe',\n labels: 'above',\n variables: {\n colorPrimary: '#404040',\n },\n },\n loader: 'always',\n } as StripeElementsOptions,\n })\n }, ['components', 'organisms', 'organisms-stripe-input-section']);\n readonly config = StripeInputSectionOrganismStore.Config.inject();\n readonly form = input(_computed(() => this.config().form));\n readonly clientSecret = input(_computed(() => this.config()?.clientSecret));\n readonly ephemeralKey = input<{ ephemeralKey: { associated_objects: {id: string}[], secret: string} }>();\n readonly appearance = input(_computed(() => this.config().appearance));\n readonly linkOptions = input(_computed(() => this.config().linkOptions));\n readonly addressOptions = input(_computed(() => this.config().addressOptions));\n readonly paymentOptions = input(_computed(() => this.config().paymentOptions));\n readonly elementsOptions = input(_computed(() => this.config().elementsOptions));\n readonly _elementsOptions = computed(() => ({\n ...this.elementsOptions(),\n clientSecret: this.clientSecret(),\n }));\n}\n\n@Component({\n selector: 'organisms-stripe-input-section',\n imports: [\n StripeElementsDirective,\n StripePaymentElementComponent,\n StripeLinkAuthenticationComponent,\n StripeAddressComponent,\n LoadingBoxMoleculeStore,\n ],\n template: `\n @if (store._elementsOptions()?.clientSecret) {\n <ngx-stripe-elements\n [stripe]=\"stripe\"\n [elementsOptions]=\"store._elementsOptions()\"\n >\n <ngx-stripe-link-authentication\n [options]=\"store.linkOptions()\"\n (change)=\"onChangeAuthentication($event)\"\n (load)=\"onLoad($event)\"\n />\n <ngx-stripe-address\n [options]=\"store.addressOptions()\"\n (change)=\"onChangeAddress($event)\"\n />\n <ngx-stripe-payment\n [appearance]=\"store.appearance()\"\n [elementsOptions]=\"store.elementsOptions()\"\n [options]=\"store.paymentOptions()\"\n (change)=\"onChangePayment($event)\"\n />\n </ngx-stripe-elements>\n } @else { <molecules-loading-box [loadingMessage]=\"'支払いフォームを初期化中'\" injectable/> }\n `,\n styleUrl: './stripe-input-section.organism.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: StripeInputSectionOrganismStore,\n inputs: [\n 'form',\n 'clientSecret', 'ephemeralKey', 'appearance',\n 'linkOptions', 'addressOptions', 'paymentOptions', 'elementsOptions'\n ],\n },\n ]\n})\nexport class StripeInputSectionOrganism extends NgAtomicComponent {\n protected readonly store = inject(StripeInputSectionOrganismStore);\n readonly stripe = injectStripe();\n readonly linkAuthElement = viewChild(StripeLinkAuthenticationComponent);\n readonly paymentElement = viewChild(StripePaymentElementComponent);\n readonly addressElement = viewChild(StripeAddressComponent);\n\n readonly paymentElementLoaded = computedAsync(() => {\n if (this.paymentElement()) {\n return this.paymentElement()?.load.pipe(map(() => true));\n }\n return of(false);\n });\n readonly paymentElementLoaded$ = toObservable(this.paymentElementLoaded);\n\n constructor() {\n super();\n effect(() => {\n this.store.form().setAsyncValidators(() => {\n return this.paymentElementLoaded$.pipe(map((loaded) => loaded ? null : {stripeLoaded: true}));\n });\n });\n\n \n \n \n }\n\n protected onLoad(event: StripeLinkAuthenticationElement) {\n void 0;\n }\n \n protected onChangeAuthentication(event: StripeLinkAuthenticationElementChangeEvent) {\n console.debug('onChangeAuthentication', event);\n this.store.form().patchValue({email: event.value.email});\n }\n\n protected onChangeAddress(event: StripeAddressElementChangeEvent) {\n this.store.form().patchValue({\n address: {\n ...event.value.address,\n postalCode: event.value.address.postal_code,\n },\n name: event.value.name\n });\n }\n\n protected onChangePayment(event: StripePaymentElementChangeEvent) {\n this.store.form().patchVal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AAA,EAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAClC,6BAA6B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAC7B,sBAAsB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AChJ5D;;AAEG;;;;"}
|
|
@@ -62,7 +62,6 @@ class CustomDataSource extends DataSource {
|
|
|
62
62
|
data: this.data$,
|
|
63
63
|
itemSize: this.itemSize$,
|
|
64
64
|
}).pipe(map(({ data, itemSize }) => {
|
|
65
|
-
// データ長に基づく高さを計算
|
|
66
65
|
return itemSize * data.length;
|
|
67
66
|
}), distinctUntilChanged());
|
|
68
67
|
this.scrollTop$ = this.viewport$.pipe(filter((viewport) => !!viewport), switchMap((viewport) => viewport.elementScrolled()), map(({ currentTarget }) => currentTarget?.scrollTop ?? 0), startWith(0));
|
|
@@ -124,8 +123,6 @@ class CustomDataSource extends DataSource {
|
|
|
124
123
|
}
|
|
125
124
|
class CustomVirtualScrollStrategy extends FixedSizeVirtualScrollStrategy {
|
|
126
125
|
constructor() {
|
|
127
|
-
// itemSize: 52px, minBufferPx: 520px (10 rows), maxBufferPx: 1040px (20 rows)
|
|
128
|
-
// バッファを大きくして、スクロール時のちらつきを減らす
|
|
129
126
|
super(ITEM_SIZE, ITEM_SIZE * 10, ITEM_SIZE * 20);
|
|
130
127
|
}
|
|
131
128
|
}
|
|
@@ -134,11 +131,6 @@ function buildMatTreeFlattener(getChildren = (node) => get(node, 'children') ??
|
|
|
134
131
|
node.level = level;
|
|
135
132
|
node.isExpandable = !!getChildren(node).length;
|
|
136
133
|
return node;
|
|
137
|
-
// return ({
|
|
138
|
-
// ...node,
|
|
139
|
-
// level,
|
|
140
|
-
// isExpandable: !!getChildren(node).length
|
|
141
|
-
// })
|
|
142
134
|
}, (node) => node.level, (node) => node.isExpandable, (node) => getChildren(node));
|
|
143
135
|
}
|
|
144
136
|
function buildTreeFlatDataSource(treeControl, data, getChildren = (node) => get(node, 'children') ?? []) {
|
|
@@ -231,7 +223,6 @@ let TableOrganismStore = class TableOrganismStore extends InjectableComponent {
|
|
|
231
223
|
this.sort = computed(() => this.formValue()?.sort ?? { key: '', order: 'asc' }, { ...(ngDevMode ? { debugName: "sort" } : {}), equal: (a, b) => JSON.stringify(a) === JSON.stringify(b) });
|
|
232
224
|
this.columns = computed(() => __buildColumns(this.formValue(), this.itemActions(), this.sort()), { ...(ngDevMode ? { debugName: "columns" } : {}), equal: isEqual });
|
|
233
225
|
this.columnNames = computed(() => this.columns().map(column => column.name), { ...(ngDevMode ? { debugName: "columnNames" } : {}), equal: isEqual });
|
|
234
|
-
// MEMO(NozomuMiyamoto): treeControlのdataNodesの変更検知がTreeColumnMoleculeからはできないため、TableOrganismStoreで更新を検知している。
|
|
235
226
|
this.isExpandedAll = derivedAsync(() => {
|
|
236
227
|
this.dataSource();
|
|
237
228
|
const control = this.treeControl();
|
|
@@ -274,16 +265,13 @@ class TableOrganism extends NgAtomicComponent {
|
|
|
274
265
|
effect(() => {
|
|
275
266
|
const dataSource = this.store.dataSource();
|
|
276
267
|
this.dataSource.reconnect(dataSource);
|
|
277
|
-
// 既存の購読を解除
|
|
278
268
|
if (this.dataNodesSubscription) {
|
|
279
269
|
this.dataNodesSubscription.unsubscribe();
|
|
280
270
|
this.dataNodesSubscription = undefined;
|
|
281
271
|
}
|
|
282
|
-
// TreeFlatDataSourceの場合、dataNodesを更新(expandAll/collapseAll用)
|
|
283
272
|
if (this.store.childrenKey() && dataSource) {
|
|
284
273
|
const flattenedData = dataSource._flattenedData;
|
|
285
274
|
if (flattenedData) {
|
|
286
|
-
// BehaviorSubjectを購読して、値が変更されたときにdataNodesを更新
|
|
287
275
|
this.dataNodesSubscription = flattenedData.subscribe((nodes) => {
|
|
288
276
|
if (nodes && nodes.length > 0) {
|
|
289
277
|
this.store.treeControl().dataNodes = nodes;
|
|
@@ -337,7 +325,6 @@ class TableOrganism extends NgAtomicComponent {
|
|
|
337
325
|
}
|
|
338
326
|
});
|
|
339
327
|
}
|
|
340
|
-
// オートフィル完了イベントを受け取る(ディレクティブから)
|
|
341
328
|
onAutofillComplete(payload) {
|
|
342
329
|
this.dispatch({ id: ActionId.AUTOFILL_COMPLETE, payload });
|
|
343
330
|
}
|
|
@@ -420,7 +407,7 @@ class TableOrganism extends NgAtomicComponent {
|
|
|
420
407
|
</tbody>
|
|
421
408
|
</table>
|
|
422
409
|
</cdk-virtual-scroll-viewport>
|
|
423
|
-
`, isInline: true, styles: [":host{--width: 100%;--width-SCOPED-IN-smart-table-
|
|
410
|
+
`, isInline: true, styles: [":host{--width: 100%;--width-SCOPED-IN-smart-table-iE5w: var(--width);--column-vertical-padding: 4px;--column-vertical-padding-SCOPED-IN-smart-table-iE5w: var(--column-vertical-padding);--surface-color: #f0f0f0;--surface-color-SCOPED-IN-smart-table-iE5w: var(--surface-color);--on-surface-color: #000;--on-surface-color-SCOPED-IN-smart-table-iE5w: var(--on-surface-color);--background-color: #f0f0f0;--background-color-SCOPED-IN-smart-table-iE5w: var(--background-color);--on-background-color: #000;--on-background-color-SCOPED-IN-smart-table-iE5w: var(--on-background-color);--vertical-padding: 16px;--vertical-padding-SCOPED-IN-smart-table-iE5w: var(--vertical-padding)}.cdk-drag-preview{display:table;background-color:#fff}.cdk-drag-placeholder{opacity:0}:host{position:relative;display:block;width:100%;height:100%;overflow:hidden}:host table{min-width:100%;min-height:100%;background-color:var(--surface-color-SCOPED-IN-smart-table-iE5w);color:var(--on-surface-color-SCOPED-IN-smart-table-iE5w);--mat-table-row-item-label-text-color: var(--on-surface-color);--mat-table-header-headline-color: var(--on-surface-color)}:host table .nowrap{width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host table ::ng-deep th,:host table ::ng-deep td{padding:0 var(--column-vertical-padding-SCOPED-IN-smart-table-iE5w);box-sizing:border-box}:host table ::ng-deep th:first-child,:host table ::ng-deep td:first-child{padding-left:var(--vertical-padding-SCOPED-IN-smart-table-iE5w)}:host table ::ng-deep th:last-child,:host table ::ng-deep td:last-child{padding-right:var(--vertical-padding-SCOPED-IN-smart-table-iE5w)}:host table ::ng-deep tr.highlight{background-color:#f0f0f0;transition:background-color .5s}:host .no-data-message{display:flex;justify-content:flex-start;align-items:center;width:calc(100% - 32px);height:3em;padding:0 16px}:host table{border-collapse:collapse;-webkit-user-select:none;user-select:none}:host cdk-virtual-scroll-viewport{width:100%;height:100%;display:block;overflow:auto}:host cdk-virtual-scroll-viewport ::ng-deep .cdk-virtual-scroll-content-wrapper{transform:translateY(0)!important;min-height:100%;min-width:100%;width:auto}:host cdk-virtual-scroll-viewport ::ng-deep .cdk-virtual-scroll-spacer{width:1px;transform:translateZ(0)}:host.autofill-active{-webkit-user-select:none;user-select:none}:host.autofill-active td{pointer-events:none}:host.autofill-active td.autofill-source{pointer-events:auto}:host ::ng-deep td.autofill-preview{background-color:#2196f31a!important;border:1px dashed #2196F3!important}:host ::ng-deep td.autofill-preview:after{content:\"\";position:absolute;inset:0;background-color:#2196f30d;pointer-events:none;z-index:1}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "component", type: i1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: i1.MatNoDataRow, selector: "ng-template[matNoDataRow]" }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "ngmodule", type: MatMenuModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: ActionsColumnMolecule, selector: "molecules-actions-column" }, { kind: "component", type: CheckboxColumnMolecule, selector: "molecules-checkbox-column" }, { kind: "component", type: TextColumnMolecule, selector: "molecules-text-column", inputs: ["formFieldMap"], outputs: ["headerClick"] }, { kind: "component", type: TreeColumnMolecule, selector: "molecules-tree-column", outputs: ["headerClick", "handleMouseDown"] }, { kind: "directive", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "component", type: i2.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: GridDataTableAutofill, selector: "[gridDataTableAutofill]", outputs: ["autofillComplete"] }, { kind: "pipe", type: StylePipe, name: "style" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
424
411
|
}
|
|
425
412
|
__decorate([
|
|
426
413
|
Effect(CheckboxColumnMolecule.ActionId.CHECKBOX_CLICK),
|
|
@@ -558,7 +545,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
|
|
|
558
545
|
}, providers: [
|
|
559
546
|
provideSpreadSheetService(),
|
|
560
547
|
{ provide: VIRTUAL_SCROLL_STRATEGY, useClass: CustomVirtualScrollStrategy },
|
|
561
|
-
], styles: [":host{--width: 100%;--width-SCOPED-IN-smart-table-
|
|
548
|
+
], styles: [":host{--width: 100%;--width-SCOPED-IN-smart-table-iE5w: var(--width);--column-vertical-padding: 4px;--column-vertical-padding-SCOPED-IN-smart-table-iE5w: var(--column-vertical-padding);--surface-color: #f0f0f0;--surface-color-SCOPED-IN-smart-table-iE5w: var(--surface-color);--on-surface-color: #000;--on-surface-color-SCOPED-IN-smart-table-iE5w: var(--on-surface-color);--background-color: #f0f0f0;--background-color-SCOPED-IN-smart-table-iE5w: var(--background-color);--on-background-color: #000;--on-background-color-SCOPED-IN-smart-table-iE5w: var(--on-background-color);--vertical-padding: 16px;--vertical-padding-SCOPED-IN-smart-table-iE5w: var(--vertical-padding)}.cdk-drag-preview{display:table;background-color:#fff}.cdk-drag-placeholder{opacity:0}:host{position:relative;display:block;width:100%;height:100%;overflow:hidden}:host table{min-width:100%;min-height:100%;background-color:var(--surface-color-SCOPED-IN-smart-table-iE5w);color:var(--on-surface-color-SCOPED-IN-smart-table-iE5w);--mat-table-row-item-label-text-color: var(--on-surface-color);--mat-table-header-headline-color: var(--on-surface-color)}:host table .nowrap{width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host table ::ng-deep th,:host table ::ng-deep td{padding:0 var(--column-vertical-padding-SCOPED-IN-smart-table-iE5w);box-sizing:border-box}:host table ::ng-deep th:first-child,:host table ::ng-deep td:first-child{padding-left:var(--vertical-padding-SCOPED-IN-smart-table-iE5w)}:host table ::ng-deep th:last-child,:host table ::ng-deep td:last-child{padding-right:var(--vertical-padding-SCOPED-IN-smart-table-iE5w)}:host table ::ng-deep tr.highlight{background-color:#f0f0f0;transition:background-color .5s}:host .no-data-message{display:flex;justify-content:flex-start;align-items:center;width:calc(100% - 32px);height:3em;padding:0 16px}:host table{border-collapse:collapse;-webkit-user-select:none;user-select:none}:host cdk-virtual-scroll-viewport{width:100%;height:100%;display:block;overflow:auto}:host cdk-virtual-scroll-viewport ::ng-deep .cdk-virtual-scroll-content-wrapper{transform:translateY(0)!important;min-height:100%;min-width:100%;width:auto}:host cdk-virtual-scroll-viewport ::ng-deep .cdk-virtual-scroll-spacer{width:1px;transform:translateZ(0)}:host.autofill-active{-webkit-user-select:none;user-select:none}:host.autofill-active td{pointer-events:none}:host.autofill-active td.autofill-source{pointer-events:auto}:host ::ng-deep td.autofill-preview{background-color:#2196f31a!important;border:1px dashed #2196F3!important}:host ::ng-deep td.autofill-preview:after{content:\"\";position:absolute;inset:0;background-color:#2196f30d;pointer-events:none;z-index:1}\n"] }]
|
|
562
549
|
}], ctorParameters: () => [], propDecorators: { viewport: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CdkVirtualScrollViewport), { isSignal: true }] }], onCheckboxClick: [], onHeaderCheckboxClick: [], onChangeWidth: [] } });
|
|
563
550
|
function getDisplayedNodes(nodes, control) {
|
|
564
551
|
const result = [];
|
|
@@ -582,8 +569,6 @@ function flatItems(items, key = 'children') {
|
|
|
582
569
|
return result;
|
|
583
570
|
}
|
|
584
571
|
|
|
585
|
-
/** @deprecated use instead `'@ng-atomic/common/services/form/_index` */
|
|
586
|
-
|
|
587
572
|
/**
|
|
588
573
|
* Generated bundle index. Do not edit.
|
|
589
574
|
*/
|