@masterteam/components 0.0.265 → 0.0.266
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/assets/common.css +2 -309
- package/fesm2022/masterteam-components-avatar-text.mjs +46 -0
- package/fesm2022/masterteam-components-avatar-text.mjs.map +1 -0
- package/fesm2022/masterteam-components-avatar.mjs +50 -0
- package/fesm2022/masterteam-components-avatar.mjs.map +1 -0
- package/fesm2022/masterteam-components-breadcrumb.mjs +27 -0
- package/fesm2022/masterteam-components-breadcrumb.mjs.map +1 -0
- package/fesm2022/masterteam-components-business-fields.mjs +1907 -0
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -0
- package/fesm2022/masterteam-components-button-group.mjs +20 -0
- package/fesm2022/masterteam-components-button-group.mjs.map +1 -0
- package/fesm2022/masterteam-components-button.mjs +82 -0
- package/fesm2022/masterteam-components-button.mjs.map +1 -0
- package/fesm2022/masterteam-components-card.mjs +28 -0
- package/fesm2022/masterteam-components-card.mjs.map +1 -0
- package/fesm2022/masterteam-components-checkbox-field.mjs +92 -0
- package/fesm2022/masterteam-components-checkbox-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-chip.mjs +39 -0
- package/fesm2022/masterteam-components-chip.mjs.map +1 -0
- package/fesm2022/masterteam-components-client-page-menu.mjs +153 -0
- package/fesm2022/masterteam-components-client-page-menu.mjs.map +1 -0
- package/fesm2022/masterteam-components-client-page.mjs +413 -0
- package/fesm2022/masterteam-components-client-page.mjs.map +1 -0
- package/fesm2022/masterteam-components-color-picker-field.mjs +106 -0
- package/fesm2022/masterteam-components-color-picker-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-confirmation.mjs +98 -0
- package/fesm2022/masterteam-components-confirmation.mjs.map +1 -0
- package/fesm2022/masterteam-components-date-field.mjs +158 -0
- package/fesm2022/masterteam-components-date-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-dialog.mjs +33 -0
- package/fesm2022/masterteam-components-dialog.mjs.map +1 -0
- package/fesm2022/masterteam-components-drawer.mjs +268 -0
- package/fesm2022/masterteam-components-drawer.mjs.map +1 -0
- package/fesm2022/masterteam-components-dynamic-drawer.mjs +608 -0
- package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +1 -0
- package/fesm2022/masterteam-components-editor-field.mjs +103 -0
- package/fesm2022/masterteam-components-editor-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-empty-state.mjs +53 -0
- package/fesm2022/masterteam-components-empty-state.mjs.map +1 -0
- package/fesm2022/masterteam-components-entities.mjs +2242 -0
- package/fesm2022/masterteam-components-entities.mjs.map +1 -0
- package/fesm2022/masterteam-components-field-validation.mjs +237 -0
- package/fesm2022/masterteam-components-field-validation.mjs.map +1 -0
- package/fesm2022/masterteam-components-formula.mjs +3848 -0
- package/fesm2022/masterteam-components-formula.mjs.map +1 -0
- package/fesm2022/masterteam-components-icon-field.mjs +158 -0
- package/fesm2022/masterteam-components-icon-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-list.mjs +31 -0
- package/fesm2022/masterteam-components-list.mjs.map +1 -0
- package/fesm2022/masterteam-components-location-field.mjs +607 -0
- package/fesm2022/masterteam-components-location-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-menu.mjs +135 -0
- package/fesm2022/masterteam-components-menu.mjs.map +1 -0
- package/fesm2022/masterteam-components-modal.mjs +108 -0
- package/fesm2022/masterteam-components-modal.mjs.map +1 -0
- package/fesm2022/masterteam-components-module-summary-card.mjs +34 -0
- package/fesm2022/masterteam-components-module-summary-card.mjs.map +1 -0
- package/fesm2022/masterteam-components-multi-select-field.mjs +321 -0
- package/fesm2022/masterteam-components-multi-select-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-number-field.mjs +102 -0
- package/fesm2022/masterteam-components-number-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-page-header.mjs +42 -0
- package/fesm2022/masterteam-components-page-header.mjs.map +1 -0
- package/fesm2022/masterteam-components-page.mjs +35 -0
- package/fesm2022/masterteam-components-page.mjs.map +1 -0
- package/fesm2022/masterteam-components-paginator.mjs +43 -0
- package/fesm2022/masterteam-components-paginator.mjs.map +1 -0
- package/fesm2022/masterteam-components-pick-list-field.mjs +210 -0
- package/fesm2022/masterteam-components-pick-list-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-progress.mjs +63 -0
- package/fesm2022/masterteam-components-progress.mjs.map +1 -0
- package/fesm2022/masterteam-components-property-filter-builder.mjs +386 -0
- package/fesm2022/masterteam-components-property-filter-builder.mjs.map +1 -0
- package/fesm2022/masterteam-components-radio-button-field.mjs +85 -0
- package/fesm2022/masterteam-components-radio-button-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-radio-cards-field.mjs +131 -0
- package/fesm2022/masterteam-components-radio-cards-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-radio-cards.mjs +74 -0
- package/fesm2022/masterteam-components-radio-cards.mjs.map +1 -0
- package/fesm2022/masterteam-components-runtime-action.mjs +406 -0
- package/fesm2022/masterteam-components-runtime-action.mjs.map +1 -0
- package/fesm2022/masterteam-components-select-field.mjs +415 -0
- package/fesm2022/masterteam-components-select-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-sidebar.mjs +155 -0
- package/fesm2022/masterteam-components-sidebar.mjs.map +1 -0
- package/fesm2022/masterteam-components-slider-field.mjs +128 -0
- package/fesm2022/masterteam-components-slider-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-statistic-card.mjs +42 -0
- package/fesm2022/masterteam-components-statistic-card.mjs.map +1 -0
- package/fesm2022/masterteam-components-table.mjs +3372 -0
- package/fesm2022/masterteam-components-table.mjs.map +1 -0
- package/fesm2022/masterteam-components-tabs.mjs +289 -0
- package/fesm2022/masterteam-components-tabs.mjs.map +1 -0
- package/fesm2022/masterteam-components-text-field.mjs +202 -0
- package/fesm2022/masterteam-components-text-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-textarea-field.mjs +126 -0
- package/fesm2022/masterteam-components-textarea-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-toast.mjs +80 -0
- package/fesm2022/masterteam-components-toast.mjs.map +1 -0
- package/fesm2022/masterteam-components-toggle-field.mjs +116 -0
- package/fesm2022/masterteam-components-toggle-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-tooltip.mjs +147 -0
- package/fesm2022/masterteam-components-tooltip.mjs.map +1 -0
- package/fesm2022/masterteam-components-topbar.mjs +32 -0
- package/fesm2022/masterteam-components-topbar.mjs.map +1 -0
- package/fesm2022/masterteam-components-tree.mjs +260 -0
- package/fesm2022/masterteam-components-tree.mjs.map +1 -0
- package/fesm2022/masterteam-components-treeselect-field.mjs +265 -0
- package/fesm2022/masterteam-components-treeselect-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-upload-field.mjs +846 -0
- package/fesm2022/masterteam-components-upload-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-uploader.mjs +425 -0
- package/fesm2022/masterteam-components-uploader.mjs.map +1 -0
- package/fesm2022/masterteam-components-user-search-field.mjs +374 -0
- package/fesm2022/masterteam-components-user-search-field.mjs.map +1 -0
- package/fesm2022/masterteam-components.mjs +2512 -0
- package/fesm2022/masterteam-components.mjs.map +1 -0
- package/package.json +278 -54
- package/types/masterteam-components-avatar-text.d.ts +23 -0
- package/types/masterteam-components-avatar.d.ts +23 -0
- package/types/masterteam-components-breadcrumb.d.ts +18 -0
- package/types/masterteam-components-business-fields.d.ts +675 -0
- package/types/masterteam-components-button-group.d.ts +8 -0
- package/types/masterteam-components-button.d.ts +62 -0
- package/types/masterteam-components-card.d.ts +14 -0
- package/types/masterteam-components-checkbox-field.d.ts +38 -0
- package/types/masterteam-components-chip.d.ts +21 -0
- package/types/masterteam-components-client-page-menu.d.ts +55 -0
- package/types/masterteam-components-client-page.d.ts +115 -0
- package/types/masterteam-components-color-picker-field.d.ts +39 -0
- package/types/masterteam-components-confirmation.d.ts +41 -0
- package/types/masterteam-components-date-field.d.ts +57 -0
- package/types/masterteam-components-dialog.d.ts +12 -0
- package/types/masterteam-components-drawer.d.ts +62 -0
- package/types/masterteam-components-dynamic-drawer.d.ts +159 -0
- package/types/masterteam-components-editor-field.d.ts +39 -0
- package/types/masterteam-components-empty-state.d.ts +47 -0
- package/types/masterteam-components-entities.d.ts +1116 -0
- package/types/masterteam-components-field-validation.d.ts +59 -0
- package/types/masterteam-components-formula.d.ts +759 -0
- package/types/masterteam-components-icon-field.d.ts +44 -0
- package/types/masterteam-components-list.d.ts +18 -0
- package/types/masterteam-components-location-field.d.ts +173 -0
- package/types/masterteam-components-menu.d.ts +55 -0
- package/types/masterteam-components-modal.d.ts +30 -0
- package/types/masterteam-components-module-summary-card.d.ts +18 -0
- package/types/masterteam-components-multi-select-field.d.ts +104 -0
- package/types/masterteam-components-number-field.d.ts +47 -0
- package/types/masterteam-components-page-header.d.ts +30 -0
- package/types/masterteam-components-page.d.ts +26 -0
- package/types/masterteam-components-paginator.d.ts +20 -0
- package/types/masterteam-components-pick-list-field.d.ts +65 -0
- package/types/masterteam-components-progress.d.ts +30 -0
- package/types/masterteam-components-property-filter-builder.d.ts +90 -0
- package/types/masterteam-components-radio-button-field.d.ts +41 -0
- package/types/masterteam-components-radio-cards-field.d.ts +39 -0
- package/types/masterteam-components-radio-cards.d.ts +33 -0
- package/types/masterteam-components-runtime-action.d.ts +105 -0
- package/types/masterteam-components-select-field.d.ts +136 -0
- package/types/masterteam-components-sidebar.d.ts +71 -0
- package/types/masterteam-components-slider-field.d.ts +41 -0
- package/types/masterteam-components-statistic-card.d.ts +28 -0
- package/types/masterteam-components-table.d.ts +937 -0
- package/types/masterteam-components-tabs.d.ts +80 -0
- package/types/masterteam-components-text-field.d.ts +60 -0
- package/types/masterteam-components-textarea-field.d.ts +45 -0
- package/types/masterteam-components-toast.d.ts +27 -0
- package/types/masterteam-components-toggle-field.d.ts +44 -0
- package/types/masterteam-components-tooltip.d.ts +26 -0
- package/types/masterteam-components-topbar.d.ts +20 -0
- package/types/masterteam-components-tree.d.ts +106 -0
- package/types/masterteam-components-treeselect-field.d.ts +79 -0
- package/types/masterteam-components-upload-field.d.ts +112 -0
- package/types/masterteam-components-uploader.d.ts +53 -0
- package/types/masterteam-components-user-search-field.d.ts +110 -0
- package/types/masterteam-components.d.ts +1261 -0
- package/.angular/cache/21.2.7/@masterteam/components/.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/@masterteam/components/angular-compiler.db +0 -0
- package/.angular/cache/21.2.7/@masterteam/components/angular-compiler.db-lock +0 -0
- package/.angular/cache/21.2.7/ng-packagr/045efd332b9db1d21b3a595a37ae03ebb11b457a5dc6e2d1cbc561b694e17f1a +0 -1
- package/.angular/cache/21.2.7/ng-packagr/0727b170af3d53236c0cafe16ea670d089e48d4c5c525b1dbcc1c684bb6e99c7 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/0873bc9048494ebc33fe0a7b856324c7c4ca681b0dcaa87338e3290186906d49 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/1010cd8fc996d0c2df519ed60085f4b1f38ccfc873900055bc75fc20a3c26bab +0 -1
- package/.angular/cache/21.2.7/ng-packagr/12379a8ab7254ad3df2635823a358cfce32e6d0f390be68596cc97e02307e6c4 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/1239e7a937657b62f858d17d47738ed30facbdaa91032511e29ed148b748400b +0 -1
- package/.angular/cache/21.2.7/ng-packagr/133b9ecf47ba424244902da90d77cd3f135b85f95c01b16de7b2247f57518f01 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/175d45dc6da51834e7fe937c09d23dbf28d2a823f838ef5271fd3e148776d6ec +0 -1
- package/.angular/cache/21.2.7/ng-packagr/19d99ad4d927324b03cdbef34331ba2c58bd580f1f0ca591cb5f8dbf436c913c +0 -1
- package/.angular/cache/21.2.7/ng-packagr/1a86918763f95c1c2b9fa781bda1ceedf15aead87f0e11ea1324318af43a897a +0 -1
- package/.angular/cache/21.2.7/ng-packagr/1f08100dbc280be7da64c809315376eb7d0cfd074916a6042f609f03f4276a8e +0 -1
- package/.angular/cache/21.2.7/ng-packagr/2224877a7e762b86541428e4c40d61f54f505867c305769ae42e67e4aa81bd93 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/24957fb7ec060692ebcf1471e1bdce39f40aed938959e580048ade58015762d2 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/295fcdc1c4462e7feae96a24255369508a559faaecc4676267749a7ce23e4b6d +0 -1
- package/.angular/cache/21.2.7/ng-packagr/2b37e2f2d6564d10bad1fd0ecc16453962fd855cd1e36ad7aa24baf3e4f2e8b3 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/2c20f0929771e857b570ba2beffe91f598f299ce26d4825fe4315bfe5a3dd40a +0 -1
- package/.angular/cache/21.2.7/ng-packagr/37dea2e5798cad4a21d66292eeed5be26d04500d9a1534332ad42ce664a058c2 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/3b6239b640fcb5ea7067a2655a2901d32f55372812b586aa008e77c59e8f2090 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/3beb1b4dfe75d1e6749cf91f05d51ba4eece939f5c15f6f33ed587bfd198f0a3 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/3f161e6c2ead4519d0663dd79199dafceb2cc22da7ce92a72b809b93bfce0bb0 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/43551862d17cd02626e18b30243390081a6247784485660048b060a3d4ab7fa7 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/47aedf032519b41d96866fcf8fbd4f1dfd29f9e9a534b39dee0e44d402227d2d +0 -1
- package/.angular/cache/21.2.7/ng-packagr/4a1768888c60921955bfdfba8b31c8d853bd7b2a7d3a7b83934de049e1e6e6a2 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/4a783e339117597607bff17eeca0ad24d84b8cbc1e28927e7e453ccfa6223180 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/4d9331b2050326f586cd8f6593a9e04e1c7944b2f9e98023649023c099597a5d +0 -1
- package/.angular/cache/21.2.7/ng-packagr/4e379f506919d47af7008658c75242aa05f0056c1caec4061d7fa5746f776049 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/55009bb7d44552dd816ce32fa2b0f7985f3f08fefd6409c2b4f6b9ffe35dad83 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/58ae3f1f9664f7b16844d2e4a279dd4ca9371de014cf5687320c2d5cb259a74f +0 -1
- package/.angular/cache/21.2.7/ng-packagr/5c08e906bd3fe1aa6c1d62f2bbb2b3f276e1c17fe45ef081e76bd1b865ac3dfa +0 -1
- package/.angular/cache/21.2.7/ng-packagr/5ce333a40ad635188347fa9bc601d5fd14be6baacbae7d096259d725ac9757af +0 -1
- package/.angular/cache/21.2.7/ng-packagr/5f32cceaee6a6ea19cc6cbff5ea089b752f13a0fdcd32597d4c99d5e1e031bb5 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/691ad4ccdc0a8ede36e1f4e5e97638c20c2d3142916ffac3a1b172178c139205 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/6b57160e0d2da3f31693831e84a3f4209c1f33a04abd636e34af03956e7329d8 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/70bc711a1d7b631845885c26adc2d6b1bff47d11332b2625cedfa11e9d5ac79a +0 -1
- package/.angular/cache/21.2.7/ng-packagr/7427c266237012afaef486c2af94ee08a491e8d7b6fc7e5ee887980830bbd333 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/7e8fa7c61cf9a932ba3a0e65eb73c7412e81666b7a8f923dac7b75acfbb94b1d +0 -1
- package/.angular/cache/21.2.7/ng-packagr/81aab7fdab43cbdfa869db759d6113ae01ec6f5e0e9061d7fc089c260886e4d1 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/83a81758045ff710a34ea3cf6f54435a1f5dea9839d8c0adda0bbce7c3fb6e8b +0 -1
- package/.angular/cache/21.2.7/ng-packagr/883eae810a4c09f06617bdc2e4bc30a69f09726401b2a051840969f635d076f1 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/8a6b9be66de40c57054dca5fde376c3cec1bec1ae191a16f1ae6a83306d9ebfe +0 -1
- package/.angular/cache/21.2.7/ng-packagr/8d42c8144f6929de46984094bf390a0c4168404ab13a5194839f6ba5e42bc3ce +0 -1
- package/.angular/cache/21.2.7/ng-packagr/91093656c61a5404f0d576f872247eeb480dd938e6999d481a97893c72b5f3d0 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/91e881172037c63d819e30d30e390e0d7dc0dee9808b3902275ccc8b1887d864 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/9ef28cf3a676e7bd0d37762c4868b4810efca2f241ed0dae75ebca41988e2c00 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/a07cbea405c1831b3f686a8e57c4b500d89cbab2b95e110487890269945feeaa +0 -1
- package/.angular/cache/21.2.7/ng-packagr/a463deba940880d9461612c9cd00d90062bf97aa31b1c4556b8b47a967cb6882 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/ab03ed1e4a371113b41b663d526d2b06565ceb062e6f033f726f1e455fc5d1d6 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/ad0e84be4f2211aff6187b4bec9adbe15f0e8b36851e9c6c63b38303c2daad37 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/aece79242dae70eb748605e37483e75e122e4ce414fa8be875499e8af26ee5d6 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/aff32db91ce03de30d2bbc84f266fe3fb2c6629d5eeb39a364204d9499484368 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/b0671e73a162927d28ef1742ec008e514264bc2ce29f2255bedaea553492fe5d +0 -1
- package/.angular/cache/21.2.7/ng-packagr/bb50d71f3cdeebbb85fd983be8103f9c216060464f8e7e534271197391e6dcf7 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/c64241290ab30d8761b2f5493a039427f5cda1a48b5be88ce62ee5c714c0f690 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/c794d2e79b26ab378c0dbf8afa7b8ac1337ba9afb288941d44a086cb1bd4bad2 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/d942edf8fd8e8e884138ffcdb1a07ad14a0b5e211f8ccea1dc9ea0b48f50cfc9 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/dbe0b9b9f18ba7b96d9c84f4fd16cde158c9701c202d00113e6f88ba93407bce +0 -1
- package/.angular/cache/21.2.7/ng-packagr/f564395a410a2723aac48e582f5fe416bfeaa48677cea47b10c5152d4f2b6672 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/fc9b0d27f081ca7b2a4cbefa75136d7bd7a8c341dbaa0587855071a6003906b8 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-avatar-text.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-avatar.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-breadcrumb.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-business-fields.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-button-group.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-button.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-card.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-checkbox-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-chip.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-client-page-menu.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-client-page.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-color-picker-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-confirmation.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-date-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-dialog.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-drawer.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-dynamic-drawer.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-editor-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-empty-state.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-entities.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-field-validation.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-formula.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-icon-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-list.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-location-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-menu.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-modal.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-module-summary-card.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-multi-select-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-number-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-page-header.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-page.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-paginator.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-pick-list-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-progress.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-property-filter-builder.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-radio-button-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-radio-cards-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-radio-cards.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-runtime-action.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-select-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-sidebar.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-slider-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-statistic-card.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-table.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-tabs.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-text-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-textarea-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-toast.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-toggle-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-tooltip.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-topbar.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-tree.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-treeselect-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-upload-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-uploader.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-user-search-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components.tsbuildinfo +0 -1
- package/angular.json +0 -32
- package/api/api.ts +0 -1
- package/api/public-api.ts +0 -5
- package/avatar/avatar.html +0 -32
- package/avatar/avatar.scss +0 -0
- package/avatar/avatar.ts +0 -54
- package/avatar/ng-package.json +0 -6
- package/avatar/public-api.ts +0 -1
- package/avatar-text/avatar-text.html +0 -26
- package/avatar-text/avatar-text.scss +0 -0
- package/avatar-text/avatar-text.ts +0 -52
- package/avatar-text/ng-package.json +0 -6
- package/avatar-text/public-api.ts +0 -1
- package/breadcrumb/breadcrumb.html +0 -53
- package/breadcrumb/breadcrumb.scss +0 -0
- package/breadcrumb/breadcrumb.ts +0 -26
- package/breadcrumb/ng-package.json +0 -6
- package/breadcrumb/public-api.ts +0 -1
- package/business-fields/entity-list-field/entity-list-add-token.ts +0 -25
- package/business-fields/entity-list-field/entity-list-field.html +0 -70
- package/business-fields/entity-list-field/entity-list-field.scss +0 -3
- package/business-fields/entity-list-field/entity-list-field.ts +0 -1067
- package/business-fields/lookup-matrix-field/lookup-matrix-field.html +0 -38
- package/business-fields/lookup-matrix-field/lookup-matrix-field.spec.ts +0 -183
- package/business-fields/lookup-matrix-field/lookup-matrix-field.ts +0 -239
- package/business-fields/lookup-module-check-list-field/lookup-module-check-list-field.html +0 -95
- package/business-fields/lookup-module-check-list-field/lookup-module-check-list-field.ts +0 -336
- package/business-fields/lookup-module-check-list-field/lookup-module-check-list-form-token.ts +0 -42
- package/business-fields/ng-package.json +0 -6
- package/business-fields/public-api.ts +0 -8
- package/business-fields/schedule-item-selector-field/schedule-item-selector-field.html +0 -32
- package/business-fields/schedule-item-selector-field/schedule-item-selector-field.ts +0 -272
- package/business-fields/schedule-predecessor-field/schedule-predecessor-field.html +0 -89
- package/business-fields/schedule-predecessor-field/schedule-predecessor-field.ts +0 -441
- package/business-fields/schema-connection-field/schema-connection-field.html +0 -58
- package/business-fields/schema-connection-field/schema-connection-field.scss +0 -0
- package/business-fields/schema-connection-field/schema-connection-field.ts +0 -456
- package/button/button.html +0 -44
- package/button/button.scss +0 -0
- package/button/button.ts +0 -120
- package/button/ng-package.json +0 -6
- package/button/public-api.ts +0 -1
- package/button-group/button-group.html +0 -3
- package/button-group/button-group.scss +0 -20
- package/button-group/button-group.ts +0 -12
- package/button-group/ng-package.json +0 -6
- package/button-group/public-api.ts +0 -1
- package/card/card.html +0 -26
- package/card/card.scss +0 -0
- package/card/card.ts +0 -29
- package/card/ng-package.json +0 -6
- package/card/public-api.ts +0 -1
- package/checkbox-field/checkbox-field.html +0 -31
- package/checkbox-field/checkbox-field.scss +0 -0
- package/checkbox-field/checkbox-field.spec.ts +0 -21
- package/checkbox-field/checkbox-field.ts +0 -123
- package/checkbox-field/ng-package.json +0 -6
- package/checkbox-field/public-api.ts +0 -1
- package/chip/chip.html +0 -16
- package/chip/chip.scss +0 -19
- package/chip/chip.ts +0 -45
- package/chip/ng-package.json +0 -6
- package/chip/public-api.ts +0 -1
- package/client-page/client-page.html +0 -232
- package/client-page/client-page.ts +0 -588
- package/client-page/index.ts +0 -2
- package/client-page/ng-package.json +0 -6
- package/client-page/public-api.ts +0 -1
- package/client-page-menu/client-page-menu.html +0 -142
- package/client-page-menu/client-page-menu.ts +0 -199
- package/client-page-menu/index.ts +0 -2
- package/client-page-menu/ng-package.json +0 -6
- package/client-page-menu/public-api.ts +0 -1
- package/color-picker-field/color-picker-field.html +0 -45
- package/color-picker-field/color-picker-field.scss +0 -52
- package/color-picker-field/color-picker-field.ts +0 -131
- package/color-picker-field/ng-package.json +0 -6
- package/color-picker-field/public-api.ts +0 -1
- package/confirmation/confirmation-dialog.html +0 -83
- package/confirmation/confirmation-dialog.scss +0 -0
- package/confirmation/confirmation-dialog.ts +0 -15
- package/confirmation/confirmation.spec.ts +0 -43
- package/confirmation/confirmation.ts +0 -103
- package/confirmation/ng-package.json +0 -6
- package/confirmation/public-api.ts +0 -2
- package/date-field/date-field.html +0 -65
- package/date-field/date-field.scss +0 -0
- package/date-field/date-field.spec.ts +0 -118
- package/date-field/date-field.ts +0 -196
- package/date-field/ng-package.json +0 -6
- package/date-field/public-api.ts +0 -1
- package/dialog/dialog.ts +0 -29
- package/dialog/ng-package.json +0 -6
- package/dialog/public-api.ts +0 -1
- package/drawer/drawer.html +0 -67
- package/drawer/drawer.scss +0 -1
- package/drawer/drawer.ts +0 -348
- package/drawer/ng-package.json +0 -5
- package/drawer/public-api.ts +0 -1
- package/dynamic-drawer/dynamic-drawer-host.ts +0 -476
- package/dynamic-drawer/dynamic-drawer.spec.ts +0 -204
- package/dynamic-drawer/dynamic-drawer.ts +0 -235
- package/dynamic-drawer/ng-package.json +0 -6
- package/dynamic-drawer/public-api.ts +0 -2
- package/editor-field/editor-field.html +0 -38
- package/editor-field/editor-field.scss +0 -219
- package/editor-field/editor-field.ts +0 -126
- package/editor-field/ng-package.json +0 -6
- package/editor-field/public-api.ts +0 -1
- package/empty-state/empty-state.html +0 -236
- package/empty-state/empty-state.ts +0 -85
- package/empty-state/ng-package.json +0 -6
- package/empty-state/public-api.ts +0 -1
- package/entities/comparison/comparison-entity-list/comparison-entity-list.html +0 -87
- package/entities/comparison/comparison-entity-list/comparison-entity-list.ts +0 -93
- package/entities/comparison/comparison-value/comparison-value.html +0 -31
- package/entities/comparison/comparison-value/comparison-value.ts +0 -53
- package/entities/currency-display.utils.spec.ts +0 -94
- package/entities/currency-display.utils.ts +0 -92
- package/entities/entities-manage/entities-manage.html +0 -74
- package/entities/entities-manage/entities-manage.scss +0 -72
- package/entities/entities-manage/entities-manage.ts +0 -121
- package/entities/entities-manage/entities-resize-base.ts +0 -153
- package/entities/entities-preview/entities-preview.css +0 -77
- package/entities/entities-preview/entities-preview.html +0 -56
- package/entities/entities-preview/entities-preview.ts +0 -281
- package/entities/entity-attachment/entity-attachment.html +0 -49
- package/entities/entity-attachment/entity-attachment.ts +0 -462
- package/entities/entity-checkbox/entity-checkbox.html +0 -28
- package/entities/entity-checkbox/entity-checkbox.ts +0 -65
- package/entities/entity-comparison.model.ts +0 -39
- package/entities/entity-connection/entity-connection.html +0 -12
- package/entities/entity-connection/entity-connection.ts +0 -75
- package/entities/entity-currency/entity-currency.html +0 -12
- package/entities/entity-currency/entity-currency.ts +0 -59
- package/entities/entity-date/entity-date.html +0 -16
- package/entities/entity-date/entity-date.ts +0 -50
- package/entities/entity-display.utils.ts +0 -94
- package/entities/entity-field/entity-field.ts +0 -94
- package/entities/entity-leaf-details/entity-leaf-details.html +0 -35
- package/entities/entity-leaf-details/entity-leaf-details.ts +0 -56
- package/entities/entity-location/entity-location.html +0 -34
- package/entities/entity-location/entity-location.ts +0 -98
- package/entities/entity-long-text/entity-long-text.html +0 -9
- package/entities/entity-long-text/entity-long-text.ts +0 -45
- package/entities/entity-lookup/entity-lookup.html +0 -25
- package/entities/entity-lookup/entity-lookup.ts +0 -68
- package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.html +0 -39
- package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.spec.ts +0 -148
- package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.ts +0 -152
- package/entities/entity-percentage/entity-percentage.html +0 -22
- package/entities/entity-percentage/entity-percentage.ts +0 -163
- package/entities/entity-phase-gate/entity-phase-gate.html +0 -20
- package/entities/entity-phase-gate/entity-phase-gate.ts +0 -129
- package/entities/entity-preview/entity-preview-body.html +0 -8
- package/entities/entity-preview/entity-preview-body.ts +0 -19
- package/entities/entity-preview/entity-preview.html +0 -14
- package/entities/entity-preview/entity-preview.ts +0 -33
- package/entities/entity-preview/entity-value-preview.html +0 -62
- package/entities/entity-preview/entity-value-preview.spec.ts +0 -191
- package/entities/entity-preview/entity-value-preview.ts +0 -69
- package/entities/entity-schedule-item/entity-schedule-item.html +0 -19
- package/entities/entity-schedule-item/entity-schedule-item.ts +0 -41
- package/entities/entity-sections.util.ts +0 -103
- package/entities/entity-status/entity-status.html +0 -20
- package/entities/entity-status/entity-status.ts +0 -60
- package/entities/entity-text/entity-text.html +0 -20
- package/entities/entity-text/entity-text.ts +0 -35
- package/entities/entity-user/entity-user.html +0 -181
- package/entities/entity-user/entity-user.ts +0 -179
- package/entities/entity.model.ts +0 -407
- package/entities/leaf-details-display.utils.ts +0 -269
- package/entities/ng-package.json +0 -6
- package/entities/percentage-color.utils.spec.ts +0 -94
- package/entities/percentage-color.utils.ts +0 -80
- package/entities/public-api.ts +0 -30
- package/field-validation/character-limit.validator.ts +0 -22
- package/field-validation/error-message.pipe.spec.ts +0 -184
- package/field-validation/error-message.pipe.ts +0 -80
- package/field-validation/field-validation.ts +0 -168
- package/field-validation/ng-package.json +0 -6
- package/field-validation/public-api.ts +0 -2
- package/formula/formula-editor/formula-editor.html +0 -89
- package/formula/formula-editor/formula-editor.scss +0 -25
- package/formula/formula-editor/formula-editor.ts +0 -467
- package/formula/formula-editor/index.ts +0 -1
- package/formula/formula-editor-code/formula-autocomplete-normalization.util.spec.ts +0 -58
- package/formula/formula-editor-code/formula-autocomplete-normalization.util.ts +0 -64
- package/formula/formula-editor-code/formula-completion-range.util.spec.ts +0 -62
- package/formula/formula-editor-code/formula-completion-range.util.ts +0 -71
- package/formula/formula-editor-code/formula-completion-suggestion.util.spec.ts +0 -23
- package/formula/formula-editor-code/formula-completion-suggestion.util.ts +0 -18
- package/formula/formula-editor-code/formula-editor-code.html +0 -15
- package/formula/formula-editor-code/formula-editor-code.scss +0 -90
- package/formula/formula-editor-code/formula-editor-code.ts +0 -1095
- package/formula/formula-editor-code/index.ts +0 -1
- package/formula/formula-status-bar/formula-status-bar.html +0 -119
- package/formula/formula-status-bar/formula-status-bar.ts +0 -66
- package/formula/formula-status-bar/index.ts +0 -1
- package/formula/formula-toolbar/formula-toolbar.html +0 -361
- package/formula/formula-toolbar/formula-toolbar.ts +0 -532
- package/formula/formula-toolbar/index.ts +0 -2
- package/formula/formula-toolbar/operators.ts +0 -122
- package/formula/models/formula-block.model.ts +0 -61
- package/formula/models/formula-token.model.spec.ts +0 -57
- package/formula/models/formula-token.model.ts +0 -852
- package/formula/models/index.ts +0 -5
- package/formula/models/smart-block.model.ts +0 -132
- package/formula/models/validation-result.model.ts +0 -80
- package/formula/ng-package.json +0 -6
- package/formula/public-api.ts +0 -8
- package/formula/runtime/formula-runtime-catalogs.ts +0 -554
- package/formula/runtime/formula-runtime-engine.spec.ts +0 -328
- package/formula/runtime/formula-runtime-engine.ts +0 -794
- package/formula/runtime/formula-runtime.model.ts +0 -53
- package/formula/runtime/index.ts +0 -3
- package/formula/toolbar-item/index.ts +0 -1
- package/formula/toolbar-item/toolbar-item.html +0 -143
- package/formula/toolbar-item/toolbar-item.scss +0 -14
- package/formula/toolbar-item/toolbar-item.ts +0 -223
- package/icon-field/icon-field.html +0 -58
- package/icon-field/icon-field.scss +0 -24
- package/icon-field/icon-field.spec.ts +0 -77
- package/icon-field/icon-field.ts +0 -205
- package/icon-field/ng-package.json +0 -6
- package/icon-field/public-api.ts +0 -1
- package/list/list.html +0 -22
- package/list/list.ts +0 -36
- package/list/ng-package.json +0 -6
- package/list/public-api.ts +0 -1
- package/location-field/location-field.html +0 -86
- package/location-field/location-field.spec.ts +0 -295
- package/location-field/location-field.ts +0 -662
- package/location-field/location-manual-dialog.html +0 -43
- package/location-field/location-manual-dialog.ts +0 -104
- package/location-field/location-value.ts +0 -67
- package/location-field/ng-package.json +0 -6
- package/location-field/public-api.ts +0 -3
- package/menu/menu.html +0 -71
- package/menu/menu.scss +0 -3
- package/menu/menu.ts +0 -186
- package/menu/ng-package.json +0 -6
- package/menu/public-api.ts +0 -1
- package/modal/modal.ts +0 -127
- package/modal/ng-package.json +0 -6
- package/modal/public-api.ts +0 -1
- package/module-summary-card/module-summary-card.html +0 -43
- package/module-summary-card/module-summary-card.scss +0 -0
- package/module-summary-card/module-summary-card.ts +0 -40
- package/module-summary-card/ng-package.json +0 -6
- package/module-summary-card/public-api.ts +0 -1
- package/multi-select-field/multi-select-field.html +0 -140
- package/multi-select-field/multi-select-field.scss +0 -0
- package/multi-select-field/multi-select-field.spec.ts +0 -21
- package/multi-select-field/multi-select-field.ts +0 -397
- package/multi-select-field/ng-package.json +0 -6
- package/multi-select-field/public-api.ts +0 -1
- package/ng-package.json +0 -9
- package/number-field/ng-package.json +0 -6
- package/number-field/number-field.html +0 -39
- package/number-field/number-field.scss +0 -8
- package/number-field/number-field.spec.ts +0 -21
- package/number-field/number-field.ts +0 -124
- package/number-field/public-api.ts +0 -1
- package/page/index.ts +0 -1
- package/page/ng-package.json +0 -6
- package/page/page.html +0 -37
- package/page/page.ts +0 -43
- package/page/public-api.ts +0 -1
- package/page-header/index.ts +0 -2
- package/page-header/ng-package.json +0 -6
- package/page-header/page-header.html +0 -60
- package/page-header/page-header.ts +0 -54
- package/page-header/public-api.ts +0 -1
- package/paginator/ng-package.json +0 -6
- package/paginator/paginator.html +0 -50
- package/paginator/paginator.scss +0 -0
- package/paginator/paginator.ts +0 -53
- package/paginator/public-api.ts +0 -1
- package/pick-list-field/ng-package.json +0 -6
- package/pick-list-field/pick-list-field.html +0 -39
- package/pick-list-field/pick-list-field.scss +0 -26
- package/pick-list-field/pick-list-field.ts +0 -259
- package/pick-list-field/public-api.ts +0 -1
- package/progress/ng-package.json +0 -6
- package/progress/progress.html +0 -36
- package/progress/progress.ts +0 -61
- package/progress/public-api.ts +0 -1
- package/property-filter-builder/ng-package.json +0 -6
- package/property-filter-builder/property-filter-builder.html +0 -192
- package/property-filter-builder/property-filter-builder.ts +0 -548
- package/property-filter-builder/public-api.ts +0 -1
- package/radio-button-field/ng-package.json +0 -6
- package/radio-button-field/public-api.ts +0 -1
- package/radio-button-field/radio-button-field.html +0 -44
- package/radio-button-field/radio-button-field.scss +0 -0
- package/radio-button-field/radio-button-field.ts +0 -114
- package/radio-cards/ng-package.json +0 -6
- package/radio-cards/public-api.ts +0 -1
- package/radio-cards/radio-cards.css +0 -3
- package/radio-cards/radio-cards.html +0 -54
- package/radio-cards/radio-cards.spec.ts +0 -22
- package/radio-cards/radio-cards.ts +0 -92
- package/radio-cards-field/ng-package.json +0 -6
- package/radio-cards-field/public-api.ts +0 -1
- package/radio-cards-field/radio-cards-field.css +0 -0
- package/radio-cards-field/radio-cards-field.html +0 -38
- package/radio-cards-field/radio-cards-field.spec.ts +0 -22
- package/radio-cards-field/radio-cards-field.ts +0 -182
- package/runtime-action/ng-package.json +0 -6
- package/runtime-action/payload-builder.ts +0 -246
- package/runtime-action/public-api.ts +0 -4
- package/runtime-action/runtime-action-context.store.ts +0 -26
- package/runtime-action/runtime-action.runner.ts +0 -302
- package/runtime-action/runtime-action.types.ts +0 -82
- package/select-field/current-user.util.ts +0 -54
- package/select-field/ng-package.json +0 -6
- package/select-field/public-api.ts +0 -1
- package/select-field/select-field.html +0 -142
- package/select-field/select-field.scss +0 -0
- package/select-field/select-field.spec.ts +0 -21
- package/select-field/select-field.ts +0 -471
- package/sidebar/ng-package.json +0 -6
- package/sidebar/public-api.ts +0 -1
- package/sidebar/sidebar.html +0 -368
- package/sidebar/sidebar.ts +0 -303
- package/slider-field/ng-package.json +0 -7
- package/slider-field/public-api.ts +0 -1
- package/slider-field/slider-field.html +0 -33
- package/slider-field/slider-field.scss +0 -11
- package/slider-field/slider-field.spec.ts +0 -44
- package/slider-field/slider-field.ts +0 -166
- package/src/lib/base/base.facade.ts +0 -159
- package/src/lib/base/crud-base.state.ts +0 -248
- package/src/lib/config/date-format.config.ts +0 -55
- package/src/lib/config/ds-identity.preset.ts +0 -538
- package/src/lib/config/ds-identity.tokens.ts +0 -209
- package/src/lib/config/dynamic-form.model.ts +0 -1162
- package/src/lib/config/povide-messages.ts +0 -5
- package/src/lib/config/provide-confirmation.ts +0 -5
- package/src/lib/config/providemt.ts +0 -506
- package/src/lib/config/public-api.ts +0 -0
- package/src/lib/pipes/mt-date-format.pipe.spec.ts +0 -60
- package/src/lib/pipes/mt-date-format.pipe.ts +0 -81
- package/src/lib/utils/api-request.helper.ts +0 -59
- package/src/lib/utils/clock-time.util.ts +0 -58
- package/src/lib/utils/color.utils.ts +0 -187
- package/src/lib/utils/entity-adapter.ts +0 -50
- package/src/lib/utils/field-id.ts +0 -42
- package/src/lib/utils/http-context.ts +0 -35
- package/src/lib/utils/inputs.ts +0 -6
- package/src/lib/utils/state-helpers.ts +0 -49
- package/src/lib/utils/theme.ts +0 -281
- package/src/public-api.ts +0 -30
- package/statistic-card/ng-package.json +0 -6
- package/statistic-card/public-api.ts +0 -1
- package/statistic-card/statistic-card.html +0 -31
- package/statistic-card/statistic-card.scss +0 -0
- package/statistic-card/statistic-card.ts +0 -59
- package/table/ng-package.json +0 -7
- package/table/public-api.ts +0 -10
- package/table/table-actions-menu/public-api.ts +0 -1
- package/table/table-actions-menu/table-actions-menu.html +0 -75
- package/table/table-actions-menu/table-actions-menu.ts +0 -171
- package/table/table-caption/public-api.ts +0 -1
- package/table/table-caption/table-caption.html +0 -118
- package/table/table-caption/table-caption.ts +0 -221
- package/table/table-column-filter/public-api.ts +0 -1
- package/table/table-column-filter/table-column-filter.html +0 -44
- package/table/table-column-filter/table-column-filter.ts +0 -106
- package/table/table-export/html-to-text.util.ts +0 -67
- package/table/table-export/public-api.ts +0 -1
- package/table/table-export/table-export.service.spec.ts +0 -186
- package/table/table-export/table-export.service.ts +0 -325
- package/table/table-filter/public-api.ts +0 -1
- package/table/table-filter/table-filter.css +0 -9
- package/table/table-filter/table-filter.html +0 -63
- package/table/table-filter/table-filter.ts +0 -126
- package/table/table-filter-field/public-api.ts +0 -1
- package/table/table-filter-field/table-filter-field.html +0 -182
- package/table/table-filter-field/table-filter-field.ts +0 -208
- package/table/table-grouping/public-api.ts +0 -1
- package/table/table-grouping/table-grouping.spec.ts +0 -218
- package/table/table-grouping/table-grouping.ts +0 -237
- package/table/table-types.ts +0 -242
- package/table/table-value.utils.spec.ts +0 -63
- package/table/table-value.utils.ts +0 -1014
- package/table/table.css +0 -145
- package/table/table.html +0 -572
- package/table/table.ts +0 -2042
- package/tabs/ng-package.json +0 -6
- package/tabs/public-api.ts +0 -1
- package/tabs/tabs.html +0 -417
- package/tabs/tabs.scss +0 -3
- package/tabs/tabs.spec.ts +0 -79
- package/tabs/tabs.ts +0 -397
- package/text-field/ng-package.json +0 -6
- package/text-field/public-api.ts +0 -1
- package/text-field/text-field.html +0 -75
- package/text-field/text-field.scss +0 -56
- package/text-field/text-field.ts +0 -251
- package/textarea-field/ng-package.json +0 -6
- package/textarea-field/public-api.ts +0 -1
- package/textarea-field/textarea-field.html +0 -37
- package/textarea-field/textarea-field.scss +0 -0
- package/textarea-field/textarea-field.spec.ts +0 -21
- package/textarea-field/textarea-field.ts +0 -169
- package/toast/ng-package.json +0 -6
- package/toast/public-api.ts +0 -2
- package/toast/toast.html +0 -18
- package/toast/toast.service.ts +0 -67
- package/toast/toast.ts +0 -21
- package/toggle-field/ng-package.json +0 -6
- package/toggle-field/public-api.ts +0 -1
- package/toggle-field/toggle-field.html +0 -78
- package/toggle-field/toggle-field.scss +0 -24
- package/toggle-field/toggle-field.ts +0 -150
- package/tooltip/ng-package.json +0 -6
- package/tooltip/public-api.ts +0 -2
- package/tooltip/tooltip.ts +0 -30
- package/tooltip/truncate-tooltip.ts +0 -124
- package/topbar/ng-package.json +0 -6
- package/topbar/public-api.ts +0 -1
- package/topbar/topbar.html +0 -52
- package/topbar/topbar.ts +0 -27
- package/tree/ng-package.json +0 -6
- package/tree/public-api.ts +0 -2
- package/tree/tree-types.ts +0 -55
- package/tree/tree.html +0 -126
- package/tree/tree.scss +0 -1
- package/tree/tree.ts +0 -303
- package/treeselect-field/ng-package.json +0 -6
- package/treeselect-field/public-api.ts +0 -1
- package/treeselect-field/treeselect-field.html +0 -71
- package/treeselect-field/treeselect-field.ts +0 -348
- package/tsconfig.check.json +0 -20
- package/tsconfig.json +0 -16
- package/tsconfig.spec.json +0 -24
- package/upload-field/ng-package.json +0 -6
- package/upload-field/public-api.ts +0 -2
- package/upload-field/secure-image.pipe.ts +0 -258
- package/upload-field/upload-field.html +0 -274
- package/upload-field/upload-field.scss +0 -0
- package/upload-field/upload-field.spec.ts +0 -169
- package/upload-field/upload-field.ts +0 -764
- package/upload-field/upload-file-preview/upload-file-preview.html +0 -41
- package/upload-field/upload-file-preview/upload-file-preview.scss +0 -0
- package/upload-field/upload-file-preview/upload-file-preview.ts +0 -57
- package/upload-field/upload-user-preview/upload-user-preview.css +0 -0
- package/upload-field/upload-user-preview/upload-user-preview.html +0 -73
- package/upload-field/upload-user-preview/upload-user-preview.ts +0 -54
- package/uploader/ng-package.json +0 -6
- package/uploader/public-api.ts +0 -1
- package/uploader/uploader.service.spec.ts +0 -271
- package/uploader/uploader.service.ts +0 -733
- package/user-search-field/ng-package.json +0 -6
- package/user-search-field/public-api.ts +0 -1
- package/user-search-field/user-search-field.html +0 -88
- package/user-search-field/user-search-field.scss +0 -4
- package/user-search-field/user-search-field.spec.ts +0 -176
- package/user-search-field/user-search-field.ts +0 -483
|
@@ -0,0 +1,1261 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EnvironmentProviders, InjectionToken, Signal, PipeTransform } from '@angular/core';
|
|
3
|
+
import { Preset } from '@primeuix/themes/types';
|
|
4
|
+
import { AuraBaseDesignTokens } from '@primeuix/themes/aura/base';
|
|
5
|
+
import { MessageService, ConfirmationService } from 'primeng/api';
|
|
6
|
+
import { HttpContext, HttpContextToken } from '@angular/common/http';
|
|
7
|
+
import { AbstractControl, ValidatorFn } from '@angular/forms';
|
|
8
|
+
import * as _masterteam_components from '@masterteam/components';
|
|
9
|
+
import { StateContext } from '@ngxs/store';
|
|
10
|
+
import { Observable } from 'rxjs';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Masterteam Design System — experimental identity, expressed as a PrimeUIX
|
|
14
|
+
* preset.
|
|
15
|
+
*
|
|
16
|
+
* Every `mt-*` component is a thin wrapper over a PrimeNG component, so the
|
|
17
|
+
* identity is applied here rather than in 200 component stylesheets: retune the
|
|
18
|
+
* preset and buttons, fields, tables, overlays, tabs and toasts all move
|
|
19
|
+
* together. Only the handful of things a design token cannot express — the
|
|
20
|
+
* font, the double focus ring, the animated input underline — live in
|
|
21
|
+
* `assets/ds-identity.css`.
|
|
22
|
+
*
|
|
23
|
+
* This preset is *additive*: it is merged over the classic MT configuration, so
|
|
24
|
+
* anything it does not mention keeps its current behaviour.
|
|
25
|
+
*/
|
|
26
|
+
type MTDesignIdentity = 'classic' | 'experimental';
|
|
27
|
+
/** Root class that gates the CSS half of the identity. */
|
|
28
|
+
declare const MT_DESIGN_IDENTITY_CLASS = "mt-ds";
|
|
29
|
+
/** DS primary button background. Used when the host does not brand the app. */
|
|
30
|
+
declare const DS_DEFAULT_PRIMARY_COLOR: string;
|
|
31
|
+
/**
|
|
32
|
+
* The DS identity as a partial preset.
|
|
33
|
+
*
|
|
34
|
+
* @param primaryColor Optional brand override. Tenants that white-label the
|
|
35
|
+
* product still need their own colour; when omitted the DS blue is used.
|
|
36
|
+
* Note the DS itself treats the blue as fixed — an override is a deliberate
|
|
37
|
+
* deviation, not a supported DS variant.
|
|
38
|
+
*/
|
|
39
|
+
declare function dsIdentityConfigs(primaryColor?: string): Preset<AuraBaseDesignTokens>;
|
|
40
|
+
/** The DS chart ramp, for hosts that render charts outside PrimeNG. */
|
|
41
|
+
declare const dsChartSeries: readonly string[];
|
|
42
|
+
/**
|
|
43
|
+
* Adds or removes the root class that activates the CSS half of the identity.
|
|
44
|
+
* No-ops outside the browser so SSR builds stay safe.
|
|
45
|
+
*/
|
|
46
|
+
declare function applyDesignIdentityClass(identity: MTDesignIdentity): void;
|
|
47
|
+
|
|
48
|
+
interface MTThemeOptions {
|
|
49
|
+
primaryColor?: string;
|
|
50
|
+
textColor?: string;
|
|
51
|
+
backgroundColor?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Which visual identity to render.
|
|
54
|
+
*
|
|
55
|
+
* - `'classic'` (default) — the shipped MT look. Unchanged.
|
|
56
|
+
* - `'experimental'` — the Masterteam Design System identity (IBM Plex Sans
|
|
57
|
+
* Arabic, DS blue, 4px control radius, DS elevation and focus ring).
|
|
58
|
+
* Opt-in while the DS is being evaluated; see
|
|
59
|
+
* `.claude/skills/mt-design-identity/SKILL.md`.
|
|
60
|
+
*/
|
|
61
|
+
designIdentity?: MTDesignIdentity;
|
|
62
|
+
}
|
|
63
|
+
declare function getMTDesignIdentity(): MTDesignIdentity;
|
|
64
|
+
declare function changePrimaryColor(color: string): void;
|
|
65
|
+
declare function changeBackgroundColor(color?: string): void;
|
|
66
|
+
declare function changeTextColor(color: string): void;
|
|
67
|
+
/**
|
|
68
|
+
* Switches identity at runtime — for the showcase toggle and for side-by-side
|
|
69
|
+
* review. Replaces the active preset outright (rather than merging into it, as
|
|
70
|
+
* `updatePreset` would) so switching back to classic is lossless.
|
|
71
|
+
*/
|
|
72
|
+
declare function setMTDesignIdentity(identity: MTDesignIdentity, themeOptions?: Omit<MTThemeOptions, 'designIdentity'>): void;
|
|
73
|
+
declare function provideMTComponents(themeOptions?: MTThemeOptions): EnvironmentProviders;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Masterteam Design System — raw palettes and scales.
|
|
77
|
+
*
|
|
78
|
+
* Transcribed from the DS Storybook foundations (Figma
|
|
79
|
+
* `WTmRAkJVvw0IvZMA7wBdTC`). These are primitives: they name colours, not
|
|
80
|
+
* roles. The mapping from primitive to role lives in `ds-identity.preset.ts`.
|
|
81
|
+
*
|
|
82
|
+
* Adding a value here without a corresponding Figma variable is how a design
|
|
83
|
+
* system drifts — extend the Figma file first, then mirror it.
|
|
84
|
+
*/
|
|
85
|
+
interface DSColorScale {
|
|
86
|
+
readonly 25: string;
|
|
87
|
+
readonly 50: string;
|
|
88
|
+
readonly 100: string;
|
|
89
|
+
readonly 200: string;
|
|
90
|
+
readonly 300: string;
|
|
91
|
+
readonly 400: string;
|
|
92
|
+
readonly 500: string;
|
|
93
|
+
readonly 600: string;
|
|
94
|
+
readonly 700: string;
|
|
95
|
+
readonly 800: string;
|
|
96
|
+
readonly 900: string;
|
|
97
|
+
readonly 950: string;
|
|
98
|
+
}
|
|
99
|
+
/** Primary blue. 800 is the primary button background. */
|
|
100
|
+
declare const DS_BLUE: DSColorScale;
|
|
101
|
+
/** Secondary indigo — accents, tags, selected states. */
|
|
102
|
+
declare const DS_INDIGO: DSColorScale;
|
|
103
|
+
declare const DS_SUCCESS: DSColorScale;
|
|
104
|
+
declare const DS_WARNING: DSColorScale;
|
|
105
|
+
declare const DS_ERROR: DSColorScale;
|
|
106
|
+
/** Neutral scale. Note it stops at 900 in Figma; 0/25/950 are extrapolated
|
|
107
|
+
* because PrimeUIX requires a full 0–950 surface ramp. */
|
|
108
|
+
declare const DS_GRAY: {
|
|
109
|
+
readonly 0: "#FFFFFF";
|
|
110
|
+
readonly 25: "#FCFCFD";
|
|
111
|
+
readonly 50: "#F9FAFB";
|
|
112
|
+
readonly 100: "#F3F4F6";
|
|
113
|
+
readonly 200: "#E5E7EB";
|
|
114
|
+
readonly 300: "#D1D5DB";
|
|
115
|
+
readonly 400: "#9CA3AF";
|
|
116
|
+
readonly 500: "#6B7280";
|
|
117
|
+
readonly 600: "#4B5563";
|
|
118
|
+
readonly 700: "#374151";
|
|
119
|
+
readonly 800: "#1F2937";
|
|
120
|
+
readonly 900: "#111827";
|
|
121
|
+
readonly 950: "#0A0F1C";
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Semantic values that are not part of a ramp. Each one is a named Figma
|
|
125
|
+
* variable in its own right.
|
|
126
|
+
*/
|
|
127
|
+
declare const DS_SEMANTIC: {
|
|
128
|
+
/** Default body / label text. Deliberately navy-black, not gray-900. */
|
|
129
|
+
readonly textStrong: "#000B36";
|
|
130
|
+
readonly textSecondary: "#3C5073";
|
|
131
|
+
readonly textPlaceholder: "#B6BDCA";
|
|
132
|
+
readonly textHelper: "#384250";
|
|
133
|
+
readonly surface: "#FFFFFF";
|
|
134
|
+
readonly border: "#E5E7EB";
|
|
135
|
+
/** Disabled is a colour swap, never an opacity fade. */
|
|
136
|
+
readonly disabledBg: "#D2D6DB";
|
|
137
|
+
readonly disabledText: "#6C7C96";
|
|
138
|
+
readonly inputBorder: "#D2D6DB";
|
|
139
|
+
readonly inputBorderHover: "#1F2A37";
|
|
140
|
+
readonly inputBorderReadonly: "#CED3DC";
|
|
141
|
+
readonly inputBgPressed: "#F3F4F6";
|
|
142
|
+
/** Destructive red. Distinct from the error ramp — this is the button colour. */
|
|
143
|
+
readonly danger: "#A30000";
|
|
144
|
+
readonly dangerSecondaryBg: "#FCDAD7";
|
|
145
|
+
readonly dangerSecondaryBgHover: "#F8BAB5";
|
|
146
|
+
readonly dangerSecondaryBgPressed: "#F3908A";
|
|
147
|
+
/** Tinted secondary button, expressed as primary-at-opacity. */
|
|
148
|
+
readonly secondaryBg: "rgba(24, 73, 169, 0.2)";
|
|
149
|
+
readonly secondaryBgHover: "rgba(24, 73, 169, 0.1)";
|
|
150
|
+
readonly focusRing: "#1849A9";
|
|
151
|
+
readonly focusOutline: "#FFFFFF";
|
|
152
|
+
readonly tooltipBg: "#1A2236";
|
|
153
|
+
};
|
|
154
|
+
/** Figma effect styles. Never invent a shadow outside this set. */
|
|
155
|
+
declare const DS_SHADOW: {
|
|
156
|
+
readonly xs: "0 1px 2px 0 rgba(16, 24, 40, 0.05)";
|
|
157
|
+
readonly sm: "0 1px 3px 0 rgba(16, 24, 40, 0.10), 0 1px 2px 0 rgba(16, 24, 40, 0.06)";
|
|
158
|
+
readonly md: "0 4px 8px -2px rgba(16, 24, 40, 0.10), 0 2px 4px -2px rgba(16, 24, 40, 0.06)";
|
|
159
|
+
readonly lg: "0 12px 16px -6px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03)";
|
|
160
|
+
readonly xl: "0 20px 24px -4px rgba(16, 24, 40, 0.08), 0 8px 8px -4px rgba(16, 24, 40, 0.03)";
|
|
161
|
+
readonly '2xl': "0 24px 48px -12px rgba(16, 24, 40, 0.18)";
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Radius scale. The DS names differ from the PrimeUIX names by one step —
|
|
165
|
+
* DS `radius-sm` (4px, the default for buttons and inputs) lands on PrimeUIX
|
|
166
|
+
* `md`, because that is the key PrimeNG components reference. Mapping them
|
|
167
|
+
* here keeps the shift in one place instead of spreading it across overrides.
|
|
168
|
+
*/
|
|
169
|
+
declare const DS_RADIUS: {
|
|
170
|
+
readonly none: "0";
|
|
171
|
+
/** DS radius-xs — code badges, small tags */
|
|
172
|
+
readonly xs: "2px";
|
|
173
|
+
/** DS radius-xs..sm boundary */
|
|
174
|
+
readonly sm: "4px";
|
|
175
|
+
/** DS radius-sm — buttons, inputs, dropdowns (PrimeNG's default reference) */
|
|
176
|
+
readonly md: "4px";
|
|
177
|
+
/** DS radius-md — cards, tooltips, popovers */
|
|
178
|
+
readonly lg: "8px";
|
|
179
|
+
/** DS radius-lg — modals, drawers */
|
|
180
|
+
readonly xl: "16px";
|
|
181
|
+
};
|
|
182
|
+
/** Control heights, in px, from the Figma button spacing frame. */
|
|
183
|
+
declare const DS_CONTROL_HEIGHT: {
|
|
184
|
+
readonly sm: 24;
|
|
185
|
+
readonly md: 32;
|
|
186
|
+
readonly lg: 40;
|
|
187
|
+
};
|
|
188
|
+
declare const DS_FONT_FAMILY = "'IBM Plex Sans Arabic', system-ui, 'Segoe UI', sans-serif";
|
|
189
|
+
/** Ordered chart series. Six is the hard maximum. */
|
|
190
|
+
declare const DS_CHART_SERIES: readonly ["#1849A9", "#175CD3", "#2E90FA", "#53B1FD", "#B2DDFF", "#D1E9FF"];
|
|
191
|
+
|
|
192
|
+
declare function provideMTMessages(): typeof MessageService;
|
|
193
|
+
|
|
194
|
+
declare function provideMTConfirmation(): typeof ConfirmationService;
|
|
195
|
+
|
|
196
|
+
interface MTDateFormats {
|
|
197
|
+
date: string;
|
|
198
|
+
dateTime: string;
|
|
199
|
+
/** Clock-time only, used by `Time` properties. */
|
|
200
|
+
time: string;
|
|
201
|
+
timezone?: string;
|
|
202
|
+
}
|
|
203
|
+
declare const DEFAULT_MT_DATE_FORMATS: MTDateFormats;
|
|
204
|
+
declare const MT_DATE_FORMATS: InjectionToken<MTDateFormats>;
|
|
205
|
+
/**
|
|
206
|
+
* Converts .NET custom date/time format tokens to Angular `formatDate` (CLDR)
|
|
207
|
+
* tokens. System-setting formats are authored in .NET convention (e.g. `hh:mm tt`),
|
|
208
|
+
* but `formatDate` uses CLDR tokens where the AM/PM designator is `a`, not `tt`.
|
|
209
|
+
* Every other token in the supported set (d, M, y, H, h, m, s) is identical between
|
|
210
|
+
* the two, so only `tt`/`t` → `a` needs translating. Single-quoted literal sections
|
|
211
|
+
* (e.g. `'at'`) are left untouched.
|
|
212
|
+
*/
|
|
213
|
+
declare function toAngularDateFormat(format: string): string;
|
|
214
|
+
declare function provideMTDateFormats(formats: Partial<MTDateFormats>): EnvironmentProviders;
|
|
215
|
+
|
|
216
|
+
type FieldType = 'text' | 'textarea' | 'select' | 'date' | 'number' | 'slider' | 'multi-select' | 'pick-list' | 'checkbox' | 'icon-field' | 'color-picker' | 'location' | 'spacer' | 'entity-preview' | 'lookup-matrix' | 'lookup-module-check-list' | string;
|
|
217
|
+
type ValidatorType = 'required' | 'email' | 'minLength' | 'maxLength' | 'min' | 'max' | 'pattern' | 'custom';
|
|
218
|
+
type FieldRelationAction = 'enable' | 'disable' | 'show' | 'hide';
|
|
219
|
+
interface FieldRelationConfig {
|
|
220
|
+
key: string;
|
|
221
|
+
value: any;
|
|
222
|
+
action: FieldRelationAction;
|
|
223
|
+
}
|
|
224
|
+
type FormulaConditionMode = 'auto' | 'show' | 'hide' | 'enable' | 'disable';
|
|
225
|
+
interface FormulaConditionConfig {
|
|
226
|
+
formulaTokens: string;
|
|
227
|
+
formulaText?: string;
|
|
228
|
+
mode?: FormulaConditionMode;
|
|
229
|
+
}
|
|
230
|
+
type FormulaValidationSeverity = 'error' | 'warning';
|
|
231
|
+
interface FormulaValidationRuleConfig {
|
|
232
|
+
id: string | number;
|
|
233
|
+
formulaTokens: string;
|
|
234
|
+
formulaText?: string;
|
|
235
|
+
message: string;
|
|
236
|
+
severity: FormulaValidationSeverity;
|
|
237
|
+
enabled: boolean;
|
|
238
|
+
}
|
|
239
|
+
type FormulaRuntimeMessageCode = 'FORMULA_PARSE_ERROR' | 'FORMULA_EVALUATION_ERROR' | 'FORMULA_FALSE';
|
|
240
|
+
interface FormulaRuntimeMessage {
|
|
241
|
+
code: FormulaRuntimeMessageCode;
|
|
242
|
+
severity: FormulaValidationSeverity;
|
|
243
|
+
message: string;
|
|
244
|
+
formulaText?: string;
|
|
245
|
+
ruleId?: string | number;
|
|
246
|
+
fieldKey?: string;
|
|
247
|
+
/**
|
|
248
|
+
* Every field the failing rule reads, when the rule spans more than one
|
|
249
|
+
* (`endDate > startDate` names both). `fieldKey` stays the first of them so
|
|
250
|
+
* existing consumers are unaffected; renderers that mark fields should read
|
|
251
|
+
* this, because flagging only half of a cross-field rule tells the user to
|
|
252
|
+
* look in the wrong place (finding C-02).
|
|
253
|
+
*/
|
|
254
|
+
fieldKeys?: string[];
|
|
255
|
+
}
|
|
256
|
+
interface ResponsiveColSpan {
|
|
257
|
+
xs?: number;
|
|
258
|
+
sm?: number;
|
|
259
|
+
md?: number;
|
|
260
|
+
lg?: number;
|
|
261
|
+
xl?: number;
|
|
262
|
+
}
|
|
263
|
+
declare class ValidatorConfig {
|
|
264
|
+
type: ValidatorType;
|
|
265
|
+
value?: any;
|
|
266
|
+
message?: string;
|
|
267
|
+
customValidator?: (value: any, control?: AbstractControl) => boolean | Promise<boolean>;
|
|
268
|
+
constructor(config: {
|
|
269
|
+
type: ValidatorType;
|
|
270
|
+
value?: any;
|
|
271
|
+
message?: string;
|
|
272
|
+
customValidator?: (value: any, control?: AbstractControl) => boolean | Promise<boolean>;
|
|
273
|
+
});
|
|
274
|
+
static required(message?: string): ValidatorConfig;
|
|
275
|
+
static email(message?: string): ValidatorConfig;
|
|
276
|
+
static minLength(length: number, message?: string): ValidatorConfig;
|
|
277
|
+
static maxLength(length: number, message?: string): ValidatorConfig;
|
|
278
|
+
static min(value: number, message?: string): ValidatorConfig;
|
|
279
|
+
static max(value: number, message?: string): ValidatorConfig;
|
|
280
|
+
static pattern(pattern: string, message?: string): ValidatorConfig;
|
|
281
|
+
static custom(validator: (value: any, control?: AbstractControl) => boolean | Promise<boolean>, message?: string): ValidatorConfig;
|
|
282
|
+
}
|
|
283
|
+
type BaseFieldConstructorConfig = ConstructorParameters<typeof BaseFieldConfig>[0];
|
|
284
|
+
declare abstract class BaseFieldConfig {
|
|
285
|
+
key: string;
|
|
286
|
+
label: string;
|
|
287
|
+
type: FieldType;
|
|
288
|
+
required: boolean;
|
|
289
|
+
disabled: boolean;
|
|
290
|
+
readonly: boolean;
|
|
291
|
+
hidden: boolean;
|
|
292
|
+
placeholder: string;
|
|
293
|
+
hint: string;
|
|
294
|
+
cssClass: string;
|
|
295
|
+
validators: ValidatorConfig[];
|
|
296
|
+
order: number;
|
|
297
|
+
colSpan: number | ResponsiveColSpan;
|
|
298
|
+
defaultValue?: any;
|
|
299
|
+
customTemplate: string;
|
|
300
|
+
relations: FieldRelationConfig[];
|
|
301
|
+
formulaCondition?: FormulaConditionConfig;
|
|
302
|
+
constructor(config: {
|
|
303
|
+
key?: string;
|
|
304
|
+
label?: string;
|
|
305
|
+
type: FieldType;
|
|
306
|
+
required?: boolean;
|
|
307
|
+
disabled?: boolean;
|
|
308
|
+
readonly?: boolean;
|
|
309
|
+
hidden?: boolean;
|
|
310
|
+
placeholder?: string;
|
|
311
|
+
hint?: string;
|
|
312
|
+
cssClass?: string;
|
|
313
|
+
validators?: ValidatorConfig[];
|
|
314
|
+
order?: number;
|
|
315
|
+
relations?: FieldRelationConfig[];
|
|
316
|
+
formulaCondition?: FormulaConditionConfig;
|
|
317
|
+
colSpan?: number | ResponsiveColSpan;
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
declare class TextFieldConfig extends BaseFieldConfig {
|
|
321
|
+
inputType: string;
|
|
322
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
323
|
+
inputType?: string;
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
declare class TextareaFieldConfig extends BaseFieldConfig {
|
|
327
|
+
rows: number;
|
|
328
|
+
autoResize: boolean;
|
|
329
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
330
|
+
rows?: number;
|
|
331
|
+
autoResize?: boolean;
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
declare class SelectFieldConfig extends BaseFieldConfig {
|
|
335
|
+
options: any[];
|
|
336
|
+
optionLabel: string;
|
|
337
|
+
optionValue: string;
|
|
338
|
+
group: boolean;
|
|
339
|
+
optionGroupLabel: string;
|
|
340
|
+
optionGroupChildren: string;
|
|
341
|
+
multiple: boolean;
|
|
342
|
+
filter: boolean;
|
|
343
|
+
filterBy: string;
|
|
344
|
+
filterPlaceholder: string;
|
|
345
|
+
showClear: boolean;
|
|
346
|
+
emptyMessage: string;
|
|
347
|
+
size: string;
|
|
348
|
+
hasPlaceholderPrefix: boolean;
|
|
349
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
350
|
+
options: any[];
|
|
351
|
+
optionLabel?: string;
|
|
352
|
+
optionValue?: string;
|
|
353
|
+
group?: boolean;
|
|
354
|
+
optionGroupLabel?: string;
|
|
355
|
+
optionGroupChildren?: string;
|
|
356
|
+
multiple?: boolean;
|
|
357
|
+
filter?: boolean;
|
|
358
|
+
filterBy?: string;
|
|
359
|
+
filterPlaceholder?: string;
|
|
360
|
+
showClear?: boolean;
|
|
361
|
+
emptyMessage?: string;
|
|
362
|
+
size?: string;
|
|
363
|
+
hasPlaceholderPrefix?: boolean;
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
declare class RadioButtonFieldConfig extends BaseFieldConfig {
|
|
367
|
+
options: any[];
|
|
368
|
+
optionLabel: string;
|
|
369
|
+
optionValue: string;
|
|
370
|
+
orientation: 'vertical' | 'horizontal';
|
|
371
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
372
|
+
options: any[];
|
|
373
|
+
optionLabel?: string;
|
|
374
|
+
optionValue?: string;
|
|
375
|
+
orientation?: 'vertical' | 'horizontal';
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
declare class RadioCardsFieldConfig extends BaseFieldConfig {
|
|
379
|
+
options: any[];
|
|
380
|
+
optionLabel: string;
|
|
381
|
+
optionValue: string;
|
|
382
|
+
size: string;
|
|
383
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
384
|
+
options: any[];
|
|
385
|
+
optionLabel?: string;
|
|
386
|
+
optionValue?: string;
|
|
387
|
+
size?: string;
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
declare class UserSearchFieldConfig extends BaseFieldConfig {
|
|
391
|
+
optionLabel: string;
|
|
392
|
+
optionValue: string;
|
|
393
|
+
size: string;
|
|
394
|
+
apiUrl: string;
|
|
395
|
+
context: HttpContext | undefined;
|
|
396
|
+
isMultiple: boolean;
|
|
397
|
+
hideUnlinkedHint: boolean;
|
|
398
|
+
dataKey: string;
|
|
399
|
+
paramName: string;
|
|
400
|
+
minLength: number;
|
|
401
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
402
|
+
optionLabel?: string;
|
|
403
|
+
optionValue?: string;
|
|
404
|
+
size?: string;
|
|
405
|
+
hint?: string;
|
|
406
|
+
apiUrl?: string;
|
|
407
|
+
context?: HttpContext | undefined;
|
|
408
|
+
placeholder?: string;
|
|
409
|
+
isMultiple?: boolean;
|
|
410
|
+
hideUnlinkedHint?: boolean;
|
|
411
|
+
dataKey?: string;
|
|
412
|
+
paramName?: string;
|
|
413
|
+
minLength?: number;
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
declare class LocationFieldConfig extends BaseFieldConfig {
|
|
417
|
+
configuration: Record<string, unknown> | string | null;
|
|
418
|
+
searchUrl?: string;
|
|
419
|
+
minLength: number;
|
|
420
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
421
|
+
configuration?: Record<string, unknown> | string | null;
|
|
422
|
+
searchUrl?: string;
|
|
423
|
+
minLength?: number;
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
declare class UploadFileFieldConfig extends BaseFieldConfig {
|
|
427
|
+
size: string;
|
|
428
|
+
endPoint?: string;
|
|
429
|
+
userImgClass?: string;
|
|
430
|
+
shape?: string;
|
|
431
|
+
multiple?: boolean;
|
|
432
|
+
accept?: string | string[];
|
|
433
|
+
fileSizeLimit?: number | undefined;
|
|
434
|
+
context: HttpContext | undefined;
|
|
435
|
+
title: string;
|
|
436
|
+
description: string;
|
|
437
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
438
|
+
size?: string;
|
|
439
|
+
endPoint?: string;
|
|
440
|
+
userImgClass?: string;
|
|
441
|
+
shape?: string;
|
|
442
|
+
multiple?: boolean;
|
|
443
|
+
accept?: string | string[];
|
|
444
|
+
fileSizeLimit?: number | undefined;
|
|
445
|
+
context?: HttpContext | undefined;
|
|
446
|
+
title?: string;
|
|
447
|
+
description?: string;
|
|
448
|
+
});
|
|
449
|
+
}
|
|
450
|
+
declare class DateFieldConfig extends BaseFieldConfig {
|
|
451
|
+
dateFormat: string;
|
|
452
|
+
showTime: boolean;
|
|
453
|
+
/** Edits the clock time only — no calendar. The value stays a full `Date`. */
|
|
454
|
+
timeOnly: boolean;
|
|
455
|
+
showSeconds: boolean;
|
|
456
|
+
hourFormat: '12' | '24';
|
|
457
|
+
minDate?: Date;
|
|
458
|
+
maxDate?: Date;
|
|
459
|
+
disabledDates: Date[];
|
|
460
|
+
disabledDays: number[];
|
|
461
|
+
yearRange: string;
|
|
462
|
+
showIcon: boolean;
|
|
463
|
+
icon: string;
|
|
464
|
+
showButtonBar: boolean;
|
|
465
|
+
showClear: boolean;
|
|
466
|
+
inline: boolean;
|
|
467
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
468
|
+
dateFormat?: string;
|
|
469
|
+
showTime?: boolean;
|
|
470
|
+
timeOnly?: boolean;
|
|
471
|
+
showSeconds?: boolean;
|
|
472
|
+
hourFormat?: '12' | '24';
|
|
473
|
+
minDate?: Date;
|
|
474
|
+
maxDate?: Date;
|
|
475
|
+
disabledDates?: Date[];
|
|
476
|
+
disabledDays?: number[];
|
|
477
|
+
yearRange?: string;
|
|
478
|
+
showIcon?: boolean;
|
|
479
|
+
icon?: string;
|
|
480
|
+
showButtonBar?: boolean;
|
|
481
|
+
showClear?: boolean;
|
|
482
|
+
inline?: boolean;
|
|
483
|
+
});
|
|
484
|
+
}
|
|
485
|
+
declare class NumberFieldConfig extends BaseFieldConfig {
|
|
486
|
+
min?: number;
|
|
487
|
+
max?: number;
|
|
488
|
+
step?: number;
|
|
489
|
+
prefix?: string;
|
|
490
|
+
suffix?: string;
|
|
491
|
+
currency?: string;
|
|
492
|
+
locale?: string;
|
|
493
|
+
minFractionDigits?: number;
|
|
494
|
+
maxFractionDigits?: number;
|
|
495
|
+
useGrouping?: boolean;
|
|
496
|
+
showButtons?: boolean;
|
|
497
|
+
buttonLayout?: 'stacked' | 'horizontal';
|
|
498
|
+
incrementButtonClass?: string;
|
|
499
|
+
decrementButtonClass?: string;
|
|
500
|
+
incrementButtonIcon?: string;
|
|
501
|
+
decrementButtonIcon?: string;
|
|
502
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
503
|
+
min?: number;
|
|
504
|
+
max?: number;
|
|
505
|
+
step?: number;
|
|
506
|
+
prefix?: string;
|
|
507
|
+
suffix?: string;
|
|
508
|
+
currency?: string;
|
|
509
|
+
locale?: string;
|
|
510
|
+
minFractionDigits?: number;
|
|
511
|
+
maxFractionDigits?: number;
|
|
512
|
+
useGrouping?: boolean;
|
|
513
|
+
showButtons?: boolean;
|
|
514
|
+
buttonLayout?: 'stacked' | 'horizontal';
|
|
515
|
+
incrementButtonClass?: string;
|
|
516
|
+
decrementButtonClass?: string;
|
|
517
|
+
incrementButtonIcon?: string;
|
|
518
|
+
decrementButtonIcon?: string;
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
declare class SliderFieldConfig extends BaseFieldConfig {
|
|
522
|
+
min?: number;
|
|
523
|
+
max?: number;
|
|
524
|
+
step?: number;
|
|
525
|
+
orientation?: 'horizontal' | 'vertical';
|
|
526
|
+
range?: boolean;
|
|
527
|
+
animate?: boolean;
|
|
528
|
+
unit?: string;
|
|
529
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
530
|
+
min?: number;
|
|
531
|
+
max?: number;
|
|
532
|
+
step?: number;
|
|
533
|
+
orientation?: 'horizontal' | 'vertical';
|
|
534
|
+
range?: boolean;
|
|
535
|
+
animate?: boolean;
|
|
536
|
+
unit?: string;
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
declare class MultiSelectFieldConfig extends BaseFieldConfig {
|
|
540
|
+
options: any[];
|
|
541
|
+
optionLabel: string;
|
|
542
|
+
optionValue: string;
|
|
543
|
+
filter: boolean;
|
|
544
|
+
filterBy: string;
|
|
545
|
+
filterPlaceholder: string;
|
|
546
|
+
showClear: boolean;
|
|
547
|
+
emptyMessage: string;
|
|
548
|
+
display?: 'comma' | 'chip';
|
|
549
|
+
maxSelectedLabels?: number;
|
|
550
|
+
selectedItemsLabel?: string;
|
|
551
|
+
showToggleAll?: boolean;
|
|
552
|
+
resetFilterOnHide?: boolean;
|
|
553
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
554
|
+
options: any[];
|
|
555
|
+
optionLabel?: string;
|
|
556
|
+
optionValue?: string;
|
|
557
|
+
filter?: boolean;
|
|
558
|
+
filterBy?: string;
|
|
559
|
+
filterPlaceholder?: string;
|
|
560
|
+
showClear?: boolean;
|
|
561
|
+
emptyMessage?: string;
|
|
562
|
+
display?: 'comma' | 'chip';
|
|
563
|
+
maxSelectedLabels?: number;
|
|
564
|
+
selectedItemsLabel?: string;
|
|
565
|
+
showToggleAll?: boolean;
|
|
566
|
+
resetFilterOnHide?: boolean;
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
declare class PickListFieldConfig extends BaseFieldConfig {
|
|
570
|
+
options: any[];
|
|
571
|
+
optionLabel: string;
|
|
572
|
+
optionValue: string;
|
|
573
|
+
sourceHeader: string;
|
|
574
|
+
targetHeader: string;
|
|
575
|
+
showSourceControls: boolean;
|
|
576
|
+
showTargetControls: boolean;
|
|
577
|
+
showSourceFilter: boolean;
|
|
578
|
+
showTargetFilter: boolean;
|
|
579
|
+
filterBy: string;
|
|
580
|
+
dataKey?: string;
|
|
581
|
+
dragdrop: boolean;
|
|
582
|
+
responsive: boolean;
|
|
583
|
+
breakpoint: string;
|
|
584
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
585
|
+
options: any[];
|
|
586
|
+
optionLabel?: string;
|
|
587
|
+
optionValue?: string;
|
|
588
|
+
sourceHeader?: string;
|
|
589
|
+
targetHeader?: string;
|
|
590
|
+
showSourceControls?: boolean;
|
|
591
|
+
showTargetControls?: boolean;
|
|
592
|
+
showSourceFilter?: boolean;
|
|
593
|
+
showTargetFilter?: boolean;
|
|
594
|
+
filterBy?: string;
|
|
595
|
+
dataKey?: string;
|
|
596
|
+
dragdrop?: boolean;
|
|
597
|
+
responsive?: boolean;
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
declare class CheckboxFieldConfig extends BaseFieldConfig {
|
|
601
|
+
binary?: boolean;
|
|
602
|
+
trueValue?: any;
|
|
603
|
+
falseValue?: any;
|
|
604
|
+
checkboxIcon?: string;
|
|
605
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
606
|
+
binary?: boolean;
|
|
607
|
+
trueValue?: any;
|
|
608
|
+
falseValue?: any;
|
|
609
|
+
checkboxIcon?: string;
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
declare class ToggleFieldConfig extends BaseFieldConfig {
|
|
613
|
+
toggleShape?: 'toggle' | 'card';
|
|
614
|
+
icon?: string;
|
|
615
|
+
descriptionCard?: string;
|
|
616
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
617
|
+
toggleShape?: 'toggle' | 'card';
|
|
618
|
+
icon?: string;
|
|
619
|
+
descriptionCard?: string;
|
|
620
|
+
});
|
|
621
|
+
}
|
|
622
|
+
declare class EditorFieldConfig extends BaseFieldConfig {
|
|
623
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'>);
|
|
624
|
+
}
|
|
625
|
+
declare class ColorPickerFieldConfig extends BaseFieldConfig {
|
|
626
|
+
format?: 'hex' | 'rgb' | 'hsb';
|
|
627
|
+
inline?: boolean;
|
|
628
|
+
appendTo?: any;
|
|
629
|
+
variant?: 'outlined' | 'filled';
|
|
630
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
631
|
+
format?: 'hex' | 'rgb' | 'hsb';
|
|
632
|
+
inline?: boolean;
|
|
633
|
+
appendTo?: any;
|
|
634
|
+
variant?: 'outlined' | 'filled';
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
declare class IconFieldConfig extends BaseFieldConfig {
|
|
638
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {});
|
|
639
|
+
}
|
|
640
|
+
declare class SpacerFieldConfig extends BaseFieldConfig {
|
|
641
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type' | 'key' | 'label'> & {
|
|
642
|
+
key?: string;
|
|
643
|
+
label?: string;
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
interface LookupOptionItemConfig {
|
|
647
|
+
id?: number | string;
|
|
648
|
+
key?: string;
|
|
649
|
+
label: string;
|
|
650
|
+
value: any;
|
|
651
|
+
color?: string | null;
|
|
652
|
+
description?: string;
|
|
653
|
+
}
|
|
654
|
+
interface LookupMatrixCellConfig {
|
|
655
|
+
row: number;
|
|
656
|
+
column: number;
|
|
657
|
+
xLookupItemId: number | string;
|
|
658
|
+
yLookupItemId?: number | string;
|
|
659
|
+
zLookupItemId?: number | string | null;
|
|
660
|
+
label: string;
|
|
661
|
+
color?: string | null;
|
|
662
|
+
}
|
|
663
|
+
declare class LookupMatrixFieldConfig extends BaseFieldConfig {
|
|
664
|
+
xFieldKey: string;
|
|
665
|
+
yFieldKey?: string;
|
|
666
|
+
xAxisLabel: string;
|
|
667
|
+
yAxisLabel?: string;
|
|
668
|
+
xOptions: LookupOptionItemConfig[];
|
|
669
|
+
yOptions?: LookupOptionItemConfig[];
|
|
670
|
+
cells: LookupMatrixCellConfig[];
|
|
671
|
+
emptyMessage: string;
|
|
672
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
673
|
+
xFieldKey: string;
|
|
674
|
+
yFieldKey?: string;
|
|
675
|
+
xAxisLabel?: string;
|
|
676
|
+
yAxisLabel?: string;
|
|
677
|
+
xOptions?: LookupOptionItemConfig[];
|
|
678
|
+
yOptions?: LookupOptionItemConfig[];
|
|
679
|
+
cells?: LookupMatrixCellConfig[];
|
|
680
|
+
emptyMessage?: string;
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
declare class SchemaConnectionFieldConfig extends BaseFieldConfig {
|
|
684
|
+
configuration: any;
|
|
685
|
+
context: HttpContext | undefined;
|
|
686
|
+
filter: boolean;
|
|
687
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
688
|
+
configuration: any;
|
|
689
|
+
context?: HttpContext | undefined;
|
|
690
|
+
filter?: boolean;
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
interface SchedulePredecessorFieldRuntimeContext {
|
|
694
|
+
levelId?: number | string | null;
|
|
695
|
+
levelDataId?: number | string | null;
|
|
696
|
+
moduleDataId?: number | string | null;
|
|
697
|
+
}
|
|
698
|
+
declare class SchedulePredecessorFieldConfig extends BaseFieldConfig {
|
|
699
|
+
configuration: any;
|
|
700
|
+
runtimeContext: SchedulePredecessorFieldRuntimeContext | null;
|
|
701
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
702
|
+
configuration?: any;
|
|
703
|
+
runtimeContext?: SchedulePredecessorFieldRuntimeContext | null;
|
|
704
|
+
});
|
|
705
|
+
}
|
|
706
|
+
interface EntityListFieldRuntimeContext {
|
|
707
|
+
/**
|
|
708
|
+
* Route id for the read endpoint.
|
|
709
|
+
* - Level-scoped EntityList properties → level-data id
|
|
710
|
+
* - Module-scoped EntityList properties → source module-data id
|
|
711
|
+
*/
|
|
712
|
+
sourceId?: number | string | null;
|
|
713
|
+
/** Current level id (used to build the fetch/query contextKey). */
|
|
714
|
+
levelId?: number | string | null;
|
|
715
|
+
levelDataId?: number | string | null;
|
|
716
|
+
}
|
|
717
|
+
declare class EntityListFieldConfig extends BaseFieldConfig {
|
|
718
|
+
/** EntityList property id (used in the read endpoint route). */
|
|
719
|
+
propertyId: number | null;
|
|
720
|
+
/** Property configuration (sourceType, moduleId, access, snapshotMode, fields). */
|
|
721
|
+
configuration: any;
|
|
722
|
+
/** Runtime ids needed to call the read endpoint. */
|
|
723
|
+
runtimeContext: EntityListFieldRuntimeContext | null;
|
|
724
|
+
context: HttpContext | undefined;
|
|
725
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
726
|
+
propertyId?: number | null;
|
|
727
|
+
configuration?: any;
|
|
728
|
+
runtimeContext?: EntityListFieldRuntimeContext | null;
|
|
729
|
+
context?: HttpContext | undefined;
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
interface ScheduleItemSelectorFieldRuntimeContext {
|
|
733
|
+
/** Current level id — used to build the options `contextKey` (`Level:{levelId}`). */
|
|
734
|
+
levelId?: number | string | null;
|
|
735
|
+
/**
|
|
736
|
+
* Module schema id of the form that owns the selector property — the
|
|
737
|
+
* `Module:{moduleId}` segment of the options `contextKey`. For Deliverable
|
|
738
|
+
* Acceptance this is the Deliverable Acceptance module schema id, NOT the
|
|
739
|
+
* target schedule module id.
|
|
740
|
+
*/
|
|
741
|
+
moduleId?: number | string | null;
|
|
742
|
+
/** Current workspace instance id (`levelDataId` query param). */
|
|
743
|
+
levelDataId?: number | string | null;
|
|
744
|
+
/**
|
|
745
|
+
* Record being edited (`ownerRecordId` query param). Lets the backend keep
|
|
746
|
+
* the current record's existing selections valid in edit mode.
|
|
747
|
+
*/
|
|
748
|
+
ownerRecordId?: number | string | null;
|
|
749
|
+
}
|
|
750
|
+
declare class ScheduleItemSelectorFieldConfig extends BaseFieldConfig {
|
|
751
|
+
/** Property key — used in the options endpoint route `forms/options/{propertyKey}`. */
|
|
752
|
+
propertyKey: string;
|
|
753
|
+
/** `Single` renders a single-select picker, `Multi` a multi-select picker. */
|
|
754
|
+
selectionMode: 'Single' | 'Multi';
|
|
755
|
+
/** Raw property configuration (selectionMode, scheduleModuleKey, etc.). */
|
|
756
|
+
configuration: any;
|
|
757
|
+
/** Runtime ids needed to call the options endpoint. */
|
|
758
|
+
runtimeContext: ScheduleItemSelectorFieldRuntimeContext | null;
|
|
759
|
+
context: HttpContext | undefined;
|
|
760
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
761
|
+
propertyKey?: string;
|
|
762
|
+
selectionMode?: 'Single' | 'Multi';
|
|
763
|
+
configuration?: any;
|
|
764
|
+
runtimeContext?: ScheduleItemSelectorFieldRuntimeContext | null;
|
|
765
|
+
context?: HttpContext | undefined;
|
|
766
|
+
});
|
|
767
|
+
}
|
|
768
|
+
/** One configured module property the checklist captures for each entry. */
|
|
769
|
+
interface LookupCheckListPropertyConfig {
|
|
770
|
+
/** Property key persisted in `props[].key`. */
|
|
771
|
+
key: string;
|
|
772
|
+
/** Human-readable label shown next to the input. */
|
|
773
|
+
label: string;
|
|
774
|
+
}
|
|
775
|
+
interface LookupModuleCheckListFieldRuntimeContext {
|
|
776
|
+
/** Current level id — passed to `process-form-load` for each section form. */
|
|
777
|
+
levelId?: number | string | null;
|
|
778
|
+
/** Current workspace instance id — passed to `process-form-load`. */
|
|
779
|
+
levelDataId?: number | string | null;
|
|
780
|
+
}
|
|
781
|
+
declare class LookupModuleCheckListFieldConfig extends BaseFieldConfig {
|
|
782
|
+
/** Lookup items rendered as collapsible checklist sections. */
|
|
783
|
+
lookupOptions: LookupOptionItemConfig[];
|
|
784
|
+
/** Full lookup catalog passed through to the rich nested form renderer. */
|
|
785
|
+
lookups: unknown[];
|
|
786
|
+
/** Module property keys/labels captured per checklist entry. */
|
|
787
|
+
propertyFields: LookupCheckListPropertyConfig[];
|
|
788
|
+
/** Scope module id whose form is loaded for each section. */
|
|
789
|
+
scopeId: number | string | null;
|
|
790
|
+
/** Property keys to render in each section form (`allowedFieldKeys`). */
|
|
791
|
+
propertyKeys: string[];
|
|
792
|
+
/** Runtime ids needed to load each section form. */
|
|
793
|
+
runtimeContext: LookupModuleCheckListFieldRuntimeContext | null;
|
|
794
|
+
/** Raw property configuration (lookup id, scope/module id, properties). */
|
|
795
|
+
configuration: any;
|
|
796
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
797
|
+
lookupOptions?: LookupOptionItemConfig[];
|
|
798
|
+
lookups?: unknown[];
|
|
799
|
+
propertyFields?: LookupCheckListPropertyConfig[];
|
|
800
|
+
scopeId?: number | string | null;
|
|
801
|
+
propertyKeys?: string[];
|
|
802
|
+
runtimeContext?: LookupModuleCheckListFieldRuntimeContext | null;
|
|
803
|
+
configuration?: any;
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
type DynamicFieldConfig = {
|
|
807
|
+
[K in keyof (TextFieldConfig & TextareaFieldConfig & SelectFieldConfig & DateFieldConfig & NumberFieldConfig & SliderFieldConfig & MultiSelectFieldConfig & PickListFieldConfig & CheckboxFieldConfig & ToggleFieldConfig & LocationFieldConfig & ColorPickerFieldConfig & IconFieldConfig & SpacerFieldConfig & LookupMatrixFieldConfig & SchemaConnectionFieldConfig & SchedulePredecessorFieldConfig & EntityListFieldConfig & ScheduleItemSelectorFieldConfig & LookupModuleCheckListFieldConfig & BaseFieldConfig)]?: (TextFieldConfig & TextareaFieldConfig & SelectFieldConfig & DateFieldConfig & NumberFieldConfig & SliderFieldConfig & MultiSelectFieldConfig & PickListFieldConfig & CheckboxFieldConfig & ToggleFieldConfig & LocationFieldConfig & ColorPickerFieldConfig & IconFieldConfig & SpacerFieldConfig & LookupMatrixFieldConfig & SchemaConnectionFieldConfig & SchedulePredecessorFieldConfig & EntityListFieldConfig & ScheduleItemSelectorFieldConfig & LookupModuleCheckListFieldConfig & BaseFieldConfig)[K];
|
|
808
|
+
};
|
|
809
|
+
interface LayoutConfig {
|
|
810
|
+
containerClass?: string;
|
|
811
|
+
sectionClass?: string;
|
|
812
|
+
fieldClass?: string;
|
|
813
|
+
}
|
|
814
|
+
interface DynamicFormConfig {
|
|
815
|
+
sections: SectionConfig[];
|
|
816
|
+
layout?: LayoutConfig;
|
|
817
|
+
validationRules?: FormulaValidationRuleConfig[];
|
|
818
|
+
}
|
|
819
|
+
interface SectionConfig {
|
|
820
|
+
key?: string;
|
|
821
|
+
label?: string;
|
|
822
|
+
type: 'none' | 'header';
|
|
823
|
+
cssClass?: string;
|
|
824
|
+
bodyClass?: string;
|
|
825
|
+
headerClass?: string;
|
|
826
|
+
columns?: number;
|
|
827
|
+
order?: number;
|
|
828
|
+
fields: DynamicFieldConfig[];
|
|
829
|
+
}
|
|
830
|
+
interface FieldState {
|
|
831
|
+
hidden: boolean;
|
|
832
|
+
disabled: boolean;
|
|
833
|
+
}
|
|
834
|
+
declare function createCustomValidator(customValidator: (value: any, control?: AbstractControl) => boolean | Promise<boolean>, message?: string): ValidatorFn;
|
|
835
|
+
declare function wrapValidatorWithMessage(validator: ValidatorFn, errorKey: string, message: string): ValidatorFn;
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* Query result with separate signals for each property
|
|
839
|
+
*/
|
|
840
|
+
interface QueryResult<T> {
|
|
841
|
+
data: Signal<T | null>;
|
|
842
|
+
isPending: Signal<boolean>;
|
|
843
|
+
isSuccess: Signal<boolean>;
|
|
844
|
+
isError: Signal<boolean>;
|
|
845
|
+
error: Signal<string | null>;
|
|
846
|
+
}
|
|
847
|
+
/**
|
|
848
|
+
* @deprecated Use direct `select()` + `computed()` pattern instead for better performance.
|
|
849
|
+
*
|
|
850
|
+
* **Problem with BaseFacade:**
|
|
851
|
+
* - All computed signals depend on the full state, causing unnecessary recomputations
|
|
852
|
+
* - Bypasses NGXS selector memoization
|
|
853
|
+
* - Uses `as any` casting, losing type safety
|
|
854
|
+
*
|
|
855
|
+
* **New Pattern - Use slice-based selectors:**
|
|
856
|
+
*
|
|
857
|
+
* ```typescript
|
|
858
|
+
* // In your State class - add slice selectors:
|
|
859
|
+
* @Selector()
|
|
860
|
+
* static getLoadingActive(state: MyStateModel): string[] {
|
|
861
|
+
* return state.loadingActive;
|
|
862
|
+
* }
|
|
863
|
+
*
|
|
864
|
+
* @Selector()
|
|
865
|
+
* static getErrors(state: MyStateModel): Record<string, string | null> {
|
|
866
|
+
* return state.errors;
|
|
867
|
+
* }
|
|
868
|
+
*
|
|
869
|
+
* // In your Facade - don't extend BaseFacade:
|
|
870
|
+
* @Injectable({ providedIn: 'root' })
|
|
871
|
+
* export class MyFacade {
|
|
872
|
+
* private readonly store = inject(Store);
|
|
873
|
+
*
|
|
874
|
+
* // Data selectors - memoized by NGXS
|
|
875
|
+
* readonly items = select(MyState.getItems);
|
|
876
|
+
*
|
|
877
|
+
* // Loading/Error slices - memoized by NGXS
|
|
878
|
+
* private readonly loadingActive = select(MyState.getLoadingActive);
|
|
879
|
+
* private readonly errors = select(MyState.getErrors);
|
|
880
|
+
*
|
|
881
|
+
* // Loading signals - computed from slice (minimal reactivity)
|
|
882
|
+
* readonly isLoadingItems = computed(() =>
|
|
883
|
+
* this.loadingActive().includes(MyActionKey.GetItems)
|
|
884
|
+
* );
|
|
885
|
+
*
|
|
886
|
+
* // Error signals - computed from slice (minimal reactivity)
|
|
887
|
+
* readonly itemsError = computed(() =>
|
|
888
|
+
* this.errors()[MyActionKey.GetItems] ?? null
|
|
889
|
+
* );
|
|
890
|
+
*
|
|
891
|
+
* // Dispatchers
|
|
892
|
+
* loadItems() {
|
|
893
|
+
* return this.store.dispatch(new GetItems());
|
|
894
|
+
* }
|
|
895
|
+
* }
|
|
896
|
+
* ```
|
|
897
|
+
*
|
|
898
|
+
* **Template Usage:**
|
|
899
|
+
* ```html
|
|
900
|
+
* @if (facade.isLoadingItems()) {
|
|
901
|
+
* <loading-spinner />
|
|
902
|
+
* } @else if (facade.itemsError(); as error) {
|
|
903
|
+
* <error-alert>{{ error }}</error-alert>
|
|
904
|
+
* } @else {
|
|
905
|
+
* @for (item of facade.items(); track item.id) {
|
|
906
|
+
* <item-card [item]="item" />
|
|
907
|
+
* }
|
|
908
|
+
* }
|
|
909
|
+
* ```
|
|
910
|
+
*/
|
|
911
|
+
declare abstract class BaseFacade<TState, TLoadingName extends string> {
|
|
912
|
+
/**
|
|
913
|
+
* Override in child facade to provide the state selector
|
|
914
|
+
*/
|
|
915
|
+
protected abstract state(): Signal<TState>;
|
|
916
|
+
/**
|
|
917
|
+
* Creates a query object with separate signals for data, loading, and error states
|
|
918
|
+
* Each property is its own signal for granular reactivity
|
|
919
|
+
*
|
|
920
|
+
* @example
|
|
921
|
+
* readonly modulesQuery = this.query(
|
|
922
|
+
* 'getModulesLoading',
|
|
923
|
+
* (state) => state.allModules
|
|
924
|
+
* );
|
|
925
|
+
*
|
|
926
|
+
* // In template - each is a separate signal:
|
|
927
|
+
* @if (modulesQuery.isPending()) { Loading... }
|
|
928
|
+
* @if (modulesQuery.error(); as error) { Error: {{ error }} }
|
|
929
|
+
* @if (modulesQuery.data(); as modules) {
|
|
930
|
+
* <div *ngFor="let m of modules">{{ m.title }}</div>
|
|
931
|
+
* }
|
|
932
|
+
*/
|
|
933
|
+
protected query<T>(loadingKey: TLoadingName, dataSelector: (state: TState) => T): QueryResult<T>;
|
|
934
|
+
/**
|
|
935
|
+
* Creates a loading signal for a specific operation
|
|
936
|
+
*/
|
|
937
|
+
protected loading(loadingKey: TLoadingName): Signal<boolean>;
|
|
938
|
+
/**
|
|
939
|
+
* Creates an error signal for a specific operation
|
|
940
|
+
*/
|
|
941
|
+
protected errorSignal(loadingKey: TLoadingName): Signal<string | null>;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
interface LoadingStateShape<L extends string = string> {
|
|
945
|
+
loadingActive: L[];
|
|
946
|
+
errors: Partial<Record<L, string>>;
|
|
947
|
+
}
|
|
948
|
+
type LoadingName$1<T extends LoadingStateShape<string>> = T['loadingActive'][number];
|
|
949
|
+
declare function startLoading<T extends LoadingStateShape<string>>(ctx: StateContext<T>, loadingName: LoadingName$1<T>): void;
|
|
950
|
+
declare function endLoading<T extends LoadingStateShape<string>>(ctx: StateContext<T>, loadingName: LoadingName$1<T>): void;
|
|
951
|
+
declare function setLoadingError<T extends LoadingStateShape<string>>(ctx: StateContext<T>, loadingName: LoadingName$1<T>, message: string): void;
|
|
952
|
+
|
|
953
|
+
interface Response<T> {
|
|
954
|
+
endpoint: string;
|
|
955
|
+
status: number;
|
|
956
|
+
code: number;
|
|
957
|
+
locale: string;
|
|
958
|
+
message?: string | null;
|
|
959
|
+
errors?: unknown | null;
|
|
960
|
+
data: T;
|
|
961
|
+
cacheSession?: string;
|
|
962
|
+
}
|
|
963
|
+
interface CrudLoadConfig<T, TState, TLoad extends string, TData = T[]> {
|
|
964
|
+
key: TLoad;
|
|
965
|
+
request$: Observable<Response<TData>>;
|
|
966
|
+
stateProperty?: (state: TState) => T[];
|
|
967
|
+
/**
|
|
968
|
+
* @deprecated Use `handleApiRequest` with `onSuccess` for complex state updates.
|
|
969
|
+
* CRUD methods should only be used for simple array operations with `stateProperty`.
|
|
970
|
+
*/
|
|
971
|
+
updateState?: (state: TState, data: TData) => Partial<TState>;
|
|
972
|
+
/**
|
|
973
|
+
* @deprecated Use `handleApiRequest` with `onSuccess` for data transformation.
|
|
974
|
+
* CRUD methods should only be used for simple array operations.
|
|
975
|
+
*/
|
|
976
|
+
transform?: (data: TData) => TData;
|
|
977
|
+
onError?: (error: any, state: TState) => Partial<TState> | void;
|
|
978
|
+
errorMessage?: string;
|
|
979
|
+
}
|
|
980
|
+
interface CrudCreateConfig<T, TState, TLoad extends string> {
|
|
981
|
+
key: TLoad;
|
|
982
|
+
request$: Observable<Response<T>>;
|
|
983
|
+
stateProperty: (state: TState) => T[];
|
|
984
|
+
/**
|
|
985
|
+
* @deprecated Use `handleApiRequest` with `onSuccess` for complex state updates.
|
|
986
|
+
* CRUD methods should only be used for simple array operations with `stateProperty`.
|
|
987
|
+
*/
|
|
988
|
+
updateState?: (state: TState, items: T[]) => Partial<TState>;
|
|
989
|
+
/**
|
|
990
|
+
* @deprecated Use `handleApiRequest` with `onSuccess` for data transformation.
|
|
991
|
+
* CRUD methods should only be used for simple array operations.
|
|
992
|
+
*/
|
|
993
|
+
transform?: (data: T) => T;
|
|
994
|
+
onError?: (error: any, state: TState) => Partial<TState> | void;
|
|
995
|
+
errorMessage?: string;
|
|
996
|
+
}
|
|
997
|
+
interface CrudUpdateConfig<T, TState, TLoad extends string> {
|
|
998
|
+
key: TLoad;
|
|
999
|
+
request$: Observable<Response<T>>;
|
|
1000
|
+
uniqueKey: keyof T;
|
|
1001
|
+
id: string | number;
|
|
1002
|
+
stateProperty: (state: TState) => T[];
|
|
1003
|
+
/**
|
|
1004
|
+
* @deprecated Use `handleApiRequest` with `onSuccess` for complex state updates.
|
|
1005
|
+
* CRUD methods should only be used for simple array operations with `stateProperty`.
|
|
1006
|
+
*/
|
|
1007
|
+
updateState?: (state: TState, items: T[]) => Partial<TState>;
|
|
1008
|
+
/**
|
|
1009
|
+
* @deprecated Use `handleApiRequest` with `onSuccess` for data transformation.
|
|
1010
|
+
* CRUD methods should only be used for simple array operations.
|
|
1011
|
+
*/
|
|
1012
|
+
transform?: (data: T) => T;
|
|
1013
|
+
onError?: (error: any, state: TState) => Partial<TState> | void;
|
|
1014
|
+
errorMessage?: string;
|
|
1015
|
+
}
|
|
1016
|
+
interface CrudDeleteConfig<T, TState, TLoad extends string> {
|
|
1017
|
+
key: TLoad;
|
|
1018
|
+
request$: Observable<Response<void>>;
|
|
1019
|
+
uniqueKey: keyof T;
|
|
1020
|
+
id: string | number;
|
|
1021
|
+
stateProperty: (state: TState) => T[];
|
|
1022
|
+
/**
|
|
1023
|
+
* @deprecated Use `handleApiRequest` with `onSuccess` for complex state updates.
|
|
1024
|
+
* CRUD methods should only be used for simple array operations with `stateProperty`.
|
|
1025
|
+
*/
|
|
1026
|
+
updateState?: (state: TState, items: T[]) => Partial<TState>;
|
|
1027
|
+
onError?: (error: any, state: TState) => Partial<TState> | void;
|
|
1028
|
+
errorMessage?: string;
|
|
1029
|
+
}
|
|
1030
|
+
/**
|
|
1031
|
+
* T = entity type (Module, User, ...)
|
|
1032
|
+
* TState = full state model (must include LoadingStateShape)
|
|
1033
|
+
* TLoad = union type of loading keys for this feature
|
|
1034
|
+
*/
|
|
1035
|
+
declare abstract class CrudStateBase<T, TState extends LoadingStateShape<TLoad>, TLoad extends string> {
|
|
1036
|
+
protected adapter: _masterteam_components.EntityAdapter<T>;
|
|
1037
|
+
/**
|
|
1038
|
+
* Helper to create default updateState function
|
|
1039
|
+
*/
|
|
1040
|
+
private getDefaultUpdateState;
|
|
1041
|
+
/**
|
|
1042
|
+
* @deprecated Use `handleApiRequest` directly with `onSuccess` callback.
|
|
1043
|
+
* The `load()` method provides no significant benefit over `handleApiRequest`.
|
|
1044
|
+
*
|
|
1045
|
+
* @example
|
|
1046
|
+
* // Instead of this.load(), use:
|
|
1047
|
+
* return handleApiRequest({
|
|
1048
|
+
* ctx,
|
|
1049
|
+
* key: ActionKey.GetItems,
|
|
1050
|
+
* request$: req$,
|
|
1051
|
+
* onSuccess: (response) => ({
|
|
1052
|
+
* items: response.data ?? [],
|
|
1053
|
+
* }),
|
|
1054
|
+
* });
|
|
1055
|
+
*/
|
|
1056
|
+
protected load<TData = T[]>(ctx: StateContext<TState>, config: CrudLoadConfig<T, TState, TLoad, TData>): Observable<Response<TData>>;
|
|
1057
|
+
/**
|
|
1058
|
+
* Create one entity with config object
|
|
1059
|
+
*/
|
|
1060
|
+
protected create(ctx: StateContext<TState>, config: CrudCreateConfig<T, TState, TLoad>): Observable<Response<T>>;
|
|
1061
|
+
/**
|
|
1062
|
+
* Update one entity with config object
|
|
1063
|
+
*/
|
|
1064
|
+
protected update(ctx: StateContext<TState>, config: CrudUpdateConfig<T, TState, TLoad>): Observable<Response<T>>;
|
|
1065
|
+
/**
|
|
1066
|
+
* Delete one entity with config object
|
|
1067
|
+
*/
|
|
1068
|
+
protected delete(ctx: StateContext<TState>, config: CrudDeleteConfig<T, TState, TLoad>): Observable<Response<void>>;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
type TailwindColorPalette = {
|
|
1072
|
+
[key: string]: string;
|
|
1073
|
+
};
|
|
1074
|
+
/**
|
|
1075
|
+
* Generates a Tailwind-like color palette (50-950) from a primary color (assumed to be 500).
|
|
1076
|
+
*
|
|
1077
|
+
* @param primaryColor500 - The hex string of the primary color (e.g., "#0284c7").
|
|
1078
|
+
* @returns An object representing the color palette, where keys are color numbers (e.g., "50", "100")
|
|
1079
|
+
* and values are hex color strings.
|
|
1080
|
+
*/
|
|
1081
|
+
type PaletteShade = '0' | '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | '950';
|
|
1082
|
+
/**
|
|
1083
|
+
* Generates a Tailwind-like color palette (50-950) from any given base color.
|
|
1084
|
+
*
|
|
1085
|
+
* @param baseColorHex - The hex string of the base color (e.g., "#0284c7").
|
|
1086
|
+
* @param baseColorShade - The shade of the base color (e.g., "500", "700").
|
|
1087
|
+
* @returns An object representing the full color palette.
|
|
1088
|
+
*/
|
|
1089
|
+
declare function generateTailwindPalette(baseColorHex: string, baseColorShade?: PaletteShade): TailwindColorPalette;
|
|
1090
|
+
|
|
1091
|
+
declare function isInvalid(control: AbstractControl | null): boolean;
|
|
1092
|
+
|
|
1093
|
+
type LoadingName<TState extends LoadingStateShape<string>> = TState['loadingActive'][number];
|
|
1094
|
+
interface ApiRequestConfig<TState extends LoadingStateShape<string>, TResponse> {
|
|
1095
|
+
ctx: StateContext<TState>;
|
|
1096
|
+
key: LoadingName<TState>;
|
|
1097
|
+
request$: Observable<TResponse>;
|
|
1098
|
+
onSuccess: (response: TResponse, state: TState) => Partial<TState> | void;
|
|
1099
|
+
onError?: (error: any, state: TState) => Partial<TState> | void;
|
|
1100
|
+
errorMessage?: string;
|
|
1101
|
+
}
|
|
1102
|
+
declare function handleApiRequest<TState extends LoadingStateShape<string>, TResponse>(config: ApiRequestConfig<TState, TResponse>): Observable<TResponse>;
|
|
1103
|
+
|
|
1104
|
+
interface EntityAdapter<T> {
|
|
1105
|
+
addOne(state: T[], entity: T): T[];
|
|
1106
|
+
upsertOne(state: T[], entity: T, uniqueKey?: keyof T): T[];
|
|
1107
|
+
updateOne(state: T[], id: string | number, changes: Partial<T>, uniqueKey?: keyof T): T[];
|
|
1108
|
+
removeOne(state: T[], id: string | number, uniqueKey?: keyof T): T[];
|
|
1109
|
+
setAll(state: T[], entities: T[]): T[];
|
|
1110
|
+
}
|
|
1111
|
+
declare function createEntityAdapter<T>(): EntityAdapter<T>;
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* HTTP context configuration for request handling
|
|
1115
|
+
*/
|
|
1116
|
+
interface RequestContextConfig {
|
|
1117
|
+
/** Use base URL instead of gateway URL */
|
|
1118
|
+
useBaseUrl?: boolean;
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* Shared HTTP context token for request configuration.
|
|
1122
|
+
* Used by interceptors to determine base URL routing.
|
|
1123
|
+
*
|
|
1124
|
+
* @example
|
|
1125
|
+
* ```typescript
|
|
1126
|
+
* import { REQUEST_CONTEXT } from '@masterteam/components';
|
|
1127
|
+
*
|
|
1128
|
+
* // In a service
|
|
1129
|
+
* private context = new HttpContext().set(REQUEST_CONTEXT, { useBaseUrl: true });
|
|
1130
|
+
*
|
|
1131
|
+
* getMetadata(): Observable<any> {
|
|
1132
|
+
* return this.http.get('metadata', { context: this.context });
|
|
1133
|
+
* }
|
|
1134
|
+
*
|
|
1135
|
+
* // In interceptor
|
|
1136
|
+
* const config = req.context.get(REQUEST_CONTEXT);
|
|
1137
|
+
* if (config?.useBaseUrl) {
|
|
1138
|
+
* // Use base URL
|
|
1139
|
+
* }
|
|
1140
|
+
* ```
|
|
1141
|
+
*/
|
|
1142
|
+
declare const REQUEST_CONTEXT: HttpContextToken<RequestContextConfig>;
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* Color utility functions for brand display.
|
|
1146
|
+
*/
|
|
1147
|
+
/**
|
|
1148
|
+
* Converts a hex color to a light shade (equivalent to primary-100 in Tailwind).
|
|
1149
|
+
* This creates a color with ~10% opacity or a very light tint by mixing with white.
|
|
1150
|
+
*/
|
|
1151
|
+
declare function getLightColor(hexColor: string): string;
|
|
1152
|
+
declare function getContrastColor(bgColor: string): string;
|
|
1153
|
+
/**
|
|
1154
|
+
* WCAG 2.x relative luminance.
|
|
1155
|
+
*
|
|
1156
|
+
* Note this is NOT the 0.299/0.587/0.114 perceived-brightness formula used by
|
|
1157
|
+
* `getContrastColor` above — that one is fine for "is this light or dark?" but
|
|
1158
|
+
* it is not the definition a conformance ratio is measured against, so it
|
|
1159
|
+
* cannot be used to decide whether text passes AA.
|
|
1160
|
+
*/
|
|
1161
|
+
declare function relativeLuminance(hex: string): number | null;
|
|
1162
|
+
/** WCAG contrast ratio between two hex colours, 1–21. Null if either is bad. */
|
|
1163
|
+
declare function contrastRatio(foreground: string, background: string): number | null;
|
|
1164
|
+
/** WCAG 1.4.3 Contrast Minimum, normal-size text. */
|
|
1165
|
+
declare const WCAG_AA_NORMAL_TEXT = 4.5;
|
|
1166
|
+
/**
|
|
1167
|
+
* The first shade at or below `preferred` on a generated ramp whose contrast
|
|
1168
|
+
* against `foreground` clears `minRatio`.
|
|
1169
|
+
*
|
|
1170
|
+
* This is how the brand colour stays fully tenant-configurable while the
|
|
1171
|
+
* primary button still passes AA (finding H-03). The shipped default
|
|
1172
|
+
* `#2AAEC0` gives white text 2.65:1 — the single most important control in the
|
|
1173
|
+
* product was the least legible one, and any tenant picking a light brand hit
|
|
1174
|
+
* the same wall. Rather than hardcode a darker teal, which fixes exactly one
|
|
1175
|
+
* tenant, we keep their hue and step down the ramp their own colour generated
|
|
1176
|
+
* until the text is readable.
|
|
1177
|
+
*
|
|
1178
|
+
* Returns `preferred` unchanged when it already passes, so a tenant whose brand
|
|
1179
|
+
* is dark enough sees no change at all. Returns the darkest available shade if
|
|
1180
|
+
* none passes — better to be as close as the palette allows than to give up.
|
|
1181
|
+
*/
|
|
1182
|
+
declare function pickAccessibleShade(palette: Record<string, string>, preferred: string, foreground?: string, minRatio?: number): string;
|
|
1183
|
+
/** Dark ink used when white text would not be legible on a status colour. */
|
|
1184
|
+
declare const READABLE_DARK_INK = "#1f2937";
|
|
1185
|
+
/**
|
|
1186
|
+
* Picks the more legible of white and a dark ink for text sitting on `bgColor`.
|
|
1187
|
+
*
|
|
1188
|
+
* Status and lookup colours come from a tenant's own catalog, so they can be
|
|
1189
|
+
* any hex at all — and the count badges on the Explore cards were painting
|
|
1190
|
+
* white on every one of them, which measured 2.59:1 at the low end (finding
|
|
1191
|
+
* H-03 / M-04). Rather than restrict what colours a tenant may choose, pick the
|
|
1192
|
+
* foreground that actually reads on the colour they chose.
|
|
1193
|
+
*
|
|
1194
|
+
* Measured with the WCAG relative-luminance ratio, not the perceived-brightness
|
|
1195
|
+
* shortcut in `getContrastColor`, because that shortcut is not the definition
|
|
1196
|
+
* conformance is judged against. Unparseable input falls back to white, which
|
|
1197
|
+
* is the behaviour every caller had before.
|
|
1198
|
+
*/
|
|
1199
|
+
declare function readableTextOn(bgColor: string | null | undefined, dark?: string, light?: string): string;
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* Stable DOM ids for form fields.
|
|
1203
|
+
*
|
|
1204
|
+
* Every field component used to bind `[id]="ngControl?.name || label()"`. Used
|
|
1205
|
+
* inside a reactive form that resolves, but a stand-alone field with no control
|
|
1206
|
+
* and no label produced `id="undefined"` — literally, because Angular
|
|
1207
|
+
* stringifies. The global search input was exactly that case, which is why it
|
|
1208
|
+
* also had no associated `<label>` and reported as unlabelled in the
|
|
1209
|
+
* accessibility tree (findings L-03 and H-04).
|
|
1210
|
+
*
|
|
1211
|
+
* `slider-field` already solved this locally; this is that solution extracted so
|
|
1212
|
+
* the six components that got it wrong share one implementation instead of six
|
|
1213
|
+
* near-copies.
|
|
1214
|
+
*/
|
|
1215
|
+
/** A process-unique fallback id, e.g. `mt-text-field-3`. */
|
|
1216
|
+
declare function nextFieldId(prefix: string): string;
|
|
1217
|
+
/**
|
|
1218
|
+
* The id a field should render, in preference order: the reactive form control
|
|
1219
|
+
* name, then a slug of the visible label, then the generated fallback.
|
|
1220
|
+
*
|
|
1221
|
+
* Never returns an empty string or `"undefined"` — a label/input pair is only
|
|
1222
|
+
* associated if the id is real, so the fallback matters more than it looks.
|
|
1223
|
+
*/
|
|
1224
|
+
declare function resolveFieldId(controlName: string | number | null | undefined, label: string | null | undefined, fallbackId: string): string;
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* Helpers for wall-clock values — the `HH:mm:ss` shape a `Time` property
|
|
1228
|
+
* stores. A time of day carries no calendar date and no timezone, so it is
|
|
1229
|
+
* never serialized as an instant: `new Date('09:30:00')` is `Invalid Date`,
|
|
1230
|
+
* and pushing the clock through UTC would shift it by the viewer's offset.
|
|
1231
|
+
*/
|
|
1232
|
+
/** A wall-clock time, already range-checked. */
|
|
1233
|
+
interface ClockTimeParts {
|
|
1234
|
+
hours: number;
|
|
1235
|
+
minutes: number;
|
|
1236
|
+
seconds: number;
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
* Parse a bare `H:mm`, `HH:mm`, or `HH:mm:ss` string — a trailing fractional
|
|
1240
|
+
* second, as .NET `TimeOnly`/`TimeSpan` may emit, is ignored. Returns `null`
|
|
1241
|
+
* for anything else, including full timestamps, which callers parse as dates.
|
|
1242
|
+
*/
|
|
1243
|
+
declare function parseClockTime(value: unknown): ClockTimeParts | null;
|
|
1244
|
+
/** Read the local wall-clock time off a `Date`, or `null` for an invalid one. */
|
|
1245
|
+
declare function toClockTimeParts(date: Date): ClockTimeParts | null;
|
|
1246
|
+
/** Format a wall-clock time as the `HH:mm:ss` text the backend stores. */
|
|
1247
|
+
declare function formatClockTime(parts: ClockTimeParts): string;
|
|
1248
|
+
/** Seconds since midnight — the comparable form of a wall-clock time. */
|
|
1249
|
+
declare function clockTimeToSeconds(parts: ClockTimeParts): number;
|
|
1250
|
+
|
|
1251
|
+
type MTDateFormatType = 'date' | 'dateTime' | 'time';
|
|
1252
|
+
declare class MTDateFormatPipe implements PipeTransform {
|
|
1253
|
+
private readonly locale;
|
|
1254
|
+
private readonly formats;
|
|
1255
|
+
transform(value: unknown, type?: MTDateFormatType): string;
|
|
1256
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MTDateFormatPipe, never>;
|
|
1257
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MTDateFormatPipe, "mtDateFormat", true>;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
export { BaseFacade, BaseFieldConfig, CheckboxFieldConfig, ColorPickerFieldConfig, CrudStateBase, DEFAULT_MT_DATE_FORMATS, DS_BLUE, DS_CHART_SERIES, DS_CONTROL_HEIGHT, DS_DEFAULT_PRIMARY_COLOR, DS_ERROR, DS_FONT_FAMILY, DS_GRAY, DS_INDIGO, DS_RADIUS, DS_SEMANTIC, DS_SHADOW, DS_SUCCESS, DS_WARNING, DateFieldConfig, EditorFieldConfig, EntityListFieldConfig, IconFieldConfig, LocationFieldConfig, LookupMatrixFieldConfig, LookupModuleCheckListFieldConfig, MTDateFormatPipe, MT_DATE_FORMATS, MT_DESIGN_IDENTITY_CLASS, MultiSelectFieldConfig, NumberFieldConfig, PickListFieldConfig, READABLE_DARK_INK, REQUEST_CONTEXT, RadioButtonFieldConfig, RadioCardsFieldConfig, ScheduleItemSelectorFieldConfig, SchedulePredecessorFieldConfig, SchemaConnectionFieldConfig, SelectFieldConfig, SliderFieldConfig, SpacerFieldConfig, TextFieldConfig, TextareaFieldConfig, ToggleFieldConfig, UploadFileFieldConfig, UserSearchFieldConfig, ValidatorConfig, WCAG_AA_NORMAL_TEXT, applyDesignIdentityClass, changeBackgroundColor, changePrimaryColor, changeTextColor, clockTimeToSeconds, contrastRatio, createCustomValidator, createEntityAdapter, dsChartSeries, dsIdentityConfigs, endLoading, formatClockTime, generateTailwindPalette, getContrastColor, getLightColor, getMTDesignIdentity, handleApiRequest, isInvalid, nextFieldId, parseClockTime, pickAccessibleShade, provideMTComponents, provideMTConfirmation, provideMTDateFormats, provideMTMessages, readableTextOn, relativeLuminance, resolveFieldId, setLoadingError, setMTDesignIdentity, startLoading, toAngularDateFormat, toClockTimeParts, wrapValidatorWithMessage };
|
|
1261
|
+
export type { ApiRequestConfig, BaseFieldConstructorConfig, ClockTimeParts, CrudCreateConfig, CrudDeleteConfig, CrudLoadConfig, CrudUpdateConfig, DSColorScale, DynamicFieldConfig, DynamicFormConfig, EntityAdapter, EntityListFieldRuntimeContext, FieldRelationAction, FieldRelationConfig, FieldState, FieldType, FormulaConditionConfig, FormulaConditionMode, FormulaRuntimeMessage, FormulaRuntimeMessageCode, FormulaValidationRuleConfig, FormulaValidationSeverity, LayoutConfig, LoadingStateShape, LookupCheckListPropertyConfig, LookupMatrixCellConfig, LookupModuleCheckListFieldRuntimeContext, LookupOptionItemConfig, MTDateFormatType, MTDateFormats, MTDesignIdentity, MTThemeOptions, PaletteShade, QueryResult, RequestContextConfig, Response, ResponsiveColSpan, ScheduleItemSelectorFieldRuntimeContext, SchedulePredecessorFieldRuntimeContext, SectionConfig, ValidatorType };
|