cmat 0.0.118 → 0.0.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/cmat-components-adapter.mjs +9 -9
- package/fesm2022/cmat-components-breadcrumb.mjs +10 -9
- package/fesm2022/cmat-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/cmat-components-card.mjs +6 -6
- package/fesm2022/cmat-components-card.mjs.map +1 -1
- package/fesm2022/cmat-components-carousel.mjs +16 -16
- package/fesm2022/cmat-components-carousel.mjs.map +1 -1
- package/fesm2022/cmat-components-cascade.mjs +1 -863
- package/fesm2022/cmat-components-chip-input.mjs +11 -11
- package/fesm2022/cmat-components-code-editor.mjs +3 -3
- package/fesm2022/cmat-components-color-picker.mjs +45 -45
- package/fesm2022/cmat-components-color-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-custom-formly.mjs +214 -214
- package/fesm2022/cmat-components-custom-formly.mjs.map +1 -1
- package/fesm2022/cmat-components-data-picker.mjs +38 -38
- package/fesm2022/cmat-components-data-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-date-range.mjs +15 -16
- package/fesm2022/cmat-components-date-range.mjs.map +1 -1
- package/fesm2022/cmat-components-date-time-display.mjs +4 -4
- package/fesm2022/cmat-components-drawer.mjs +9 -9
- package/fesm2022/cmat-components-drawer.mjs.map +1 -1
- package/fesm2022/cmat-components-empty-state.mjs +4 -4
- package/fesm2022/cmat-components-file-preview.mjs +4 -4
- package/fesm2022/cmat-components-filter-toolbar.mjs +12 -13
- package/fesm2022/cmat-components-filter-toolbar.mjs.map +1 -1
- package/fesm2022/cmat-components-form-actions.mjs +6 -6
- package/fesm2022/cmat-components-fullscreen.mjs +4 -4
- package/fesm2022/cmat-components-highlight.mjs +7 -7
- package/fesm2022/cmat-components-image-viewer.mjs +7 -7
- package/fesm2022/cmat-components-image-viewer.mjs.map +1 -1
- package/fesm2022/cmat-components-inline-loading.mjs +3 -3
- package/fesm2022/cmat-components-json-editor.mjs +7 -7
- package/fesm2022/cmat-components-json-editor.mjs.map +1 -1
- package/fesm2022/cmat-components-knob-input.mjs +6 -6
- package/fesm2022/cmat-components-loading-overlay.mjs +5 -5
- package/fesm2022/cmat-components-loading-overlay.mjs.map +1 -1
- package/fesm2022/cmat-components-masonry.mjs +4 -4
- package/fesm2022/cmat-components-material-color-picker.mjs +1 -337
- package/fesm2022/cmat-components-material-datetimepicker.mjs +1 -4312
- package/fesm2022/cmat-components-navigation.mjs +1 -3081
- package/fesm2022/cmat-components-opt-input.mjs +1 -542
- package/fesm2022/cmat-components-org-chart.mjs +1 -529
- package/fesm2022/cmat-components-page-header.mjs +4 -4
- package/fesm2022/cmat-components-pagination.mjs +21 -21
- package/fesm2022/cmat-components-pagination.mjs.map +1 -1
- package/fesm2022/cmat-components-password-strength.mjs +1 -880
- package/fesm2022/cmat-components-popover.mjs +1 -1022
- package/fesm2022/cmat-components-progress-bar.mjs +4 -4
- package/fesm2022/cmat-components-qrcode.mjs +3 -3
- package/fesm2022/cmat-components-rating.mjs +8 -8
- package/fesm2022/cmat-components-rich-text-editor.mjs +3 -3
- package/fesm2022/cmat-components-select-search.mjs +1 -930
- package/fesm2022/cmat-components-select-table.mjs +39 -39
- package/fesm2022/cmat-components-select-table.mjs.map +1 -1
- package/fesm2022/cmat-components-select-tree.mjs +28 -27
- package/fesm2022/cmat-components-select-tree.mjs.map +1 -1
- package/fesm2022/cmat-components-skeleton.mjs +5 -5
- package/fesm2022/cmat-components-skeleton.mjs.map +1 -1
- package/fesm2022/cmat-components-speed-dial.mjs +12 -12
- package/fesm2022/cmat-components-speed-dial.mjs.map +1 -1
- package/fesm2022/cmat-components-status-tag.mjs +6 -6
- package/fesm2022/cmat-components-status-tag.mjs.map +1 -1
- package/fesm2022/cmat-components-table-toolbar.mjs +4 -4
- package/fesm2022/cmat-components-timeline.mjs +19 -19
- package/fesm2022/cmat-components-timeline.mjs.map +1 -1
- package/fesm2022/cmat-components-toast.mjs +14 -14
- package/fesm2022/cmat-components-toast.mjs.map +1 -1
- package/fesm2022/cmat-components-transfer-picker.mjs +48 -49
- package/fesm2022/cmat-components-transfer-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-treetable.mjs +8 -8
- package/fesm2022/cmat-components-upload.mjs +17 -17
- package/fesm2022/cmat-components-x6-angular-shape.mjs +1 -1
- package/fesm2022/cmat-directives-animate-on-scroll.mjs +1 -221
- package/fesm2022/cmat-directives-arrow-cursor.mjs +3 -3
- package/fesm2022/cmat-directives-autofocus.mjs +3 -3
- package/fesm2022/cmat-directives-data-exporter.mjs +1 -544
- package/fesm2022/cmat-directives-debounce.mjs +1 -163
- package/fesm2022/cmat-directives-digit-only.mjs +6 -6
- package/fesm2022/cmat-directives-equal-validator.mjs +3 -3
- package/fesm2022/cmat-directives-seamless-auto-scroll.mjs +3 -3
- package/fesm2022/cmat-lib-mock-api.mjs +8 -8
- package/fesm2022/cmat-pipes-bytes.mjs +3 -3
- package/fesm2022/cmat-pipes-date-format.mjs +3 -3
- package/fesm2022/cmat-pipes-find-by-key.mjs +3 -3
- package/fesm2022/cmat-pipes-group-by.mjs +3 -3
- package/fesm2022/cmat-pipes-keys.mjs +3 -3
- package/fesm2022/cmat-pipes-secure.mjs +6 -6
- package/fesm2022/cmat-pipes-uppercase.mjs +3 -3
- package/fesm2022/cmat-reports.mjs +86 -80
- package/fesm2022/cmat-reports.mjs.map +1 -1
- package/fesm2022/cmat-services-alert.mjs +4 -4
- package/fesm2022/cmat-services-config.mjs +6 -6
- package/fesm2022/cmat-services-confirmation.mjs +1 -185
- package/fesm2022/cmat-services-data.mjs +5 -5
- package/fesm2022/cmat-services-export-as.mjs +4 -4
- package/fesm2022/cmat-services-loading.mjs +6 -6
- package/fesm2022/cmat-services-local-storage.mjs +3 -3
- package/fesm2022/cmat-services-media-watcher.mjs +4 -4
- package/fesm2022/cmat-services-platform.mjs +4 -4
- package/fesm2022/cmat-services-print.mjs +3 -3
- package/fesm2022/cmat-services-splash-screen.mjs +4 -4
- package/fesm2022/cmat-services-title.mjs +6 -6
- package/fesm2022/cmat-services-translation.mjs +4 -4
- package/fesm2022/cmat-services-utils.mjs +7 -7
- package/fesm2022/cmat.mjs +77 -39582
- package/fesm2022/public-api-BE83BHd7.mjs +930 -0
- package/fesm2022/public-api-BE83BHd7.mjs.map +1 -0
- package/fesm2022/public-api-BcmOSkgf.mjs +542 -0
- package/fesm2022/public-api-BcmOSkgf.mjs.map +1 -0
- package/fesm2022/public-api-BmMqKDzm.mjs +4312 -0
- package/fesm2022/public-api-BmMqKDzm.mjs.map +1 -0
- package/fesm2022/public-api-BnRFazGR.mjs +221 -0
- package/fesm2022/public-api-BnRFazGR.mjs.map +1 -0
- package/fesm2022/public-api-C9N9rKkB.mjs +185 -0
- package/fesm2022/public-api-C9N9rKkB.mjs.map +1 -0
- package/fesm2022/public-api-CXmCX9ZQ.mjs +863 -0
- package/fesm2022/public-api-CXmCX9ZQ.mjs.map +1 -0
- package/fesm2022/public-api-CfILyvuV.mjs +880 -0
- package/fesm2022/public-api-CfILyvuV.mjs.map +1 -0
- package/fesm2022/public-api-CgtBw-7O.mjs +163 -0
- package/fesm2022/public-api-CgtBw-7O.mjs.map +1 -0
- package/fesm2022/public-api-DEtzrfqy.mjs +544 -0
- package/fesm2022/public-api-DEtzrfqy.mjs.map +1 -0
- package/fesm2022/public-api-EK51WC1y.mjs +1022 -0
- package/fesm2022/public-api-EK51WC1y.mjs.map +1 -0
- package/fesm2022/public-api-IpTsAgZ4.mjs +3081 -0
- package/fesm2022/public-api-IpTsAgZ4.mjs.map +1 -0
- package/fesm2022/public-api-iRaKIVmd.mjs +338 -0
- package/fesm2022/public-api-iRaKIVmd.mjs.map +1 -0
- package/fesm2022/public-api-nzzDLiDj.mjs +529 -0
- package/fesm2022/public-api-nzzDLiDj.mjs.map +1 -0
- package/fesm2022/{cmat-quill-docx-exporter-D9Eo73Wq.mjs → quill-docx-exporter-D9Eo73Wq.mjs} +1 -1
- package/fesm2022/quill-docx-exporter-D9Eo73Wq.mjs.map +1 -0
- package/package.json +23 -22
- package/types/cmat-components-adapter.d.ts +0 -3
- package/types/cmat-components-breadcrumb.d.ts +1 -4
- package/types/cmat-components-card.d.ts +0 -3
- package/types/cmat-components-carousel.d.ts +0 -3
- package/types/cmat-components-cascade.d.ts +0 -3
- package/types/cmat-components-chip-input.d.ts +3 -6
- package/types/cmat-components-code-editor.d.ts +0 -3
- package/types/cmat-components-color-picker.d.ts +0 -3
- package/types/cmat-components-custom-formly.d.ts +2 -861
- package/types/cmat-components-data-picker.d.ts +6 -9
- package/types/cmat-components-date-range.d.ts +1 -4
- package/types/cmat-components-date-time-display.d.ts +0 -3
- package/types/cmat-components-drawer.d.ts +1 -4
- package/types/cmat-components-empty-state.d.ts +0 -3
- package/types/cmat-components-file-preview.d.ts +0 -3
- package/types/cmat-components-filter-toolbar.d.ts +0 -3
- package/types/cmat-components-form-actions.d.ts +1 -4
- package/types/cmat-components-fullscreen.d.ts +0 -3
- package/types/cmat-components-highlight.d.ts +0 -3
- package/types/cmat-components-image-viewer.d.ts +0 -3
- package/types/cmat-components-inline-loading.d.ts +0 -3
- package/types/cmat-components-json-editor.d.ts +0 -3
- package/types/cmat-components-knob-input.d.ts +1 -4
- package/types/cmat-components-loading-overlay.d.ts +0 -3
- package/types/cmat-components-masonry.d.ts +0 -3
- package/types/cmat-components-material-color-picker.d.ts +1 -4
- package/types/cmat-components-material-datetimepicker.d.ts +2 -840
- package/types/cmat-components-navigation.d.ts +1 -4
- package/types/cmat-components-opt-input.d.ts +2 -117
- package/types/cmat-components-org-chart.d.ts +1 -4
- package/types/cmat-components-page-header.d.ts +1 -4
- package/types/cmat-components-pagination.d.ts +0 -3
- package/types/cmat-components-password-strength.d.ts +2 -205
- package/types/cmat-components-popover.d.ts +2 -274
- package/types/cmat-components-progress-bar.d.ts +0 -3
- package/types/cmat-components-qrcode.d.ts +2 -117
- package/types/cmat-components-rating.d.ts +1 -4
- package/types/cmat-components-rich-text-editor.d.ts +1 -4
- package/types/cmat-components-select-search.d.ts +2 -204
- package/types/cmat-components-select-table.d.ts +3 -6
- package/types/cmat-components-select-tree.d.ts +4 -7
- package/types/cmat-components-skeleton.d.ts +0 -3
- package/types/cmat-components-speed-dial.d.ts +0 -3
- package/types/cmat-components-status-tag.d.ts +2 -5
- package/types/cmat-components-table-toolbar.d.ts +0 -3
- package/types/cmat-components-timeline.d.ts +0 -3
- package/types/cmat-components-toast.d.ts +0 -3
- package/types/cmat-components-transfer-picker.d.ts +2 -5
- package/types/cmat-components-treetable.d.ts +0 -3
- package/types/cmat-components-upload.d.ts +1 -4
- package/types/cmat-components-x6-angular-shape.d.ts +1 -4
- package/types/cmat-directives-animate-on-scroll.d.ts +0 -3
- package/types/cmat-directives-arrow-cursor.d.ts +0 -3
- package/types/cmat-directives-autofocus.d.ts +0 -3
- package/types/cmat-directives-data-exporter.d.ts +1 -4
- package/types/cmat-directives-debounce.d.ts +2 -38
- package/types/cmat-directives-digit-only.d.ts +0 -3
- package/types/cmat-directives-equal-validator.d.ts +1 -4
- package/types/cmat-directives-seamless-auto-scroll.d.ts +1 -4
- package/types/cmat-lib-mock-api.d.ts +1 -4
- package/types/cmat-pipes-bytes.d.ts +0 -3
- package/types/cmat-pipes-date-format.d.ts +0 -3
- package/types/cmat-pipes-find-by-key.d.ts +0 -3
- package/types/cmat-pipes-group-by.d.ts +0 -3
- package/types/cmat-pipes-keys.d.ts +0 -3
- package/types/cmat-pipes-secure.d.ts +1 -4
- package/types/cmat-pipes-uppercase.d.ts +0 -3
- package/types/cmat-reports.d.ts +6 -9
- package/types/cmat-services-alert.d.ts +1 -4
- package/types/cmat-services-config.d.ts +0 -3
- package/types/cmat-services-confirmation.d.ts +2 -40
- package/types/cmat-services-data.d.ts +1 -4
- package/types/cmat-services-export-as.d.ts +1 -4
- package/types/cmat-services-loading.d.ts +1 -4
- package/types/cmat-services-local-storage.d.ts +0 -3
- package/types/cmat-services-media-watcher.d.ts +0 -3
- package/types/cmat-services-platform.d.ts +0 -3
- package/types/cmat-services-print.d.ts +0 -3
- package/types/cmat-services-splash-screen.d.ts +0 -3
- package/types/cmat-services-title.d.ts +0 -3
- package/types/cmat-services-translation.d.ts +1 -4
- package/types/cmat-services-utils.d.ts +2 -5
- package/types/cmat-validators.d.ts +0 -3
- package/types/cmat-version.d.ts +0 -3
- package/types/cmat.d.ts +78 -7686
- package/types/public-api-BFGGDRK3.d.ts +201 -0
- package/types/public-api-BXS379ev.d.ts +202 -0
- package/types/public-api-C4CvABGO.d.ts +114 -0
- package/types/public-api-CSYz4G5Z.d.ts +271 -0
- package/types/public-api-NSrmlKKH.d.ts +114 -0
- package/types/public-api-PfNpHSSm.d.ts +837 -0
- package/types/public-api-f3WtygQS.d.ts +35 -0
- package/types/public-api-nBuSXSMJ.d.ts +858 -0
- package/types/public-api-yYeZrUAV.d.ts +37 -0
- package/fesm2022/cmat-components-cascade.mjs.map +0 -1
- package/fesm2022/cmat-components-custom-formly-quill-docx-exporter-BwwGX2Ie.mjs +0 -294
- package/fesm2022/cmat-components-custom-formly-quill-docx-exporter-BwwGX2Ie.mjs.map +0 -1
- package/fesm2022/cmat-components-material-color-picker.mjs.map +0 -1
- package/fesm2022/cmat-components-material-datetimepicker.mjs.map +0 -1
- package/fesm2022/cmat-components-navigation.mjs.map +0 -1
- package/fesm2022/cmat-components-opt-input.mjs.map +0 -1
- package/fesm2022/cmat-components-org-chart.mjs.map +0 -1
- package/fesm2022/cmat-components-password-strength.mjs.map +0 -1
- package/fesm2022/cmat-components-popover.mjs.map +0 -1
- package/fesm2022/cmat-components-select-search.mjs.map +0 -1
- package/fesm2022/cmat-directives-animate-on-scroll.mjs.map +0 -1
- package/fesm2022/cmat-directives-data-exporter.mjs.map +0 -1
- package/fesm2022/cmat-directives-debounce.mjs.map +0 -1
- package/fesm2022/cmat-quill-docx-exporter-D9Eo73Wq.mjs.map +0 -1
- package/fesm2022/cmat-services-confirmation.mjs.map +0 -1
- package/fesm2022/cmat.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmat-components-loading-overlay.mjs","names":[],"sources":["../../../projects/cmat/components/loading-overlay/loading-overlay.component.ts","../../../projects/cmat/components/loading-overlay/loading-overlay.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ViewEncapsulation, inject } from '@angular/core';\r\nimport { CmatAlertService } from 'cmat/services/alert';\r\n\r\n@Component({\r\n selector: 'cmat-loading-overlay',\r\n templateUrl: './loading-overlay.component.html',\r\n styleUrls: ['./loading-overlay.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n imports: []\r\n})\r\nexport class CmatLoadingOverlayComponent {\r\n private readonly _alertService = inject(CmatAlertService);\r\n\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly visible = this._alertService.overlayVisible;\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly message = this._alertService.overlayMessage;\r\n}\r\n","@if (visible()) {\r\n <div class=\"cmat-overlay-backdrop\">\r\n <div class=\"cmat-overlay-content\">\r\n <svg class=\"cmat-overlay-art\" viewBox=\"0 0 640 400\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\r\n <defs>\r\n <radialGradient id=\"cmat-overlay-badge-grad\" cx=\"42%\" cy=\"38%\" r=\"75%\">\r\n <stop offset=\"0%\" stop-color=\"#2ecc71\" />\r\n <stop offset=\"100%\" stop-color=\"#3498db\" />\r\n </radialGradient>\r\n </defs>\r\n\r\n <!-- Dotted transfer track -->\r\n <path class=\"cmat-scene-track\" d=\"M238 218 C320 128 408 116 474 172\" />\r\n\r\n <!-- Document stack -->\r\n <g class=\"cmat-scene-stack\">\r\n <path class=\"cmat-doc-sheet\" transform=\"translate(12, 12)\" d=\"M108 180 L178 180 L210 212 L210 312 Q210 320 202 320 L108 320 Q100 320 100 312 L100 188 Q100 180 108 180 Z\" />\r\n <path class=\"cmat-doc-sheet\" transform=\"translate(6, 6)\" d=\"M108 180 L178 180 L210 212 L210 312 Q210 320 202 320 L108 320 Q100 320 100 312 L100 188 Q100 180 108 180 Z\" />\r\n <g>\r\n <path class=\"cmat-doc-sheet\" d=\"M108 180 L178 180 L210 212 L210 312 Q210 320 202 320 L108 320 Q100 320 100 312 L100 188 Q100 180 108 180 Z\" />\r\n <path class=\"cmat-doc-fold\" d=\"M178 180 L178 212 L210 212 Z\" />\r\n <rect x=\"118\" y=\"222\" width=\"42\" height=\"9\" rx=\"4.5\" fill=\"#2a6abd\" />\r\n <line x1=\"118\" y1=\"252\" x2=\"192\" y2=\"252\" />\r\n <line x1=\"118\" y1=\"270\" x2=\"192\" y2=\"270\" />\r\n <line x1=\"118\" y1=\"288\" x2=\"176\" y2=\"288\" />\r\n </g>\r\n </g>\r\n\r\n <!-- Flying document (delivers to badge in a loop) -->\r\n <g class=\"cmat-scene-fly\">\r\n <g class=\"cmat-fly-trail\">\r\n <line x1=\"72\" y1=\"222\" x2=\"94\" y2=\"222\" />\r\n <line x1=\"64\" y1=\"246\" x2=\"90\" y2=\"246\" />\r\n <line x1=\"72\" y1=\"270\" x2=\"94\" y2=\"270\" />\r\n </g>\r\n <path class=\"cmat-doc-sheet\" d=\"M108 180 L178 180 L210 212 L210 312 Q210 320 202 320 L108 320 Q100 320 100 312 L100 188 Q100 180 108 180 Z\" />\r\n <path class=\"cmat-doc-fold\" d=\"M178 180 L178 212 L210 212 Z\" />\r\n <rect x=\"118\" y=\"222\" width=\"42\" height=\"9\" rx=\"4.5\" fill=\"#2a6abd\" />\r\n <line x1=\"118\" y1=\"252\" x2=\"192\" y2=\"252\" />\r\n <line x1=\"118\" y1=\"270\" x2=\"192\" y2=\"270\" />\r\n <line x1=\"118\" y1=\"288\" x2=\"176\" y2=\"288\" />\r\n </g>\r\n\r\n <!-- Pending zone (dashed ring + waiting dots) -->\r\n <g class=\"cmat-scene-pending\">\r\n <circle class=\"cmat-pending-ring\" cx=\"512\" cy=\"210\" r=\"46\" />\r\n <circle class=\"cmat-pending-dot\" cx=\"494\" cy=\"210\" r=\"5\" />\r\n <circle class=\"cmat-pending-dot\" cx=\"512\" cy=\"210\" r=\"5\" />\r\n <circle class=\"cmat-pending-dot\" cx=\"530\" cy=\"210\" r=\"5\" />\r\n </g>\r\n\r\n <!-- Completion badge (appears after arrival) -->\r\n <g class=\"cmat-scene-badge\">\r\n <circle cx=\"512\" cy=\"210\" r=\"46\" fill=\"url(#cmat-overlay-badge-grad)\" />\r\n <path class=\"cmat-badge-check\" d=\"M490 214 L506 230 L536 190\" />\r\n </g>\r\n </svg>\r\n @if (message()) {\r\n <span class=\"cmat-overlay-message\">{{ message() }}</span>\r\n }\r\n </div>\r\n </div>\r\n}\r\n"],"mappings":";;;AAWA,IAAa,8BAAb,MAAa,4BAA2B;CARxC,cAAA;EASqB,KAAA,gBAAgB,OAAO,gBAAgB;EAG/C,KAAA,UAAU,KAAK,cAAc;EAE7B,KAAA,UAAU,KAAK,cAAc;CACzC;CAPY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAA2B,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAA3B;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAA2B,cAAA;GAAA,UAAA;GAAA,UAAA;GAAA,UCXxC;GA+DA,QAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"cmat-components-loading-overlay.mjs","names":[],"sources":["../../../projects/cmat/components/loading-overlay/loading-overlay.component.ts","../../../projects/cmat/components/loading-overlay/loading-overlay.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ViewEncapsulation, inject } from '@angular/core';\r\nimport { CmatAlertService } from 'cmat/services/alert';\r\n\r\n@Component({\r\n selector: 'cmat-loading-overlay',\r\n templateUrl: './loading-overlay.component.html',\r\n styleUrls: ['./loading-overlay.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n imports: []\r\n})\r\nexport class CmatLoadingOverlayComponent {\r\n private readonly _alertService = inject(CmatAlertService);\r\n\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly visible = this._alertService.overlayVisible;\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly message = this._alertService.overlayMessage;\r\n}\r\n","@if (visible()) {\r\n <div class=\"cmat-overlay-backdrop\">\r\n <div class=\"cmat-overlay-content\">\r\n <svg class=\"cmat-overlay-art\" viewBox=\"0 0 640 400\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\r\n <defs>\r\n <radialGradient id=\"cmat-overlay-badge-grad\" cx=\"42%\" cy=\"38%\" r=\"75%\">\r\n <stop offset=\"0%\" stop-color=\"#2ecc71\" />\r\n <stop offset=\"100%\" stop-color=\"#3498db\" />\r\n </radialGradient>\r\n </defs>\r\n\r\n <!-- Dotted transfer track -->\r\n <path class=\"cmat-scene-track\" d=\"M238 218 C320 128 408 116 474 172\" />\r\n\r\n <!-- Document stack -->\r\n <g class=\"cmat-scene-stack\">\r\n <path class=\"cmat-doc-sheet\" transform=\"translate(12, 12)\" d=\"M108 180 L178 180 L210 212 L210 312 Q210 320 202 320 L108 320 Q100 320 100 312 L100 188 Q100 180 108 180 Z\" />\r\n <path class=\"cmat-doc-sheet\" transform=\"translate(6, 6)\" d=\"M108 180 L178 180 L210 212 L210 312 Q210 320 202 320 L108 320 Q100 320 100 312 L100 188 Q100 180 108 180 Z\" />\r\n <g>\r\n <path class=\"cmat-doc-sheet\" d=\"M108 180 L178 180 L210 212 L210 312 Q210 320 202 320 L108 320 Q100 320 100 312 L100 188 Q100 180 108 180 Z\" />\r\n <path class=\"cmat-doc-fold\" d=\"M178 180 L178 212 L210 212 Z\" />\r\n <rect x=\"118\" y=\"222\" width=\"42\" height=\"9\" rx=\"4.5\" fill=\"#2a6abd\" />\r\n <line x1=\"118\" y1=\"252\" x2=\"192\" y2=\"252\" />\r\n <line x1=\"118\" y1=\"270\" x2=\"192\" y2=\"270\" />\r\n <line x1=\"118\" y1=\"288\" x2=\"176\" y2=\"288\" />\r\n </g>\r\n </g>\r\n\r\n <!-- Flying document (delivers to badge in a loop) -->\r\n <g class=\"cmat-scene-fly\">\r\n <g class=\"cmat-fly-trail\">\r\n <line x1=\"72\" y1=\"222\" x2=\"94\" y2=\"222\" />\r\n <line x1=\"64\" y1=\"246\" x2=\"90\" y2=\"246\" />\r\n <line x1=\"72\" y1=\"270\" x2=\"94\" y2=\"270\" />\r\n </g>\r\n <path class=\"cmat-doc-sheet\" d=\"M108 180 L178 180 L210 212 L210 312 Q210 320 202 320 L108 320 Q100 320 100 312 L100 188 Q100 180 108 180 Z\" />\r\n <path class=\"cmat-doc-fold\" d=\"M178 180 L178 212 L210 212 Z\" />\r\n <rect x=\"118\" y=\"222\" width=\"42\" height=\"9\" rx=\"4.5\" fill=\"#2a6abd\" />\r\n <line x1=\"118\" y1=\"252\" x2=\"192\" y2=\"252\" />\r\n <line x1=\"118\" y1=\"270\" x2=\"192\" y2=\"270\" />\r\n <line x1=\"118\" y1=\"288\" x2=\"176\" y2=\"288\" />\r\n </g>\r\n\r\n <!-- Pending zone (dashed ring + waiting dots) -->\r\n <g class=\"cmat-scene-pending\">\r\n <circle class=\"cmat-pending-ring\" cx=\"512\" cy=\"210\" r=\"46\" />\r\n <circle class=\"cmat-pending-dot\" cx=\"494\" cy=\"210\" r=\"5\" />\r\n <circle class=\"cmat-pending-dot\" cx=\"512\" cy=\"210\" r=\"5\" />\r\n <circle class=\"cmat-pending-dot\" cx=\"530\" cy=\"210\" r=\"5\" />\r\n </g>\r\n\r\n <!-- Completion badge (appears after arrival) -->\r\n <g class=\"cmat-scene-badge\">\r\n <circle cx=\"512\" cy=\"210\" r=\"46\" fill=\"url(#cmat-overlay-badge-grad)\" />\r\n <path class=\"cmat-badge-check\" d=\"M490 214 L506 230 L536 190\" />\r\n </g>\r\n </svg>\r\n @if (message()) {\r\n <span class=\"cmat-overlay-message\">{{ message() }}</span>\r\n }\r\n </div>\r\n </div>\r\n}\r\n"],"mappings":";;;AAWA,IAAa,8BAAb,MAAa,4BAA2B;CARxC,cAAA;EASqB,KAAA,gBAAgB,OAAO,gBAAgB;EAG/C,KAAA,UAAU,KAAK,cAAc;EAE7B,KAAA,UAAU,KAAK,cAAc;CACzC;CAPY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAA2B,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAA3B;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAA2B,cAAA;GAAA,UAAA;GAAA,UAAA;GAAA,UCXxC;GA+DA,QAAA,CAAA,svHAAA;GAAA,iBAAA,GAAA,wBAAA;GAAA,eAAA,GAAA,kBAAA;EAAA,CAAA;CAAA;;ADpDa,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAA2B,YAAA,CAAA;EARvC,MAAA;EACa,MAAA,CAAA;GAAA,UAAA;GAAsB,iBAGf,wBAAwB;GAAM,eAChC,kBAAkB;GAAI,SAC5B,CAAA;GAAE,UAAA;GAAA,QAAA,CAAA,svHAAA;EAAA,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NgTemplateOutlet } from "@angular/common";
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, input } from "@angular/core";
|
|
3
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
4
4
|
var CmatMasonryComponent = class CmatMasonryComponent {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.columnsTemplate = input.required(...ngDevMode ? [{ debugName: "columnsTemplate" }] : /* istanbul ignore next */ []);
|
|
@@ -18,7 +18,7 @@ var CmatMasonryComponent = class CmatMasonryComponent {
|
|
|
18
18
|
static {
|
|
19
19
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
20
20
|
minVersion: "12.0.0",
|
|
21
|
-
version: "22.
|
|
21
|
+
version: "22.3.0",
|
|
22
22
|
ngImport: i0,
|
|
23
23
|
type: CmatMasonryComponent,
|
|
24
24
|
deps: [],
|
|
@@ -28,7 +28,7 @@ var CmatMasonryComponent = class CmatMasonryComponent {
|
|
|
28
28
|
static {
|
|
29
29
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
30
30
|
minVersion: "17.1.0",
|
|
31
|
-
version: "22.
|
|
31
|
+
version: "22.3.0",
|
|
32
32
|
type: CmatMasonryComponent,
|
|
33
33
|
isStandalone: true,
|
|
34
34
|
selector: "cmat-masonry",
|
|
@@ -75,7 +75,7 @@ var CmatMasonryComponent = class CmatMasonryComponent {
|
|
|
75
75
|
};
|
|
76
76
|
i0.ɵɵngDeclareClassMetadata({
|
|
77
77
|
minVersion: "12.0.0",
|
|
78
|
-
version: "22.
|
|
78
|
+
version: "22.3.0",
|
|
79
79
|
ngImport: i0,
|
|
80
80
|
type: CmatMasonryComponent,
|
|
81
81
|
decorators: [{
|
|
@@ -1,337 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, effect, forwardRef, input, output, signal, untracked } from "@angular/core";
|
|
4
|
-
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
5
|
-
import * as i3 from "@angular/material/button";
|
|
6
|
-
import { MatButtonModule } from "@angular/material/button";
|
|
7
|
-
import * as i2 from "@angular/material/icon";
|
|
8
|
-
import { MatIconModule } from "@angular/material/icon";
|
|
9
|
-
import * as i1 from "@angular/material/select";
|
|
10
|
-
import { MatSelectModule } from "@angular/material/select";
|
|
11
|
-
import * as i4 from "@angular/material/tooltip";
|
|
12
|
-
import { MatTooltipModule } from "@angular/material/tooltip";
|
|
13
|
-
const baseColors = [
|
|
14
|
-
"bg-slate",
|
|
15
|
-
"bg-red",
|
|
16
|
-
"bg-amber",
|
|
17
|
-
"bg-orange",
|
|
18
|
-
"bg-emerald",
|
|
19
|
-
"bg-teal",
|
|
20
|
-
"bg-blue",
|
|
21
|
-
"bg-indigo",
|
|
22
|
-
"bg-violet",
|
|
23
|
-
"bg-pink"
|
|
24
|
-
];
|
|
25
|
-
const CMAT_MATERIAL_COLOR_PICKER_VALUE_ACCESSOR = {
|
|
26
|
-
provide: NG_VALUE_ACCESSOR,
|
|
27
|
-
useExisting: forwardRef(() => CmatMaterialColorPickerComponent),
|
|
28
|
-
multi: true
|
|
29
|
-
};
|
|
30
|
-
var CmatMaterialColorPickerComponent = class CmatMaterialColorPickerComponent {
|
|
31
|
-
constructor() {
|
|
32
|
-
this.title = input("", ...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
33
|
-
this.readonly = input(false, ...ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []);
|
|
34
|
-
this.color = input(null, ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
|
|
35
|
-
this.colorChanged = output();
|
|
36
|
-
this.palettes = signal(baseColors, ...ngDevMode ? [{ debugName: "palettes" }] : /* istanbul ignore next */ []);
|
|
37
|
-
this.hues = signal([
|
|
38
|
-
"50",
|
|
39
|
-
"100",
|
|
40
|
-
"200",
|
|
41
|
-
"300",
|
|
42
|
-
"400",
|
|
43
|
-
"500",
|
|
44
|
-
"600",
|
|
45
|
-
"700",
|
|
46
|
-
"800",
|
|
47
|
-
"900"
|
|
48
|
-
], ...ngDevMode ? [{ debugName: "hues" }] : /* istanbul ignore next */ []);
|
|
49
|
-
this.view = signal("palettes", ...ngDevMode ? [{ debugName: "view" }] : /* istanbul ignore next */ []);
|
|
50
|
-
this.selectedPalette = signal("bg-indigo", ...ngDevMode ? [{ debugName: "selectedPalette" }] : /* istanbul ignore next */ []);
|
|
51
|
-
this.selectedHue = signal("500", ...ngDevMode ? [{ debugName: "selectedHue" }] : /* istanbul ignore next */ []);
|
|
52
|
-
this.selectedColor = computed(() => ({
|
|
53
|
-
palette: this.selectedPalette(),
|
|
54
|
-
hue: this.selectedHue(),
|
|
55
|
-
color: `${this.selectedPalette()}-${this.selectedHue()}`
|
|
56
|
-
}), ...ngDevMode ? [{ debugName: "selectedColor" }] : /* istanbul ignore next */ []);
|
|
57
|
-
this._isProcessingExternalChange = false;
|
|
58
|
-
this._modelChange = () => {};
|
|
59
|
-
this._modelTouched = () => {};
|
|
60
|
-
effect(() => {
|
|
61
|
-
const externalColor = this.color();
|
|
62
|
-
untracked(() => {
|
|
63
|
-
if (externalColor && externalColor !== "") this._parseAndSetColor(externalColor);
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
registerOnChange(fn) {
|
|
68
|
-
this._modelChange = fn;
|
|
69
|
-
}
|
|
70
|
-
registerOnTouched(fn) {
|
|
71
|
-
this._modelTouched = fn;
|
|
72
|
-
}
|
|
73
|
-
writeValue(color) {}
|
|
74
|
-
selectPalette(palette) {
|
|
75
|
-
this.view.set("hues");
|
|
76
|
-
this.selectedPalette.set(palette);
|
|
77
|
-
}
|
|
78
|
-
selectHue(hue) {
|
|
79
|
-
this.selectedHue.set(hue);
|
|
80
|
-
this._notifyChange();
|
|
81
|
-
}
|
|
82
|
-
removeColor() {
|
|
83
|
-
this.view.set("palettes");
|
|
84
|
-
this.selectedPalette.set("bg-indigo");
|
|
85
|
-
this.selectedHue.set("500");
|
|
86
|
-
this._notifyChange();
|
|
87
|
-
}
|
|
88
|
-
goToPalettesView() {
|
|
89
|
-
this.view.set("palettes");
|
|
90
|
-
}
|
|
91
|
-
onMenuOpen(opened) {
|
|
92
|
-
if (opened) this.view.set("hues");
|
|
93
|
-
}
|
|
94
|
-
_notifyChange() {
|
|
95
|
-
if (this._isProcessingExternalChange) return;
|
|
96
|
-
const currentColor = this.selectedColor().color;
|
|
97
|
-
this.colorChanged.emit(currentColor);
|
|
98
|
-
this._modelTouched(currentColor);
|
|
99
|
-
this._modelChange(currentColor);
|
|
100
|
-
}
|
|
101
|
-
_parseAndSetColor(value) {
|
|
102
|
-
const colorParts = value.split("-");
|
|
103
|
-
if (colorParts.length < 2) return;
|
|
104
|
-
const hue = colorParts[colorParts.length - 1];
|
|
105
|
-
const palette = colorParts.slice(0, -1).join("-");
|
|
106
|
-
if (this.selectedPalette() !== palette || this.selectedHue() !== hue) {
|
|
107
|
-
this._isProcessingExternalChange = true;
|
|
108
|
-
try {
|
|
109
|
-
this.selectedPalette.set(palette);
|
|
110
|
-
this.selectedHue.set(hue);
|
|
111
|
-
} finally {
|
|
112
|
-
this._isProcessingExternalChange = false;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
static {
|
|
117
|
-
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
118
|
-
minVersion: "12.0.0",
|
|
119
|
-
version: "22.2.6",
|
|
120
|
-
ngImport: i0,
|
|
121
|
-
type: CmatMaterialColorPickerComponent,
|
|
122
|
-
deps: [],
|
|
123
|
-
target: i0.ɵɵFactoryTarget.Component
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
static {
|
|
127
|
-
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
128
|
-
minVersion: "17.0.0",
|
|
129
|
-
version: "22.2.6",
|
|
130
|
-
type: CmatMaterialColorPickerComponent,
|
|
131
|
-
isStandalone: true,
|
|
132
|
-
selector: "cmat-material-color-picker",
|
|
133
|
-
inputs: {
|
|
134
|
-
title: {
|
|
135
|
-
classPropertyName: "title",
|
|
136
|
-
publicName: "title",
|
|
137
|
-
isSignal: true,
|
|
138
|
-
isRequired: false,
|
|
139
|
-
transformFunction: null
|
|
140
|
-
},
|
|
141
|
-
readonly: {
|
|
142
|
-
classPropertyName: "readonly",
|
|
143
|
-
publicName: "readonly",
|
|
144
|
-
isSignal: true,
|
|
145
|
-
isRequired: false,
|
|
146
|
-
transformFunction: null
|
|
147
|
-
},
|
|
148
|
-
color: {
|
|
149
|
-
classPropertyName: "color",
|
|
150
|
-
publicName: "color",
|
|
151
|
-
isSignal: true,
|
|
152
|
-
isRequired: false,
|
|
153
|
-
transformFunction: null
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
outputs: { colorChanged: "colorChanged" },
|
|
157
|
-
providers: [CMAT_MATERIAL_COLOR_PICKER_VALUE_ACCESSOR],
|
|
158
|
-
exportAs: ["cmatMaterialColorPicker"],
|
|
159
|
-
ngImport: i0,
|
|
160
|
-
template: "<div class=\"rounded\" [ngClass]=\"selectedColor().color\">\r\n <mat-select \r\n value=\"init\" \r\n panelClass=\"min-w-64 overflow-hidden!\" \r\n [disableOptionCentering]=\"true\" \r\n [hideSingleSelectionIndicator]=\"true\"\r\n [disabled]=\"readonly()\" \r\n (openedChange)=\"onMenuOpen($event)\">\r\n \r\n <mat-select-trigger class=\"flex p-1\">\r\n <mat-icon [svgIcon]=\"'heroicons_outline:paint-brush'\"></mat-icon>\r\n </mat-select-trigger>\r\n\r\n <header class=\"border-b-2 flex flex-row content-between justify-between p-2\">\r\n <button type=\"button\" matIconButton class=\"secondary-text\" aria-label=\"调色板\"\r\n [class.invisible]=\"view() === 'palettes'\" (click)=\"goToPalettesView()\">\r\n <mat-icon svgIcon=\"mat_outline:arrow_back\"></mat-icon>\r\n </button>\r\n <span class=\"align-middle leading-loose text-xl font-bold\">{{title()}}</span>\r\n <button type=\"button\" matIconButton class=\"remove-color-button secondary-text\" aria-label=\"移除颜色\"\r\n matTooltip=\"移除颜色\" (click)=\"removeColor()\">\r\n <mat-icon color=\"warn\" [svgIcon]=\"'mat_outline:cleaning_services'\"></mat-icon>\r\n </button>\r\n </header>\r\n\r\n <div class=\"flex flex-wrap w-60 m-2\">\r\n <mat-option value=\"init\" class=\"hidden\">初始化</mat-option>\r\n <div>\r\n @switch (view()) {\r\n @case ('palettes') {\r\n <div>\r\n <div class=\"flex flex-row flex-wrap justify-start content-start colors\">\r\n @for (palette of palettes(); track $index) {\r\n <div role=\"presentation\" class=\"cursor-pointer hover:opacity-50\" (click)=\"selectPalette(palette)\">\r\n <mat-option class=\"relative flex w-12 h-12 p-0 pointer-events-none rounded-full bg-transparent \"\r\n [value]=\"selectedPalette()\">\r\n @if (selectedColor().color === palette + '-' + selectedHue()) {\r\n <mat-icon class=\"absolute m-3 text-white\" [svgIcon]=\"'heroicons_outline:check'\"></mat-icon>\r\n }\r\n <span class=\"flex w-10 h-10 m-1 rounded-full\" [ngClass]=\"palette + '-' + selectedHue()\"></span>\r\n </mat-option>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n @case ('hues') {\r\n <div>\r\n <div class=\"flex flex-row flex-wrap justify-start content-start colors\">\r\n @for (hue of hues(); track $index) {\r\n <div role=\"presentation\" class=\"cursor-pointer hover:opacity-50\" (click)=\"selectHue(hue)\">\r\n <mat-option class=\"relative flex w-12 h-12 p-0 pointer-events-none rounded-full bg-transparent \"\r\n [value]=\"selectedHue()\">\r\n @if (selectedColor().color === selectedPalette() + '-' + hue) {\r\n <mat-icon class=\"absolute m-3 text-white\" [svgIcon]=\"'heroicons_outline:check'\"></mat-icon>\r\n }\r\n <span class=\"flex w-10 h-10 m-1 rounded-full\" [ngClass]=\"selectedPalette() + '-' + hue\"></span>\r\n </mat-option>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n }\r\n </div>\r\n </div>\r\n </mat-select>\r\n</div>",
|
|
161
|
-
styles: ["cmat-material-color-picker .mat-mdc-select-arrow-wrapper{display:none!important}\n"],
|
|
162
|
-
dependencies: [
|
|
163
|
-
{
|
|
164
|
-
kind: "directive",
|
|
165
|
-
type: NgClass,
|
|
166
|
-
selector: "[ngClass]",
|
|
167
|
-
inputs: ["class", "ngClass"]
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
kind: "ngmodule",
|
|
171
|
-
type: MatSelectModule
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
kind: "component",
|
|
175
|
-
type: i1.MatSelect,
|
|
176
|
-
selector: "mat-select",
|
|
177
|
-
inputs: [
|
|
178
|
-
"aria-describedby",
|
|
179
|
-
"panelClass",
|
|
180
|
-
"disabled",
|
|
181
|
-
"disableRipple",
|
|
182
|
-
"tabIndex",
|
|
183
|
-
"hideSingleSelectionIndicator",
|
|
184
|
-
"placeholder",
|
|
185
|
-
"required",
|
|
186
|
-
"multiple",
|
|
187
|
-
"disableOptionCentering",
|
|
188
|
-
"compareWith",
|
|
189
|
-
"value",
|
|
190
|
-
"aria-label",
|
|
191
|
-
"aria-labelledby",
|
|
192
|
-
"errorStateMatcher",
|
|
193
|
-
"typeaheadDebounceInterval",
|
|
194
|
-
"sortComparator",
|
|
195
|
-
"id",
|
|
196
|
-
"panelWidth",
|
|
197
|
-
"canSelectNullableOptions"
|
|
198
|
-
],
|
|
199
|
-
outputs: [
|
|
200
|
-
"openedChange",
|
|
201
|
-
"opened",
|
|
202
|
-
"closed",
|
|
203
|
-
"selectionChange",
|
|
204
|
-
"valueChange"
|
|
205
|
-
],
|
|
206
|
-
exportAs: ["matSelect"]
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
kind: "directive",
|
|
210
|
-
type: i1.MatSelectTrigger,
|
|
211
|
-
selector: "mat-select-trigger"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
kind: "component",
|
|
215
|
-
type: i1.MatOption,
|
|
216
|
-
selector: "mat-option",
|
|
217
|
-
inputs: [
|
|
218
|
-
"value",
|
|
219
|
-
"id",
|
|
220
|
-
"disabled"
|
|
221
|
-
],
|
|
222
|
-
outputs: ["onSelectionChange"],
|
|
223
|
-
exportAs: ["matOption"]
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
kind: "ngmodule",
|
|
227
|
-
type: MatIconModule
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
kind: "component",
|
|
231
|
-
type: i2.MatIcon,
|
|
232
|
-
selector: "mat-icon",
|
|
233
|
-
inputs: [
|
|
234
|
-
"color",
|
|
235
|
-
"inline",
|
|
236
|
-
"svgIcon",
|
|
237
|
-
"fontSet",
|
|
238
|
-
"fontIcon"
|
|
239
|
-
],
|
|
240
|
-
exportAs: ["matIcon"]
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
kind: "ngmodule",
|
|
244
|
-
type: MatButtonModule
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
kind: "component",
|
|
248
|
-
type: i3.MatIconButton,
|
|
249
|
-
selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]",
|
|
250
|
-
exportAs: ["matButton", "matAnchor"]
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
kind: "ngmodule",
|
|
254
|
-
type: MatTooltipModule
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
kind: "directive",
|
|
258
|
-
type: i4.MatTooltip,
|
|
259
|
-
selector: "[matTooltip]",
|
|
260
|
-
inputs: [
|
|
261
|
-
"matTooltipPosition",
|
|
262
|
-
"matTooltipPositionAtOrigin",
|
|
263
|
-
"matTooltipDisabled",
|
|
264
|
-
"matTooltipShowDelay",
|
|
265
|
-
"matTooltipHideDelay",
|
|
266
|
-
"matTooltipTouchGestures",
|
|
267
|
-
"matTooltip",
|
|
268
|
-
"matTooltipClass"
|
|
269
|
-
],
|
|
270
|
-
exportAs: ["matTooltip"]
|
|
271
|
-
}
|
|
272
|
-
],
|
|
273
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
274
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
};
|
|
278
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
279
|
-
minVersion: "12.0.0",
|
|
280
|
-
version: "22.2.6",
|
|
281
|
-
ngImport: i0,
|
|
282
|
-
type: CmatMaterialColorPickerComponent,
|
|
283
|
-
decorators: [{
|
|
284
|
-
type: Component,
|
|
285
|
-
args: [{
|
|
286
|
-
selector: "cmat-material-color-picker",
|
|
287
|
-
encapsulation: ViewEncapsulation.None,
|
|
288
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
289
|
-
exportAs: "cmatMaterialColorPicker",
|
|
290
|
-
providers: [CMAT_MATERIAL_COLOR_PICKER_VALUE_ACCESSOR],
|
|
291
|
-
imports: [
|
|
292
|
-
NgClass,
|
|
293
|
-
MatSelectModule,
|
|
294
|
-
MatIconModule,
|
|
295
|
-
MatButtonModule,
|
|
296
|
-
MatTooltipModule
|
|
297
|
-
],
|
|
298
|
-
template: "<div class=\"rounded\" [ngClass]=\"selectedColor().color\">\r\n <mat-select \r\n value=\"init\" \r\n panelClass=\"min-w-64 overflow-hidden!\" \r\n [disableOptionCentering]=\"true\" \r\n [hideSingleSelectionIndicator]=\"true\"\r\n [disabled]=\"readonly()\" \r\n (openedChange)=\"onMenuOpen($event)\">\r\n \r\n <mat-select-trigger class=\"flex p-1\">\r\n <mat-icon [svgIcon]=\"'heroicons_outline:paint-brush'\"></mat-icon>\r\n </mat-select-trigger>\r\n\r\n <header class=\"border-b-2 flex flex-row content-between justify-between p-2\">\r\n <button type=\"button\" matIconButton class=\"secondary-text\" aria-label=\"调色板\"\r\n [class.invisible]=\"view() === 'palettes'\" (click)=\"goToPalettesView()\">\r\n <mat-icon svgIcon=\"mat_outline:arrow_back\"></mat-icon>\r\n </button>\r\n <span class=\"align-middle leading-loose text-xl font-bold\">{{title()}}</span>\r\n <button type=\"button\" matIconButton class=\"remove-color-button secondary-text\" aria-label=\"移除颜色\"\r\n matTooltip=\"移除颜色\" (click)=\"removeColor()\">\r\n <mat-icon color=\"warn\" [svgIcon]=\"'mat_outline:cleaning_services'\"></mat-icon>\r\n </button>\r\n </header>\r\n\r\n <div class=\"flex flex-wrap w-60 m-2\">\r\n <mat-option value=\"init\" class=\"hidden\">初始化</mat-option>\r\n <div>\r\n @switch (view()) {\r\n @case ('palettes') {\r\n <div>\r\n <div class=\"flex flex-row flex-wrap justify-start content-start colors\">\r\n @for (palette of palettes(); track $index) {\r\n <div role=\"presentation\" class=\"cursor-pointer hover:opacity-50\" (click)=\"selectPalette(palette)\">\r\n <mat-option class=\"relative flex w-12 h-12 p-0 pointer-events-none rounded-full bg-transparent \"\r\n [value]=\"selectedPalette()\">\r\n @if (selectedColor().color === palette + '-' + selectedHue()) {\r\n <mat-icon class=\"absolute m-3 text-white\" [svgIcon]=\"'heroicons_outline:check'\"></mat-icon>\r\n }\r\n <span class=\"flex w-10 h-10 m-1 rounded-full\" [ngClass]=\"palette + '-' + selectedHue()\"></span>\r\n </mat-option>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n @case ('hues') {\r\n <div>\r\n <div class=\"flex flex-row flex-wrap justify-start content-start colors\">\r\n @for (hue of hues(); track $index) {\r\n <div role=\"presentation\" class=\"cursor-pointer hover:opacity-50\" (click)=\"selectHue(hue)\">\r\n <mat-option class=\"relative flex w-12 h-12 p-0 pointer-events-none rounded-full bg-transparent \"\r\n [value]=\"selectedHue()\">\r\n @if (selectedColor().color === selectedPalette() + '-' + hue) {\r\n <mat-icon class=\"absolute m-3 text-white\" [svgIcon]=\"'heroicons_outline:check'\"></mat-icon>\r\n }\r\n <span class=\"flex w-10 h-10 m-1 rounded-full\" [ngClass]=\"selectedPalette() + '-' + hue\"></span>\r\n </mat-option>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n }\r\n </div>\r\n </div>\r\n </mat-select>\r\n</div>",
|
|
299
|
-
styles: ["cmat-material-color-picker .mat-mdc-select-arrow-wrapper{display:none!important}\n"]
|
|
300
|
-
}]
|
|
301
|
-
}],
|
|
302
|
-
ctorParameters: () => [],
|
|
303
|
-
propDecorators: {
|
|
304
|
-
title: [{
|
|
305
|
-
type: i0.Input,
|
|
306
|
-
args: [{
|
|
307
|
-
isSignal: true,
|
|
308
|
-
alias: "title",
|
|
309
|
-
required: false
|
|
310
|
-
}]
|
|
311
|
-
}],
|
|
312
|
-
readonly: [{
|
|
313
|
-
type: i0.Input,
|
|
314
|
-
args: [{
|
|
315
|
-
isSignal: true,
|
|
316
|
-
alias: "readonly",
|
|
317
|
-
required: false
|
|
318
|
-
}]
|
|
319
|
-
}],
|
|
320
|
-
color: [{
|
|
321
|
-
type: i0.Input,
|
|
322
|
-
args: [{
|
|
323
|
-
isSignal: true,
|
|
324
|
-
alias: "color",
|
|
325
|
-
required: false
|
|
326
|
-
}]
|
|
327
|
-
}],
|
|
328
|
-
colorChanged: [{
|
|
329
|
-
type: i0.Output,
|
|
330
|
-
args: ["colorChanged"]
|
|
331
|
-
}]
|
|
332
|
-
}
|
|
333
|
-
});
|
|
334
|
-
var CmatSelectedColor = class {};
|
|
335
|
-
export { CMAT_MATERIAL_COLOR_PICKER_VALUE_ACCESSOR, CmatMaterialColorPickerComponent, CmatSelectedColor };
|
|
336
|
-
|
|
337
|
-
//# sourceMappingURL=cmat-components-material-color-picker.mjs.map
|
|
1
|
+
export { n as CMAT_MATERIAL_COLOR_PICKER_VALUE_ACCESSOR, r as CmatMaterialColorPickerComponent, t as CmatSelectedColor } from "./public-api-iRaKIVmd.mjs";
|