@masterteam/components 0.0.263 → 0.0.265
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/.angular/cache/21.2.7/@masterteam/components/.tsbuildinfo +1 -0
- 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 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/0727b170af3d53236c0cafe16ea670d089e48d4c5c525b1dbcc1c684bb6e99c7 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/0873bc9048494ebc33fe0a7b856324c7c4ca681b0dcaa87338e3290186906d49 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/1010cd8fc996d0c2df519ed60085f4b1f38ccfc873900055bc75fc20a3c26bab +1 -0
- package/.angular/cache/21.2.7/ng-packagr/12379a8ab7254ad3df2635823a358cfce32e6d0f390be68596cc97e02307e6c4 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/1239e7a937657b62f858d17d47738ed30facbdaa91032511e29ed148b748400b +1 -0
- package/.angular/cache/21.2.7/ng-packagr/133b9ecf47ba424244902da90d77cd3f135b85f95c01b16de7b2247f57518f01 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/175d45dc6da51834e7fe937c09d23dbf28d2a823f838ef5271fd3e148776d6ec +1 -0
- package/.angular/cache/21.2.7/ng-packagr/19d99ad4d927324b03cdbef34331ba2c58bd580f1f0ca591cb5f8dbf436c913c +1 -0
- package/.angular/cache/21.2.7/ng-packagr/1a86918763f95c1c2b9fa781bda1ceedf15aead87f0e11ea1324318af43a897a +1 -0
- package/.angular/cache/21.2.7/ng-packagr/1f08100dbc280be7da64c809315376eb7d0cfd074916a6042f609f03f4276a8e +1 -0
- package/.angular/cache/21.2.7/ng-packagr/2224877a7e762b86541428e4c40d61f54f505867c305769ae42e67e4aa81bd93 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/24957fb7ec060692ebcf1471e1bdce39f40aed938959e580048ade58015762d2 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/295fcdc1c4462e7feae96a24255369508a559faaecc4676267749a7ce23e4b6d +1 -0
- package/.angular/cache/21.2.7/ng-packagr/2b37e2f2d6564d10bad1fd0ecc16453962fd855cd1e36ad7aa24baf3e4f2e8b3 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/2c20f0929771e857b570ba2beffe91f598f299ce26d4825fe4315bfe5a3dd40a +1 -0
- package/.angular/cache/21.2.7/ng-packagr/37dea2e5798cad4a21d66292eeed5be26d04500d9a1534332ad42ce664a058c2 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/3b6239b640fcb5ea7067a2655a2901d32f55372812b586aa008e77c59e8f2090 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/3beb1b4dfe75d1e6749cf91f05d51ba4eece939f5c15f6f33ed587bfd198f0a3 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/3f161e6c2ead4519d0663dd79199dafceb2cc22da7ce92a72b809b93bfce0bb0 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/43551862d17cd02626e18b30243390081a6247784485660048b060a3d4ab7fa7 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/47aedf032519b41d96866fcf8fbd4f1dfd29f9e9a534b39dee0e44d402227d2d +1 -0
- package/.angular/cache/21.2.7/ng-packagr/4a1768888c60921955bfdfba8b31c8d853bd7b2a7d3a7b83934de049e1e6e6a2 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/4a783e339117597607bff17eeca0ad24d84b8cbc1e28927e7e453ccfa6223180 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/4d9331b2050326f586cd8f6593a9e04e1c7944b2f9e98023649023c099597a5d +1 -0
- package/.angular/cache/21.2.7/ng-packagr/4e379f506919d47af7008658c75242aa05f0056c1caec4061d7fa5746f776049 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/55009bb7d44552dd816ce32fa2b0f7985f3f08fefd6409c2b4f6b9ffe35dad83 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/58ae3f1f9664f7b16844d2e4a279dd4ca9371de014cf5687320c2d5cb259a74f +1 -0
- package/.angular/cache/21.2.7/ng-packagr/5c08e906bd3fe1aa6c1d62f2bbb2b3f276e1c17fe45ef081e76bd1b865ac3dfa +1 -0
- package/.angular/cache/21.2.7/ng-packagr/5ce333a40ad635188347fa9bc601d5fd14be6baacbae7d096259d725ac9757af +1 -0
- package/.angular/cache/21.2.7/ng-packagr/5f32cceaee6a6ea19cc6cbff5ea089b752f13a0fdcd32597d4c99d5e1e031bb5 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/691ad4ccdc0a8ede36e1f4e5e97638c20c2d3142916ffac3a1b172178c139205 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/6b57160e0d2da3f31693831e84a3f4209c1f33a04abd636e34af03956e7329d8 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/70bc711a1d7b631845885c26adc2d6b1bff47d11332b2625cedfa11e9d5ac79a +1 -0
- package/.angular/cache/21.2.7/ng-packagr/7427c266237012afaef486c2af94ee08a491e8d7b6fc7e5ee887980830bbd333 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/7e8fa7c61cf9a932ba3a0e65eb73c7412e81666b7a8f923dac7b75acfbb94b1d +1 -0
- package/.angular/cache/21.2.7/ng-packagr/81aab7fdab43cbdfa869db759d6113ae01ec6f5e0e9061d7fc089c260886e4d1 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/83a81758045ff710a34ea3cf6f54435a1f5dea9839d8c0adda0bbce7c3fb6e8b +1 -0
- package/.angular/cache/21.2.7/ng-packagr/883eae810a4c09f06617bdc2e4bc30a69f09726401b2a051840969f635d076f1 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/8a6b9be66de40c57054dca5fde376c3cec1bec1ae191a16f1ae6a83306d9ebfe +1 -0
- package/.angular/cache/21.2.7/ng-packagr/8d42c8144f6929de46984094bf390a0c4168404ab13a5194839f6ba5e42bc3ce +1 -0
- package/.angular/cache/21.2.7/ng-packagr/91093656c61a5404f0d576f872247eeb480dd938e6999d481a97893c72b5f3d0 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/91e881172037c63d819e30d30e390e0d7dc0dee9808b3902275ccc8b1887d864 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/9ef28cf3a676e7bd0d37762c4868b4810efca2f241ed0dae75ebca41988e2c00 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/a07cbea405c1831b3f686a8e57c4b500d89cbab2b95e110487890269945feeaa +1 -0
- package/.angular/cache/21.2.7/ng-packagr/a463deba940880d9461612c9cd00d90062bf97aa31b1c4556b8b47a967cb6882 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/ab03ed1e4a371113b41b663d526d2b06565ceb062e6f033f726f1e455fc5d1d6 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/ad0e84be4f2211aff6187b4bec9adbe15f0e8b36851e9c6c63b38303c2daad37 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/aece79242dae70eb748605e37483e75e122e4ce414fa8be875499e8af26ee5d6 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/aff32db91ce03de30d2bbc84f266fe3fb2c6629d5eeb39a364204d9499484368 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/b0671e73a162927d28ef1742ec008e514264bc2ce29f2255bedaea553492fe5d +1 -0
- package/.angular/cache/21.2.7/ng-packagr/bb50d71f3cdeebbb85fd983be8103f9c216060464f8e7e534271197391e6dcf7 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/c64241290ab30d8761b2f5493a039427f5cda1a48b5be88ce62ee5c714c0f690 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/c794d2e79b26ab378c0dbf8afa7b8ac1337ba9afb288941d44a086cb1bd4bad2 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/d942edf8fd8e8e884138ffcdb1a07ad14a0b5e211f8ccea1dc9ea0b48f50cfc9 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/dbe0b9b9f18ba7b96d9c84f4fd16cde158c9701c202d00113e6f88ba93407bce +1 -0
- package/.angular/cache/21.2.7/ng-packagr/f564395a410a2723aac48e582f5fe416bfeaa48677cea47b10c5152d4f2b6672 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/fc9b0d27f081ca7b2a4cbefa75136d7bd7a8c341dbaa0587855071a6003906b8 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-avatar-text.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-avatar.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-breadcrumb.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-business-fields.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-button-group.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-button.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-card.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-checkbox-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-chip.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-client-page-menu.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-client-page.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-color-picker-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-confirmation.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-date-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-dialog.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-drawer.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-dynamic-drawer.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-editor-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-empty-state.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-entities.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-field-validation.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-formula.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-icon-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-list.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-location-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-menu.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-modal.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-module-summary-card.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-multi-select-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-number-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-page-header.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-page.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-paginator.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-pick-list-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-progress.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-property-filter-builder.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-radio-button-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-radio-cards-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-radio-cards.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-runtime-action.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-select-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-sidebar.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-slider-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-statistic-card.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-table.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-tabs.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-text-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-textarea-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-toast.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-toggle-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-tooltip.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-topbar.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-tree.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-treeselect-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-upload-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-uploader.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-user-search-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components.tsbuildinfo +1 -0
- package/angular.json +32 -0
- package/api/api.ts +1 -0
- package/api/public-api.ts +5 -0
- package/assets/common.css +309 -2
- package/assets/i18n/ar.json +10 -2
- package/assets/i18n/en.json +10 -2
- package/avatar/avatar.html +32 -0
- package/avatar/avatar.scss +0 -0
- package/avatar/avatar.ts +54 -0
- package/avatar/ng-package.json +6 -0
- package/avatar/public-api.ts +1 -0
- package/avatar-text/avatar-text.html +26 -0
- package/avatar-text/avatar-text.scss +0 -0
- package/avatar-text/avatar-text.ts +52 -0
- package/avatar-text/ng-package.json +6 -0
- package/avatar-text/public-api.ts +1 -0
- package/breadcrumb/breadcrumb.html +53 -0
- package/breadcrumb/breadcrumb.scss +0 -0
- package/breadcrumb/breadcrumb.ts +26 -0
- package/breadcrumb/ng-package.json +6 -0
- package/breadcrumb/public-api.ts +1 -0
- package/business-fields/entity-list-field/entity-list-add-token.ts +25 -0
- package/business-fields/entity-list-field/entity-list-field.html +70 -0
- package/business-fields/entity-list-field/entity-list-field.scss +3 -0
- package/business-fields/entity-list-field/entity-list-field.ts +1067 -0
- package/business-fields/lookup-matrix-field/lookup-matrix-field.html +38 -0
- package/business-fields/lookup-matrix-field/lookup-matrix-field.spec.ts +183 -0
- package/business-fields/lookup-matrix-field/lookup-matrix-field.ts +239 -0
- package/business-fields/lookup-module-check-list-field/lookup-module-check-list-field.html +95 -0
- package/business-fields/lookup-module-check-list-field/lookup-module-check-list-field.ts +336 -0
- package/business-fields/lookup-module-check-list-field/lookup-module-check-list-form-token.ts +42 -0
- package/business-fields/ng-package.json +6 -0
- package/business-fields/public-api.ts +8 -0
- package/business-fields/schedule-item-selector-field/schedule-item-selector-field.html +32 -0
- package/business-fields/schedule-item-selector-field/schedule-item-selector-field.ts +272 -0
- package/business-fields/schedule-predecessor-field/schedule-predecessor-field.html +89 -0
- package/business-fields/schedule-predecessor-field/schedule-predecessor-field.ts +441 -0
- package/business-fields/schema-connection-field/schema-connection-field.html +58 -0
- package/business-fields/schema-connection-field/schema-connection-field.scss +0 -0
- package/business-fields/schema-connection-field/schema-connection-field.ts +456 -0
- package/button/button.html +44 -0
- package/button/button.scss +0 -0
- package/button/button.ts +120 -0
- package/button/ng-package.json +6 -0
- package/button/public-api.ts +1 -0
- package/button-group/button-group.html +3 -0
- package/button-group/button-group.scss +20 -0
- package/button-group/button-group.ts +12 -0
- package/button-group/ng-package.json +6 -0
- package/button-group/public-api.ts +1 -0
- package/card/card.html +26 -0
- package/card/card.scss +0 -0
- package/card/card.ts +29 -0
- package/card/ng-package.json +6 -0
- package/card/public-api.ts +1 -0
- package/checkbox-field/checkbox-field.html +31 -0
- package/checkbox-field/checkbox-field.scss +0 -0
- package/checkbox-field/checkbox-field.spec.ts +21 -0
- package/checkbox-field/checkbox-field.ts +123 -0
- package/checkbox-field/ng-package.json +6 -0
- package/checkbox-field/public-api.ts +1 -0
- package/chip/chip.html +16 -0
- package/chip/chip.scss +19 -0
- package/chip/chip.ts +45 -0
- package/chip/ng-package.json +6 -0
- package/chip/public-api.ts +1 -0
- package/client-page/client-page.html +232 -0
- package/client-page/client-page.ts +588 -0
- package/client-page/index.ts +2 -0
- package/client-page/ng-package.json +6 -0
- package/client-page/public-api.ts +1 -0
- package/client-page-menu/client-page-menu.html +142 -0
- package/client-page-menu/client-page-menu.ts +199 -0
- package/client-page-menu/index.ts +2 -0
- package/client-page-menu/ng-package.json +6 -0
- package/client-page-menu/public-api.ts +1 -0
- package/color-picker-field/color-picker-field.html +45 -0
- package/color-picker-field/color-picker-field.scss +52 -0
- package/color-picker-field/color-picker-field.ts +131 -0
- package/color-picker-field/ng-package.json +6 -0
- package/color-picker-field/public-api.ts +1 -0
- package/confirmation/confirmation-dialog.html +83 -0
- package/confirmation/confirmation-dialog.scss +0 -0
- package/confirmation/confirmation-dialog.ts +15 -0
- package/confirmation/confirmation.spec.ts +43 -0
- package/confirmation/confirmation.ts +103 -0
- package/confirmation/ng-package.json +6 -0
- package/confirmation/public-api.ts +2 -0
- package/date-field/date-field.html +65 -0
- package/date-field/date-field.scss +0 -0
- package/date-field/date-field.spec.ts +118 -0
- package/date-field/date-field.ts +196 -0
- package/date-field/ng-package.json +6 -0
- package/date-field/public-api.ts +1 -0
- package/dialog/dialog.ts +29 -0
- package/dialog/ng-package.json +6 -0
- package/dialog/public-api.ts +1 -0
- package/drawer/drawer.html +67 -0
- package/drawer/drawer.scss +1 -0
- package/drawer/drawer.ts +348 -0
- package/drawer/ng-package.json +5 -0
- package/drawer/public-api.ts +1 -0
- package/dynamic-drawer/dynamic-drawer-host.ts +476 -0
- package/dynamic-drawer/dynamic-drawer.spec.ts +204 -0
- package/dynamic-drawer/dynamic-drawer.ts +235 -0
- package/dynamic-drawer/ng-package.json +6 -0
- package/dynamic-drawer/public-api.ts +2 -0
- package/editor-field/editor-field.html +38 -0
- package/editor-field/editor-field.scss +219 -0
- package/editor-field/editor-field.ts +126 -0
- package/editor-field/ng-package.json +6 -0
- package/editor-field/public-api.ts +1 -0
- package/empty-state/empty-state.html +236 -0
- package/empty-state/empty-state.ts +85 -0
- package/empty-state/ng-package.json +6 -0
- package/empty-state/public-api.ts +1 -0
- package/entities/comparison/comparison-entity-list/comparison-entity-list.html +87 -0
- package/entities/comparison/comparison-entity-list/comparison-entity-list.ts +93 -0
- package/entities/comparison/comparison-value/comparison-value.html +31 -0
- package/entities/comparison/comparison-value/comparison-value.ts +53 -0
- package/entities/currency-display.utils.spec.ts +94 -0
- package/entities/currency-display.utils.ts +92 -0
- package/entities/entities-manage/entities-manage.html +74 -0
- package/entities/entities-manage/entities-manage.scss +72 -0
- package/entities/entities-manage/entities-manage.ts +121 -0
- package/entities/entities-manage/entities-resize-base.ts +153 -0
- package/entities/entities-preview/entities-preview.css +77 -0
- package/entities/entities-preview/entities-preview.html +56 -0
- package/entities/entities-preview/entities-preview.ts +281 -0
- package/entities/entity-attachment/entity-attachment.html +49 -0
- package/entities/entity-attachment/entity-attachment.ts +462 -0
- package/entities/entity-checkbox/entity-checkbox.html +28 -0
- package/entities/entity-checkbox/entity-checkbox.ts +65 -0
- package/entities/entity-comparison.model.ts +39 -0
- package/entities/entity-connection/entity-connection.html +12 -0
- package/entities/entity-connection/entity-connection.ts +75 -0
- package/entities/entity-currency/entity-currency.html +12 -0
- package/entities/entity-currency/entity-currency.ts +59 -0
- package/entities/entity-date/entity-date.html +16 -0
- package/entities/entity-date/entity-date.ts +50 -0
- package/entities/entity-display.utils.ts +94 -0
- package/entities/entity-field/entity-field.ts +94 -0
- package/entities/entity-leaf-details/entity-leaf-details.html +35 -0
- package/entities/entity-leaf-details/entity-leaf-details.ts +56 -0
- package/entities/entity-location/entity-location.html +34 -0
- package/entities/entity-location/entity-location.ts +98 -0
- package/entities/entity-long-text/entity-long-text.html +9 -0
- package/entities/entity-long-text/entity-long-text.ts +45 -0
- package/entities/entity-lookup/entity-lookup.html +25 -0
- package/entities/entity-lookup/entity-lookup.ts +68 -0
- package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.html +39 -0
- package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.spec.ts +148 -0
- package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.ts +152 -0
- package/entities/entity-percentage/entity-percentage.html +22 -0
- package/entities/entity-percentage/entity-percentage.ts +163 -0
- package/entities/entity-phase-gate/entity-phase-gate.html +20 -0
- package/entities/entity-phase-gate/entity-phase-gate.ts +129 -0
- package/entities/entity-preview/entity-preview-body.html +8 -0
- package/entities/entity-preview/entity-preview-body.ts +19 -0
- package/entities/entity-preview/entity-preview.html +14 -0
- package/entities/entity-preview/entity-preview.ts +33 -0
- package/entities/entity-preview/entity-value-preview.html +62 -0
- package/entities/entity-preview/entity-value-preview.spec.ts +191 -0
- package/entities/entity-preview/entity-value-preview.ts +69 -0
- package/entities/entity-schedule-item/entity-schedule-item.html +19 -0
- package/entities/entity-schedule-item/entity-schedule-item.ts +41 -0
- package/entities/entity-sections.util.ts +103 -0
- package/entities/entity-status/entity-status.html +20 -0
- package/entities/entity-status/entity-status.ts +60 -0
- package/entities/entity-text/entity-text.html +20 -0
- package/entities/entity-text/entity-text.ts +35 -0
- package/entities/entity-user/entity-user.html +181 -0
- package/entities/entity-user/entity-user.ts +179 -0
- package/entities/entity.model.ts +407 -0
- package/entities/leaf-details-display.utils.ts +269 -0
- package/entities/ng-package.json +6 -0
- package/entities/percentage-color.utils.spec.ts +94 -0
- package/entities/percentage-color.utils.ts +80 -0
- package/entities/public-api.ts +30 -0
- package/field-validation/character-limit.validator.ts +22 -0
- package/field-validation/error-message.pipe.spec.ts +184 -0
- package/field-validation/error-message.pipe.ts +80 -0
- package/field-validation/field-validation.ts +168 -0
- package/field-validation/ng-package.json +6 -0
- package/field-validation/public-api.ts +2 -0
- package/formula/formula-editor/formula-editor.html +89 -0
- package/formula/formula-editor/formula-editor.scss +25 -0
- package/formula/formula-editor/formula-editor.ts +467 -0
- package/formula/formula-editor/index.ts +1 -0
- package/formula/formula-editor-code/formula-autocomplete-normalization.util.spec.ts +58 -0
- package/formula/formula-editor-code/formula-autocomplete-normalization.util.ts +64 -0
- package/formula/formula-editor-code/formula-completion-range.util.spec.ts +62 -0
- package/formula/formula-editor-code/formula-completion-range.util.ts +71 -0
- package/formula/formula-editor-code/formula-completion-suggestion.util.spec.ts +23 -0
- package/formula/formula-editor-code/formula-completion-suggestion.util.ts +18 -0
- package/formula/formula-editor-code/formula-editor-code.html +15 -0
- package/formula/formula-editor-code/formula-editor-code.scss +90 -0
- package/formula/formula-editor-code/formula-editor-code.ts +1095 -0
- package/formula/formula-editor-code/index.ts +1 -0
- package/formula/formula-status-bar/formula-status-bar.html +119 -0
- package/formula/formula-status-bar/formula-status-bar.ts +66 -0
- package/formula/formula-status-bar/index.ts +1 -0
- package/formula/formula-toolbar/formula-toolbar.html +361 -0
- package/formula/formula-toolbar/formula-toolbar.ts +532 -0
- package/formula/formula-toolbar/index.ts +2 -0
- package/formula/formula-toolbar/operators.ts +122 -0
- package/formula/models/formula-block.model.ts +61 -0
- package/formula/models/formula-token.model.spec.ts +57 -0
- package/formula/models/formula-token.model.ts +852 -0
- package/formula/models/index.ts +5 -0
- package/formula/models/smart-block.model.ts +132 -0
- package/formula/models/validation-result.model.ts +80 -0
- package/formula/ng-package.json +6 -0
- package/formula/public-api.ts +8 -0
- package/formula/runtime/formula-runtime-catalogs.ts +554 -0
- package/formula/runtime/formula-runtime-engine.spec.ts +328 -0
- package/formula/runtime/formula-runtime-engine.ts +794 -0
- package/formula/runtime/formula-runtime.model.ts +53 -0
- package/formula/runtime/index.ts +3 -0
- package/formula/toolbar-item/index.ts +1 -0
- package/formula/toolbar-item/toolbar-item.html +143 -0
- package/formula/toolbar-item/toolbar-item.scss +14 -0
- package/formula/toolbar-item/toolbar-item.ts +223 -0
- package/icon-field/icon-field.html +58 -0
- package/icon-field/icon-field.scss +24 -0
- package/icon-field/icon-field.spec.ts +77 -0
- package/icon-field/icon-field.ts +205 -0
- package/icon-field/ng-package.json +6 -0
- package/icon-field/public-api.ts +1 -0
- package/list/list.html +22 -0
- package/list/list.ts +36 -0
- package/list/ng-package.json +6 -0
- package/list/public-api.ts +1 -0
- package/location-field/location-field.html +86 -0
- package/location-field/location-field.spec.ts +295 -0
- package/location-field/location-field.ts +662 -0
- package/location-field/location-manual-dialog.html +43 -0
- package/location-field/location-manual-dialog.ts +104 -0
- package/location-field/location-value.ts +67 -0
- package/location-field/ng-package.json +6 -0
- package/location-field/public-api.ts +3 -0
- package/menu/menu.html +71 -0
- package/menu/menu.scss +3 -0
- package/menu/menu.ts +186 -0
- package/menu/ng-package.json +6 -0
- package/menu/public-api.ts +1 -0
- package/modal/modal.ts +127 -0
- package/modal/ng-package.json +6 -0
- package/modal/public-api.ts +1 -0
- package/module-summary-card/module-summary-card.html +43 -0
- package/module-summary-card/module-summary-card.scss +0 -0
- package/module-summary-card/module-summary-card.ts +40 -0
- package/module-summary-card/ng-package.json +6 -0
- package/module-summary-card/public-api.ts +1 -0
- package/multi-select-field/multi-select-field.html +140 -0
- package/multi-select-field/multi-select-field.scss +0 -0
- package/multi-select-field/multi-select-field.spec.ts +21 -0
- package/multi-select-field/multi-select-field.ts +397 -0
- package/multi-select-field/ng-package.json +6 -0
- package/multi-select-field/public-api.ts +1 -0
- package/ng-package.json +9 -0
- package/number-field/ng-package.json +6 -0
- package/number-field/number-field.html +39 -0
- package/number-field/number-field.scss +8 -0
- package/number-field/number-field.spec.ts +21 -0
- package/number-field/number-field.ts +124 -0
- package/number-field/public-api.ts +1 -0
- package/package.json +54 -274
- package/page/index.ts +1 -0
- package/page/ng-package.json +6 -0
- package/page/page.html +37 -0
- package/page/page.ts +43 -0
- package/page/public-api.ts +1 -0
- package/page-header/index.ts +2 -0
- package/page-header/ng-package.json +6 -0
- package/page-header/page-header.html +60 -0
- package/page-header/page-header.ts +54 -0
- package/page-header/public-api.ts +1 -0
- package/paginator/ng-package.json +6 -0
- package/paginator/paginator.html +50 -0
- package/paginator/paginator.scss +0 -0
- package/paginator/paginator.ts +53 -0
- package/paginator/public-api.ts +1 -0
- package/pick-list-field/ng-package.json +6 -0
- package/pick-list-field/pick-list-field.html +39 -0
- package/pick-list-field/pick-list-field.scss +26 -0
- package/pick-list-field/pick-list-field.ts +259 -0
- package/pick-list-field/public-api.ts +1 -0
- package/progress/ng-package.json +6 -0
- package/progress/progress.html +36 -0
- package/progress/progress.ts +61 -0
- package/progress/public-api.ts +1 -0
- package/property-filter-builder/ng-package.json +6 -0
- package/property-filter-builder/property-filter-builder.html +192 -0
- package/property-filter-builder/property-filter-builder.ts +548 -0
- package/property-filter-builder/public-api.ts +1 -0
- package/radio-button-field/ng-package.json +6 -0
- package/radio-button-field/public-api.ts +1 -0
- package/radio-button-field/radio-button-field.html +44 -0
- package/radio-button-field/radio-button-field.scss +0 -0
- package/radio-button-field/radio-button-field.ts +114 -0
- package/radio-cards/ng-package.json +6 -0
- package/radio-cards/public-api.ts +1 -0
- package/radio-cards/radio-cards.css +3 -0
- package/radio-cards/radio-cards.html +54 -0
- package/radio-cards/radio-cards.spec.ts +22 -0
- package/radio-cards/radio-cards.ts +92 -0
- package/radio-cards-field/ng-package.json +6 -0
- package/radio-cards-field/public-api.ts +1 -0
- package/radio-cards-field/radio-cards-field.css +0 -0
- package/radio-cards-field/radio-cards-field.html +38 -0
- package/radio-cards-field/radio-cards-field.spec.ts +22 -0
- package/radio-cards-field/radio-cards-field.ts +182 -0
- package/runtime-action/ng-package.json +6 -0
- package/runtime-action/payload-builder.ts +246 -0
- package/runtime-action/public-api.ts +4 -0
- package/runtime-action/runtime-action-context.store.ts +26 -0
- package/runtime-action/runtime-action.runner.ts +302 -0
- package/runtime-action/runtime-action.types.ts +82 -0
- package/select-field/current-user.util.ts +54 -0
- package/select-field/ng-package.json +6 -0
- package/select-field/public-api.ts +1 -0
- package/select-field/select-field.html +142 -0
- package/select-field/select-field.scss +0 -0
- package/select-field/select-field.spec.ts +21 -0
- package/select-field/select-field.ts +471 -0
- package/sidebar/ng-package.json +6 -0
- package/sidebar/public-api.ts +1 -0
- package/sidebar/sidebar.html +368 -0
- package/sidebar/sidebar.ts +303 -0
- package/slider-field/ng-package.json +7 -0
- package/slider-field/public-api.ts +1 -0
- package/slider-field/slider-field.html +33 -0
- package/slider-field/slider-field.scss +11 -0
- package/slider-field/slider-field.spec.ts +44 -0
- package/slider-field/slider-field.ts +166 -0
- package/src/lib/base/base.facade.ts +159 -0
- package/src/lib/base/crud-base.state.ts +248 -0
- package/src/lib/config/date-format.config.ts +55 -0
- package/src/lib/config/ds-identity.preset.ts +538 -0
- package/src/lib/config/ds-identity.tokens.ts +209 -0
- package/src/lib/config/dynamic-form.model.ts +1162 -0
- package/src/lib/config/povide-messages.ts +5 -0
- package/src/lib/config/provide-confirmation.ts +5 -0
- package/src/lib/config/providemt.ts +506 -0
- package/src/lib/config/public-api.ts +0 -0
- package/src/lib/pipes/mt-date-format.pipe.spec.ts +60 -0
- package/src/lib/pipes/mt-date-format.pipe.ts +81 -0
- package/src/lib/utils/api-request.helper.ts +59 -0
- package/src/lib/utils/clock-time.util.ts +58 -0
- package/src/lib/utils/color.utils.ts +187 -0
- package/src/lib/utils/entity-adapter.ts +50 -0
- package/src/lib/utils/field-id.ts +42 -0
- package/src/lib/utils/http-context.ts +35 -0
- package/src/lib/utils/inputs.ts +6 -0
- package/src/lib/utils/state-helpers.ts +49 -0
- package/src/lib/utils/theme.ts +281 -0
- package/src/public-api.ts +30 -0
- package/statistic-card/ng-package.json +6 -0
- package/statistic-card/public-api.ts +1 -0
- package/statistic-card/statistic-card.html +31 -0
- package/statistic-card/statistic-card.scss +0 -0
- package/statistic-card/statistic-card.ts +59 -0
- package/table/ng-package.json +7 -0
- package/table/public-api.ts +10 -0
- package/table/table-actions-menu/public-api.ts +1 -0
- package/table/table-actions-menu/table-actions-menu.html +75 -0
- package/table/table-actions-menu/table-actions-menu.ts +171 -0
- package/table/table-caption/public-api.ts +1 -0
- package/table/table-caption/table-caption.html +118 -0
- package/table/table-caption/table-caption.ts +221 -0
- package/table/table-column-filter/public-api.ts +1 -0
- package/table/table-column-filter/table-column-filter.html +44 -0
- package/table/table-column-filter/table-column-filter.ts +106 -0
- package/table/table-export/html-to-text.util.ts +67 -0
- package/table/table-export/public-api.ts +1 -0
- package/table/table-export/table-export.service.spec.ts +186 -0
- package/table/table-export/table-export.service.ts +325 -0
- package/table/table-filter/public-api.ts +1 -0
- package/table/table-filter/table-filter.css +9 -0
- package/table/table-filter/table-filter.html +63 -0
- package/table/table-filter/table-filter.ts +126 -0
- package/table/table-filter-field/public-api.ts +1 -0
- package/table/table-filter-field/table-filter-field.html +182 -0
- package/table/table-filter-field/table-filter-field.ts +208 -0
- package/table/table-grouping/public-api.ts +1 -0
- package/table/table-grouping/table-grouping.spec.ts +218 -0
- package/table/table-grouping/table-grouping.ts +237 -0
- package/table/table-types.ts +242 -0
- package/table/table-value.utils.spec.ts +63 -0
- package/table/table-value.utils.ts +1014 -0
- package/table/table.css +145 -0
- package/table/table.html +572 -0
- package/table/table.ts +2042 -0
- package/tabs/ng-package.json +6 -0
- package/tabs/public-api.ts +1 -0
- package/tabs/tabs.html +417 -0
- package/tabs/tabs.scss +3 -0
- package/tabs/tabs.spec.ts +79 -0
- package/tabs/tabs.ts +397 -0
- package/text-field/ng-package.json +6 -0
- package/text-field/public-api.ts +1 -0
- package/text-field/text-field.html +75 -0
- package/text-field/text-field.scss +56 -0
- package/text-field/text-field.ts +251 -0
- package/textarea-field/ng-package.json +6 -0
- package/textarea-field/public-api.ts +1 -0
- package/textarea-field/textarea-field.html +37 -0
- package/textarea-field/textarea-field.scss +0 -0
- package/textarea-field/textarea-field.spec.ts +21 -0
- package/textarea-field/textarea-field.ts +169 -0
- package/toast/ng-package.json +6 -0
- package/toast/public-api.ts +2 -0
- package/toast/toast.html +18 -0
- package/toast/toast.service.ts +67 -0
- package/toast/toast.ts +21 -0
- package/toggle-field/ng-package.json +6 -0
- package/toggle-field/public-api.ts +1 -0
- package/toggle-field/toggle-field.html +78 -0
- package/toggle-field/toggle-field.scss +24 -0
- package/toggle-field/toggle-field.ts +150 -0
- package/tooltip/ng-package.json +6 -0
- package/tooltip/public-api.ts +2 -0
- package/tooltip/tooltip.ts +30 -0
- package/tooltip/truncate-tooltip.ts +124 -0
- package/topbar/ng-package.json +6 -0
- package/topbar/public-api.ts +1 -0
- package/topbar/topbar.html +52 -0
- package/topbar/topbar.ts +27 -0
- package/tree/ng-package.json +6 -0
- package/tree/public-api.ts +2 -0
- package/tree/tree-types.ts +55 -0
- package/tree/tree.html +126 -0
- package/tree/tree.scss +1 -0
- package/tree/tree.ts +303 -0
- package/treeselect-field/ng-package.json +6 -0
- package/treeselect-field/public-api.ts +1 -0
- package/treeselect-field/treeselect-field.html +71 -0
- package/treeselect-field/treeselect-field.ts +348 -0
- package/tsconfig.check.json +20 -0
- package/tsconfig.json +16 -0
- package/tsconfig.spec.json +24 -0
- package/upload-field/ng-package.json +6 -0
- package/upload-field/public-api.ts +2 -0
- package/upload-field/secure-image.pipe.ts +258 -0
- package/upload-field/upload-field.html +274 -0
- package/upload-field/upload-field.scss +0 -0
- package/upload-field/upload-field.spec.ts +169 -0
- package/upload-field/upload-field.ts +764 -0
- package/upload-field/upload-file-preview/upload-file-preview.html +41 -0
- package/upload-field/upload-file-preview/upload-file-preview.scss +0 -0
- package/upload-field/upload-file-preview/upload-file-preview.ts +57 -0
- package/upload-field/upload-user-preview/upload-user-preview.css +0 -0
- package/upload-field/upload-user-preview/upload-user-preview.html +73 -0
- package/upload-field/upload-user-preview/upload-user-preview.ts +54 -0
- package/uploader/ng-package.json +6 -0
- package/uploader/public-api.ts +1 -0
- package/uploader/uploader.service.spec.ts +271 -0
- package/uploader/uploader.service.ts +733 -0
- package/user-search-field/ng-package.json +6 -0
- package/user-search-field/public-api.ts +1 -0
- package/user-search-field/user-search-field.html +88 -0
- package/user-search-field/user-search-field.scss +4 -0
- package/user-search-field/user-search-field.spec.ts +176 -0
- package/user-search-field/user-search-field.ts +483 -0
- package/fesm2022/masterteam-components-avatar-text.mjs +0 -46
- package/fesm2022/masterteam-components-avatar-text.mjs.map +0 -1
- package/fesm2022/masterteam-components-avatar.mjs +0 -50
- package/fesm2022/masterteam-components-avatar.mjs.map +0 -1
- package/fesm2022/masterteam-components-breadcrumb.mjs +0 -27
- package/fesm2022/masterteam-components-breadcrumb.mjs.map +0 -1
- package/fesm2022/masterteam-components-business-fields.mjs +0 -1902
- package/fesm2022/masterteam-components-business-fields.mjs.map +0 -1
- package/fesm2022/masterteam-components-button-group.mjs +0 -20
- package/fesm2022/masterteam-components-button-group.mjs.map +0 -1
- package/fesm2022/masterteam-components-button.mjs +0 -52
- package/fesm2022/masterteam-components-button.mjs.map +0 -1
- package/fesm2022/masterteam-components-card.mjs +0 -28
- package/fesm2022/masterteam-components-card.mjs.map +0 -1
- package/fesm2022/masterteam-components-checkbox-field.mjs +0 -88
- package/fesm2022/masterteam-components-checkbox-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-chip.mjs +0 -39
- package/fesm2022/masterteam-components-chip.mjs.map +0 -1
- package/fesm2022/masterteam-components-client-page-menu.mjs +0 -152
- package/fesm2022/masterteam-components-client-page-menu.mjs.map +0 -1
- package/fesm2022/masterteam-components-client-page.mjs +0 -371
- package/fesm2022/masterteam-components-client-page.mjs.map +0 -1
- package/fesm2022/masterteam-components-color-picker-field.mjs +0 -102
- package/fesm2022/masterteam-components-color-picker-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-confirmation.mjs +0 -98
- package/fesm2022/masterteam-components-confirmation.mjs.map +0 -1
- package/fesm2022/masterteam-components-date-field.mjs +0 -154
- package/fesm2022/masterteam-components-date-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-dialog.mjs +0 -33
- package/fesm2022/masterteam-components-dialog.mjs.map +0 -1
- package/fesm2022/masterteam-components-drawer.mjs +0 -268
- package/fesm2022/masterteam-components-drawer.mjs.map +0 -1
- package/fesm2022/masterteam-components-dynamic-drawer.mjs +0 -608
- package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +0 -1
- package/fesm2022/masterteam-components-editor-field.mjs +0 -99
- package/fesm2022/masterteam-components-editor-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-entities.mjs +0 -2033
- package/fesm2022/masterteam-components-entities.mjs.map +0 -1
- package/fesm2022/masterteam-components-field-validation.mjs +0 -158
- package/fesm2022/masterteam-components-field-validation.mjs.map +0 -1
- package/fesm2022/masterteam-components-formula.mjs +0 -3848
- package/fesm2022/masterteam-components-formula.mjs.map +0 -1
- package/fesm2022/masterteam-components-icon-field.mjs +0 -161
- package/fesm2022/masterteam-components-icon-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-list.mjs +0 -31
- package/fesm2022/masterteam-components-list.mjs.map +0 -1
- package/fesm2022/masterteam-components-location-field.mjs +0 -603
- package/fesm2022/masterteam-components-location-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-menu.mjs +0 -135
- package/fesm2022/masterteam-components-menu.mjs.map +0 -1
- package/fesm2022/masterteam-components-modal.mjs +0 -108
- package/fesm2022/masterteam-components-modal.mjs.map +0 -1
- package/fesm2022/masterteam-components-module-summary-card.mjs +0 -34
- package/fesm2022/masterteam-components-module-summary-card.mjs.map +0 -1
- package/fesm2022/masterteam-components-multi-select-field.mjs +0 -317
- package/fesm2022/masterteam-components-multi-select-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-number-field.mjs +0 -98
- package/fesm2022/masterteam-components-number-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-page-header.mjs +0 -42
- package/fesm2022/masterteam-components-page-header.mjs.map +0 -1
- package/fesm2022/masterteam-components-page.mjs +0 -35
- package/fesm2022/masterteam-components-page.mjs.map +0 -1
- package/fesm2022/masterteam-components-paginator.mjs +0 -43
- package/fesm2022/masterteam-components-paginator.mjs.map +0 -1
- package/fesm2022/masterteam-components-pick-list-field.mjs +0 -206
- package/fesm2022/masterteam-components-pick-list-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-progress.mjs +0 -63
- package/fesm2022/masterteam-components-progress.mjs.map +0 -1
- package/fesm2022/masterteam-components-property-filter-builder.mjs +0 -386
- package/fesm2022/masterteam-components-property-filter-builder.mjs.map +0 -1
- package/fesm2022/masterteam-components-radio-button-field.mjs +0 -85
- package/fesm2022/masterteam-components-radio-button-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-radio-cards-field.mjs +0 -126
- package/fesm2022/masterteam-components-radio-cards-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-radio-cards.mjs +0 -74
- package/fesm2022/masterteam-components-radio-cards.mjs.map +0 -1
- package/fesm2022/masterteam-components-runtime-action.mjs +0 -406
- package/fesm2022/masterteam-components-runtime-action.mjs.map +0 -1
- package/fesm2022/masterteam-components-select-field.mjs +0 -411
- package/fesm2022/masterteam-components-select-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-sidebar.mjs +0 -155
- package/fesm2022/masterteam-components-sidebar.mjs.map +0 -1
- package/fesm2022/masterteam-components-slider-field.mjs +0 -128
- package/fesm2022/masterteam-components-slider-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-statistic-card.mjs +0 -42
- package/fesm2022/masterteam-components-statistic-card.mjs.map +0 -1
- package/fesm2022/masterteam-components-table.mjs +0 -3197
- package/fesm2022/masterteam-components-table.mjs.map +0 -1
- package/fesm2022/masterteam-components-tabs.mjs +0 -289
- package/fesm2022/masterteam-components-tabs.mjs.map +0 -1
- package/fesm2022/masterteam-components-text-field.mjs +0 -198
- package/fesm2022/masterteam-components-text-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-textarea-field.mjs +0 -122
- package/fesm2022/masterteam-components-textarea-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-toast.mjs +0 -80
- package/fesm2022/masterteam-components-toast.mjs.map +0 -1
- package/fesm2022/masterteam-components-toggle-field.mjs +0 -116
- package/fesm2022/masterteam-components-toggle-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-tooltip.mjs +0 -147
- package/fesm2022/masterteam-components-tooltip.mjs.map +0 -1
- package/fesm2022/masterteam-components-topbar.mjs +0 -32
- package/fesm2022/masterteam-components-topbar.mjs.map +0 -1
- package/fesm2022/masterteam-components-tree.mjs +0 -260
- package/fesm2022/masterteam-components-tree.mjs.map +0 -1
- package/fesm2022/masterteam-components-treeselect-field.mjs +0 -265
- package/fesm2022/masterteam-components-treeselect-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-upload-field.mjs +0 -841
- package/fesm2022/masterteam-components-upload-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-uploader.mjs +0 -425
- package/fesm2022/masterteam-components-uploader.mjs.map +0 -1
- package/fesm2022/masterteam-components-user-search-field.mjs +0 -370
- package/fesm2022/masterteam-components-user-search-field.mjs.map +0 -1
- package/fesm2022/masterteam-components.mjs +0 -2334
- package/fesm2022/masterteam-components.mjs.map +0 -1
- package/types/masterteam-components-avatar-text.d.ts +0 -23
- package/types/masterteam-components-avatar.d.ts +0 -23
- package/types/masterteam-components-breadcrumb.d.ts +0 -18
- package/types/masterteam-components-business-fields.d.ts +0 -671
- package/types/masterteam-components-button-group.d.ts +0 -8
- package/types/masterteam-components-button.d.ts +0 -36
- package/types/masterteam-components-card.d.ts +0 -14
- package/types/masterteam-components-checkbox-field.d.ts +0 -34
- package/types/masterteam-components-chip.d.ts +0 -21
- package/types/masterteam-components-client-page-menu.d.ts +0 -55
- package/types/masterteam-components-client-page.d.ts +0 -109
- package/types/masterteam-components-color-picker-field.d.ts +0 -35
- package/types/masterteam-components-confirmation.d.ts +0 -41
- package/types/masterteam-components-date-field.d.ts +0 -53
- package/types/masterteam-components-dialog.d.ts +0 -12
- package/types/masterteam-components-drawer.d.ts +0 -62
- package/types/masterteam-components-dynamic-drawer.d.ts +0 -159
- package/types/masterteam-components-editor-field.d.ts +0 -35
- package/types/masterteam-components-entities.d.ts +0 -1030
- package/types/masterteam-components-field-validation.d.ts +0 -23
- package/types/masterteam-components-formula.d.ts +0 -759
- package/types/masterteam-components-icon-field.d.ts +0 -40
- package/types/masterteam-components-list.d.ts +0 -18
- package/types/masterteam-components-location-field.d.ts +0 -169
- package/types/masterteam-components-menu.d.ts +0 -55
- package/types/masterteam-components-modal.d.ts +0 -30
- package/types/masterteam-components-module-summary-card.d.ts +0 -18
- package/types/masterteam-components-multi-select-field.d.ts +0 -100
- package/types/masterteam-components-number-field.d.ts +0 -43
- package/types/masterteam-components-page-header.d.ts +0 -30
- package/types/masterteam-components-page.d.ts +0 -26
- package/types/masterteam-components-paginator.d.ts +0 -20
- package/types/masterteam-components-pick-list-field.d.ts +0 -61
- package/types/masterteam-components-progress.d.ts +0 -30
- package/types/masterteam-components-property-filter-builder.d.ts +0 -90
- package/types/masterteam-components-radio-button-field.d.ts +0 -41
- package/types/masterteam-components-radio-cards-field.d.ts +0 -35
- package/types/masterteam-components-radio-cards.d.ts +0 -33
- package/types/masterteam-components-runtime-action.d.ts +0 -105
- package/types/masterteam-components-select-field.d.ts +0 -132
- package/types/masterteam-components-sidebar.d.ts +0 -71
- package/types/masterteam-components-slider-field.d.ts +0 -41
- package/types/masterteam-components-statistic-card.d.ts +0 -28
- package/types/masterteam-components-table.d.ts +0 -827
- package/types/masterteam-components-tabs.d.ts +0 -80
- package/types/masterteam-components-text-field.d.ts +0 -56
- package/types/masterteam-components-textarea-field.d.ts +0 -41
- package/types/masterteam-components-toast.d.ts +0 -27
- package/types/masterteam-components-toggle-field.d.ts +0 -44
- package/types/masterteam-components-tooltip.d.ts +0 -26
- package/types/masterteam-components-topbar.d.ts +0 -20
- package/types/masterteam-components-tree.d.ts +0 -106
- package/types/masterteam-components-treeselect-field.d.ts +0 -79
- package/types/masterteam-components-upload-field.d.ts +0 -108
- package/types/masterteam-components-uploader.d.ts +0 -53
- package/types/masterteam-components-user-search-field.d.ts +0 -106
- package/types/masterteam-components.d.ts +0 -1181
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { signal } from '@angular/core';
|
|
2
|
+
import { ColumnDef } from '../table-types';
|
|
3
|
+
import { TableGroupingController } from './table-grouping';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Builds a controller over fixed columns/rows. Sort signals are writable so the
|
|
7
|
+
* "grouping pins the sort" behaviour can be asserted.
|
|
8
|
+
*/
|
|
9
|
+
function createController(columns: ColumnDef[], rows: unknown[]) {
|
|
10
|
+
const groupBy = signal<string | null>(null);
|
|
11
|
+
const sortField = signal<string | null>(null);
|
|
12
|
+
const sortDirection = signal<'asc' | 'desc' | null>(null);
|
|
13
|
+
|
|
14
|
+
const controller = new TableGroupingController(
|
|
15
|
+
signal(columns),
|
|
16
|
+
signal(rows),
|
|
17
|
+
groupBy,
|
|
18
|
+
sortField,
|
|
19
|
+
sortDirection,
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
return { controller, groupBy, sortField, sortDirection };
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** Mirrors how a Work Center runtime row reaches the table. */
|
|
26
|
+
function levelRow(
|
|
27
|
+
label: string | null,
|
|
28
|
+
levelDataId: number | null,
|
|
29
|
+
id: string,
|
|
30
|
+
) {
|
|
31
|
+
return {
|
|
32
|
+
id,
|
|
33
|
+
levelDataName: {
|
|
34
|
+
key: 'levelDataName',
|
|
35
|
+
label: 'Level Name',
|
|
36
|
+
type: 'entity',
|
|
37
|
+
viewType: 'Text',
|
|
38
|
+
value: label ?? '—',
|
|
39
|
+
},
|
|
40
|
+
__mtLevelGroup: label
|
|
41
|
+
? levelDataId === null
|
|
42
|
+
? `name:${label}`
|
|
43
|
+
: `id:${levelDataId}`
|
|
44
|
+
: '',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const LEVEL_COLUMN: ColumnDef = {
|
|
49
|
+
key: 'levelDataName',
|
|
50
|
+
label: 'Level Name',
|
|
51
|
+
type: 'entity',
|
|
52
|
+
groupable: true,
|
|
53
|
+
groupKey: '__mtLevelGroup',
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
describe('TableGroupingController', () => {
|
|
57
|
+
describe('groupableColumns', () => {
|
|
58
|
+
it('offers a text column that explicitly opts in', () => {
|
|
59
|
+
const { controller } = createController([LEVEL_COLUMN], []);
|
|
60
|
+
|
|
61
|
+
expect(controller.groupableColumns().map((col) => col.key)).toEqual([
|
|
62
|
+
'levelDataName',
|
|
63
|
+
]);
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
it('still excludes a text column that has not opted in', () => {
|
|
67
|
+
const { controller } = createController(
|
|
68
|
+
[{ key: 'title', label: 'Title', type: 'text' }],
|
|
69
|
+
[],
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
expect(controller.groupableColumns()).toEqual([]);
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
it('offers categorical entity columns by their view type', () => {
|
|
76
|
+
const { controller } = createController(
|
|
77
|
+
[
|
|
78
|
+
// A LookupMatrix (e.g. a risk Classification) filters as free text
|
|
79
|
+
// but its values are a small fixed set.
|
|
80
|
+
{
|
|
81
|
+
key: 'classification',
|
|
82
|
+
label: 'Classification',
|
|
83
|
+
type: 'entity',
|
|
84
|
+
viewType: 'LookupMatrix',
|
|
85
|
+
} as ColumnDef,
|
|
86
|
+
{
|
|
87
|
+
key: 'status',
|
|
88
|
+
label: 'Status',
|
|
89
|
+
type: 'entity',
|
|
90
|
+
viewType: 'Lookup',
|
|
91
|
+
} as ColumnDef,
|
|
92
|
+
{
|
|
93
|
+
key: 'createdBy',
|
|
94
|
+
label: 'Created By',
|
|
95
|
+
type: 'entity',
|
|
96
|
+
viewType: 'User',
|
|
97
|
+
} as ColumnDef,
|
|
98
|
+
],
|
|
99
|
+
[],
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
expect(controller.groupableColumns().map((col) => col.key)).toEqual([
|
|
103
|
+
'classification',
|
|
104
|
+
'status',
|
|
105
|
+
'createdBy',
|
|
106
|
+
]);
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
it('excludes entity columns whose values are unique per row', () => {
|
|
110
|
+
const { controller } = createController(
|
|
111
|
+
[
|
|
112
|
+
{
|
|
113
|
+
key: 'title',
|
|
114
|
+
label: 'Title',
|
|
115
|
+
type: 'entity',
|
|
116
|
+
viewType: 'Text',
|
|
117
|
+
} as ColumnDef,
|
|
118
|
+
{
|
|
119
|
+
key: 'dueDate',
|
|
120
|
+
label: 'Due',
|
|
121
|
+
type: 'entity',
|
|
122
|
+
viewType: 'Date',
|
|
123
|
+
} as ColumnDef,
|
|
124
|
+
{
|
|
125
|
+
key: 'progress',
|
|
126
|
+
label: 'Progress',
|
|
127
|
+
type: 'entity',
|
|
128
|
+
viewType: 'Percentage',
|
|
129
|
+
} as ColumnDef,
|
|
130
|
+
],
|
|
131
|
+
[],
|
|
132
|
+
);
|
|
133
|
+
|
|
134
|
+
expect(controller.groupableColumns()).toEqual([]);
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
it('lets a low-cardinality column opt out', () => {
|
|
138
|
+
const { controller } = createController(
|
|
139
|
+
[{ key: 'status', label: 'Status', type: 'status', groupable: false }],
|
|
140
|
+
[],
|
|
141
|
+
);
|
|
142
|
+
|
|
143
|
+
expect(controller.groupableColumns()).toEqual([]);
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
describe('groupKey identity', () => {
|
|
148
|
+
it('keeps records with the same label in separate groups', () => {
|
|
149
|
+
const rows = [
|
|
150
|
+
levelRow('Project Gamma', 4201, 'general-task:1'),
|
|
151
|
+
levelRow('Project Gamma', 4202, 'general-task:2'),
|
|
152
|
+
];
|
|
153
|
+
const { controller, groupBy } = createController([LEVEL_COLUMN], rows);
|
|
154
|
+
groupBy.set('levelDataName');
|
|
155
|
+
|
|
156
|
+
expect(controller.getGroupSortKey(rows[0])).toBe('id:4201');
|
|
157
|
+
expect(controller.getGroupSortKey(rows[1])).toBe('id:4202');
|
|
158
|
+
expect(controller.getGroupSortKey(rows[0])).not.toBe(
|
|
159
|
+
controller.getGroupSortKey(rows[1]),
|
|
160
|
+
);
|
|
161
|
+
// Both still render the same visible label.
|
|
162
|
+
expect(controller.getGroupLabel(rows[0])).toBe('Project Gamma');
|
|
163
|
+
expect(controller.getGroupLabel(rows[1])).toBe('Project Gamma');
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
it('collapses rows with no visible label into one group', () => {
|
|
167
|
+
const rows = [
|
|
168
|
+
levelRow(null, 4201, 'general-task:3'),
|
|
169
|
+
levelRow(null, 9999, 'general-task:4'),
|
|
170
|
+
];
|
|
171
|
+
const { controller, groupBy } = createController([LEVEL_COLUMN], rows);
|
|
172
|
+
groupBy.set('levelDataName');
|
|
173
|
+
|
|
174
|
+
expect(controller.getGroupSortKey(rows[0])).toBe(
|
|
175
|
+
controller.getGroupSortKey(rows[1]),
|
|
176
|
+
);
|
|
177
|
+
expect(controller.getGroupLabel(rows[0])).toBe('—');
|
|
178
|
+
expect(controller.getGroupCount(rows[0])).toBe(2);
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
it('counts each identity separately even when labels collide', () => {
|
|
182
|
+
const rows = [
|
|
183
|
+
levelRow('Project Gamma', 4201, 'general-task:1'),
|
|
184
|
+
levelRow('Project Gamma', 4201, 'general-task:2'),
|
|
185
|
+
levelRow('Project Gamma', 4202, 'general-task:3'),
|
|
186
|
+
];
|
|
187
|
+
const { controller, groupBy } = createController([LEVEL_COLUMN], rows);
|
|
188
|
+
groupBy.set('levelDataName');
|
|
189
|
+
|
|
190
|
+
expect(controller.getGroupCount(rows[0])).toBe(2);
|
|
191
|
+
expect(controller.getGroupCount(rows[2])).toBe(1);
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
it('falls back to the label when no groupKey is configured', () => {
|
|
195
|
+
const column: ColumnDef = { key: 'status', label: 'Status' };
|
|
196
|
+
const rows = [{ status: 'Active' }, { status: 'Active' }];
|
|
197
|
+
const { controller, groupBy } = createController([column], rows);
|
|
198
|
+
groupBy.set('status');
|
|
199
|
+
|
|
200
|
+
expect(controller.getGroupSortKey(rows[0])).toBe('Active');
|
|
201
|
+
expect(controller.getGroupCount(rows[0])).toBe(2);
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
describe('setGroup', () => {
|
|
206
|
+
it('pins the sort to the grouped column', () => {
|
|
207
|
+
const { controller, sortField, sortDirection } = createController(
|
|
208
|
+
[LEVEL_COLUMN],
|
|
209
|
+
[],
|
|
210
|
+
);
|
|
211
|
+
|
|
212
|
+
controller.setGroup('levelDataName');
|
|
213
|
+
|
|
214
|
+
expect(sortField()).toBe('levelDataName');
|
|
215
|
+
expect(sortDirection()).toBe('asc');
|
|
216
|
+
});
|
|
217
|
+
});
|
|
218
|
+
});
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { computed, Signal, WritableSignal } from '@angular/core';
|
|
2
|
+
import { TranslocoService } from '@jsverse/transloco';
|
|
3
|
+
import type { EntityViewType } from '@masterteam/components/entities';
|
|
4
|
+
import { ColumnDef, FilterConfig } from '../table-types';
|
|
5
|
+
import { TableValueResolver } from '../table-value.utils';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Column filter types that produce useful (low-cardinality) row groups.
|
|
9
|
+
* Unique-valued columns (plain text, dates) would create a group per row —
|
|
10
|
+
* pointless visually and slow — so we exclude them from the group picker.
|
|
11
|
+
*/
|
|
12
|
+
const GROUPABLE_FILTER_TYPES: ReadonlySet<FilterConfig['type']> = new Set([
|
|
13
|
+
'select',
|
|
14
|
+
'boolean',
|
|
15
|
+
'user',
|
|
16
|
+
]);
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Entity view types whose values are categorical enough to bucket rows by.
|
|
20
|
+
* Entity columns are judged on this rather than their filter type: a
|
|
21
|
+
* `LookupMatrix` (e.g. a risk Classification) filters as free text but its
|
|
22
|
+
* values are a small fixed set, so it groups perfectly well.
|
|
23
|
+
*/
|
|
24
|
+
const GROUPABLE_ENTITY_VIEW_TYPES: ReadonlySet<EntityViewType> = new Set([
|
|
25
|
+
'Status',
|
|
26
|
+
'Lookup',
|
|
27
|
+
'LookupMatrix',
|
|
28
|
+
'PhaseGate',
|
|
29
|
+
'User',
|
|
30
|
+
'Checkbox',
|
|
31
|
+
]);
|
|
32
|
+
|
|
33
|
+
/** Bucket every row whose grouped value is missing/empty falls into. */
|
|
34
|
+
export const EMPTY_GROUP_KEY = '__mt_group_empty__';
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Pure controller owning all row-grouping concerns. Table instantiates one and
|
|
38
|
+
* binds its signals — keeps grouping logic out of table.ts.
|
|
39
|
+
*
|
|
40
|
+
* PrimeNG's subheader grouping renders only when `sortField === groupRowsBy`.
|
|
41
|
+
* `setGroup` therefore also pins the sort to the grouped column; clearing the
|
|
42
|
+
* group leaves the user's sort untouched.
|
|
43
|
+
*/
|
|
44
|
+
export class TableGroupingController {
|
|
45
|
+
constructor(
|
|
46
|
+
private readonly columns: Signal<ColumnDef[]>,
|
|
47
|
+
private readonly rows: Signal<unknown[]>,
|
|
48
|
+
private readonly groupBy: WritableSignal<string | null>,
|
|
49
|
+
private readonly sortField: WritableSignal<string | null>,
|
|
50
|
+
private readonly sortDirection: WritableSignal<'asc' | 'desc' | null>,
|
|
51
|
+
private readonly transloco?: TranslocoService,
|
|
52
|
+
) {}
|
|
53
|
+
|
|
54
|
+
private translate(key: string): string {
|
|
55
|
+
return this.transloco ? this.transloco.translate(key) : key;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
readonly groupableColumns = computed<ColumnDef[]>(() => {
|
|
59
|
+
const sampleRow = this.rows()[0] as Record<string, unknown> | undefined;
|
|
60
|
+
return this.columns().filter((col) => {
|
|
61
|
+
if (col.filterOnly) return false;
|
|
62
|
+
// Explicit `groupable` wins over the cardinality heuristic in both
|
|
63
|
+
// directions — the host knows when a high-cardinality column is still
|
|
64
|
+
// worth grouping (backend-ordered) or when a low-cardinality one isn't.
|
|
65
|
+
if (typeof col.groupable === 'boolean') return col.groupable;
|
|
66
|
+
if (col.type === 'custom') return false;
|
|
67
|
+
|
|
68
|
+
if (col.type === 'entity') {
|
|
69
|
+
const viewType = TableValueResolver.getEntityViewType(col, sampleRow);
|
|
70
|
+
return !!viewType && GROUPABLE_ENTITY_VIEW_TYPES.has(viewType);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const filterType = TableValueResolver.getColumnFilterType(col, sampleRow);
|
|
74
|
+
return filterType !== null && GROUPABLE_FILTER_TYPES.has(filterType);
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Row counts per group key — consumed by the group header template so each
|
|
80
|
+
* subheader can show "Status: Active (12)".
|
|
81
|
+
*/
|
|
82
|
+
readonly groupCounts = computed<Map<string, number>>(() => {
|
|
83
|
+
const column = this.activeGroupColumn();
|
|
84
|
+
if (!column) return new Map();
|
|
85
|
+
|
|
86
|
+
const counts = new Map<string, number>();
|
|
87
|
+
for (const row of this.rows()) {
|
|
88
|
+
const key = this.getGroupKey(row, column);
|
|
89
|
+
counts.set(key, (counts.get(key) ?? 0) + 1);
|
|
90
|
+
}
|
|
91
|
+
return counts;
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
getGroupCount(row: unknown): number {
|
|
95
|
+
const column = this.activeGroupColumn();
|
|
96
|
+
if (!column) return 0;
|
|
97
|
+
return this.groupCounts().get(this.getGroupKey(row, column)) ?? 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
readonly activeGroupColumn = computed<ColumnDef | null>(() => {
|
|
101
|
+
const key = this.groupBy();
|
|
102
|
+
if (!key) return null;
|
|
103
|
+
return this.columns().find((col) => col.key === key) ?? null;
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
readonly groupingActive = computed<boolean>(
|
|
107
|
+
() => this.activeGroupColumn() !== null,
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Whether the group header repeats the grouped column's name before the
|
|
112
|
+
* value. Opt-out per column via `ColumnDef.showGroupColumnLabel`.
|
|
113
|
+
*/
|
|
114
|
+
readonly showsGroupColumnLabel = computed<boolean>(
|
|
115
|
+
() => this.activeGroupColumn()?.showGroupColumnLabel !== false,
|
|
116
|
+
);
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Returns true when the given column is the active group column and
|
|
120
|
+
* therefore cannot have its sort cleared (PrimeNG requirement).
|
|
121
|
+
*/
|
|
122
|
+
isGroupLockedSort(columnKey: string): boolean {
|
|
123
|
+
return this.groupingActive() && this.activeGroupColumn()?.key === columnKey;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
setGroup(key: string | null): void {
|
|
127
|
+
this.groupBy.set(key && key.length > 0 ? key : null);
|
|
128
|
+
|
|
129
|
+
if (key) {
|
|
130
|
+
this.sortField.set(key);
|
|
131
|
+
if (this.sortDirection() === null) {
|
|
132
|
+
this.sortDirection.set('asc');
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Display label for a row's grouped value — used by the `#groupheader`
|
|
139
|
+
* template. Leverages the same resolver pipeline the cells use, so status
|
|
140
|
+
* maps / user display names render consistently.
|
|
141
|
+
*/
|
|
142
|
+
getGroupLabel(row: unknown): string {
|
|
143
|
+
const column = this.activeGroupColumn();
|
|
144
|
+
if (!column) return '';
|
|
145
|
+
|
|
146
|
+
const cellValue = TableValueResolver.getProperty(row, column.key);
|
|
147
|
+
if (cellValue === null || cellValue === undefined || cellValue === '') {
|
|
148
|
+
return '—';
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if (column.type === 'entity') {
|
|
152
|
+
const entityValue = TableValueResolver.getEntityValueByType(
|
|
153
|
+
cellValue,
|
|
154
|
+
'export',
|
|
155
|
+
);
|
|
156
|
+
return entityValue === null ? '—' : String(entityValue);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
const display = TableValueResolver.resolveDisplayValue(cellValue);
|
|
160
|
+
if (display === null || display === undefined) return '—';
|
|
161
|
+
if (typeof display === 'boolean')
|
|
162
|
+
return display
|
|
163
|
+
? this.translate('components.table.yes')
|
|
164
|
+
: this.translate('components.table.no');
|
|
165
|
+
return String(display);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Accent color for status/entity-Status group headers. Reused from the
|
|
170
|
+
* cell renderer's status-map pipeline so tint is consistent with the cell.
|
|
171
|
+
*/
|
|
172
|
+
getGroupAccentColor(row: unknown): string | null {
|
|
173
|
+
const column = this.activeGroupColumn();
|
|
174
|
+
if (!column) return null;
|
|
175
|
+
if (column.type !== 'status' && column.type !== 'entity') return null;
|
|
176
|
+
|
|
177
|
+
const cellValue = TableValueResolver.getProperty(row, column.key);
|
|
178
|
+
if (cellValue === null || cellValue === undefined) return null;
|
|
179
|
+
|
|
180
|
+
if (typeof cellValue === 'object') {
|
|
181
|
+
const obj = cellValue as Record<string, unknown>;
|
|
182
|
+
const color = obj['color'];
|
|
183
|
+
if (typeof color === 'string' && color.length > 0) return color;
|
|
184
|
+
|
|
185
|
+
// Entity cells carry the color on the resolved value, not the wrapper.
|
|
186
|
+
const value = obj['value'];
|
|
187
|
+
if (value && typeof value === 'object') {
|
|
188
|
+
const valueColor = (value as Record<string, unknown>)['color'];
|
|
189
|
+
if (typeof valueColor === 'string' && valueColor.length > 0) {
|
|
190
|
+
return valueColor;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
return null;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Returns the stable string key for the active group column on this row.
|
|
200
|
+
* Used to add a synthetic `__mt_group__` field so PrimeNG compares a plain
|
|
201
|
+
* string rather than a complex entity object (whose JSON representation is
|
|
202
|
+
* not stable across rows).
|
|
203
|
+
*/
|
|
204
|
+
getGroupSortKey(row: unknown): string {
|
|
205
|
+
const column = this.activeGroupColumn();
|
|
206
|
+
if (!column) return '';
|
|
207
|
+
return this.getGroupKey(row, column);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/** Stable key used to bucket rows into groups — normalised to string. */
|
|
211
|
+
private getGroupKey(row: unknown, column: ColumnDef): string {
|
|
212
|
+
// A column can name its own identity field, so rows sharing a display
|
|
213
|
+
// label still split into separate groups (and vice versa).
|
|
214
|
+
if (column.groupKey) {
|
|
215
|
+
const identity = TableValueResolver.getProperty(row, column.groupKey);
|
|
216
|
+
return identity === null || identity === undefined || identity === ''
|
|
217
|
+
? EMPTY_GROUP_KEY
|
|
218
|
+
: String(identity);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
const cellValue = TableValueResolver.getProperty(row, column.key);
|
|
222
|
+
if (cellValue === null || cellValue === undefined || cellValue === '') {
|
|
223
|
+
return EMPTY_GROUP_KEY;
|
|
224
|
+
}
|
|
225
|
+
if (column.type === 'entity') {
|
|
226
|
+
const entityValue = TableValueResolver.getEntityValueByType(
|
|
227
|
+
cellValue,
|
|
228
|
+
'filter',
|
|
229
|
+
);
|
|
230
|
+
return entityValue === null ? EMPTY_GROUP_KEY : String(entityValue);
|
|
231
|
+
}
|
|
232
|
+
const display = TableValueResolver.resolveDisplayValue(cellValue);
|
|
233
|
+
return display === null || display === undefined
|
|
234
|
+
? EMPTY_GROUP_KEY
|
|
235
|
+
: String(display);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { MTIcon } from '@masterteam/icons';
|
|
3
|
+
import { ConfirmationConfig } from '@masterteam/components/confirmation';
|
|
4
|
+
import type { TreeNode } from 'primeng/api';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Table action confirmation config with optional event
|
|
8
|
+
*/
|
|
9
|
+
export type TableActionConfirmationConfig = Omit<
|
|
10
|
+
ConfirmationConfig,
|
|
11
|
+
'event'
|
|
12
|
+
> & {
|
|
13
|
+
event?: Event;
|
|
14
|
+
confirmationType?: 'delete';
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Defines the options for a select filter.
|
|
19
|
+
*/
|
|
20
|
+
export interface FilterOption {
|
|
21
|
+
label: string;
|
|
22
|
+
value: any;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Configuration for filtering on a specific column.
|
|
27
|
+
*/
|
|
28
|
+
export interface FilterConfig {
|
|
29
|
+
type:
|
|
30
|
+
| 'text'
|
|
31
|
+
| 'select'
|
|
32
|
+
| 'userSelect'
|
|
33
|
+
| 'treeSelect'
|
|
34
|
+
| 'date'
|
|
35
|
+
| 'boolean'
|
|
36
|
+
| 'user'
|
|
37
|
+
| 'numberRange';
|
|
38
|
+
label?: string;
|
|
39
|
+
options?: FilterOption[];
|
|
40
|
+
treeOptions?: TreeNode[];
|
|
41
|
+
/**
|
|
42
|
+
* Controls multi-select behaviour for `select` / `userSelect` filters.
|
|
43
|
+
* Defaults to `true` — opt out with `multiple: false` for a single-select.
|
|
44
|
+
* The stored filter value is an array; rows match if the cell value matches
|
|
45
|
+
* *any* selected entry.
|
|
46
|
+
*/
|
|
47
|
+
multiple?: boolean;
|
|
48
|
+
[key: string]: unknown;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Filter value for date range, numeric range, or simple value
|
|
53
|
+
*/
|
|
54
|
+
export interface FilterValue {
|
|
55
|
+
value?: any;
|
|
56
|
+
from?: Date | number | null;
|
|
57
|
+
to?: Date | number | null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface TableStatusMapValue {
|
|
61
|
+
display?: string;
|
|
62
|
+
color?: string;
|
|
63
|
+
description?: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Table filters map
|
|
68
|
+
*/
|
|
69
|
+
export type TableFilters = Record<string, FilterValue | any>;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Column type definition
|
|
73
|
+
*/
|
|
74
|
+
export type ColumnType =
|
|
75
|
+
| 'text'
|
|
76
|
+
| 'number'
|
|
77
|
+
| 'boolean'
|
|
78
|
+
| 'date'
|
|
79
|
+
| 'dateTime'
|
|
80
|
+
| 'user'
|
|
81
|
+
| 'status'
|
|
82
|
+
| 'entity'
|
|
83
|
+
| 'custom';
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Event emitted when a cell value changes
|
|
87
|
+
*/
|
|
88
|
+
export interface CellChangeEvent {
|
|
89
|
+
row: any;
|
|
90
|
+
column: string;
|
|
91
|
+
value: any;
|
|
92
|
+
type: ColumnTypeForActionCell;
|
|
93
|
+
}
|
|
94
|
+
export type ColumnTypeForActionCell = 'boolean';
|
|
95
|
+
|
|
96
|
+
export type TableActionShape = 'flat' | 'popover';
|
|
97
|
+
export type TableActionPlacement = 'menu' | 'inline';
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Filter UX mode for a table.
|
|
101
|
+
*
|
|
102
|
+
* - `popover`: single top-right funnel button opening a form with every filter.
|
|
103
|
+
* - `column`: per-column funnel icon next to each filterable header.
|
|
104
|
+
*
|
|
105
|
+
* Add new modes here + a matching branch in the table header template.
|
|
106
|
+
*/
|
|
107
|
+
export type TableFilterMode = 'popover' | 'column';
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Keys that can be excluded from mt-table storage persistence.
|
|
111
|
+
*
|
|
112
|
+
* - `pageSize`: selected rows-per-page value.
|
|
113
|
+
* - `pagePosition`: current page / first row offset.
|
|
114
|
+
* - `sort`: sort field and direction.
|
|
115
|
+
* - `selection`: selected row keys.
|
|
116
|
+
* - `groupBy`: active grouped column.
|
|
117
|
+
*/
|
|
118
|
+
export type TablePersistStateKey =
|
|
119
|
+
| 'pageSize'
|
|
120
|
+
| 'pagePosition'
|
|
121
|
+
| 'sort'
|
|
122
|
+
| 'selection'
|
|
123
|
+
| 'groupBy';
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Injected value resolver for export/print — caller decides how a cell value
|
|
127
|
+
* becomes a scalar for Excel/PDF output. Keeps TableExportService
|
|
128
|
+
* schema-agnostic (open/closed for new column types).
|
|
129
|
+
*/
|
|
130
|
+
export type TableExportValueResolver = (
|
|
131
|
+
row: unknown,
|
|
132
|
+
column: ColumnDef,
|
|
133
|
+
) => string | number | boolean | null;
|
|
134
|
+
|
|
135
|
+
export interface TableExportConfig {
|
|
136
|
+
rows: any[];
|
|
137
|
+
columns: ColumnDef[];
|
|
138
|
+
filename: string;
|
|
139
|
+
resolveValue: TableExportValueResolver;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface TablePrintConfig extends TableExportConfig {
|
|
143
|
+
title?: string;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Defines the structure of a table column
|
|
147
|
+
export interface ColumnDef {
|
|
148
|
+
key: string; // Corresponds to a property in your data object
|
|
149
|
+
label: string; // The header text for the column
|
|
150
|
+
type?: ColumnType; // Data type for rendering
|
|
151
|
+
customCellTpl?: TemplateRef<any>; // For 'custom' type columns
|
|
152
|
+
filterConfig?: FilterConfig; // Optional configuration for filtering
|
|
153
|
+
statusMap?: Record<string, TableStatusMapValue>; // Optional status display/color map
|
|
154
|
+
sortable?: boolean; // Enables local FE sorting for this column
|
|
155
|
+
/**
|
|
156
|
+
* Overrides whether the column is offered in the row-group picker. By default
|
|
157
|
+
* only low-cardinality columns (select / boolean / user filters) are offered,
|
|
158
|
+
* because unique-valued columns would produce one group per row. Set `true`
|
|
159
|
+
* to opt a column in anyway — use it when the backend orders the result set
|
|
160
|
+
* so equal values arrive contiguously (e.g. a Work Center "Level Name"
|
|
161
|
+
* column sorted server-side). Set `false` to opt a column out entirely.
|
|
162
|
+
*/
|
|
163
|
+
groupable?: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* Dotted path to the row field holding this column's *group identity*, used
|
|
166
|
+
* instead of the rendered label when bucketing rows. Set it when the visible
|
|
167
|
+
* label is ambiguous — two records may share a display name but must stay
|
|
168
|
+
* separate groups (the backend's stable id), or several distinct ids must
|
|
169
|
+
* collapse into one group. An empty / missing value at that path puts the row
|
|
170
|
+
* in the shared "no value" group.
|
|
171
|
+
*/
|
|
172
|
+
groupKey?: string;
|
|
173
|
+
/**
|
|
174
|
+
* Whether the group header prefixes the value with this column's label
|
|
175
|
+
* ("Status · Active"). Defaults to `true`. Turn it off when the value already
|
|
176
|
+
* names itself — a project or person reads fine on its own, and the prefix is
|
|
177
|
+
* just noise repeated down the page.
|
|
178
|
+
*/
|
|
179
|
+
showGroupColumnLabel?: boolean;
|
|
180
|
+
readonly?: boolean; // Disables editable cells (e.g., toggle for boolean type)
|
|
181
|
+
width?: string; // Optional fixed width applied to header and body cells
|
|
182
|
+
/**
|
|
183
|
+
* Horizontal alignment of the header and its cells. Defaults to `end` for
|
|
184
|
+
* `number` columns and `start` for everything else.
|
|
185
|
+
*
|
|
186
|
+
* Left-aligned numbers cannot be compared by scanning, because the digits do
|
|
187
|
+
* not line up (finding M-05) — set `align: 'end'` on any column that renders
|
|
188
|
+
* a figure through a `custom` or `entity` cell, where the table cannot infer
|
|
189
|
+
* it from the type.
|
|
190
|
+
*/
|
|
191
|
+
align?: 'start' | 'center' | 'end';
|
|
192
|
+
/**
|
|
193
|
+
* Whether the column shrinks to its content instead of taking a share of the
|
|
194
|
+
* leftover width. Defaults to `true` for the fixed-shape types (`date`,
|
|
195
|
+
* `dateTime`, `boolean`, `number`, `user`, `status`) so a ten-character date
|
|
196
|
+
* stops being handed 440px while the title column is squeezed. Set `false` to
|
|
197
|
+
* opt a fixed-shape column back into absorbing width.
|
|
198
|
+
*/
|
|
199
|
+
shrink?: boolean;
|
|
200
|
+
filterOnly?: boolean; // Keeps the column available to filters without rendering/exporting it
|
|
201
|
+
/**
|
|
202
|
+
* Opts a `custom` column into export/print. Custom columns are excluded by
|
|
203
|
+
* default because their template may render purely visual content with no
|
|
204
|
+
* scalar value. Set this when the underlying cell value is still meaningful
|
|
205
|
+
* (e.g. an entity/count rendered as a styled badge) so it appears in Excel/PDF.
|
|
206
|
+
* No effect on non-custom columns (those export unless `filterOnly`).
|
|
207
|
+
*/
|
|
208
|
+
exportable?: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Overrides the exported/printed scalar for this column. When provided it wins
|
|
211
|
+
* over the default type-based resolution — use it for `custom` columns whose
|
|
212
|
+
* cell value isn't trivially resolvable, or to format any column's export value.
|
|
213
|
+
*/
|
|
214
|
+
exportValue?: (row: any) => string | number | boolean | null;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// Defines an action button for the 'actions' column
|
|
218
|
+
export interface TableAction {
|
|
219
|
+
icon?: MTIcon | undefined; // Icon to display on the button using MTIcon
|
|
220
|
+
color?:
|
|
221
|
+
| 'info'
|
|
222
|
+
| 'success'
|
|
223
|
+
| 'warn'
|
|
224
|
+
| 'danger'
|
|
225
|
+
| 'secondary'
|
|
226
|
+
| 'contrast'
|
|
227
|
+
| 'help'
|
|
228
|
+
| 'primary'; // Action Button Severity color
|
|
229
|
+
variant?: 'text' | 'outlined' | undefined; // Action Button variant
|
|
230
|
+
size?: 'small' | 'large' | undefined;
|
|
231
|
+
/**
|
|
232
|
+
* In popover action mode, `inline` actions render as direct icon buttons
|
|
233
|
+
* before the three-dot menu. Defaults to `menu`.
|
|
234
|
+
*/
|
|
235
|
+
placement?: TableActionPlacement;
|
|
236
|
+
label?: string;
|
|
237
|
+
tooltip?: string;
|
|
238
|
+
hidden?: (row: any) => boolean;
|
|
239
|
+
action: (row: any) => void; // Function to execute on click
|
|
240
|
+
loading?: boolean | ((row: any) => boolean); // Loading state or predicate for the action button
|
|
241
|
+
confirmation?: TableActionConfirmationConfig;
|
|
242
|
+
}
|