@ng-atomic/components 6.0.4 → 15.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/atoms/smart-menu-button/smart-menu-button.atom.d.ts +1 -1
  2. package/esm2022/atoms/icon/icon.atom.mjs +2 -2
  3. package/esm2022/atoms/smart-menu-button/smart-menu-button.atom.mjs +1 -1
  4. package/esm2022/frames/auto-layout/auto-layout.frame.mjs +2 -2
  5. package/esm2022/frames/divider/divider.frame.mjs +4 -4
  6. package/esm2022/frames/drawer/drawer.frame.mjs +2 -2
  7. package/esm2022/frames/fab/fab.frame.mjs +4 -4
  8. package/esm2022/frames/fab/fab.service.mjs +1 -1
  9. package/esm2022/frames/line-up/line-up.frame.mjs +2 -2
  10. package/esm2022/frames/overlay/overlay.frame.mjs +2 -2
  11. package/esm2022/frames/scroll/scroll.frame.mjs +2 -2
  12. package/esm2022/frames/scroll-v2/scroll.frame.mjs +2 -2
  13. package/esm2022/frames/side-nav/side-nav.frame.mjs +5 -5
  14. package/esm2022/frames/smart-menu/smart-menu.frame.mjs +2 -2
  15. package/esm2022/frames/vertical-hide/vertical-hide.frame.mjs +2 -2
  16. package/esm2022/molecules/action-input-field/action-input-field.molecule.mjs +2 -2
  17. package/esm2022/molecules/actions-column/actions-column.molecule.mjs +1 -1
  18. package/esm2022/molecules/date-input-field/date-input-field.molecule.mjs +2 -2
  19. package/esm2022/molecules/file-input-field/file-input-field.molecule.mjs +2 -2
  20. package/esm2022/molecules/navigation-list-item/navigation-list-item.molecule.mjs +2 -2
  21. package/esm2022/molecules/nested-menu/nested-menu.molecule.mjs +1 -1
  22. package/esm2022/molecules/select-input-field/select-input-field.molecule.mjs +2 -2
  23. package/esm2022/molecules/textarea-field/textarea-field.molecule.mjs +1 -1
  24. package/esm2022/organisms/action-buttons-section/action-buttons-section.organism.mjs +3 -3
  25. package/esm2022/organisms/action-input-section/action-input-section.organism.mjs +4 -4
  26. package/esm2022/organisms/card-input-section/card-input-section.organism.mjs +2 -2
  27. package/esm2022/organisms/cvc-and-exp-input-section/cvc-and-exp-input-section.organism.mjs +2 -2
  28. package/esm2022/organisms/date-input-section/date-input-section.organism.mjs +2 -2
  29. package/esm2022/organisms/file-input-section/file-input-section.organism.mjs +4 -4
  30. package/esm2022/organisms/graphql-editor/graphql-editor.organism.mjs +2 -2
  31. package/esm2022/organisms/grid-toolbar/grid-toolbar.organism.mjs +1 -1
  32. package/esm2022/organisms/heading/heading.organism.mjs +2 -2
  33. package/esm2022/organisms/menu-footer/menu-footer.organism.mjs +2 -2
  34. package/esm2022/organisms/menu-header/menu-header.organism.mjs +2 -2
  35. package/esm2022/organisms/message-input-section/message-input-section.organism.mjs +1 -1
  36. package/esm2022/organisms/messages-section/messages-section.organism.mjs +2 -2
  37. package/esm2022/organisms/navigation-list/navigation-list.organism.mjs +4 -4
  38. package/esm2022/organisms/navigator/navigator.organism.mjs +4 -4
  39. package/esm2022/organisms/select-input-section/select-input-section.organism.mjs +2 -2
  40. package/esm2022/organisms/selection-list/selection-list.organism.mjs +2 -2
  41. package/esm2022/organisms/smart-list/smart-list.organism.mjs +2 -2
  42. package/esm2022/organisms/smart-table/smart-table.organism.mjs +3 -3
  43. package/esm2022/organisms/social-login-section/social-login-section.organism.mjs +2 -2
  44. package/esm2022/organisms/text-input-section/text-input-section.organism.mjs +2 -2
  45. package/esm2022/organisms/textarea-section/textarea-section.organism.mjs +3 -3
  46. package/esm2022/organisms/toolbar/toolbar.organism.mjs +2 -2
  47. package/esm2022/organisms/tree-section/tree-section.organism.mjs +1 -1
  48. package/esm2022/templates/code-editor/code-editor.template.mjs +2 -2
  49. package/esm2022/templates/entrance/entrance.template.mjs +3 -3
  50. package/esm2022/templates/file-tree/file-tree.template.mjs +2 -2
  51. package/esm2022/templates/icon-button-menu/icon-button-menu.template.mjs +4 -4
  52. package/esm2022/templates/menu/menu.template.mjs +5 -5
  53. package/esm2022/templates/messages/messages.template.mjs +1 -1
  54. package/esm2022/templates/selection/selection.template.mjs +2 -2
  55. package/esm2022/templates/smart-crud/smart-crud.template.mjs +4 -4
  56. package/esm2022/templates/smart-index/smart-index.template.mjs +4 -4
  57. package/esm2022/templates/tab-editor/tab-editor.template.mjs +2 -2
  58. package/esm2022/templates/term/term.template.mjs +2 -2
  59. package/fesm2022/ng-atomic-components-atoms-icon.mjs +2 -2
  60. package/fesm2022/ng-atomic-components-atoms-smart-menu-button.mjs.map +1 -1
  61. package/fesm2022/ng-atomic-components-frames-auto-layout.mjs +2 -2
  62. package/fesm2022/ng-atomic-components-frames-divider.mjs +3 -3
  63. package/fesm2022/ng-atomic-components-frames-divider.mjs.map +1 -1
  64. package/fesm2022/ng-atomic-components-frames-drawer.mjs +2 -2
  65. package/fesm2022/ng-atomic-components-frames-fab.mjs +3 -3
  66. package/fesm2022/ng-atomic-components-frames-fab.mjs.map +1 -1
  67. package/fesm2022/ng-atomic-components-frames-line-up.mjs +2 -2
  68. package/fesm2022/ng-atomic-components-frames-overlay.mjs +2 -2
  69. package/fesm2022/ng-atomic-components-frames-scroll-v2.mjs +2 -2
  70. package/fesm2022/ng-atomic-components-frames-scroll.mjs +2 -2
  71. package/fesm2022/ng-atomic-components-frames-side-nav.mjs +3 -4
  72. package/fesm2022/ng-atomic-components-frames-side-nav.mjs.map +1 -1
  73. package/fesm2022/ng-atomic-components-frames-smart-menu.mjs +2 -2
  74. package/fesm2022/ng-atomic-components-frames-vertical-hide.mjs +2 -2
  75. package/fesm2022/ng-atomic-components-molecules-action-input-field.mjs +1 -1
  76. package/fesm2022/ng-atomic-components-molecules-action-input-field.mjs.map +1 -1
  77. package/fesm2022/ng-atomic-components-molecules-actions-column.mjs.map +1 -1
  78. package/fesm2022/ng-atomic-components-molecules-date-input-field.mjs +2 -2
  79. package/fesm2022/ng-atomic-components-molecules-file-input-field.mjs +1 -1
  80. package/fesm2022/ng-atomic-components-molecules-file-input-field.mjs.map +1 -1
  81. package/fesm2022/ng-atomic-components-molecules-navigation-list-item.mjs +1 -1
  82. package/fesm2022/ng-atomic-components-molecules-navigation-list-item.mjs.map +1 -1
  83. package/fesm2022/ng-atomic-components-molecules-nested-menu.mjs.map +1 -1
  84. package/fesm2022/ng-atomic-components-molecules-select-input-field.mjs +2 -2
  85. package/fesm2022/ng-atomic-components-molecules-textarea-field.mjs.map +1 -1
  86. package/fesm2022/ng-atomic-components-organisms-action-buttons-section.mjs +2 -2
  87. package/fesm2022/ng-atomic-components-organisms-action-buttons-section.mjs.map +1 -1
  88. package/fesm2022/ng-atomic-components-organisms-action-input-section.mjs +3 -3
  89. package/fesm2022/ng-atomic-components-organisms-action-input-section.mjs.map +1 -1
  90. package/fesm2022/ng-atomic-components-organisms-card-input-section.mjs +2 -2
  91. package/fesm2022/ng-atomic-components-organisms-cvc-and-exp-input-section.mjs +2 -2
  92. package/fesm2022/ng-atomic-components-organisms-date-input-section.mjs +2 -2
  93. package/fesm2022/ng-atomic-components-organisms-file-input-section.mjs +3 -3
  94. package/fesm2022/ng-atomic-components-organisms-file-input-section.mjs.map +1 -1
  95. package/fesm2022/ng-atomic-components-organisms-graphql-editor.mjs +1 -1
  96. package/fesm2022/ng-atomic-components-organisms-graphql-editor.mjs.map +1 -1
  97. package/fesm2022/ng-atomic-components-organisms-grid-toolbar.mjs.map +1 -1
  98. package/fesm2022/ng-atomic-components-organisms-heading.mjs +2 -2
  99. package/fesm2022/ng-atomic-components-organisms-menu-footer.mjs +1 -1
  100. package/fesm2022/ng-atomic-components-organisms-menu-footer.mjs.map +1 -1
  101. package/fesm2022/ng-atomic-components-organisms-menu-header.mjs +1 -1
  102. package/fesm2022/ng-atomic-components-organisms-menu-header.mjs.map +1 -1
  103. package/fesm2022/ng-atomic-components-organisms-message-input-section.mjs.map +1 -1
  104. package/fesm2022/ng-atomic-components-organisms-messages-section.mjs +2 -2
  105. package/fesm2022/ng-atomic-components-organisms-navigation-list.mjs +3 -3
  106. package/fesm2022/ng-atomic-components-organisms-navigation-list.mjs.map +1 -1
  107. package/fesm2022/ng-atomic-components-organisms-navigator.mjs +3 -3
  108. package/fesm2022/ng-atomic-components-organisms-navigator.mjs.map +1 -1
  109. package/fesm2022/ng-atomic-components-organisms-select-input-section.mjs +2 -2
  110. package/fesm2022/ng-atomic-components-organisms-selection-list.mjs +1 -1
  111. package/fesm2022/ng-atomic-components-organisms-selection-list.mjs.map +1 -1
  112. package/fesm2022/ng-atomic-components-organisms-smart-list.mjs +1 -1
  113. package/fesm2022/ng-atomic-components-organisms-smart-list.mjs.map +1 -1
  114. package/fesm2022/ng-atomic-components-organisms-smart-table.mjs +2 -2
  115. package/fesm2022/ng-atomic-components-organisms-smart-table.mjs.map +1 -1
  116. package/fesm2022/ng-atomic-components-organisms-social-login-section.mjs +2 -2
  117. package/fesm2022/ng-atomic-components-organisms-text-input-section.mjs +2 -2
  118. package/fesm2022/ng-atomic-components-organisms-textarea-section.mjs +2 -2
  119. package/fesm2022/ng-atomic-components-organisms-textarea-section.mjs.map +1 -1
  120. package/fesm2022/ng-atomic-components-organisms-toolbar.mjs +1 -1
  121. package/fesm2022/ng-atomic-components-organisms-toolbar.mjs.map +1 -1
  122. package/fesm2022/ng-atomic-components-organisms-tree-section.mjs.map +1 -1
  123. package/fesm2022/ng-atomic-components-templates-code-editor.mjs +1 -1
  124. package/fesm2022/ng-atomic-components-templates-code-editor.mjs.map +1 -1
  125. package/fesm2022/ng-atomic-components-templates-entrance.mjs +2 -2
  126. package/fesm2022/ng-atomic-components-templates-entrance.mjs.map +1 -1
  127. package/fesm2022/ng-atomic-components-templates-file-tree.mjs +1 -1
  128. package/fesm2022/ng-atomic-components-templates-file-tree.mjs.map +1 -1
  129. package/fesm2022/ng-atomic-components-templates-icon-button-menu.mjs +3 -3
  130. package/fesm2022/ng-atomic-components-templates-icon-button-menu.mjs.map +1 -1
  131. package/fesm2022/ng-atomic-components-templates-menu.mjs +3 -4
  132. package/fesm2022/ng-atomic-components-templates-menu.mjs.map +1 -1
  133. package/fesm2022/ng-atomic-components-templates-messages.mjs.map +1 -1
  134. package/fesm2022/ng-atomic-components-templates-selection.mjs +1 -1
  135. package/fesm2022/ng-atomic-components-templates-selection.mjs.map +1 -1
  136. package/fesm2022/ng-atomic-components-templates-smart-crud.mjs +3 -3
  137. package/fesm2022/ng-atomic-components-templates-smart-crud.mjs.map +1 -1
  138. package/fesm2022/ng-atomic-components-templates-smart-index.mjs +3 -3
  139. package/fesm2022/ng-atomic-components-templates-smart-index.mjs.map +1 -1
  140. package/fesm2022/ng-atomic-components-templates-tab-editor.mjs +1 -1
  141. package/fesm2022/ng-atomic-components-templates-tab-editor.mjs.map +1 -1
  142. package/fesm2022/ng-atomic-components-templates-term.mjs +1 -1
  143. package/fesm2022/ng-atomic-components-templates-term.mjs.map +1 -1
  144. package/frames/divider/divider.frame.d.ts +1 -1
  145. package/frames/fab/fab.frame.d.ts +2 -2
  146. package/frames/fab/fab.service.d.ts +1 -1
  147. package/frames/side-nav/side-nav.frame.d.ts +3 -3
  148. package/molecules/action-input-field/action-input-field.molecule.d.ts +2 -2
  149. package/molecules/actions-column/actions-column.molecule.d.ts +1 -1
  150. package/molecules/file-input-field/file-input-field.molecule.d.ts +1 -1
  151. package/molecules/navigation-list-item/navigation-list-item.molecule.d.ts +2 -2
  152. package/molecules/nested-menu/nested-menu.molecule.d.ts +1 -1
  153. package/molecules/textarea-field/textarea-field.molecule.d.ts +1 -1
  154. package/organisms/action-buttons-section/action-buttons-section.organism.d.ts +1 -1
  155. package/organisms/action-input-section/action-input-section.organism.d.ts +2 -2
  156. package/organisms/file-input-section/file-input-section.organism.d.ts +1 -1
  157. package/organisms/graphql-editor/graphql-editor.organism.d.ts +2 -2
  158. package/organisms/grid-toolbar/grid-toolbar.organism.d.ts +1 -1
  159. package/organisms/menu-footer/menu-footer.organism.d.ts +1 -1
  160. package/organisms/menu-header/menu-header.organism.d.ts +1 -1
  161. package/organisms/message-input-section/message-input-section.organism.d.ts +1 -1
  162. package/organisms/navigation-list/navigation-list.organism.d.ts +2 -2
  163. package/organisms/navigator/navigator.organism.d.ts +2 -2
  164. package/organisms/selection-list/selection-list.organism.d.ts +2 -2
  165. package/organisms/smart-list/smart-list.organism.d.ts +1 -1
  166. package/organisms/smart-table/smart-table.organism.d.ts +1 -1
  167. package/organisms/textarea-section/textarea-section.organism.d.ts +1 -1
  168. package/organisms/toolbar/toolbar.organism.d.ts +2 -2
  169. package/organisms/tree-section/tree-section.organism.d.ts +1 -1
  170. package/package.json +3 -3
  171. package/templates/code-editor/code-editor.template.d.ts +1 -1
  172. package/templates/entrance/entrance.template.d.ts +1 -1
  173. package/templates/file-tree/file-tree.template.d.ts +1 -1
  174. package/templates/icon-button-menu/icon-button-menu.template.d.ts +2 -2
  175. package/templates/menu/menu.template.d.ts +3 -3
  176. package/templates/messages/messages.template.d.ts +1 -1
  177. package/templates/selection/selection.template.d.ts +2 -2
  178. package/templates/smart-crud/smart-crud.template.d.ts +2 -2
  179. package/templates/smart-index/smart-index.template.d.ts +2 -2
  180. package/templates/tab-editor/tab-editor.template.d.ts +1 -1
  181. package/templates/term/term.template.d.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-components-molecules-actions-column.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/actions-column/actions-column.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/actions-column/ng-atomic-components-molecules-actions-column.ts"],"sourcesContent":["import { CdkCellDef, CdkColumnDef, CdkHeaderCellDef, CdkTable, TextColumnOptions, TEXT_COLUMN_OPTIONS } from '@angular/cdk/table';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, EventEmitter, Inject, Input, Optional, Output, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatTableModule } from '@angular/material/table';\nimport { Action, Actions } from '@ng-atomic/common/models';\nimport { ActionsPipe } from '@ng-atomic/common/pipes/actions';\nimport { SmartMenuButtonAtom } from '@ng-atomic/components/atoms/smart-menu-button';\n\n@Component({\n selector: 'molecules-actions-column',\n standalone: true,\n imports: [\n CommonModule,\n MatTableModule,\n MatMenuModule,\n MatButtonModule,\n MatIconModule,\n SmartMenuButtonAtom,\n ActionsPipe,\n ],\n template: `\n <ng-container matColumnDef>\n <th mat-header-cell *matHeaderCellDef>操作</th>\n <td mat-cell *matCellDef=\"let item\">\n <atoms-smart-menu-button\n [actions]=\"itemActions | resolveActions: item\"\n (action)=\"action.emit({id: $event.id, payload: item})\"\n ></atoms-smart-menu-button>\n </td>\n </ng-container>\n `,\n styleUrls: ['./actions-column.molecule.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ActionsColumnMolecule<T> {\n @Input()\n get name(): string {\n return this._name;\n }\n set name(name: string) {\n this._name = name;\n this._syncColumnDefName();\n }\n _name!: string;\n\n @Input()\n itemActions: Actions = [];\n\n @Output()\n action = new EventEmitter<Action>();\n\n @ViewChild(CdkColumnDef, {static: true})\n columnDef!: CdkColumnDef;\n \n @ViewChild(CdkCellDef, {static: true})\n cell!: CdkCellDef;\n\n @ViewChild(CdkHeaderCellDef, {static: true})\n headerCell!: CdkHeaderCellDef;\n\n constructor(\n @Optional() private _table: CdkTable<T>,\n @Optional() @Inject(TEXT_COLUMN_OPTIONS) private _options: TextColumnOptions<T>,\n ) {\n this._options ??= {};\n }\n\n ngOnInit() {\n this._syncColumnDefName();\n\n if (this._table) {\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 private _syncColumnDefName() {\n if (this.columnDef) {\n this.columnDef.name = this.name;\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;MA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;sBADP,KAAK;gBAWN,WAAW,EAAA,CAAA;sBADV,KAAK;gBAIN,MAAM,EAAA,CAAA;sBADL,MAAM;gBAIP,SAAS,EAAA,CAAA;sBADR,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,YAAY,EAAE,EAAC,MAAM,EAAE,IAAI,EAAC,CAAA;gBAIvC,IAAI,EAAA,CAAA;sBADH,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,UAAU,EAAE,EAAC,MAAM,EAAE,IAAI,EAAC,CAAA;gBAIrC,UAAU,EAAA,CAAA;sBADT,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,gBAAgB,EAAE,EAAC,MAAM,EAAE,IAAI,EAAC,CAAA;;;AC7D7C;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-components-molecules-actions-column.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/actions-column/actions-column.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/actions-column/ng-atomic-components-molecules-actions-column.ts"],"sourcesContent":["import { CdkCellDef, CdkColumnDef, CdkHeaderCellDef, CdkTable, TextColumnOptions, TEXT_COLUMN_OPTIONS } from '@angular/cdk/table';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, EventEmitter, Inject, Input, Optional, Output, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatTableModule } from '@angular/material/table';\nimport { Action, Actions } from '@ng-atomic/core';\nimport { ActionsPipe } from '@ng-atomic/common/pipes/actions';\nimport { SmartMenuButtonAtom } from '@ng-atomic/components/atoms/smart-menu-button';\n\n@Component({\n selector: 'molecules-actions-column',\n standalone: true,\n imports: [\n CommonModule,\n MatTableModule,\n MatMenuModule,\n MatButtonModule,\n MatIconModule,\n SmartMenuButtonAtom,\n ActionsPipe,\n ],\n template: `\n <ng-container matColumnDef>\n <th mat-header-cell *matHeaderCellDef>操作</th>\n <td mat-cell *matCellDef=\"let item\">\n <atoms-smart-menu-button\n [actions]=\"itemActions | resolveActions: item\"\n (action)=\"action.emit({id: $event.id, payload: item})\"\n ></atoms-smart-menu-button>\n </td>\n </ng-container>\n `,\n styleUrls: ['./actions-column.molecule.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ActionsColumnMolecule<T> {\n @Input()\n get name(): string {\n return this._name;\n }\n set name(name: string) {\n this._name = name;\n this._syncColumnDefName();\n }\n _name!: string;\n\n @Input()\n itemActions: Actions = [];\n\n @Output()\n action = new EventEmitter<Action>();\n\n @ViewChild(CdkColumnDef, {static: true})\n columnDef!: CdkColumnDef;\n \n @ViewChild(CdkCellDef, {static: true})\n cell!: CdkCellDef;\n\n @ViewChild(CdkHeaderCellDef, {static: true})\n headerCell!: CdkHeaderCellDef;\n\n constructor(\n @Optional() private _table: CdkTable<T>,\n @Optional() @Inject(TEXT_COLUMN_OPTIONS) private _options: TextColumnOptions<T>,\n ) {\n this._options ??= {};\n }\n\n ngOnInit() {\n this._syncColumnDefName();\n\n if (this._table) {\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 private _syncColumnDefName() {\n if (this.columnDef) {\n this.columnDef.name = this.name;\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;MAsCa,qBAAqB,CAAA;AAChC,IAAA,IACI,IAAI,GAAA;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;KACnB;IACD,IAAI,IAAI,CAAC,IAAY,EAAA;AACnB,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,kBAAkB,EAAE,CAAC;KAC3B;IAkBD,WACsB,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sBADH,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,UAAU,EAAE,EAAC,MAAM,EAAE,IAAI,EAAC,CAAA;gBAIrC,UAAU,EAAA,CAAA;sBADT,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,gBAAgB,EAAE,EAAC,MAAM,EAAE,IAAI,EAAC,CAAA;;;AC7D7C;;AAEG;;;;"}
@@ -36,7 +36,7 @@ class DateInputFieldMolecule {
36
36
  <mat-hint *ngIf="hint">{{ hint }}</mat-hint>
37
37
  <mat-error>{{ control.errors | error }}</mat-error>
38
38
  </mat-form-field>
39
- `, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-field-SSE5: var(--horizontal-padding)}:host{display:block;width:100%}:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i5.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i5.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i5.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "ngmodule", type: MatDayjsDateModule }, { kind: "pipe", type: ErrorPipe, name: "error" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
39
+ `, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-field-suIO: var(--horizontal-padding)}:host{display:block;width:100%}:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i5.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i5.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i5.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "ngmodule", type: MatDayjsDateModule }, { kind: "pipe", type: ErrorPipe, name: "error" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
40
40
  }
41
41
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateInputFieldMolecule, decorators: [{
42
42
  type: Component,
@@ -56,7 +56,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
56
56
  <mat-hint *ngIf="hint">{{ hint }}</mat-hint>
57
57
  <mat-error>{{ control.errors | error }}</mat-error>
58
58
  </mat-form-field>
59
- `, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'molecule field' }, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-field-SSE5: var(--horizontal-padding)}:host{display:block;width:100%}:host mat-form-field{width:100%}\n"] }]
59
+ `, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'molecule field' }, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-field-suIO: var(--horizontal-padding)}:host{display:block;width:100%}:host mat-form-field{width:100%}\n"] }]
60
60
  }], propDecorators: { control: [{
61
61
  type: Input
62
62
  }], label: [{
@@ -8,7 +8,7 @@ import { FormControl, ReactiveFormsModule } from '@angular/forms';
8
8
  import * as i3 from '@angular/material/input';
9
9
  import { MatInputModule } from '@angular/material/input';
10
10
  import { SmartMenuButtonAtom } from '@ng-atomic/components/atoms/smart-menu-button';
11
- import { NgAtomicComponent, Effect } from '@ng-atomic/common/stores/component-store';
11
+ import { NgAtomicComponent, Effect } from '@ng-atomic/core';
12
12
  import { ErrorPipe } from '@ng-atomic/common/pipes/error';
13
13
  import * as i4 from '@angular/material/form-field';
14
14
 
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-components-molecules-file-input-field.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/file-input-field/file-input-field.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/file-input-field/ng-atomic-components-molecules-file-input-field.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, Input, ViewChild } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormControl, ReactiveFormsModule, Validators } from '@angular/forms';\nimport { MatInputModule } from '@angular/material/input';\nimport { SmartMenuButtonAtom } from '@ng-atomic/components/atoms/smart-menu-button';\nimport { Effect, NgAtomicComponent } from '@ng-atomic/common/stores/component-store';\nimport { ErrorPipe } from '@ng-atomic/common/pipes/error';\n\nenum ActionId {\n FILE_SELECT_BUTTON_CLICK = '[@ng-atomic/components/molecules/file-input-field] File select button click',\n FILE_SELECTED = '[@ng-atomic/components/molecules/file-input-field] File selected',\n CANCEL = '[@ng-atomic/components/molecules/file-input-field] Cancel',\n}\n\n@Component({\n selector: 'molecules-file-input-field',\n standalone: true,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MatInputModule,\n SmartMenuButtonAtom,\n ErrorPipe,\n ],\n template: `\n <mat-form-field [appearance]=\"appearance\">\n <mat-label>{{ label }}</mat-label>\n <input matInput [name]=\"name\" type=\"text\" [formControl]=\"_control\" [placeholder]=\"placeholder\">\n <!-- <mat-icon matSuffix>sentiment_very_satisfied</mat-icon> -->\n <mat-hint *ngIf=\"progress\">Uploading...({{ progress?.toFixed(2) }}%)</mat-hint>\n <mat-hint *ngIf=\"!progress && hint\">{{ hint }}</mat-hint>\n <mat-error>{{ control.errors | error }}</mat-error>\n </mat-form-field>\n <atoms-smart-menu-button\n [actions]=\"actions\"\n (action)=\"dispatch($event)\"\n ></atoms-smart-menu-button>\n <input style=\"display: none\" type=\"file\" value=\"test\" (change)=\"onFileSelected($event)\" #fileUpload>\n `,\n styleUrls: ['./file-input-field.molecule.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FileInputFieldMolecule extends NgAtomicComponent {\n static ActionId = ActionId;\n \n protected get actions() {\n return this.progress ? [\n {\n id: ActionId.CANCEL,\n icon: 'cancel',\n name: 'Cancel',\n disabled: this.control.disabled,\n },\n ] : [\n {\n id: ActionId.FILE_SELECT_BUTTON_CLICK,\n icon: 'attach_file',\n name: 'Select file',\n disabled: this.control.disabled,\n },\n ];\n }\n\n @Input()\n appearance: 'outline' | 'fill' = 'outline';\n\n @Input()\n name?: string;\n\n @Input()\n label = 'label';\n\n @Input()\n control = new FormControl<string | number>('');\n\n protected _control = new FormControl<string | number>({value: '', disabled: true});\n\n @Input()\n placeholder = 'placeholder';\n\n @Input()\n hint?: string;\n\n @Input()\n progress?: number;\n\n @ViewChild('fileUpload', { static: true })\n protected fileUpload: ElementRef<HTMLInputElement>;\n\n ngOnInit() {\n this._control.setValidators(this.control['_rawValidators']);\n this._control.setAsyncValidators(this.control['_rawAsyncValidators']);\n this.control.valueChanges.subscribe(value => this._control.setValue(value));\n }\n\n @Effect(ActionId.FILE_SELECT_BUTTON_CLICK)\n protected onFileSelectButtonClick() {\n this.fileUpload.nativeElement.click();\n }\n\n protected onFileSelected(event: Event & {target: HTMLInputElement}) {\n this.dispatch({\n id: ActionId.FILE_SELECTED,\n payload: event.target.files,\n });\n this.fileUpload.nativeElement.value = '';\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAQA,IAAK,QAIJ,CAAA;AAJD,CAAA,UAAK,QAAQ,EAAA;AACX,IAAA,QAAA,CAAA,0BAAA,CAAA,GAAA,6EAAwG,CAAA;AACxG,IAAA,QAAA,CAAA,eAAA,CAAA,GAAA,kEAAkF,CAAA;AAClF,IAAA,QAAA,CAAA,QAAA,CAAA,GAAA,2DAAoE,CAAA;AACtE,CAAC,EAJI,QAAQ,KAAR,QAAQ,GAIZ,EAAA,CAAA,CAAA,CAAA;AA8BK,MAAO,sBAAuB,SAAQ,iBAAiB,CAAA;AA5B7D,IAAA,WAAA,GAAA;;QAkDE,IAAU,CAAA,UAAA,GAAuB,SAAS,CAAC;QAM3C,IAAK,CAAA,KAAA,GAAG,OAAO,CAAC;AAGhB,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,WAAW,CAAkB,EAAE,CAAC,CAAC;AAErC,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,WAAW,CAAkB,EAAC,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC;QAGnF,IAAW,CAAA,WAAA,GAAG,aAAa,CAAC;AA8B7B,KAAA;aAjEQ,IAAQ,CAAA,QAAA,GAAG,QAAH,CAAY,EAAA;AAE3B,IAAA,IAAc,OAAO,GAAA;AACnB,QAAA,OAAO,IAAI,CAAC,QAAQ,GAAG;AACrB,YAAA;gBACE,EAAE,EAAE,QAAQ,CAAC,MAAM;AACnB,gBAAA,IAAI,EAAE,QAAQ;AACd,g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BACE,4BAA4B,EAAA,UAAA,EAC1B,IAAI,EACP,OAAA,EAAA;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBACd,mBAAmB;wBACnB,SAAS;qBACV,EACS,QAAA,EAAA,CAAA;;;;;;;;;;;;;;GAcT,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,oPAAA,CAAA,EAAA,CAAA;8BAwB/C,UAAU,EAAA,CAAA;sBADT,KAAK;gBAIN,IAAI,EAAA,CAAA;sBADH,KAAK;gBAIN,KAAK,EAAA,CAAA;sBADJ,KAAK;gBAIN,OAAO,EAAA,CAAA;sBADN,KAAK;gBAMN,WAAW,EAAA,CAAA;sBADV,KAAK;gBAIN,IAAI,EAAA,CAAA;sBADH,KAAK;gBAIN,QAAQ,EAAA,CAAA;sBADP,KAAK;gBAII,UAAU,EAAA,CAAA;sBADnB,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,YAAY,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;gBAU/B,uBAAuB,EAAA,EAAA,EAAA,EAAA,CAAA;;AChGnC;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-components-molecules-file-input-field.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/file-input-field/file-input-field.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/file-input-field/ng-atomic-components-molecules-file-input-field.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, Input, ViewChild } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormControl, ReactiveFormsModule, Validators } from '@angular/forms';\nimport { MatInputModule } from '@angular/material/input';\nimport { SmartMenuButtonAtom } from '@ng-atomic/components/atoms/smart-menu-button';\nimport { Effect, NgAtomicComponent } from '@ng-atomic/core';\nimport { ErrorPipe } from '@ng-atomic/common/pipes/error';\n\nenum ActionId {\n FILE_SELECT_BUTTON_CLICK = '[@ng-atomic/components/molecules/file-input-field] File select button click',\n FILE_SELECTED = '[@ng-atomic/components/molecules/file-input-field] File selected',\n CANCEL = '[@ng-atomic/components/molecules/file-input-field] Cancel',\n}\n\n@Component({\n selector: 'molecules-file-input-field',\n standalone: true,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MatInputModule,\n SmartMenuButtonAtom,\n ErrorPipe,\n ],\n template: `\n <mat-form-field [appearance]=\"appearance\">\n <mat-label>{{ label }}</mat-label>\n <input matInput [name]=\"name\" type=\"text\" [formControl]=\"_control\" [placeholder]=\"placeholder\">\n <!-- <mat-icon matSuffix>sentiment_very_satisfied</mat-icon> -->\n <mat-hint *ngIf=\"progress\">Uploading...({{ progress?.toFixed(2) }}%)</mat-hint>\n <mat-hint *ngIf=\"!progress && hint\">{{ hint }}</mat-hint>\n <mat-error>{{ control.errors | error }}</mat-error>\n </mat-form-field>\n <atoms-smart-menu-button\n [actions]=\"actions\"\n (action)=\"dispatch($event)\"\n ></atoms-smart-menu-button>\n <input style=\"display: none\" type=\"file\" value=\"test\" (change)=\"onFileSelected($event)\" #fileUpload>\n `,\n styleUrls: ['./file-input-field.molecule.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FileInputFieldMolecule extends NgAtomicComponent {\n static ActionId = ActionId;\n \n protected get actions() {\n return this.progress ? [\n {\n id: ActionId.CANCEL,\n icon: 'cancel',\n name: 'Cancel',\n disabled: this.control.disabled,\n },\n ] : [\n {\n id: ActionId.FILE_SELECT_BUTTON_CLICK,\n icon: 'attach_file',\n name: 'Select file',\n disabled: this.control.disabled,\n },\n ];\n }\n\n @Input()\n appearance: 'outline' | 'fill' = 'outline';\n\n @Input()\n name?: string;\n\n @Input()\n label = 'label';\n\n @Input()\n control = new FormControl<string | number>('');\n\n protected _control = new FormControl<string | number>({value: '', disabled: true});\n\n @Input()\n placeholder = 'placeholder';\n\n @Input()\n hint?: string;\n\n @Input()\n progress?: number;\n\n @ViewChild('fileUpload', { static: true })\n protected fileUpload: ElementRef<HTMLInputElement>;\n\n ngOnInit() {\n this._control.setValidators(this.control['_rawValidators']);\n this._control.setAsyncValidators(this.control['_rawAsyncValidators']);\n this.control.valueChanges.subscribe(value => this._control.setValue(value));\n }\n\n @Effect(ActionId.FILE_SELECT_BUTTON_CLICK)\n protected onFileSelectButtonClick() {\n this.fileUpload.nativeElement.click();\n }\n\n protected onFileSelected(event: Event & {target: HTMLInputElement}) {\n this.dispatch({\n id: ActionId.FILE_SELECTED,\n payload: event.target.files,\n });\n this.fileUpload.nativeElement.value = '';\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAQA,IAAK,QAIJ,CAAA;AAJD,CAAA,UAAK,QAAQ,EAAA;AACX,IAAA,QAAA,CAAA,0BAAA,CAAA,GAAA,6EAAwG,CAAA;AACxG,IAAA,QAAA,CAAA,eAAA,CAAA,GAAA,kEAAkF,CAAA;AAClF,IAAA,QAAA,CAAA,QAAA,CAAA,GAAA,2DAAoE,CAAA;AACtE,CAAC,EAJI,QAAQ,KAAR,QAAQ,GAIZ,EAAA,CAAA,CAAA,CAAA;AA8BK,MAAO,sBAAuB,SAAQ,iBAAiB,CAAA;AA5B7D,IAAA,WAAA,GAAA;;QAkDE,IAAU,CAAA,UAAA,GAAuB,SAAS,CAAC;QAM3C,IAAK,CAAA,KAAA,GAAG,OAAO,CAAC;AAGhB,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,WAAW,CAAkB,EAAE,CAAC,CAAC;AAErC,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,WAAW,CAAkB,EAAC,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC;QAGnF,IAAW,CAAA,WAAA,GAAG,aAAa,CAAC;AA8B7B,KAAA;aAjEQ,IAAQ,CAAA,QAAA,GAAG,QAAH,CAAY,EAAA;AAE3B,IAAA,IAAc,OAAO,GAAA;AACnB,QAAA,OAAO,IAAI,CAAC,QAA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A,EAAA,yBAAA,EAAA,IAAA,CAAA,CAAA;4FAxDU,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBA5BlC,SAAS;+BACE,4BAA4B,EAAA,UAAA,EAC1B,IAAI,EACP,OAAA,EAAA;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBACd,mBAAmB;wBACnB,SAAS;qBACV,EACS,QAAA,EAAA,CAAA;;;;;;;;;;;;;;GAcT,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,oPAAA,CAAA,EAAA,CAAA;8BAwB/C,UAAU,EAAA,CAAA;sBADT,KAAK;gBAIN,IAAI,EAAA,CAAA;sBADH,KAAK;gBAIN,KAAK,EAAA,CAAA;sBADJ,KAAK;gBAIN,OAAO,EAAA,CAAA;sBADN,KAAK;gBAMN,WAAW,EAAA,CAAA;sBADV,KAAK;gBAIN,IAAI,EAAA,CAAA;sBADH,KAAK;gBAIN,QAAQ,EAAA,CAAA;sBADP,KAAK;gBAII,UAAU,EAAA,CAAA;sBADnB,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,YAAY,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;gBAU/B,uBAAuB,EAAA,EAAA,EAAA,EAAA,CAAA;;AChGnC;;AAEG;;;;"}
@@ -4,7 +4,7 @@ import { InjectionToken, Directive, Input, inject, Component, ChangeDetectionStr
4
4
  import { MatIconModule } from '@angular/material/icon';
5
5
  import * as i1 from '@angular/material/list';
6
6
  import { MatListModule } from '@angular/material/list';
7
- import { InjectableComponent } from '@ng-atomic/common/core';
7
+ import { InjectableComponent } from '@ng-atomic/core';
8
8
  import { IconAtom } from '@ng-atomic/components/atoms/icon';
9
9
 
10
10
  class NavigationListItemMoleculeStore extends InjectableComponent {
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-components-molecules-navigation-list-item.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/navigation-list-item/navigation-list-item.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/navigation-list-item/ng-atomic-components-molecules-navigation-list-item.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { Component, ChangeDetectionStrategy, Input, Directive, inject, InjectionToken } from '@angular/core';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatListModule } from '@angular/material/list';\nimport { InjectableComponent } from '@ng-atomic/common/core';\nimport { Action } from '@ng-atomic/common/models';\nimport { IconAtom } from '@ng-atomic/components/atoms/icon';\n\n@Directive({ standalone: true, selector: 'molecules-navigation-list-item' })\nexport class NavigationListItemMoleculeStore extends InjectableComponent {\n static TOKEN = new InjectionToken('NavigationListItemMoleculeStore');\n @Input('action') _action: Action;\n @Input() selected = false;\n}\n\n@Component({\n selector: 'molecules-navigation-list-item',\n standalone: true,\n imports: [\n CommonModule,\n MatIconModule,\n MatListModule,\n IconAtom,\n ],\n template: `\n <mat-list-item>\n <atoms-icon\n matListItemIcon\n [name]=\"store._action?.icon\"\n [color]=\"store._action?.color\"\n matListItemMeta\n ></atoms-icon>\n <div matListItemTitle>{{ store._action.name }}</div>\n </mat-list-item>\n `,\n styleUrls: ['./navigation-list-item.molecule.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: NavigationListItemMoleculeStore,\n inputs: ['action', 'selected'],\n },\n ]\n})\nexport class NavigationListItemMolecule {\n protected store = inject(NavigationListItemMoleculeStore);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AASM,MAAO,+BAAgC,SAAQ,mBAAmB,CAAA;AADxE,IAAA,WAAA,GAAA;;QAIW,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;AAC3B,KAAA;AAHQ,IAAA,SAAA,IAAA,CAAA,KAAK,GAAG,IAAI,cAAc,CAAC,iCAAiC,CAAC,CAAC,EAAA;+GAD1D,+BAA+B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAA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AAA,IAAA,EAAA,aAAa,EACb,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,aAAa,obACb,QAAQ,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;4FAsBC,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBA7BtC,SAAS;+BACE,gCAAgC,EAAA,UAAA,EAC9B,IAAI,EACP,OAAA,EAAA;wBACP,YAAY;wBACZ,aAAa;wBACb,aAAa;wBACb,QAAQ;qBACT,EACS,QAAA,EAAA,CAAA;;;;;;;;;;GAUT,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAC/B,cAAA,EAAA;AACd,wBAAA;AACE,4BAAA,SAAS,EAAE,+BAA+B;AAC1C,4BAAA,MAAM,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC;AAC/B,yBAAA;AACF,qBAAA,EAAA,MAAA,EAAA,CAAA,gLAAA,CAAA,EAAA,CAAA;;;AC1CH;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-components-molecules-navigation-list-item.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/navigation-list-item/navigation-list-item.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/navigation-list-item/ng-atomic-components-molecules-navigation-list-item.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { Component, ChangeDetectionStrategy, Input, Directive, inject, InjectionToken } from '@angular/core';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatListModule } from '@angular/material/list';\nimport { InjectableComponent } from '@ng-atomic/core';\nimport { Action } from '@ng-atomic/core';\nimport { IconAtom } from '@ng-atomic/components/atoms/icon';\n\n@Directive({ standalone: true, selector: 'molecules-navigation-list-item' })\nexport class NavigationListItemMoleculeStore extends InjectableComponent {\n static TOKEN = new InjectionToken('NavigationListItemMoleculeStore');\n @Input('action') _action: Action;\n @Input() selected = false;\n}\n\n@Component({\n selector: 'molecules-navigation-list-item',\n standalone: true,\n imports: [\n CommonModule,\n MatIconModule,\n MatListModule,\n IconAtom,\n ],\n template: `\n <mat-list-item>\n <atoms-icon\n matListItemIcon\n [name]=\"store._action?.icon\"\n [color]=\"store._action?.color\"\n matListItemMeta\n ></atoms-icon>\n <div matListItemTitle>{{ store._action.name }}</div>\n </mat-list-item>\n `,\n styleUrls: ['./navigation-list-item.molecule.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: NavigationListItemMoleculeStore,\n inputs: ['action', 'selected'],\n },\n ]\n})\nexport class NavigationListItemMolecule {\n protected store = inject(NavigationListItemMoleculeStore);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AASM,MAAO,+BAAgC,SAAQ,mBAAmB,CAAA;AADxE,IAAA,WAAA,GAAA;;QAIW,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;AAC3B,KAAA;AAHQ,IAAA,SAAA,IAAA,CAAA,KAAK,GAAG,IAAI,cAAc,CAAC,iCAAiC,CAAC,CAAC,EAAA;+GAD1D,+BAA+B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAA/B,+BAA+B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gCAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,SAAA,CAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAA/B,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAD3C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA,EAAE,UAAU,EAAE,IAAI,EAAE,QA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BACb,QAAQ;qBACT,EACS,QAAA,EAAA,CAAA;;;;;;;;;;GAUT,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAC/B,cAAA,EAAA;AACd,wBAAA;AACE,4BAAA,SAAS,EAAE,+BAA+B;AAC1C,4BAAA,MAAM,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC;AAC/B,yBAAA;AACF,qBAAA,EAAA,MAAA,EAAA,CAAA,gLAAA,CAAA,EAAA,CAAA;;;AC1CH;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-components-molecules-nested-menu.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/nested-menu/nested-menu.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/nested-menu/ng-atomic-components-molecules-nested-menu.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { Action } from '@ng-atomic/common/models';\nimport { MatMenuModule } from '@angular/material/menu';\n\n@Component({\n selector: 'molecules-nested-menu',\n standalone: true,\n imports: [\n CommonModule,\n MatMenuModule,\n ],\n template: `\n <mat-menu #childMenu=\"matMenu\" [overlapTrigger]=\"false\">\n <span *ngFor=\"let _action of actions\">\n <span *ngIf=\"_action?.children\">\n <button mat-menu-item [matMenuTriggerFor]=\"menu.childMenu\">\n <mat-icon>{{_action.icon}}</mat-icon>\n <span>{{ _action.name }}</span>\n </button>\n <molecules-nested-menu\n #menu\n [actions]=\"_action.children\"\n (action)=\"action.emit($event)\"\n ></molecules-nested-menu>\n </span>\n \n <span *ngIf=\"!_action?.children\">\n <button mat-menu-item (click)=\"action.emit(_action)\">\n <mat-icon>{{ _action.icon }}</mat-icon>\n <span>{{ _action.name }}</span>\n </button>\n </span>\n </span>\n </mat-menu>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NestedMenuMolecule {\n @Input()\n actions: Action[];\n\n @ViewChild('childMen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A;sBADR,SAAS;uBAAC,WAAW,CAAA;gBAItB,MAAM,EAAA,CAAA;sBADL,MAAM;;;AC7CT;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-components-molecules-nested-menu.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/nested-menu/nested-menu.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/nested-menu/ng-atomic-components-molecules-nested-menu.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { Action } from '@ng-atomic/core';\nimport { MatMenuModule } from '@angular/material/menu';\n\n@Component({\n selector: 'molecules-nested-menu',\n standalone: true,\n imports: [\n CommonModule,\n MatMenuModule,\n ],\n template: `\n <mat-menu #childMenu=\"matMenu\" [overlapTrigger]=\"false\">\n <span *ngFor=\"let _action of actions\">\n <span *ngIf=\"_action?.children\">\n <button mat-menu-item [matMenuTriggerFor]=\"menu.childMenu\">\n <mat-icon>{{_action.icon}}</mat-icon>\n <span>{{ _action.name }}</span>\n </button>\n <molecules-nested-menu\n #menu\n [actions]=\"_action.children\"\n (action)=\"action.emit($event)\"\n ></molecules-nested-menu>\n </span>\n \n <span *ngIf=\"!_action?.children\">\n <button mat-menu-item (click)=\"action.emit(_action)\">\n <mat-icon>{{ _action.icon }}</mat-icon>\n <span>{{ _action.name }}</span>\n </button>\n </span>\n </span>\n </mat-menu>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NestedMenuMolecule {\n @Input()\n actions: Action[];\n\n @ViewChild('childMenu')\n childMenu;\n\n @Output()\n action = new EventEmitter<Action>();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAsCa,kBAAkB,CAAA;AAjC/B,IAAA,WAAA,GAAA;AAyCE,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAU,CAAC;AACrC,KAAA;+GATY,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AAA,UAAA,EAAA,IAAA,EACZ,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,WAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,eAAA,EAAA,MAAA,CAAA,EAAA,QAAA,EAAA,CAAA,aAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,cAAA,EAAA,QAAA,EAAA,6CAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;4FA4BJ,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAjC9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;AACd,qBAAA;AACD,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;AAuBT,EAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA,CAAA;8BAGC,OAAO,EAAA,CAAA;sBADN,KAAK;gBAIN,SAAS,EAAA,CAAA;sBADR,SAAS;uBAAC,WAAW,CAAA;gBAItB,MAAM,EAAA,CAAA;sBADL,MAAM;;;AC7CT;;AAEG;;;;"}
@@ -29,7 +29,7 @@ class SelectInputFieldMolecule {
29
29
  </mat-select>
30
30
  <mat-error>{{ control.errors | error }}</mat-error>
31
31
  </mat-form-field>
32
- `, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-select-input-field-Wvzg: var(--horizontal-padding)}:host{display:block;width:100%}:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i4.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "panelWidth", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "pipe", type: ErrorPipe, name: "error" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
32
+ `, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-select-input-field-VVj3: var(--horizontal-padding)}:host{display:block;width:100%}:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i4.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "panelWidth", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "pipe", type: ErrorPipe, name: "error" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
33
33
  }
34
34
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectInputFieldMolecule, decorators: [{
35
35
  type: Component,
@@ -48,7 +48,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
48
48
  </mat-select>
49
49
  <mat-error>{{ control.errors | error }}</mat-error>
50
50
  </mat-form-field>
51
- `, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'molecule input-field field' }, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-select-input-field-Wvzg: var(--horizontal-padding)}:host{display:block;width:100%}:host mat-form-field{width:100%}\n"] }]
51
+ `, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'molecule input-field field' }, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-select-input-field-VVj3: var(--horizontal-padding)}:host{display:block;width:100%}:host mat-form-field{width:100%}\n"] }]
52
52
  }], propDecorators: { label: [{
53
53
  type: Input
54
54
  }], appearance: [{
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-components-molecules-textarea-field.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/textarea-field/textarea-field.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/textarea-field/ng-atomic-components-molecules-textarea-field.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Input, Output, EventEmitter } from '@angular/core';\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\nimport { MatInputModule } from '@angular/material/input';\nimport { Action } from '@ng-atomic/common/models';\nimport { ErrorPipe } from '@ng-atomic/common/pipes/error';\n\nexport enum ActionId {\n CTRL_ENTER_KEY_UP = 'Ctrl Enter Key Up',\n}\n\n@Component({\n selector: 'molecules-textarea-field',\n standalone: true,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MatInputModule,\n ErrorPipe,\n ],\n template: `\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ label }}</mat-label>\n <textarea\n matInput\n [formControl]=\"control\"\n [placeholder]=\"placeholder\"\n (keyup)=\"onKeyup($event)\"\n [rows]=\"rows\"\n ></textarea>\n <mat-hint *ngIf=\"hint\">{{ hint }}</mat-hint>\n <mat-error>{{ control.errors | error }}</mat-error>\n </mat-form-field>`,\n styleUrls: ['./textarea-field.molecule.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'molecule field'},\n})\nexport class TextareaFieldMolecule {\n\n @Input()\n label = 'label';\n\n @Input()\n hint?: string;\n\n @Input()\n placeholder = 'placeholder';\n\n @Input()\n control = new FormControl('');\n\n @Input()\n rows = 10;\n\n @Output()\n action = new EventEmitter<Action>();\n\n protected onKeyup($event) {\n if($event.ctrlKey && $event.key === 'Enter') {\n this.action.emit({id: ActionId.CTRL_ENTER_KEY_UP});\n $event.preventDefault();\n }\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;IAOY,SAEX;AAFD,CAAA,UAAY,QAAQ,EAAA;AAClB,IAAA,QAAA,CAAA,mBAAA,CAAA,GAAA,mBAAuC,CAAA;AACzC,CAAC,EAFW,QAAQ,KAAR,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B,CAAC,MAAM,EAAA,IAAA,EACzC,EAAC,KAAK,EAAE,gBAAgB,EAAC,EAAA,MAAA,EAAA,CAAA,mEAAA,CAAA,EAAA,CAAA;8BAK/B,KAAK,EAAA,CAAA;sBADJ,KAAK;gBAIN,IAAI,EAAA,CAAA;sBADH,KAAK;gBAIN,WAAW,EAAA,CAAA;sBADV,KAAK;gBAIN,OAAO,EAAA,CAAA;sBADN,KAAK;gBAIN,IAAI,EAAA,CAAA;sBADH,KAAK;gBAIN,MAAM,EAAA,CAAA;sBADL,MAAM;;;ACtDT;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-components-molecules-textarea-field.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/textarea-field/textarea-field.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/textarea-field/ng-atomic-components-molecules-textarea-field.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Input, Output, EventEmitter } from '@angular/core';\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\nimport { MatInputModule } from '@angular/material/input';\nimport { Action } from '@ng-atomic/core';\nimport { ErrorPipe } from '@ng-atomic/common/pipes/error';\n\nexport enum ActionId {\n CTRL_ENTER_KEY_UP = 'Ctrl Enter Key Up',\n}\n\n@Component({\n selector: 'molecules-textarea-field',\n standalone: true,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MatInputModule,\n ErrorPipe,\n ],\n template: `\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ label }}</mat-label>\n <textarea\n matInput\n [formControl]=\"control\"\n [placeholder]=\"placeholder\"\n (keyup)=\"onKeyup($event)\"\n [rows]=\"rows\"\n ></textarea>\n <mat-hint *ngIf=\"hint\">{{ hint }}</mat-hint>\n <mat-error>{{ control.errors | error }}</mat-error>\n </mat-form-field>`,\n styleUrls: ['./textarea-field.molecule.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'molecule field'},\n})\nexport class TextareaFieldMolecule {\n\n @Input()\n label = 'label';\n\n @Input()\n hint?: string;\n\n @Input()\n placeholder = 'placeholder';\n\n @Input()\n control = new FormControl('');\n\n @Input()\n rows = 10;\n\n @Output()\n action = new EventEmitter<Action>();\n\n protected onKeyup($event) {\n if($event.ctrlKey && $event.key === 'Enter') {\n this.action.emit({id: ActionId.CTRL_ENTER_KEY_UP});\n $event.preventDefault();\n }\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;IAOY,SAEX;AAFD,CAAA,UAAY,QAAQ,EAAA;AAClB,IAAA,QAAA,CAAA,mBAAA,CAAA,GAAA,mBAAuC,CAAA;AACzC,CAAC,EAFW,QAAQ,KAAR,QAAQ,GAEnB,EAAA,CAAA,CAAA,CAAA;MA4BY,qBAAqB,CAAA;AA1BlC,IAAA,WAAA,GAAA;QA6BE,IAAK,CAAA,KAAA,GAAG,OAAO,CAAC;QAMhB,IAAW,CAAA,WAAA,GAAG,aAAa,CAAC;AAG5B,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,WAAW,CAAC,EAAE,CAAC,CAAC;QAG9B,IAAI,CAAA,IAAA,GAAG,EAAE,CAAC;AAGV,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAU,CAAC;AASrC,KAAA;AAPW,IAAA,OAAO,CAAC,MAAM,EAAA;QACtB,IAAG,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,GAAG,KAAK,OAAO,EAAE;AAC3C,YAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAC,EAAE,EAAE,QAAQ,CAAC,iBAAiB,EAAC,CAAC,CAAC;YACnD,MAAM,CAAC,cAAc,EAAE,CAAC;AACzB,SAAA;KACF;+GAzBU,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAArB,IAAA,SAAA,IAAA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,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,cAAc,uyBACd,SAAS,EAAA,IAAA,EAAA,OAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;4FAmBA,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBA1BjC,SAAS;+BACE,0BAA0B,EAAA,UAAA,EACxB,IAAI,EACP,OAAA,EAAA;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBACd,SAAS;qBACV,EACS,QAAA,EAAA,CAAA;;;;;;;;;;;;oBAYQ,EAED,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC,EAAC,KAAK,EAAE,gBAAgB,EAAC,EAAA,MAAA,EAAA,CAAA,mEAAA,CAAA,EAAA,CAAA;8BAK/B,KAAK,EAAA,CAAA;sBADJ,KAAK;gBAIN,IAAI,EAAA,CAAA;sBADH,KAAK;gBAIN,WAAW,EAAA,CAAA;sBADV,KAAK;gBAIN,OAAO,EAAA,CAAA;sBADN,KAAK;gBAIN,IAAI,EAAA,CAAA;sBADH,KAAK;gBAIN,MAAM,EAAA,CAAA;sBADL,MAAM;;;ACtDT;;AAEG;;;;"}
@@ -12,14 +12,14 @@ class ActionButtonsSectionOrganism {
12
12
  this.trackById = (item) => item.id;
13
13
  }
14
14
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionButtonsSectionOrganism, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
15
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ActionButtonsSectionOrganism, isStandalone: true, selector: "organisms-action-buttons-section", inputs: { actions: "actions" }, outputs: { action: "action" }, host: { classAttribute: "organism section" }, ngImport: i0, template: "<ng-container *ngFor=\"let _action of actions; trackBy: trackById\">\n <button mat-raised-button color=\"primary\" [disabled]=\"_action?.disabled\" (click)=\"action.emit(_action)\">{{ _action?.name }}</button>\n</ng-container>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-buttons-section-wrsf: var(--horizontal-padding)}:host{display:flex;flex-direction:row;gap:8px;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-action-buttons-section-wrsf);box-sizing:border-box}:host button{width:100%;height:48px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
15
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ActionButtonsSectionOrganism, isStandalone: true, selector: "organisms-action-buttons-section", inputs: { actions: "actions" }, outputs: { action: "action" }, host: { classAttribute: "organism section" }, ngImport: i0, template: "<ng-container *ngFor=\"let _action of actions; trackBy: trackById\">\n <button mat-raised-button color=\"primary\" [disabled]=\"_action?.disabled\" (click)=\"action.emit(_action)\">{{ _action?.name }}</button>\n</ng-container>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-buttons-section-OjBQ: var(--horizontal-padding)}:host{display:flex;flex-direction:row;gap:8px;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-action-buttons-section-OjBQ);box-sizing:border-box}:host button{width:100%;height:48px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
16
16
  }
17
17
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionButtonsSectionOrganism, decorators: [{
18
18
  type: Component,
19
19
  args: [{ selector: 'organisms-action-buttons-section', standalone: true, imports: [
20
20
  CommonModule,
21
21
  MatButtonModule,
22
- ], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'organism section' }, template: "<ng-container *ngFor=\"let _action of actions; trackBy: trackById\">\n <button mat-raised-button color=\"primary\" [disabled]=\"_action?.disabled\" (click)=\"action.emit(_action)\">{{ _action?.name }}</button>\n</ng-container>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-buttons-section-wrsf: var(--horizontal-padding)}:host{display:flex;flex-direction:row;gap:8px;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-action-buttons-section-wrsf);box-sizing:border-box}:host button{width:100%;height:48px}\n"] }]
22
+ ], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'organism section' }, template: "<ng-container *ngFor=\"let _action of actions; trackBy: trackById\">\n <button mat-raised-button color=\"primary\" [disabled]=\"_action?.disabled\" (click)=\"action.emit(_action)\">{{ _action?.name }}</button>\n</ng-container>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-buttons-section-OjBQ: var(--horizontal-padding)}:host{display:flex;flex-direction:row;gap:8px;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-action-buttons-section-OjBQ);box-sizing:border-box}:host button{width:100%;height:48px}\n"] }]
23
23
  }], propDecorators: { actions: [{
24
24
  type: Input
25
25
  }], action: [{
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-components-organisms-action-buttons-section.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/organisms/action-buttons-section/action-buttons-section.organism.ts","../../../../../packages/@ng-atomic/components/src/lib/organisms/action-buttons-section/action-buttons-section.organism.html","../../../../../packages/@ng-atomic/components/src/lib/organisms/action-buttons-section/ng-atomic-components-organisms-action-buttons-section.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { Action } from '@ng-atomic/common/models';\n\n@Component({\n selector: 'organisms-action-buttons-section',\n standalone: true,\n imports: [\n CommonModule,\n MatButtonModule,\n ],\n templateUrl: './action-buttons-section.organism.html',\n styleUrls: ['./action-buttons-section.organism.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'organism section'},\n})\nexport class ActionButtonsSectionOrganism {\n @Input()\n actions: Action[] = [];\n\n @Output()\n action = new EventEmitter<Action>();\n\n trackById = (item: Action) => item.id;\n}\n","<ng-container *ngFor=\"let _action of actions; trackBy: trackById\">\n <button mat-raised-button color=\"primary\" [disabled]=\"_action?.disabled\" (click)=\"action.emit(_action)\">{{ _action?.name }}</button>\n</ng-container>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAiBa,4BAA4B,CAAA;AAZzC,IAAA,WAAA,GAAA;QAcE,IAAO,CAAA,OAAA,GAAa,EAAE,CAAC;AAGvB,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAU,CAAC;QAEpC,IAAS,CAAA,SAAA,GAAG,CAAC,IAAY,KAAK,IAAI,CAAC,EAAE,CAAC;AACvC,KAAA;+GARY,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA5B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,4BAA4B,ECjBzC,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kCAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,OAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,kBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,qOAEe,EDOX,MAAA,EAAA,CAAA,wTAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,YAAY,2JACZ,eAAe,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,QAAA,EAAA,6GAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,eAAA,EAAA,OAAA,CAAA,EAAA,QAAA,EAAA,CAAA,WAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;4FAON,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAZxC,SAAS;+BACE,kCAAkC,EAAA,UAAA,EAChC,IAAI,EACP,OAAA,EAAA;wBACP,YAAY;wBACZ,eAAe;qBAChB,EAGgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC,EAAC,KAAK,EAAE,kBAAkB,EAAC,EAAA,QAAA,EAAA,qOAAA,EAAA,MAAA,EAAA,CAAA,wTAAA,CAAA,EAAA,CAAA;8BAIjC,OAAO,EAAA,CAAA;sBADN,KAAK;gBAIN,MAAM,EAAA,CAAA;sBADL,MAAM;;;AErBT;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-components-organisms-action-buttons-section.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/organisms/action-buttons-section/action-buttons-section.organism.ts","../../../../../packages/@ng-atomic/components/src/lib/organisms/action-buttons-section/action-buttons-section.organism.html","../../../../../packages/@ng-atomic/components/src/lib/organisms/action-buttons-section/ng-atomic-components-organisms-action-buttons-section.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { Action } from '@ng-atomic/core';\n\n@Component({\n selector: 'organisms-action-buttons-section',\n standalone: true,\n imports: [\n CommonModule,\n MatButtonModule,\n ],\n templateUrl: './action-buttons-section.organism.html',\n styleUrls: ['./action-buttons-section.organism.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'organism section'},\n})\nexport class ActionButtonsSectionOrganism {\n @Input()\n actions: Action[] = [];\n\n @Output()\n action = new EventEmitter<Action>();\n\n trackById = (item: Action) => item.id;\n}\n","<ng-container *ngFor=\"let _action of actions; trackBy: trackById\">\n <button mat-raised-button color=\"primary\" [disabled]=\"_action?.disabled\" (click)=\"action.emit(_action)\">{{ _action?.name }}</button>\n</ng-container>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAiBa,4BAA4B,CAAA;AAZzC,IAAA,WAAA,GAAA;QAcE,IAAO,CAAA,OAAA,GAAa,EAAE,CAAC;AAGvB,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAU,CAAC;QAEpC,IAAS,CAAA,SAAA,GAAG,CAAC,IAAY,KAAK,IAAI,CAAC,EAAE,CAAC;AACvC,KAAA;+GARY,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA5B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,4BAA4B,ECjBzC,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kCAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,OAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,kBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,qOAEe,EDOX,MAAA,EAAA,CAAA,wTAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,YAAY,2JACZ,eAAe,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,QAAA,EAAA,6GAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,eAAA,EAAA,OAAA,CAAA,EAAA,QAAA,EAAA,CAAA,WAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;4FAON,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAZxC,SAAS;+BACE,kCAAkC,EAAA,UAAA,EAChC,IAAI,EACP,OAAA,EAAA;wBACP,YAAY;wBACZ,eAAe;qBAChB,EAGgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC,EAAC,KAAK,EAAE,kBAAkB,EAAC,EAAA,QAAA,EAAA,qOAAA,EAAA,MAAA,EAAA,CAAA,wTAAA,CAAA,EAAA,CAAA;8BAIjC,OAAO,EAAA,CAAA;sBADN,KAAK;gBAIN,MAAM,EAAA,CAAA;sBADL,MAAM;;;AErBT;;AAEG;;;;"}
@@ -3,7 +3,7 @@ import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import { ActionInputFieldMolecule } from '@ng-atomic/components/molecules/action-input-field';
5
5
  import { FormControl } from '@angular/forms';
6
- import { NgAtomicComponent } from '@ng-atomic/common/stores/component-store';
6
+ import { NgAtomicComponent } from '@ng-atomic/core';
7
7
 
8
8
  class ActionInputSectionOrganism extends NgAtomicComponent {
9
9
  constructor() {
@@ -22,7 +22,7 @@ class ActionInputSectionOrganism extends NgAtomicComponent {
22
22
  [placeholder]="placeholder"
23
23
  (action)="dispatch($event)"
24
24
  ></molecules-action-input-field>
25
- `, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-input-section-ukzx: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-action-input-section-ukzx);box-sizing:border-box}:host .molecule.input-field,:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: ActionInputFieldMolecule, selector: "molecules-action-input-field", inputs: ["appearance", "type", "name", "label", "control", "placeholder", "hint", "actions"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
25
+ `, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-input-section-b53L: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-action-input-section-b53L);box-sizing:border-box}:host .molecule.input-field,:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: ActionInputFieldMolecule, selector: "molecules-action-input-field", inputs: ["appearance", "type", "name", "label", "control", "placeholder", "hint", "actions"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
26
26
  }
27
27
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionInputSectionOrganism, decorators: [{
28
28
  type: Component,
@@ -37,7 +37,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
37
37
  [placeholder]="placeholder"
38
38
  (action)="dispatch($event)"
39
39
  ></molecules-action-input-field>
40
- `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-input-section-ukzx: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-action-input-section-ukzx);box-sizing:border-box}:host .molecule.input-field,:host mat-form-field{width:100%}\n"] }]
40
+ `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-input-section-b53L: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-action-input-section-b53L);box-sizing:border-box}:host .molecule.input-field,:host mat-form-field{width:100%}\n"] }]
41
41
  }], propDecorators: { control: [{
42
42
  type: Input
43
43
  }], label: [{
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-components-organisms-action-input-section.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/organisms/action-input-section/action-input-section.organism.ts","../../../../../packages/@ng-atomic/components/src/lib/organisms/action-input-section/ng-atomic-components-organisms-action-input-section.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ActionInputFieldMolecule } from '@ng-atomic/components/molecules/action-input-field';\nimport { FormControl } from '@angular/forms';\nimport { Action } from '@ng-atomic/common/models';\nimport { NgAtomicComponent } from '@ng-atomic/common/stores/component-store';\n\n@Component({\n selector: 'organisms-action-input-section',\n standalone: true,\n imports: [\n CommonModule,\n ActionInputFieldMolecule,\n ],\n template: `\n <molecules-action-input-field\n [actions]=\"actions\"\n [control]=\"control\"\n [label]=\"label\"\n [placeholder]=\"placeholder\"\n (action)=\"dispatch($event)\"\n ></molecules-action-input-field>\n `,\n styleUrls: ['./action-input-section.organism.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ActionInputSectionOrganism extends NgAtomicComponent {\n @Input()\n control = new FormControl<string | number>('');\n\n @Input()\n label = 'label';\n\n @Input()\n placeholder = 'placeholder';\n\n @Input()\n actions: Action[] = [];\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n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,EAAA,CAAA;kBAnBtC,SAAS;+BACE,gCAAgC,EAAA,UAAA,EAC9B,IAAI,EACP,OAAA,EAAA;wBACP,YAAY;wBACZ,wBAAwB;qBACzB,EACS,QAAA,EAAA,CAAA;;;;;;;;GAQT,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,kTAAA,CAAA,EAAA,CAAA;8BAI/C,OAAO,EAAA,CAAA;sBADN,KAAK;gBAIN,KAAK,EAAA,CAAA;sBADJ,KAAK;gBAIN,WAAW,EAAA,CAAA;sBADV,KAAK;gBAIN,OAAO,EAAA,CAAA;sBADN,KAAK;;;ACpCR;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-components-organisms-action-input-section.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/organisms/action-input-section/action-input-section.organism.ts","../../../../../packages/@ng-atomic/components/src/lib/organisms/action-input-section/ng-atomic-components-organisms-action-input-section.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ActionInputFieldMolecule } from '@ng-atomic/components/molecules/action-input-field';\nimport { FormControl } from '@angular/forms';\nimport { Action } from '@ng-atomic/core';\nimport { NgAtomicComponent } from '@ng-atomic/core';\n\n@Component({\n selector: 'organisms-action-input-section',\n standalone: true,\n imports: [\n CommonModule,\n ActionInputFieldMolecule,\n ],\n template: `\n <molecules-action-input-field\n [actions]=\"actions\"\n [control]=\"control\"\n [label]=\"label\"\n [placeholder]=\"placeholder\"\n (action)=\"dispatch($event)\"\n ></molecules-action-input-field>\n `,\n styleUrls: ['./action-input-section.organism.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ActionInputSectionOrganism extends NgAtomicComponent {\n @Input()\n control = new FormControl<string | number>('');\n\n @Input()\n label = 'label';\n\n @Input()\n placeholder = 'placeholder';\n\n @Input()\n actions: Action[] = [];\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './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UAAA,EAAA,CAAA;kBAnBtC,SAAS;+BACE,gCAAgC,EAAA,UAAA,EAC9B,IAAI,EACP,OAAA,EAAA;wBACP,YAAY;wBACZ,wBAAwB;qBACzB,EACS,QAAA,EAAA,CAAA;;;;;;;;GAQT,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,kTAAA,CAAA,EAAA,CAAA;8BAI/C,OAAO,EAAA,CAAA;sBADN,KAAK;gBAIN,KAAK,EAAA,CAAA;sBADJ,KAAK;gBAIN,WAAW,EAAA,CAAA;sBADV,KAAK;gBAIN,OAAO,EAAA,CAAA;sBADN,KAAK;;;ACpCR;;AAEG;;;;"}
@@ -11,14 +11,14 @@ class CardInputSectionOrganism {
11
11
  this.placeholder = 'XXXX-XXXX-XXXX-XXXX';
12
12
  }
13
13
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardInputSectionOrganism, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
14
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CardInputSectionOrganism, isStandalone: true, selector: "organisms-card-input-section", inputs: { control: "control", label: "label", placeholder: "placeholder" }, ngImport: i0, template: "<molecules-text-input-field\n type=\"text\"\n name=\"cardNumber\"\n [control]=\"control\"\n [label]=\"label\"\n [placeholder]=\"placeholder\"\n></molecules-text-input-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-TZuS: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-text-input-section-TZuS);box-sizing:border-box}:host .molecule.input-field,:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: TextInputFieldMolecule, selector: "molecules-text-input-field" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
14
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CardInputSectionOrganism, isStandalone: true, selector: "organisms-card-input-section", inputs: { control: "control", label: "label", placeholder: "placeholder" }, ngImport: i0, template: "<molecules-text-input-field\n type=\"text\"\n name=\"cardNumber\"\n [control]=\"control\"\n [label]=\"label\"\n [placeholder]=\"placeholder\"\n></molecules-text-input-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-PGmn: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-text-input-section-PGmn);box-sizing:border-box}:host .molecule.input-field,:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: TextInputFieldMolecule, selector: "molecules-text-input-field" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
15
15
  }
16
16
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardInputSectionOrganism, decorators: [{
17
17
  type: Component,
18
18
  args: [{ selector: 'organisms-card-input-section', standalone: true, imports: [
19
19
  CommonModule,
20
20
  TextInputFieldMolecule,
21
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<molecules-text-input-field\n type=\"text\"\n name=\"cardNumber\"\n [control]=\"control\"\n [label]=\"label\"\n [placeholder]=\"placeholder\"\n></molecules-text-input-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-TZuS: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-text-input-section-TZuS);box-sizing:border-box}:host .molecule.input-field,:host mat-form-field{width:100%}\n"] }]
21
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<molecules-text-input-field\n type=\"text\"\n name=\"cardNumber\"\n [control]=\"control\"\n [label]=\"label\"\n [placeholder]=\"placeholder\"\n></molecules-text-input-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-PGmn: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-text-input-section-PGmn);box-sizing:border-box}:host .molecule.input-field,:host mat-form-field{width:100%}\n"] }]
22
22
  }], propDecorators: { control: [{
23
23
  type: Input
24
24
  }], label: [{
@@ -19,7 +19,7 @@ class CvcAndExpInputSectionOrganism {
19
19
  });
20
20
  }
21
21
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CvcAndExpInputSectionOrganism, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
22
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CvcAndExpInputSectionOrganism, isStandalone: true, selector: "organisms-cvc-and-exp-input-section", inputs: { form: "form" }, ngImport: i0, template: "<molecules-select-input-field\n class=\"year field\"\n label=\"\u6709\u52B9\u671F\u9650(\u5E74)\"\n [control]=\"form.get('expYear')\"\n [options]=\"yearOptions\"\n></molecules-select-input-field>\n<molecules-select-input-field\n class=\"month field\"\n label=\"\u6709\u52B9\u671F\u9650(\u6708)\"\n [control]=\"form.get('expMonth')\"\n [options]=\"monthOptions\"\n></molecules-select-input-field>\n<molecules-text-input-field\n class=\"cvc field\"\n type=\"text\"\n name=\"cardNumber\"\n label=\"CVC\"\n placeholder=\"4\u6841\u306E\u756A\u53F7\"\n [control]=\"form.get('cvc')\"\n></molecules-text-input-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-H8Sp: var(--horizontal-padding)}:host{display:flex;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-text-input-section-H8Sp);box-sizing:border-box}:host .field:not(:first-child){margin-left:8px}:host .year.field,:host .month.field{width:auto}:host .cvc.field{width:100px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: SelectInputFieldMolecule, selector: "molecules-select-input-field", inputs: ["label", "appearance", "control", "options"] }, { kind: "component", type: TextInputFieldMolecule, selector: "molecules-text-input-field" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
22
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CvcAndExpInputSectionOrganism, isStandalone: true, selector: "organisms-cvc-and-exp-input-section", inputs: { form: "form" }, ngImport: i0, template: "<molecules-select-input-field\n class=\"year field\"\n label=\"\u6709\u52B9\u671F\u9650(\u5E74)\"\n [control]=\"form.get('expYear')\"\n [options]=\"yearOptions\"\n></molecules-select-input-field>\n<molecules-select-input-field\n class=\"month field\"\n label=\"\u6709\u52B9\u671F\u9650(\u6708)\"\n [control]=\"form.get('expMonth')\"\n [options]=\"monthOptions\"\n></molecules-select-input-field>\n<molecules-text-input-field\n class=\"cvc field\"\n type=\"text\"\n name=\"cardNumber\"\n label=\"CVC\"\n placeholder=\"4\u6841\u306E\u756A\u53F7\"\n [control]=\"form.get('cvc')\"\n></molecules-text-input-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-hWDg: var(--horizontal-padding)}:host{display:flex;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-text-input-section-hWDg);box-sizing:border-box}:host .field:not(:first-child){margin-left:8px}:host .year.field,:host .month.field{width:auto}:host .cvc.field{width:100px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: SelectInputFieldMolecule, selector: "molecules-select-input-field", inputs: ["label", "appearance", "control", "options"] }, { kind: "component", type: TextInputFieldMolecule, selector: "molecules-text-input-field" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
23
23
  }
24
24
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CvcAndExpInputSectionOrganism, decorators: [{
25
25
  type: Component,
@@ -27,7 +27,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
27
27
  CommonModule,
28
28
  SelectInputFieldMolecule,
29
29
  TextInputFieldMolecule,
30
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<molecules-select-input-field\n class=\"year field\"\n label=\"\u6709\u52B9\u671F\u9650(\u5E74)\"\n [control]=\"form.get('expYear')\"\n [options]=\"yearOptions\"\n></molecules-select-input-field>\n<molecules-select-input-field\n class=\"month field\"\n label=\"\u6709\u52B9\u671F\u9650(\u6708)\"\n [control]=\"form.get('expMonth')\"\n [options]=\"monthOptions\"\n></molecules-select-input-field>\n<molecules-text-input-field\n class=\"cvc field\"\n type=\"text\"\n name=\"cardNumber\"\n label=\"CVC\"\n placeholder=\"4\u6841\u306E\u756A\u53F7\"\n [control]=\"form.get('cvc')\"\n></molecules-text-input-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-H8Sp: var(--horizontal-padding)}:host{display:flex;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-text-input-section-H8Sp);box-sizing:border-box}:host .field:not(:first-child){margin-left:8px}:host .year.field,:host .month.field{width:auto}:host .cvc.field{width:100px}\n"] }]
30
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<molecules-select-input-field\n class=\"year field\"\n label=\"\u6709\u52B9\u671F\u9650(\u5E74)\"\n [control]=\"form.get('expYear')\"\n [options]=\"yearOptions\"\n></molecules-select-input-field>\n<molecules-select-input-field\n class=\"month field\"\n label=\"\u6709\u52B9\u671F\u9650(\u6708)\"\n [control]=\"form.get('expMonth')\"\n [options]=\"monthOptions\"\n></molecules-select-input-field>\n<molecules-text-input-field\n class=\"cvc field\"\n type=\"text\"\n name=\"cardNumber\"\n label=\"CVC\"\n placeholder=\"4\u6841\u306E\u756A\u53F7\"\n [control]=\"form.get('cvc')\"\n></molecules-text-input-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-hWDg: var(--horizontal-padding)}:host{display:flex;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-text-input-section-hWDg);box-sizing:border-box}:host .field:not(:first-child){margin-left:8px}:host .year.field,:host .month.field{width:auto}:host .cvc.field{width:100px}\n"] }]
31
31
  }], propDecorators: { form: [{
32
32
  type: Input
33
33
  }] } });
@@ -18,7 +18,7 @@ class DateInputSectionOrganism {
18
18
  [label]="label"
19
19
  [placeholder]="placeholder"
20
20
  ></molecules-date-input-field>
21
- `, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-section-4bx7: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-date-input-section-4bx7);box-sizing:border-box}:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DateInputFieldMolecule, selector: "molecules-date-input-field", inputs: ["control", "label", "placeholder", "hint"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
21
+ `, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-section-lzp2: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-date-input-section-lzp2);box-sizing:border-box}:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DateInputFieldMolecule, selector: "molecules-date-input-field", inputs: ["control", "label", "placeholder", "hint"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
22
22
  }
23
23
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateInputSectionOrganism, decorators: [{
24
24
  type: Component,
@@ -31,7 +31,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
31
31
  [label]="label"
32
32
  [placeholder]="placeholder"
33
33
  ></molecules-date-input-field>
34
- `, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'organism section' }, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-section-4bx7: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-date-input-section-4bx7);box-sizing:border-box}:host mat-form-field{width:100%}\n"] }]
34
+ `, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'organism section' }, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-section-lzp2: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-date-input-section-lzp2);box-sizing:border-box}:host mat-form-field{width:100%}\n"] }]
35
35
  }], propDecorators: { control: [{
36
36
  type: Input
37
37
  }], label: [{
@@ -3,7 +3,7 @@ import * as i0 from '@angular/core';
3
3
  import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import { FileInputFieldMolecule } from '@ng-atomic/components/molecules/file-input-field';
6
- import { NgAtomicComponent, Effect } from '@ng-atomic/common/stores/component-store';
6
+ import { NgAtomicComponent, Effect } from '@ng-atomic/core';
7
7
  import { FormControl } from '@angular/forms';
8
8
 
9
9
  var ActionId;
@@ -35,7 +35,7 @@ class FileInputSectionOrganism extends NgAtomicComponent {
35
35
  [placeholder]="placeholder"
36
36
  (action)="dispatch($event)"
37
37
  ></molecules-file-input-field>
38
- `, isInline: true, styles: [":host{display:block;--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-file-input-section-xvzq: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-file-input-section-xvzq);box-sizing:border-box}:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: FileInputFieldMolecule, selector: "molecules-file-input-field", inputs: ["appearance", "name", "label", "control", "placeholder", "hint", "progress"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
38
+ `, isInline: true, styles: [":host{display:block;--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-file-input-section-DeTu: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-file-input-section-DeTu);box-sizing:border-box}:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: FileInputFieldMolecule, selector: "molecules-file-input-field", inputs: ["appearance", "name", "label", "control", "placeholder", "hint", "progress"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
39
39
  }
40
40
  __decorate([
41
41
  Effect(FileInputFieldMolecule.ActionId.FILE_SELECTED),
@@ -63,7 +63,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
63
63
  [placeholder]="placeholder"
64
64
  (action)="dispatch($event)"
65
65
  ></molecules-file-input-field>
66
- `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-file-input-section-xvzq: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-file-input-section-xvzq);box-sizing:border-box}:host mat-form-field{width:100%}\n"] }]
66
+ `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-file-input-section-DeTu: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-file-input-section-DeTu);box-sizing:border-box}:host mat-form-field{width:100%}\n"] }]
67
67
  }], propDecorators: { control: [{
68
68
  type: Input
69
69
  }], label: [{
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-components-organisms-file-input-section.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/organisms/file-input-section/file-input-section.organism.ts","../../../../../packages/@ng-atomic/components/src/lib/organisms/file-input-section/ng-atomic-components-organisms-file-input-section.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FileInputFieldMolecule } from '@ng-atomic/components/molecules/file-input-field';\nimport { Effect, NgAtomicComponent } from '@ng-atomic/common/stores/component-store';\nimport { FormControl } from '@angular/forms';\n\nenum ActionId {\n FILE_SELECTED = '[@ng-atomic/components/organisms/file-input-section] File selected',\n CANCEL = '[@ng-atomic/components/organisms/file-input-section] Cancel',\n}\n\n@Component({\n selector: 'organisms-file-input-section',\n standalone: true,\n imports: [\n CommonModule,\n FileInputFieldMolecule,\n ],\n template: `\n <molecules-file-input-field\n [control]=\"control\"\n [label]=\"label\"\n [hint]=\"hint\"\n [progress]=\"progress\"\n [placeholder]=\"placeholder\"\n (action)=\"dispatch($event)\"\n ></molecules-file-input-field>\n `,\n styleUrls: ['./file-input-section.organism.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FileInputSectionOrganism extends NgAtomicComponent {\n static ActionId = ActionId;\n\n @Input() control = new FormControl({value: null, disabled: true});\n @Input() label = 'label';\n @Input() placeholder = 'placeholder';\n @Input() hint?: string;\n @Input() progress?: number;\n\n @Effect(FileInputFieldMolecule.ActionId.FILE_SELECTED)\n protected onFileSelected(files: File[]) {\n this.dispatch({id: ActionId.FILE_SELECTED, payload: files});\n }\n\n @Effect(FileInputFieldMolecule.ActionId.CANCEL)\n protected onCancel() {\n this.dispatch({id: ActionId.CANCEL});\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAMA,IAAK,QAGJ,CAAA;AAHD,CAAA,UAAK,QAAQ,EAAA;AACX,IAAA,QAAA,CAAA,eAAA,CAAA,GAAA,oEAAoF,CAAA;AACpF,IAAA,QAAA,CAAA,QAAA,CAAA,GAAA,6DAAsE,CAAA;AACxE,CAAC,EAHI,QAAQ,KAAR,QAAQ,GAGZ,EAAA,CAAA,CAAA,CAAA;AAsBK,MAAO,wBAAyB,SAAQ,iBAAiB,CAAA;AApB/D,IAAA,WAAA,GAAA;;AAuBW,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,WAAW,CAAC,EAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC;QACzD,IAAK,CAAA,KAAA,GAAG,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A,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;AAyBd,UAAA,CAAA;AADT,IAAA,MAAM,CAAC,sBAAsB,CAAC,QAAQ,CAAC,aAAa,CAAC;;;;AAGrD,CAAA,EAAA,wBAAA,CAAA,SAAA,EAAA,gBAAA,EAAA,IAAA,CAAA,CAAA;AAGS,UAAA,CAAA;AADT,IAAA,MAAM,CAAC,sBAAsB,CAAC,QAAQ,CAAC,MAAM,CAAC;;;;AAG9C,CAAA,EAAA,wBAAA,CAAA,SAAA,EAAA,UAAA,EAAA,IAAA,CAAA,CAAA;4FAjBU,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBApBpC,SAAS;+BACE,8BAA8B,EAAA,UAAA,EAC5B,IAAI,EACP,OAAA,EAAA;wBACP,YAAY;wBACZ,sBAAsB;qBACvB,EACS,QAAA,EAAA,CAAA;;;;;;;;;GAST,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,gSAAA,CAAA,EAAA,CAAA;8BAKtC,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;AAGI,aAAA,CAAA,EAAA,cAAc,MAKd,QAAQ,EAAA,EAAA,EAAA,EAAA,CAAA;;AC9CpB;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-components-organisms-file-input-section.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/organisms/file-input-section/file-input-section.organism.ts","../../../../../packages/@ng-atomic/components/src/lib/organisms/file-input-section/ng-atomic-components-organisms-file-input-section.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FileInputFieldMolecule } from '@ng-atomic/components/molecules/file-input-field';\nimport { Effect, NgAtomicComponent } from '@ng-atomic/core';\nimport { FormControl } from '@angular/forms';\n\nenum ActionId {\n FILE_SELECTED = '[@ng-atomic/components/organisms/file-input-section] File selected',\n CANCEL = '[@ng-atomic/components/organisms/file-input-section] Cancel',\n}\n\n@Component({\n selector: 'organisms-file-input-section',\n standalone: true,\n imports: [\n CommonModule,\n FileInputFieldMolecule,\n ],\n template: `\n <molecules-file-input-field\n [control]=\"control\"\n [label]=\"label\"\n [hint]=\"hint\"\n [progress]=\"progress\"\n [placeholder]=\"placeholder\"\n (action)=\"dispatch($event)\"\n ></molecules-file-input-field>\n `,\n styleUrls: ['./file-input-section.organism.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FileInputSectionOrganism extends NgAtomicComponent {\n static ActionId = ActionId;\n\n @Input() control = new FormControl({value: null, disabled: true});\n @Input() label = 'label';\n @Input() placeholder = 'placeholder';\n @Input() hint?: string;\n @Input() progress?: number;\n\n @Effect(FileInputFieldMolecule.ActionId.FILE_SELECTED)\n protected onFileSelected(files: File[]) {\n this.dispatch({id: ActionId.FILE_SELECTED, payload: files});\n }\n\n @Effect(FileInputFieldMolecule.ActionId.CANCEL)\n protected onCancel() {\n this.dispatch({id: ActionId.CANCEL});\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAMA,IAAK,QAGJ,CAAA;AAHD,CAAA,UAAK,QAAQ,EAAA;AACX,IAAA,QAAA,CAAA,eAAA,CAAA,GAAA,oEAAoF,CAAA;AACpF,IAAA,QAAA,CAAA,QAAA,CAAA,GAAA,6DAAsE,CAAA;AACxE,CAAC,EAHI,QAAQ,KAAR,QAAQ,GAGZ,EAAA,CAAA,CAAA,CAAA;AAsBK,MAAO,wBAAyB,SAAQ,iBAAiB,CAAA;AApB/D,IAAA,WAAA,GAAA;;AAuBW,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,WAAW,CAAC,EAAC,KAAK,E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A,OAAA,EAAA,SAAA,EAAA,aAAA,EAAA,MAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;AAyBd,UAAA,CAAA;AADT,IAAA,MAAM,CAAC,sBAAsB,CAAC,QAAQ,CAAC,aAAa,CAAC;;;;AAGrD,CAAA,EAAA,wBAAA,CAAA,SAAA,EAAA,gBAAA,EAAA,IAAA,CAAA,CAAA;AAGS,UAAA,CAAA;AADT,IAAA,MAAM,CAAC,sBAAsB,CAAC,QAAQ,CAAC,MAAM,CAAC;;;;AAG9C,CAAA,EAAA,wBAAA,CAAA,SAAA,EAAA,UAAA,EAAA,IAAA,CAAA,CAAA;4FAjBU,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBApBpC,SAAS;+BACE,8BAA8B,EAAA,UAAA,EAC5B,IAAI,EACP,OAAA,EAAA;wBACP,YAAY;wBACZ,sBAAsB;qBACvB,EACS,QAAA,EAAA,CAAA;;;;;;;;;GAST,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,gSAAA,CAAA,EAAA,CAAA;8BAKtC,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;AAGI,aAAA,CAAA,EAAA,cAAc,MAKd,QAAQ,EAAA,EAAA,EAAA,EAAA,CAAA;;AC9CpB;;AAEG;;;;"}
@@ -13,7 +13,7 @@ import { FormControl } from '@angular/forms';
13
13
  import * as i1 from '@angular/common';
14
14
  import { CommonModule } from '@angular/common';
15
15
  import { EditorComponent } from '@ng-atomic/components/extras/editor';
16
- import { NgAtomicComponent } from '@ng-atomic/common/stores/component-store';
16
+ import { NgAtomicComponent } from '@ng-atomic/core';
17
17
 
18
18
  class GraphqlExtractor {
19
19
  extract(output) {
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-components-organisms-graphql-editor.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/organisms/graphql-editor/graphql-editor.organism.ts","../../../../../packages/@ng-atomic/components/src/lib/organisms/graphql-editor/ng-atomic-components-organisms-graphql-editor.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { keymap } from \"@codemirror/view\"\nimport { indentWithTab } from \"@codemirror/commands\"\nimport { history } from '@codemirror/commands';\nimport { autocompletion, closeBrackets } from '@codemirror/autocomplete';\nimport { bracketMatching, syntaxHighlighting } from '@codemirror/language';\nimport { oneDarkHighlightStyle, oneDark } from '@codemirror/theme-one-dark';\nimport { EditorState } from '@codemirror/state';\nimport { lineNumbers } from '@codemirror/view';\nimport { graphql } from 'cm6-graphql';\nimport { basicSetup, EditorView } from \"codemirror\"\nimport { ReplaySubject, combineLatest, distinctUntilChanged, filter, startWith, tap } from 'rxjs';\nimport { AbstractControl, FormControl } from '@angular/forms';\nimport { Action } from '@ng-atomic/common/models';\nimport { CommonModule } from '@angular/common';\nimport { EditorComponent } from '@ng-atomic/components/extras/editor';\nimport { NgAtomicComponent } from '@ng-atomic/common/stores/component-store';\n\nexport class GraphqlExtractor {\n extract(output: string): string {\n return output.split('```')?.[1]?.replace(/^graphql/, '')?.replace(/^\\n/, '') ?? ''\n }\n\n insert(query: string): string {\n return `\\`\\`\\`graphql\\n${query}\\`\\`\\``;\n }\n}\n\nexport enum ActionId {\n EXECUTE = 'execute',\n SAVE = 'save',\n}\n\n@Component({\n standalone: true,\n imports: [\n CommonModule,\n EditorComponent,\n ],\n selector: 'organisms-graphql-editor',\n template: `<extras-editor *ngIf=\"state\" [state]=\"state\"></extras-editor>`,\n styleUrls: ['./graphql-editor.organism.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class GraphqlEditorOrganism extends NgAtomicComponent {\n private readonly schema$ = new ReplaySubject(1);\n\n @Input()\n control = new FormControl('');\n\n state!: EditorState;\n\n @Input()\n set schema(value: any) {\n this.schema$.next(value);\n }\n\n @Input()\n keyActions: {key: string, actionId: string}[] = [];\n\n @Output()\n action = new EventEmitter<Action>();\n\n ngOnInit() {\n combineLatest({\n schema: this.schema$,\n value: this.control.valueChanges.pipe(\n startWith(this.control.value),\n filter(value => value !== this.state?.doc?.toString()),\n ),\n }).pipe(\n filter(({schema}) => !!schema),\n distinctUntilChanged(),\n ).subscribe(params => {\n console.debug('params:', params);\n this.state = this.makeEditorState(params);\n });\n }\n\n private makeEditorState({schema, value}: {schema: any, value: string}) {\n return EditorState.create({\n doc: value,\n extensions: [\n makeKeymapExtension(this.keyActions, action => this.dispatch(action)),\n EditorView.updateListener.of((update) => {\n if (update.docChanged) return;\n this.control.setValue(update.state.doc.toString());\n }),\n ...CODEMIRROR_EXTENSIONS,\n makeGraphqlExtension(schema),\n ],\n });\n }\n}\n\nconst CODEMIRROR_EXTENSIONS = [\n basicSetup,\n bracketMatching(),\n closeBrackets(),\n history(),\n autocompletion(),\n lineNumbers(),\n oneDark,\n syntaxHighlighting(oneDarkHighlightStyle),\n];\n\nfunction makeKeymapExtension(\n keyActions: {key: string, actionId: string}[],\n callback: (action: Action) => void\n) {\n return keymap.of([\n ...keyActions.map(({key, actionId}) => ({\n key,\n run: () => (callback({id: actionId, payload: {key}}), true),\n })),\n indentWithTab,\n ]);\n}\n\nfunction makeGraphqlExtension(schema) {\n return graphql(schema, {\n onShowInDocs: (field, type, parentType) => alert(`Showing in docs.: Field: ${field}, Type: ${type}, ParentType: ${parentType}`),\n onFillAllFields: (view, schema, _query, cursor, token) => alert(`Filling all fields. Token: ${token}`),\n });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;MAkBa,gBAAgB,CAAA;AAC3B,IAAA,OAAO,CAAC,MAAc,EAAA;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AAS,mBAAmB,CAC1B,UAA6C,EAC7C,QAAkC,EAAA;IAElC,OAAO,MAAM,CAAC,EAAE,CAAC;AACf,QAAA,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,EAAC,GAAG,EAAE,QAAQ,EAAC,MAAM;YACtC,GAAG;YACH,GAAG,EAAE,OAAO,QAAQ,CAAC,EAAC,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAC,GAAG,EAAC,EAAC,CAAC,EAAE,IAAI,CAAC;AAC5D,SAAA,CAAC,CAAC;QACH,aAAa;AACd,KAAA,CAAC,CAAC;AACL,CAAC;AAED,SAAS,oBAAoB,CAAC,MAAM,EAAA;IAClC,OAAO,OAAO,CAAC,MAAM,EAAE;AACrB,QAAA,YAAY,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,UAAU,KAAK,KAAK,CAAC,4BAA4B,KAAK,CAAA,QAAA,EAAW,IAAI,CAAiB,cAAA,EAAA,UAAU,EAAE,CAAC;AAC/H,QAAA,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,KAAK,KAAK,CAAC,CAA8B,2BAAA,EAAA,KAAK,EAAE,CAAC;AACvG,KAAA,CAAC,CAAC;AACL;;AC5HA;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-components-organisms-graphql-editor.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/organisms/graphql-editor/graphql-editor.organism.ts","../../../../../packages/@ng-atomic/components/src/lib/organisms/graphql-editor/ng-atomic-components-organisms-graphql-editor.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { keymap } from \"@codemirror/view\"\nimport { indentWithTab } from \"@codemirror/commands\"\nimport { history } from '@codemirror/commands';\nimport { autocompletion, closeBrackets } from '@codemirror/autocomplete';\nimport { bracketMatching, syntaxHighlighting } from '@codemirror/language';\nimport { oneDarkHighlightStyle, oneDark } from '@codemirror/theme-one-dark';\nimport { EditorState } from '@codemirror/state';\nimport { lineNumbers } from '@codemirror/view';\nimport { graphql } from 'cm6-graphql';\nimport { basicSetup, EditorView } from \"codemirror\"\nimport { ReplaySubject, combineLatest, distinctUntilChanged, filter, startWith, tap } from 'rxjs';\nimport { AbstractControl, FormControl } from '@angular/forms';\nimport { Action } from '@ng-atomic/core';\nimport { CommonModule } from '@angular/common';\nimport { EditorComponent } from '@ng-atomic/components/extras/editor';\nimport { NgAtomicComponent } from '@ng-atomic/core';\n\nexport class GraphqlExtractor {\n extract(output: string): string {\n return output.split('```')?.[1]?.replace(/^graphql/, '')?.replace(/^\\n/, '') ?? ''\n }\n\n insert(query: string): string {\n return `\\`\\`\\`graphql\\n${query}\\`\\`\\``;\n }\n}\n\nexport enum ActionId {\n EXECUTE = 'execute',\n SAVE = 'save',\n}\n\n@Component({\n standalone: true,\n imports: [\n CommonModule,\n EditorComponent,\n ],\n selector: 'organisms-graphql-editor',\n template: `<extras-editor *ngIf=\"state\" [state]=\"state\"></extras-editor>`,\n styleUrls: ['./graphql-editor.organism.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class GraphqlEditorOrganism extends NgAtomicComponent {\n private readonly schema$ = new ReplaySubject(1);\n\n @Input()\n control = new FormControl('');\n\n state!: EditorState;\n\n @Input()\n set schema(value: any) {\n this.schema$.next(value);\n }\n\n @Input()\n keyActions: {key: string, actionId: string}[] = [];\n\n @Output()\n action = new EventEmitter<Action>();\n\n ngOnInit() {\n combineLatest({\n schema: this.schema$,\n value: this.control.valueChanges.pipe(\n startWith(this.control.value),\n filter(value => value !== this.state?.doc?.toString()),\n ),\n }).pipe(\n filter(({schema}) => !!schema),\n distinctUntilChanged(),\n ).subscribe(params => {\n console.debug('params:', params);\n this.state = this.makeEditorState(params);\n });\n }\n\n private makeEditorState({schema, value}: {schema: any, value: string}) {\n return EditorState.create({\n doc: value,\n extensions: [\n makeKeymapExtension(this.keyActions, action => this.dispatch(action)),\n EditorView.updateListener.of((update) => {\n if (update.docChanged) return;\n this.control.setValue(update.state.doc.toString());\n }),\n ...CODEMIRROR_EXTENSIONS,\n makeGraphqlExtension(schema),\n ],\n });\n }\n}\n\nconst CODEMIRROR_EXTENSIONS = [\n basicSetup,\n bracketMatching(),\n closeBrackets(),\n history(),\n autocompletion(),\n lineNumbers(),\n oneDark,\n syntaxHighlighting(oneDarkHighlightStyle),\n];\n\nfunction makeKeymapExtension(\n keyActions: {key: string, actionId: string}[],\n callback: (action: Action) => void\n) {\n return keymap.of([\n ...keyActions.map(({key, actionId}) => ({\n key,\n run: () => (callback({id: actionId, payload: {key}}), true),\n })),\n indentWithTab,\n ]);\n}\n\nfunction makeGraphqlExtension(schema) {\n return graphql(schema, {\n onShowInDocs: (field, type, parentType) => alert(`Showing in docs.: Field: ${field}, Type: ${type}, ParentType: ${parentType}`),\n onFillAllFields: (view, schema, _query, cursor, token) => alert(`Filling all fields. Token: ${token}`),\n });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;MAkBa,gBAAgB,CAAA;AAC3B,IAAA,OAAO,CAAC,MAAc,EAAA;QACpB,OAAO,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,EAAE,CAAA;KACnF;AAED,IAAA,MAAM,CAAC,KAAa,EAAA;QAClB,OAAO,CAAA,eAAA,EAAkB,KAAK,CAAA,MAAA,CAAQ,CAAC;KACxC;AACF,CAAA;IAEW,SAGX;AAHD,CAAA,UAAY,QAAQ,EAAA;AAClB,IAAA,QAAA,CAAA,SAAA,CAAA,GAAA,SAAmB,CAAA;AACnB,IAAA,QAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACf,CAAC,EAHW,QAAQ,KAAR,QAAQ,GAGnB,EAAA,CAAA,CAAA,CAA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AU,KAAK,KAAK,CAAC,4BAA4B,KAAK,CAAA,QAAA,EAAW,IAAI,CAAiB,cAAA,EAAA,UAAU,EAAE,CAAC;AAC/H,QAAA,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,KAAK,KAAK,CAAC,CAA8B,2BAAA,EAAA,KAAK,EAAE,CAAC;AACvG,KAAA,CAAC,CAAC;AACL;;AC5HA;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-components-organisms-grid-toolbar.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/organisms/grid-toolbar/grid-toolbar.organism.ts","../../../../../packages/@ng-atomic/components/src/lib/organisms/grid-toolbar/ng-atomic-components-organisms-grid-toolbar.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { Action } from '@ng-atomic/common/models';\nimport { NestedMenuMolecule } from '@ng-atomic/components/molecules/nested-menu';\nimport { ChipsInputFieldMolecule } from '@ng-atomic/components/molecules/chips-input-field';\nimport { FormControl } from '@angular/forms';\nimport { ChipsInputAtom } from '@ng-atomic/components/atoms/chips-input';\n\nexport enum ActionId {\n COLUMNS = '[@ng-atomic/components/organisms/grid-toolbar] Columns',\n FILTERS = '[@ng-atomic/components/organisms/grid-toolbar] Filters',\n EXPORT = '[@ng-atomic/components/organisms/grid-toolbar] Export',\n}\n\n@Component({\n selector: 'organisms-grid-toolbar',\n standalone: true,\n imports: [\n CommonModule,\n MatButtonModule,\n MatIconModule,\n MatMenuModule,\n NestedMenuMolecule,\n ChipsInputFieldMolecule,\n ChipsInputAtom,\n ],\n template: `\n <div class=\"left\">\n <ng-container *ngFor=\"let _action of actions\">\n <ng-container *ngIf=\"_action?.children\">\n <button\n mat-button\n color=\"basic\"\n [matMenuTriggerFor]=\"menu.childMenu\"\n ><mat-icon>{{ _action.icon }}</mat-icon> <span>{{ _action.name }}</span></button>\n <molecules-nested-menu\n #menu\n [actions]=\"_action.children\"\n (action)=\"action.emit($event)\"\n ></molecules-nested-menu>\n </ng-container>\n <button\n *ngIf=\"!_action?.children\"\n mat-button\n color=\"basic\"\n (click)=\"action.emit(_action)\"\n ><mat-icon>{{ _action.icon }}</mat-icon> <span>{{ _action.name }}</span></button>\n </ng-container>\n </div>\n <molecules-chips-input-field\n [appearance]=\"'fill'\"\n [placeholder]=\"'status:active'\"\n [label]=\"'フィルター'\"\n [hint]=\"'フィルター条件を入力できます。'\"\n [control]=\"control\"\n ></molecules-chips-input-field>\n `,\n styleUrls: ['./grid-toolbar.organism.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class GridToolbarOrganism {\n @Input()\n actions: Action[] = [\n {\n id: ActionId.COLUMNS,\n icon: 'view_column',\n name: 'Columns',\n },\n {\n id: ActionId.FILTERS,\n icon: 'filter_list',\n name: 'Filters',\n },\n {\n id: 'Display',\n icon: 'display_settings',\n name: 'Display',\n children: [\n {\n id: 'Flat',\n name: 'Flat',\n },\n {\n id: 'Tree',\n name: 'Tree',\n children: [\n {\n id: 'A',\n name: 'A',\n },\n {\n id: 'B',\n name: 'B',\n }\n ]\n },\n ],\n },\n {\n id: ActionId.EXPORT,\n icon: 'download',\n name: 'Export'\n },\n ];\n\n @Input()\n control = new FormControl<string>('');\n\n @Output()\n action = new EventEmitter<Action>();\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;IAWY,SAIX;AAJD,CAAA,UAAY,QAAQ,EAAA;AAClB,IAAA,QAAA,CAAA,SAAA,CAAA,GAAA,wDAAkE,CAAA;AAClE,IAAA,QAAA,CAAA,SAAA,CAAA,GAAA,wDAAkE,CAAA;AAClE,IAAA,QAAA,CAAA,QAAA,CAAA,GAAA,uD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EAAA,UAAA,EAAA,IAAA,EAAA,aAAa,mLACb,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,cAAA,EAAA,QAAA,EAAA,6CAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACb,kBAAkB,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAClB,uBAAuB,EAAA,QAAA,EAAA,6BAAA,EAAA,MAAA,EAAA,CAAA,YAAA,EAAA,SAAA,EAAA,YAAA,EAAA,OAAA,EAAA,MAAA,EAAA,aAAA,EAAA,YAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;4FAqCd,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBA9C/B,SAAS;+BACE,wBAAwB,EAAA,UAAA,EACtB,IAAI,EACP,OAAA,EAAA;wBACP,YAAY;wBACZ,eAAe;wBACf,aAAa;wBACb,aAAa;wBACb,kBAAkB;wBAClB,uBAAuB;wBACvB,cAAc;qBACf,EACS,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BT,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,kHAAA,CAAA,EAAA,CAAA;8BAI/C,OAAO,EAAA,CAAA;sBADN,KAAK;gBA6CN,OAAO,EAAA,CAAA;sBADN,KAAK;gBAIN,MAAM,EAAA,CAAA;sBADL,MAAM;;;AC/GT;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-components-organisms-grid-toolbar.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/organisms/grid-toolbar/grid-toolbar.organism.ts","../../../../../packages/@ng-atomic/components/src/lib/organisms/grid-toolbar/ng-atomic-components-organisms-grid-toolbar.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { Action } from '@ng-atomic/core';\nimport { NestedMenuMolecule } from '@ng-atomic/components/molecules/nested-menu';\nimport { ChipsInputFieldMolecule } from '@ng-atomic/components/molecules/chips-input-field';\nimport { FormControl } from '@angular/forms';\nimport { ChipsInputAtom } from '@ng-atomic/components/atoms/chips-input';\n\nexport enum ActionId {\n COLUMNS = '[@ng-atomic/components/organisms/grid-toolbar] Columns',\n FILTERS = '[@ng-atomic/components/organisms/grid-toolbar] Filters',\n EXPORT = '[@ng-atomic/components/organisms/grid-toolbar] Export',\n}\n\n@Component({\n selector: 'organisms-grid-toolbar',\n standalone: true,\n imports: [\n CommonModule,\n MatButtonModule,\n MatIconModule,\n MatMenuModule,\n NestedMenuMolecule,\n ChipsInputFieldMolecule,\n ChipsInputAtom,\n ],\n template: `\n <div class=\"left\">\n <ng-container *ngFor=\"let _action of actions\">\n <ng-container *ngIf=\"_action?.children\">\n <button\n mat-button\n color=\"basic\"\n [matMenuTriggerFor]=\"menu.childMenu\"\n ><mat-icon>{{ _action.icon }}</mat-icon> <span>{{ _action.name }}</span></button>\n <molecules-nested-menu\n #menu\n [actions]=\"_action.children\"\n (action)=\"action.emit($event)\"\n ></molecules-nested-menu>\n </ng-container>\n <button\n *ngIf=\"!_action?.children\"\n mat-button\n color=\"basic\"\n (click)=\"action.emit(_action)\"\n ><mat-icon>{{ _action.icon }}</mat-icon> <span>{{ _action.name }}</span></button>\n </ng-container>\n </div>\n <molecules-chips-input-field\n [appearance]=\"'fill'\"\n [placeholder]=\"'status:active'\"\n [label]=\"'フィルター'\"\n [hint]=\"'フィルター条件を入力できます。'\"\n [control]=\"control\"\n ></molecules-chips-input-field>\n `,\n styleUrls: ['./grid-toolbar.organism.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class GridToolbarOrganism {\n @Input()\n actions: Action[] = [\n {\n id: ActionId.COLUMNS,\n icon: 'view_column',\n name: 'Columns',\n },\n {\n id: ActionId.FILTERS,\n icon: 'filter_list',\n name: 'Filters',\n },\n {\n id: 'Display',\n icon: 'display_settings',\n name: 'Display',\n children: [\n {\n id: 'Flat',\n name: 'Flat',\n },\n {\n id: 'Tree',\n name: 'Tree',\n children: [\n {\n id: 'A',\n name: 'A',\n },\n {\n id: 'B',\n name: 'B',\n }\n ]\n },\n ],\n },\n {\n id: ActionId.EXPORT,\n icon: 'download',\n name: 'Export'\n },\n ];\n\n @Input()\n control = new FormControl<string>('');\n\n @Output()\n action = new EventEmitter<Action>();\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;IAWY,SAIX;AAJD,CAAA,UAAY,QAAQ,EAAA;AAClB,IAAA,QAAA,CAAA,SAAA,CAAA,GAAA,wDAAkE,CAAA;AAClE,IAAA,QAAA,CAAA,SAAA,CAAA,GAAA,wDAAkE,CAAA;AAClE,IAAA,QAAA,CAAA,QAAA,CAAA,GAAA,uDAAgE,CAAA;AAClE,CAAC,EAJW,QAAQ,KAAR,QAAQ,GAInB,EAAA,CAAA,CAAA,CAAA;MAgDY,mBAAmB,CAAA;AA9ChC,IAAA,WAAA,GAAA;AAgDE,QAAA,IAAA,CAAA,OAAO,GAAa;AAClB,YAAA;gBACE,EAAE,EAAE,QAAQ,CAAC,OAAO;AACpB,gBAAA,IAAI,EAAE,aAAa;AACnB,gBAAA,IAAI,EAAE,SAAS;AAChB,aAAA;AACD,YAAA;gBACE,EAAE,EAAE,QAAQ,CAAC,OAAO;AACpB,gBAAA,IAAI,EAAE,aAAa;AACnB,gBAAA,IAAI,EAAE,SAAS;AAChB,aAAA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