@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,1162 @@
|
|
|
1
|
+
import { HttpContext } from '@angular/common/http';
|
|
2
|
+
import { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';
|
|
3
|
+
|
|
4
|
+
export type FieldType =
|
|
5
|
+
| 'text'
|
|
6
|
+
| 'textarea'
|
|
7
|
+
| 'select'
|
|
8
|
+
| 'date'
|
|
9
|
+
| 'number'
|
|
10
|
+
| 'slider'
|
|
11
|
+
| 'multi-select'
|
|
12
|
+
| 'pick-list'
|
|
13
|
+
| 'checkbox'
|
|
14
|
+
| 'icon-field'
|
|
15
|
+
| 'color-picker'
|
|
16
|
+
| 'location'
|
|
17
|
+
| 'spacer'
|
|
18
|
+
| 'entity-preview'
|
|
19
|
+
| 'lookup-matrix'
|
|
20
|
+
| 'lookup-module-check-list'
|
|
21
|
+
| string;
|
|
22
|
+
|
|
23
|
+
export type ValidatorType =
|
|
24
|
+
| 'required'
|
|
25
|
+
| 'email'
|
|
26
|
+
| 'minLength'
|
|
27
|
+
| 'maxLength'
|
|
28
|
+
| 'min'
|
|
29
|
+
| 'max'
|
|
30
|
+
| 'pattern'
|
|
31
|
+
| 'custom';
|
|
32
|
+
|
|
33
|
+
export type FieldRelationAction = 'enable' | 'disable' | 'show' | 'hide';
|
|
34
|
+
|
|
35
|
+
export interface FieldRelationConfig {
|
|
36
|
+
key: string;
|
|
37
|
+
value: any;
|
|
38
|
+
action: FieldRelationAction;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type FormulaConditionMode =
|
|
42
|
+
| 'auto'
|
|
43
|
+
| 'show'
|
|
44
|
+
| 'hide'
|
|
45
|
+
| 'enable'
|
|
46
|
+
| 'disable';
|
|
47
|
+
|
|
48
|
+
export interface FormulaConditionConfig {
|
|
49
|
+
formulaTokens: string;
|
|
50
|
+
formulaText?: string;
|
|
51
|
+
mode?: FormulaConditionMode;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type FormulaValidationSeverity = 'error' | 'warning';
|
|
55
|
+
|
|
56
|
+
export interface FormulaValidationRuleConfig {
|
|
57
|
+
id: string | number;
|
|
58
|
+
formulaTokens: string;
|
|
59
|
+
formulaText?: string;
|
|
60
|
+
message: string;
|
|
61
|
+
severity: FormulaValidationSeverity;
|
|
62
|
+
enabled: boolean;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type FormulaRuntimeMessageCode =
|
|
66
|
+
| 'FORMULA_PARSE_ERROR'
|
|
67
|
+
| 'FORMULA_EVALUATION_ERROR'
|
|
68
|
+
| 'FORMULA_FALSE';
|
|
69
|
+
|
|
70
|
+
export interface FormulaRuntimeMessage {
|
|
71
|
+
code: FormulaRuntimeMessageCode;
|
|
72
|
+
severity: FormulaValidationSeverity;
|
|
73
|
+
message: string;
|
|
74
|
+
formulaText?: string;
|
|
75
|
+
ruleId?: string | number;
|
|
76
|
+
fieldKey?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Every field the failing rule reads, when the rule spans more than one
|
|
79
|
+
* (`endDate > startDate` names both). `fieldKey` stays the first of them so
|
|
80
|
+
* existing consumers are unaffected; renderers that mark fields should read
|
|
81
|
+
* this, because flagging only half of a cross-field rule tells the user to
|
|
82
|
+
* look in the wrong place (finding C-02).
|
|
83
|
+
*/
|
|
84
|
+
fieldKeys?: string[];
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface ResponsiveColSpan {
|
|
88
|
+
// Container
|
|
89
|
+
xs?: number; // @xs
|
|
90
|
+
sm?: number; // @sm
|
|
91
|
+
md?: number; // @md
|
|
92
|
+
lg?: number; // @lg
|
|
93
|
+
xl?: number; // @xl
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export class ValidatorConfig {
|
|
97
|
+
type: ValidatorType;
|
|
98
|
+
value?: any;
|
|
99
|
+
message?: string;
|
|
100
|
+
customValidator?: (
|
|
101
|
+
value: any,
|
|
102
|
+
control?: AbstractControl,
|
|
103
|
+
) => boolean | Promise<boolean>;
|
|
104
|
+
|
|
105
|
+
constructor(config: {
|
|
106
|
+
type: ValidatorType;
|
|
107
|
+
value?: any;
|
|
108
|
+
message?: string;
|
|
109
|
+
customValidator?: (
|
|
110
|
+
value: any,
|
|
111
|
+
control?: AbstractControl,
|
|
112
|
+
) => boolean | Promise<boolean>;
|
|
113
|
+
}) {
|
|
114
|
+
this.type = config.type;
|
|
115
|
+
this.value = config.value;
|
|
116
|
+
this.message = config.message;
|
|
117
|
+
this.customValidator = config.customValidator;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Factory methods for common validators.
|
|
121
|
+
//
|
|
122
|
+
// IMPORTANT: none of these default `message` to a hardcoded English string.
|
|
123
|
+
// buildValidators() wraps the underlying Angular validator (and keys the
|
|
124
|
+
// resulting error) whenever `config.message` is truthy — a default here
|
|
125
|
+
// would mean every consumer that omits a message still gets one baked in,
|
|
126
|
+
// permanently shadowing ErrorMessagePipe's translated generic message for
|
|
127
|
+
// that error type in every locale but English. Only pass a message when
|
|
128
|
+
// you have a real, field-specific (and ideally already-translated) one to
|
|
129
|
+
// show; otherwise leave it unset and let the pipe render the translated
|
|
130
|
+
// generic copy.
|
|
131
|
+
static required(message?: string): ValidatorConfig {
|
|
132
|
+
return new ValidatorConfig({ type: 'required', message });
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
static email(message?: string): ValidatorConfig {
|
|
136
|
+
return new ValidatorConfig({ type: 'email', message });
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
static minLength(length: number, message?: string): ValidatorConfig {
|
|
140
|
+
return new ValidatorConfig({ type: 'minLength', value: length, message });
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
static maxLength(length: number, message?: string): ValidatorConfig {
|
|
144
|
+
return new ValidatorConfig({ type: 'maxLength', value: length, message });
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
static min(value: number, message?: string): ValidatorConfig {
|
|
148
|
+
return new ValidatorConfig({ type: 'min', value, message });
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
static max(value: number, message?: string): ValidatorConfig {
|
|
152
|
+
return new ValidatorConfig({ type: 'max', value, message });
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
static pattern(pattern: string, message?: string): ValidatorConfig {
|
|
156
|
+
return new ValidatorConfig({ type: 'pattern', value: pattern, message });
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
static custom(
|
|
160
|
+
validator: (
|
|
161
|
+
value: any,
|
|
162
|
+
control?: AbstractControl,
|
|
163
|
+
) => boolean | Promise<boolean>,
|
|
164
|
+
message = 'Invalid value',
|
|
165
|
+
): ValidatorConfig {
|
|
166
|
+
return new ValidatorConfig({
|
|
167
|
+
type: 'custom',
|
|
168
|
+
customValidator: validator,
|
|
169
|
+
message,
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export type BaseFieldConstructorConfig = ConstructorParameters<
|
|
175
|
+
typeof BaseFieldConfig
|
|
176
|
+
>[0];
|
|
177
|
+
|
|
178
|
+
export abstract class BaseFieldConfig {
|
|
179
|
+
key: string;
|
|
180
|
+
label: string;
|
|
181
|
+
type: FieldType;
|
|
182
|
+
required: boolean;
|
|
183
|
+
disabled: boolean;
|
|
184
|
+
readonly: boolean;
|
|
185
|
+
hidden: boolean;
|
|
186
|
+
placeholder: string;
|
|
187
|
+
hint: string;
|
|
188
|
+
cssClass: string;
|
|
189
|
+
validators: ValidatorConfig[];
|
|
190
|
+
order: number;
|
|
191
|
+
colSpan: number | ResponsiveColSpan;
|
|
192
|
+
|
|
193
|
+
defaultValue?: any;
|
|
194
|
+
|
|
195
|
+
customTemplate: string;
|
|
196
|
+
relations: FieldRelationConfig[];
|
|
197
|
+
formulaCondition?: FormulaConditionConfig;
|
|
198
|
+
|
|
199
|
+
constructor(config: {
|
|
200
|
+
key?: string;
|
|
201
|
+
label?: string;
|
|
202
|
+
type: FieldType;
|
|
203
|
+
required?: boolean;
|
|
204
|
+
disabled?: boolean;
|
|
205
|
+
readonly?: boolean;
|
|
206
|
+
hidden?: boolean;
|
|
207
|
+
placeholder?: string;
|
|
208
|
+
hint?: string;
|
|
209
|
+
cssClass?: string;
|
|
210
|
+
validators?: ValidatorConfig[];
|
|
211
|
+
order?: number;
|
|
212
|
+
relations?: FieldRelationConfig[];
|
|
213
|
+
formulaCondition?: FormulaConditionConfig;
|
|
214
|
+
colSpan?: number | ResponsiveColSpan;
|
|
215
|
+
}) {
|
|
216
|
+
this.key = config.key || 'Key';
|
|
217
|
+
this.label = config.label || '';
|
|
218
|
+
this.type = config.type;
|
|
219
|
+
this.required = config.required || false;
|
|
220
|
+
this.disabled = config.disabled || false;
|
|
221
|
+
this.readonly = config.readonly || false;
|
|
222
|
+
this.hidden = config.hidden || false;
|
|
223
|
+
this.placeholder = config.placeholder || '';
|
|
224
|
+
this.hint = config.hint || '';
|
|
225
|
+
this.cssClass = config.cssClass || '';
|
|
226
|
+
this.validators = config.validators || [];
|
|
227
|
+
this.order = config.order || 0;
|
|
228
|
+
this.relations = config.relations || [];
|
|
229
|
+
this.formulaCondition = config.formulaCondition;
|
|
230
|
+
this.colSpan = config.colSpan || 12;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// Specific configurations for different field types
|
|
235
|
+
export class TextFieldConfig extends BaseFieldConfig {
|
|
236
|
+
inputType: string;
|
|
237
|
+
|
|
238
|
+
constructor(
|
|
239
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
240
|
+
inputType?: string;
|
|
241
|
+
},
|
|
242
|
+
) {
|
|
243
|
+
super({ ...config, type: 'text' });
|
|
244
|
+
this.inputType = config.inputType || 'text';
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export class TextareaFieldConfig extends BaseFieldConfig {
|
|
249
|
+
rows: number;
|
|
250
|
+
autoResize: boolean;
|
|
251
|
+
|
|
252
|
+
constructor(
|
|
253
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
254
|
+
rows?: number;
|
|
255
|
+
autoResize?: boolean;
|
|
256
|
+
},
|
|
257
|
+
) {
|
|
258
|
+
super({ ...config, type: 'textarea' });
|
|
259
|
+
this.rows = config.rows || 3;
|
|
260
|
+
this.autoResize = config.autoResize || false;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export class SelectFieldConfig extends BaseFieldConfig {
|
|
265
|
+
options: any[];
|
|
266
|
+
optionLabel: string;
|
|
267
|
+
optionValue: string;
|
|
268
|
+
group: boolean;
|
|
269
|
+
optionGroupLabel: string;
|
|
270
|
+
optionGroupChildren: string;
|
|
271
|
+
multiple: boolean;
|
|
272
|
+
filter: boolean;
|
|
273
|
+
filterBy: string;
|
|
274
|
+
filterPlaceholder: string;
|
|
275
|
+
showClear: boolean;
|
|
276
|
+
emptyMessage: string;
|
|
277
|
+
size: string;
|
|
278
|
+
hasPlaceholderPrefix: boolean;
|
|
279
|
+
|
|
280
|
+
constructor(
|
|
281
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
282
|
+
options: any[];
|
|
283
|
+
optionLabel?: string;
|
|
284
|
+
optionValue?: string;
|
|
285
|
+
group?: boolean;
|
|
286
|
+
optionGroupLabel?: string;
|
|
287
|
+
optionGroupChildren?: string;
|
|
288
|
+
multiple?: boolean;
|
|
289
|
+
filter?: boolean;
|
|
290
|
+
filterBy?: string;
|
|
291
|
+
filterPlaceholder?: string;
|
|
292
|
+
showClear?: boolean;
|
|
293
|
+
emptyMessage?: string;
|
|
294
|
+
size?: string;
|
|
295
|
+
hasPlaceholderPrefix?: boolean;
|
|
296
|
+
},
|
|
297
|
+
) {
|
|
298
|
+
super({ ...config, type: 'select' });
|
|
299
|
+
this.options = config.options;
|
|
300
|
+
this.optionLabel = config.optionLabel || 'label';
|
|
301
|
+
this.optionValue = config.optionValue || 'value';
|
|
302
|
+
this.group = config.group || false;
|
|
303
|
+
this.optionGroupLabel = config.optionGroupLabel || 'label';
|
|
304
|
+
this.optionGroupChildren = config.optionGroupChildren || 'items';
|
|
305
|
+
this.multiple = config.multiple || false;
|
|
306
|
+
this.filter = config.filter || false;
|
|
307
|
+
this.filterBy = config.filterBy || '';
|
|
308
|
+
this.filterPlaceholder = config.filterPlaceholder || 'Search...';
|
|
309
|
+
this.showClear = config.showClear || false;
|
|
310
|
+
this.emptyMessage = config.emptyMessage || 'No options available';
|
|
311
|
+
this.size = config.size || '';
|
|
312
|
+
this.hasPlaceholderPrefix =
|
|
313
|
+
config.hasPlaceholderPrefix === undefined
|
|
314
|
+
? true
|
|
315
|
+
: config.hasPlaceholderPrefix;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export class RadioButtonFieldConfig extends BaseFieldConfig {
|
|
320
|
+
options: any[];
|
|
321
|
+
optionLabel: string;
|
|
322
|
+
optionValue: string;
|
|
323
|
+
orientation: 'vertical' | 'horizontal';
|
|
324
|
+
|
|
325
|
+
constructor(
|
|
326
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
327
|
+
options: any[];
|
|
328
|
+
optionLabel?: string;
|
|
329
|
+
optionValue?: string;
|
|
330
|
+
orientation?: 'vertical' | 'horizontal';
|
|
331
|
+
},
|
|
332
|
+
) {
|
|
333
|
+
super({ ...config, type: 'radio-button' });
|
|
334
|
+
this.options = config.options;
|
|
335
|
+
this.optionLabel = config.optionLabel || 'label';
|
|
336
|
+
this.optionValue = config.optionValue || 'value';
|
|
337
|
+
this.orientation = config.orientation || 'vertical';
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
export class RadioCardsFieldConfig extends BaseFieldConfig {
|
|
341
|
+
options: any[];
|
|
342
|
+
optionLabel: string;
|
|
343
|
+
optionValue: string;
|
|
344
|
+
size: string;
|
|
345
|
+
|
|
346
|
+
constructor(
|
|
347
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
348
|
+
options: any[];
|
|
349
|
+
optionLabel?: string;
|
|
350
|
+
optionValue?: string;
|
|
351
|
+
size?: string;
|
|
352
|
+
},
|
|
353
|
+
) {
|
|
354
|
+
super({ ...config, type: 'radio-cards' });
|
|
355
|
+
this.options = config.options;
|
|
356
|
+
this.optionLabel = config.optionLabel || 'label';
|
|
357
|
+
this.optionValue = config.optionValue || 'value';
|
|
358
|
+
this.size = config.size || 'small';
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
export class UserSearchFieldConfig extends BaseFieldConfig {
|
|
362
|
+
optionLabel: string;
|
|
363
|
+
optionValue: string;
|
|
364
|
+
size: string;
|
|
365
|
+
apiUrl: string;
|
|
366
|
+
context: HttpContext | undefined;
|
|
367
|
+
isMultiple: boolean;
|
|
368
|
+
hideUnlinkedHint: boolean;
|
|
369
|
+
dataKey: string;
|
|
370
|
+
paramName: string;
|
|
371
|
+
minLength: number;
|
|
372
|
+
|
|
373
|
+
constructor(
|
|
374
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
375
|
+
optionLabel?: string;
|
|
376
|
+
optionValue?: string;
|
|
377
|
+
size?: string;
|
|
378
|
+
hint?: string;
|
|
379
|
+
apiUrl?: string;
|
|
380
|
+
context?: HttpContext | undefined;
|
|
381
|
+
placeholder?: string;
|
|
382
|
+
isMultiple?: boolean;
|
|
383
|
+
hideUnlinkedHint?: boolean;
|
|
384
|
+
dataKey?: string;
|
|
385
|
+
paramName?: string;
|
|
386
|
+
minLength?: number;
|
|
387
|
+
},
|
|
388
|
+
) {
|
|
389
|
+
super({ ...config, type: 'user-search' });
|
|
390
|
+
this.optionLabel = config.optionLabel || 'label';
|
|
391
|
+
this.optionValue = config.optionValue || 'value';
|
|
392
|
+
this.size = config.size || '';
|
|
393
|
+
this.hint = config.hint || '';
|
|
394
|
+
this.context = config.context || undefined;
|
|
395
|
+
this.apiUrl = config.apiUrl || '';
|
|
396
|
+
this.placeholder = config.placeholder || 'Search';
|
|
397
|
+
this.isMultiple = config.isMultiple || false;
|
|
398
|
+
this.hideUnlinkedHint = config.hideUnlinkedHint || false;
|
|
399
|
+
this.dataKey = config.dataKey || 'data';
|
|
400
|
+
this.paramName = config.paramName || 'query';
|
|
401
|
+
this.minLength = config.minLength ?? 1;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export class LocationFieldConfig extends BaseFieldConfig {
|
|
406
|
+
configuration: Record<string, unknown> | string | null;
|
|
407
|
+
searchUrl?: string;
|
|
408
|
+
minLength: number;
|
|
409
|
+
|
|
410
|
+
constructor(
|
|
411
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
412
|
+
configuration?: Record<string, unknown> | string | null;
|
|
413
|
+
searchUrl?: string;
|
|
414
|
+
minLength?: number;
|
|
415
|
+
},
|
|
416
|
+
) {
|
|
417
|
+
super({ ...config, type: 'location' });
|
|
418
|
+
this.configuration = config.configuration ?? null;
|
|
419
|
+
this.searchUrl = config.searchUrl;
|
|
420
|
+
this.minLength = config.minLength ?? 2;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export class UploadFileFieldConfig extends BaseFieldConfig {
|
|
425
|
+
size: string;
|
|
426
|
+
endPoint?: string;
|
|
427
|
+
userImgClass?: string;
|
|
428
|
+
shape?: string;
|
|
429
|
+
multiple?: boolean;
|
|
430
|
+
accept?: string | string[];
|
|
431
|
+
fileSizeLimit?: number | undefined;
|
|
432
|
+
context: HttpContext | undefined;
|
|
433
|
+
title: string;
|
|
434
|
+
description: string;
|
|
435
|
+
|
|
436
|
+
constructor(
|
|
437
|
+
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
|
+
super({ ...config, type: 'upload-file' });
|
|
451
|
+
this.size = config.size || 'normal';
|
|
452
|
+
this.endPoint = config.endPoint || 'uploader';
|
|
453
|
+
this.userImgClass =
|
|
454
|
+
config.userImgClass || 'w-25! h-25! text-4xl! text-gray-400!';
|
|
455
|
+
this.shape = config.shape || 'field';
|
|
456
|
+
this.multiple = config.multiple ?? false;
|
|
457
|
+
this.accept = config.accept || '.pdf,.doc,.docx,.xlsx,image/*';
|
|
458
|
+
this.fileSizeLimit = config.fileSizeLimit || undefined;
|
|
459
|
+
this.context = config.context || undefined;
|
|
460
|
+
this.title = config.title || 'Upload File';
|
|
461
|
+
this.description = config.description || 'Click or drop a file to upload';
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
export class DateFieldConfig extends BaseFieldConfig {
|
|
466
|
+
dateFormat: string;
|
|
467
|
+
showTime: boolean;
|
|
468
|
+
/** Edits the clock time only — no calendar. The value stays a full `Date`. */
|
|
469
|
+
timeOnly: boolean;
|
|
470
|
+
showSeconds: boolean;
|
|
471
|
+
hourFormat: '12' | '24';
|
|
472
|
+
minDate?: Date;
|
|
473
|
+
maxDate?: Date;
|
|
474
|
+
disabledDates: Date[];
|
|
475
|
+
disabledDays: number[];
|
|
476
|
+
yearRange: string;
|
|
477
|
+
showIcon: boolean;
|
|
478
|
+
icon: string;
|
|
479
|
+
showButtonBar: boolean;
|
|
480
|
+
showClear: boolean;
|
|
481
|
+
inline: boolean;
|
|
482
|
+
|
|
483
|
+
constructor(
|
|
484
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
485
|
+
dateFormat?: string;
|
|
486
|
+
showTime?: boolean;
|
|
487
|
+
timeOnly?: boolean;
|
|
488
|
+
showSeconds?: boolean;
|
|
489
|
+
hourFormat?: '12' | '24';
|
|
490
|
+
minDate?: Date;
|
|
491
|
+
maxDate?: Date;
|
|
492
|
+
disabledDates?: Date[];
|
|
493
|
+
disabledDays?: number[];
|
|
494
|
+
yearRange?: string;
|
|
495
|
+
showIcon?: boolean;
|
|
496
|
+
icon?: string;
|
|
497
|
+
showButtonBar?: boolean;
|
|
498
|
+
showClear?: boolean;
|
|
499
|
+
inline?: boolean;
|
|
500
|
+
},
|
|
501
|
+
) {
|
|
502
|
+
super({ ...config, type: 'date' });
|
|
503
|
+
this.dateFormat = config.dateFormat || 'yyyy-mm-dd';
|
|
504
|
+
this.showTime = config.showTime || false;
|
|
505
|
+
this.timeOnly = config.timeOnly || false;
|
|
506
|
+
this.showSeconds = config.showSeconds || false;
|
|
507
|
+
this.hourFormat = config.hourFormat || '24';
|
|
508
|
+
this.minDate = config.minDate;
|
|
509
|
+
this.maxDate = config.maxDate;
|
|
510
|
+
this.disabledDates = config.disabledDates || [];
|
|
511
|
+
this.disabledDays = config.disabledDays || [];
|
|
512
|
+
this.yearRange = config.yearRange || '1900:2030';
|
|
513
|
+
this.showIcon = config.showIcon || true;
|
|
514
|
+
this.icon = config.icon || 'pi pi-calendar';
|
|
515
|
+
this.showButtonBar = config.showButtonBar || false;
|
|
516
|
+
this.showClear = config.showClear || true;
|
|
517
|
+
this.inline = config.inline || false;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
export class NumberFieldConfig extends BaseFieldConfig {
|
|
522
|
+
min?: number;
|
|
523
|
+
max?: number;
|
|
524
|
+
step?: number;
|
|
525
|
+
prefix?: string;
|
|
526
|
+
suffix?: string;
|
|
527
|
+
currency?: string;
|
|
528
|
+
locale?: string;
|
|
529
|
+
minFractionDigits?: number;
|
|
530
|
+
maxFractionDigits?: number;
|
|
531
|
+
useGrouping?: boolean;
|
|
532
|
+
showButtons?: boolean;
|
|
533
|
+
buttonLayout?: 'stacked' | 'horizontal';
|
|
534
|
+
incrementButtonClass?: string;
|
|
535
|
+
decrementButtonClass?: string;
|
|
536
|
+
incrementButtonIcon?: string;
|
|
537
|
+
decrementButtonIcon?: string;
|
|
538
|
+
|
|
539
|
+
constructor(
|
|
540
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
541
|
+
min?: number;
|
|
542
|
+
max?: number;
|
|
543
|
+
step?: number;
|
|
544
|
+
prefix?: string;
|
|
545
|
+
suffix?: string;
|
|
546
|
+
currency?: string;
|
|
547
|
+
locale?: string;
|
|
548
|
+
minFractionDigits?: number;
|
|
549
|
+
maxFractionDigits?: number;
|
|
550
|
+
useGrouping?: boolean;
|
|
551
|
+
showButtons?: boolean;
|
|
552
|
+
buttonLayout?: 'stacked' | 'horizontal';
|
|
553
|
+
incrementButtonClass?: string;
|
|
554
|
+
decrementButtonClass?: string;
|
|
555
|
+
incrementButtonIcon?: string;
|
|
556
|
+
decrementButtonIcon?: string;
|
|
557
|
+
},
|
|
558
|
+
) {
|
|
559
|
+
super({ ...config, type: 'number' });
|
|
560
|
+
this.min = config.min;
|
|
561
|
+
this.max = config.max;
|
|
562
|
+
this.step = config.step || 1;
|
|
563
|
+
this.prefix = config.prefix;
|
|
564
|
+
this.suffix = config.suffix;
|
|
565
|
+
this.currency = config.currency;
|
|
566
|
+
this.locale = config.locale;
|
|
567
|
+
this.minFractionDigits = config.minFractionDigits;
|
|
568
|
+
this.maxFractionDigits = config.maxFractionDigits;
|
|
569
|
+
this.useGrouping = config.useGrouping || false;
|
|
570
|
+
this.showButtons = config.showButtons || false;
|
|
571
|
+
this.buttonLayout = config.buttonLayout || 'stacked';
|
|
572
|
+
this.incrementButtonClass = config.incrementButtonClass;
|
|
573
|
+
this.decrementButtonClass = config.decrementButtonClass;
|
|
574
|
+
this.incrementButtonIcon = config.incrementButtonIcon;
|
|
575
|
+
this.decrementButtonIcon = config.decrementButtonIcon;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
export class SliderFieldConfig extends BaseFieldConfig {
|
|
580
|
+
min?: number;
|
|
581
|
+
max?: number;
|
|
582
|
+
step?: number;
|
|
583
|
+
orientation?: 'horizontal' | 'vertical';
|
|
584
|
+
range?: boolean;
|
|
585
|
+
animate?: boolean;
|
|
586
|
+
unit?: string;
|
|
587
|
+
|
|
588
|
+
constructor(
|
|
589
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
590
|
+
min?: number;
|
|
591
|
+
max?: number;
|
|
592
|
+
step?: number;
|
|
593
|
+
orientation?: 'horizontal' | 'vertical';
|
|
594
|
+
range?: boolean;
|
|
595
|
+
animate?: boolean;
|
|
596
|
+
unit?: string;
|
|
597
|
+
},
|
|
598
|
+
) {
|
|
599
|
+
super({ ...config, type: 'slider' });
|
|
600
|
+
this.min = config.min || 0;
|
|
601
|
+
this.max = config.max || 100;
|
|
602
|
+
this.step = config.step || 1;
|
|
603
|
+
this.orientation = config.orientation || 'horizontal';
|
|
604
|
+
this.range = config.range || false;
|
|
605
|
+
this.animate = config.animate || false;
|
|
606
|
+
this.unit = config.unit || '';
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
export class MultiSelectFieldConfig extends BaseFieldConfig {
|
|
611
|
+
options: any[];
|
|
612
|
+
optionLabel: string;
|
|
613
|
+
optionValue: string;
|
|
614
|
+
filter: boolean;
|
|
615
|
+
filterBy: string;
|
|
616
|
+
filterPlaceholder: string;
|
|
617
|
+
showClear: boolean;
|
|
618
|
+
emptyMessage: string;
|
|
619
|
+
display?: 'comma' | 'chip';
|
|
620
|
+
maxSelectedLabels?: number;
|
|
621
|
+
selectedItemsLabel?: string;
|
|
622
|
+
showToggleAll?: boolean;
|
|
623
|
+
resetFilterOnHide?: boolean;
|
|
624
|
+
|
|
625
|
+
constructor(
|
|
626
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
627
|
+
options: any[];
|
|
628
|
+
optionLabel?: string;
|
|
629
|
+
optionValue?: string;
|
|
630
|
+
filter?: boolean;
|
|
631
|
+
filterBy?: string;
|
|
632
|
+
filterPlaceholder?: string;
|
|
633
|
+
showClear?: boolean;
|
|
634
|
+
emptyMessage?: string;
|
|
635
|
+
display?: 'comma' | 'chip';
|
|
636
|
+
maxSelectedLabels?: number;
|
|
637
|
+
selectedItemsLabel?: string;
|
|
638
|
+
showToggleAll?: boolean;
|
|
639
|
+
resetFilterOnHide?: boolean;
|
|
640
|
+
},
|
|
641
|
+
) {
|
|
642
|
+
super({ ...config, type: 'multi-select' });
|
|
643
|
+
this.options = config.options;
|
|
644
|
+
this.optionLabel = config.optionLabel || 'label';
|
|
645
|
+
this.optionValue = config.optionValue || 'value';
|
|
646
|
+
this.filter = config.filter || false;
|
|
647
|
+
this.filterBy = config.filterBy || '';
|
|
648
|
+
this.filterPlaceholder = config.filterPlaceholder || 'Search...';
|
|
649
|
+
this.showClear = config.showClear || false;
|
|
650
|
+
this.emptyMessage = config.emptyMessage || 'No options available';
|
|
651
|
+
this.display = config.display || 'comma';
|
|
652
|
+
this.maxSelectedLabels = config.maxSelectedLabels || 3;
|
|
653
|
+
this.selectedItemsLabel = config.selectedItemsLabel || '{0} items selected';
|
|
654
|
+
this.showToggleAll = config.showToggleAll || true;
|
|
655
|
+
this.resetFilterOnHide = config.resetFilterOnHide || false;
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
export class PickListFieldConfig extends BaseFieldConfig {
|
|
660
|
+
options: any[];
|
|
661
|
+
optionLabel: string;
|
|
662
|
+
optionValue: string;
|
|
663
|
+
sourceHeader: string;
|
|
664
|
+
targetHeader: string;
|
|
665
|
+
showSourceControls: boolean;
|
|
666
|
+
showTargetControls: boolean;
|
|
667
|
+
showSourceFilter: boolean;
|
|
668
|
+
showTargetFilter: boolean;
|
|
669
|
+
filterBy: string;
|
|
670
|
+
dataKey?: string;
|
|
671
|
+
dragdrop: boolean;
|
|
672
|
+
responsive: boolean;
|
|
673
|
+
breakpoint: string;
|
|
674
|
+
|
|
675
|
+
constructor(
|
|
676
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
677
|
+
options: any[];
|
|
678
|
+
optionLabel?: string;
|
|
679
|
+
optionValue?: string;
|
|
680
|
+
sourceHeader?: string;
|
|
681
|
+
targetHeader?: string;
|
|
682
|
+
showSourceControls?: boolean;
|
|
683
|
+
showTargetControls?: boolean;
|
|
684
|
+
showSourceFilter?: boolean;
|
|
685
|
+
showTargetFilter?: boolean;
|
|
686
|
+
filterBy?: string;
|
|
687
|
+
dataKey?: string;
|
|
688
|
+
dragdrop?: boolean;
|
|
689
|
+
responsive?: boolean;
|
|
690
|
+
},
|
|
691
|
+
) {
|
|
692
|
+
super({ ...config, type: 'pick-list' });
|
|
693
|
+
this.options = config.options;
|
|
694
|
+
this.optionLabel = config.optionLabel || 'label';
|
|
695
|
+
this.optionValue = config.optionValue || 'value';
|
|
696
|
+
this.sourceHeader = config.sourceHeader || 'Available';
|
|
697
|
+
this.targetHeader = config.targetHeader || 'Selected';
|
|
698
|
+
this.showSourceControls =
|
|
699
|
+
config.showSourceControls !== undefined
|
|
700
|
+
? config.showSourceControls
|
|
701
|
+
: true;
|
|
702
|
+
this.showTargetControls =
|
|
703
|
+
config.showTargetControls !== undefined
|
|
704
|
+
? config.showTargetControls
|
|
705
|
+
: true;
|
|
706
|
+
this.showSourceFilter =
|
|
707
|
+
config.showSourceFilter !== undefined ? config.showSourceFilter : false;
|
|
708
|
+
this.showTargetFilter =
|
|
709
|
+
config.showTargetFilter !== undefined ? config.showTargetFilter : false;
|
|
710
|
+
this.filterBy = config.filterBy || this.optionLabel;
|
|
711
|
+
this.dataKey = config.dataKey || this.optionValue;
|
|
712
|
+
this.dragdrop = config.dragdrop ?? false;
|
|
713
|
+
this.responsive = config.responsive ?? true;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
export class CheckboxFieldConfig extends BaseFieldConfig {
|
|
718
|
+
binary?: boolean;
|
|
719
|
+
trueValue?: any;
|
|
720
|
+
falseValue?: any;
|
|
721
|
+
checkboxIcon?: string;
|
|
722
|
+
|
|
723
|
+
constructor(
|
|
724
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
725
|
+
binary?: boolean;
|
|
726
|
+
trueValue?: any;
|
|
727
|
+
falseValue?: any;
|
|
728
|
+
checkboxIcon?: string;
|
|
729
|
+
},
|
|
730
|
+
) {
|
|
731
|
+
super({ ...config, type: 'checkbox' });
|
|
732
|
+
this.binary = config.binary !== false; // Default to true
|
|
733
|
+
this.trueValue = config.trueValue !== undefined ? config.trueValue : true;
|
|
734
|
+
this.falseValue =
|
|
735
|
+
config.falseValue !== undefined ? config.falseValue : false;
|
|
736
|
+
this.checkboxIcon = config.checkboxIcon;
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
export class ToggleFieldConfig extends BaseFieldConfig {
|
|
740
|
+
toggleShape?: 'toggle' | 'card';
|
|
741
|
+
icon?: string;
|
|
742
|
+
descriptionCard?: string;
|
|
743
|
+
|
|
744
|
+
constructor(
|
|
745
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
746
|
+
toggleShape?: 'toggle' | 'card';
|
|
747
|
+
icon?: string;
|
|
748
|
+
descriptionCard?: string;
|
|
749
|
+
},
|
|
750
|
+
) {
|
|
751
|
+
super({ ...config, type: 'toggle' });
|
|
752
|
+
this.toggleShape = config.toggleShape ?? 'toggle';
|
|
753
|
+
this.icon = config.icon;
|
|
754
|
+
this.descriptionCard = config.descriptionCard;
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
export class EditorFieldConfig extends BaseFieldConfig {
|
|
758
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'>) {
|
|
759
|
+
super({ ...config, type: 'editor-field' });
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
export class ColorPickerFieldConfig extends BaseFieldConfig {
|
|
764
|
+
format?: 'hex' | 'rgb' | 'hsb';
|
|
765
|
+
inline?: boolean;
|
|
766
|
+
appendTo?: any;
|
|
767
|
+
variant?: 'outlined' | 'filled';
|
|
768
|
+
|
|
769
|
+
constructor(
|
|
770
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
771
|
+
format?: 'hex' | 'rgb' | 'hsb';
|
|
772
|
+
inline?: boolean;
|
|
773
|
+
appendTo?: any;
|
|
774
|
+
variant?: 'outlined' | 'filled';
|
|
775
|
+
},
|
|
776
|
+
) {
|
|
777
|
+
super({ ...config, type: 'color-picker' });
|
|
778
|
+
this.format = config.format || 'hex';
|
|
779
|
+
this.inline = config.inline || false;
|
|
780
|
+
this.appendTo = config.appendTo || 'body';
|
|
781
|
+
this.variant = config.variant || 'outlined';
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
export class IconFieldConfig extends BaseFieldConfig {
|
|
786
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {}) {
|
|
787
|
+
super({ ...config, type: 'icon-field' });
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
export class SpacerFieldConfig extends BaseFieldConfig {
|
|
792
|
+
constructor(
|
|
793
|
+
config: Omit<BaseFieldConstructorConfig, 'type' | 'key' | 'label'> & {
|
|
794
|
+
key?: string;
|
|
795
|
+
label?: string;
|
|
796
|
+
},
|
|
797
|
+
) {
|
|
798
|
+
super({
|
|
799
|
+
...config,
|
|
800
|
+
type: 'spacer',
|
|
801
|
+
key: config.key || `spacer_${Date.now()}`,
|
|
802
|
+
label: config.label || '',
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
export interface LookupOptionItemConfig {
|
|
808
|
+
id?: number | string;
|
|
809
|
+
key?: string;
|
|
810
|
+
label: string;
|
|
811
|
+
value: any;
|
|
812
|
+
color?: string | null;
|
|
813
|
+
description?: string;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
export interface LookupMatrixCellConfig {
|
|
817
|
+
row: number;
|
|
818
|
+
column: number;
|
|
819
|
+
xLookupItemId: number | string;
|
|
820
|
+
yLookupItemId?: number | string;
|
|
821
|
+
zLookupItemId?: number | string | null;
|
|
822
|
+
label: string;
|
|
823
|
+
color?: string | null;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
export class LookupMatrixFieldConfig extends BaseFieldConfig {
|
|
827
|
+
xFieldKey: string;
|
|
828
|
+
yFieldKey?: string;
|
|
829
|
+
xAxisLabel: string;
|
|
830
|
+
yAxisLabel?: string;
|
|
831
|
+
xOptions: LookupOptionItemConfig[];
|
|
832
|
+
yOptions?: LookupOptionItemConfig[];
|
|
833
|
+
cells: LookupMatrixCellConfig[];
|
|
834
|
+
emptyMessage: string;
|
|
835
|
+
|
|
836
|
+
constructor(
|
|
837
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
838
|
+
xFieldKey: string;
|
|
839
|
+
yFieldKey?: string;
|
|
840
|
+
xAxisLabel?: string;
|
|
841
|
+
yAxisLabel?: string;
|
|
842
|
+
xOptions?: LookupOptionItemConfig[];
|
|
843
|
+
yOptions?: LookupOptionItemConfig[];
|
|
844
|
+
cells?: LookupMatrixCellConfig[];
|
|
845
|
+
emptyMessage?: string;
|
|
846
|
+
},
|
|
847
|
+
) {
|
|
848
|
+
super({ ...config, type: 'lookup-matrix' });
|
|
849
|
+
this.xFieldKey = config.xFieldKey;
|
|
850
|
+
this.yFieldKey = config.yFieldKey;
|
|
851
|
+
this.xAxisLabel = config.xAxisLabel || '';
|
|
852
|
+
this.yAxisLabel = config.yAxisLabel;
|
|
853
|
+
this.xOptions = config.xOptions || [];
|
|
854
|
+
this.yOptions = config.yOptions;
|
|
855
|
+
this.cells = config.cells || [];
|
|
856
|
+
this.emptyMessage = config.emptyMessage || 'No matrix data available';
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
export class SchemaConnectionFieldConfig extends BaseFieldConfig {
|
|
861
|
+
configuration: any;
|
|
862
|
+
context: HttpContext | undefined;
|
|
863
|
+
filter: boolean;
|
|
864
|
+
|
|
865
|
+
constructor(
|
|
866
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
867
|
+
configuration: any;
|
|
868
|
+
context?: HttpContext | undefined;
|
|
869
|
+
filter?: boolean;
|
|
870
|
+
},
|
|
871
|
+
) {
|
|
872
|
+
super({ ...config, type: 'schema-connection' });
|
|
873
|
+
this.configuration = config.configuration;
|
|
874
|
+
this.context = config.context || undefined;
|
|
875
|
+
this.filter = config.filter ?? true;
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
export interface SchedulePredecessorFieldRuntimeContext {
|
|
880
|
+
levelId?: number | string | null;
|
|
881
|
+
levelDataId?: number | string | null;
|
|
882
|
+
moduleDataId?: number | string | null;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
export class SchedulePredecessorFieldConfig extends BaseFieldConfig {
|
|
886
|
+
configuration: any;
|
|
887
|
+
runtimeContext: SchedulePredecessorFieldRuntimeContext | null;
|
|
888
|
+
|
|
889
|
+
constructor(
|
|
890
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
891
|
+
configuration?: any;
|
|
892
|
+
runtimeContext?: SchedulePredecessorFieldRuntimeContext | null;
|
|
893
|
+
},
|
|
894
|
+
) {
|
|
895
|
+
super({ ...config, type: 'predecessor' });
|
|
896
|
+
this.configuration = config.configuration ?? null;
|
|
897
|
+
this.runtimeContext = config.runtimeContext ?? null;
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
export interface EntityListFieldRuntimeContext {
|
|
902
|
+
/**
|
|
903
|
+
* Route id for the read endpoint.
|
|
904
|
+
* - Level-scoped EntityList properties → level-data id
|
|
905
|
+
* - Module-scoped EntityList properties → source module-data id
|
|
906
|
+
*/
|
|
907
|
+
sourceId?: number | string | null;
|
|
908
|
+
/** Current level id (used to build the fetch/query contextKey). */
|
|
909
|
+
levelId?: number | string | null;
|
|
910
|
+
levelDataId?: number | string | null;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
export class EntityListFieldConfig extends BaseFieldConfig {
|
|
914
|
+
/** EntityList property id (used in the read endpoint route). */
|
|
915
|
+
propertyId: number | null;
|
|
916
|
+
/** Property configuration (sourceType, moduleId, access, snapshotMode, fields). */
|
|
917
|
+
configuration: any;
|
|
918
|
+
/** Runtime ids needed to call the read endpoint. */
|
|
919
|
+
runtimeContext: EntityListFieldRuntimeContext | null;
|
|
920
|
+
context: HttpContext | undefined;
|
|
921
|
+
|
|
922
|
+
constructor(
|
|
923
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
924
|
+
propertyId?: number | null;
|
|
925
|
+
configuration?: any;
|
|
926
|
+
runtimeContext?: EntityListFieldRuntimeContext | null;
|
|
927
|
+
context?: HttpContext | undefined;
|
|
928
|
+
},
|
|
929
|
+
) {
|
|
930
|
+
super({ ...config, type: 'entity-list' });
|
|
931
|
+
this.propertyId = config.propertyId ?? null;
|
|
932
|
+
this.configuration = config.configuration ?? null;
|
|
933
|
+
this.runtimeContext = config.runtimeContext ?? null;
|
|
934
|
+
this.context = config.context;
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
export interface ScheduleItemSelectorFieldRuntimeContext {
|
|
939
|
+
/** Current level id — used to build the options `contextKey` (`Level:{levelId}`). */
|
|
940
|
+
levelId?: number | string | null;
|
|
941
|
+
/**
|
|
942
|
+
* Module schema id of the form that owns the selector property — the
|
|
943
|
+
* `Module:{moduleId}` segment of the options `contextKey`. For Deliverable
|
|
944
|
+
* Acceptance this is the Deliverable Acceptance module schema id, NOT the
|
|
945
|
+
* target schedule module id.
|
|
946
|
+
*/
|
|
947
|
+
moduleId?: number | string | null;
|
|
948
|
+
/** Current workspace instance id (`levelDataId` query param). */
|
|
949
|
+
levelDataId?: number | string | null;
|
|
950
|
+
/**
|
|
951
|
+
* Record being edited (`ownerRecordId` query param). Lets the backend keep
|
|
952
|
+
* the current record's existing selections valid in edit mode.
|
|
953
|
+
*/
|
|
954
|
+
ownerRecordId?: number | string | null;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
export class ScheduleItemSelectorFieldConfig extends BaseFieldConfig {
|
|
958
|
+
/** Property key — used in the options endpoint route `forms/options/{propertyKey}`. */
|
|
959
|
+
propertyKey: string;
|
|
960
|
+
/** `Single` renders a single-select picker, `Multi` a multi-select picker. */
|
|
961
|
+
selectionMode: 'Single' | 'Multi';
|
|
962
|
+
/** Raw property configuration (selectionMode, scheduleModuleKey, etc.). */
|
|
963
|
+
configuration: any;
|
|
964
|
+
/** Runtime ids needed to call the options endpoint. */
|
|
965
|
+
runtimeContext: ScheduleItemSelectorFieldRuntimeContext | null;
|
|
966
|
+
context: HttpContext | undefined;
|
|
967
|
+
|
|
968
|
+
constructor(
|
|
969
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
970
|
+
propertyKey?: string;
|
|
971
|
+
selectionMode?: 'Single' | 'Multi';
|
|
972
|
+
configuration?: any;
|
|
973
|
+
runtimeContext?: ScheduleItemSelectorFieldRuntimeContext | null;
|
|
974
|
+
context?: HttpContext | undefined;
|
|
975
|
+
},
|
|
976
|
+
) {
|
|
977
|
+
super({ ...config, type: 'schedule-item-selector' });
|
|
978
|
+
this.propertyKey = config.propertyKey || config.key || '';
|
|
979
|
+
this.selectionMode = config.selectionMode || 'Multi';
|
|
980
|
+
this.configuration = config.configuration ?? null;
|
|
981
|
+
this.runtimeContext = config.runtimeContext ?? null;
|
|
982
|
+
this.context = config.context;
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
/** One configured module property the checklist captures for each entry. */
|
|
987
|
+
export interface LookupCheckListPropertyConfig {
|
|
988
|
+
/** Property key persisted in `props[].key`. */
|
|
989
|
+
key: string;
|
|
990
|
+
/** Human-readable label shown next to the input. */
|
|
991
|
+
label: string;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
export interface LookupModuleCheckListFieldRuntimeContext {
|
|
995
|
+
/** Current level id — passed to `process-form-load` for each section form. */
|
|
996
|
+
levelId?: number | string | null;
|
|
997
|
+
/** Current workspace instance id — passed to `process-form-load`. */
|
|
998
|
+
levelDataId?: number | string | null;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
export class LookupModuleCheckListFieldConfig extends BaseFieldConfig {
|
|
1002
|
+
/** Lookup items rendered as collapsible checklist sections. */
|
|
1003
|
+
lookupOptions: LookupOptionItemConfig[];
|
|
1004
|
+
/** Full lookup catalog passed through to the rich nested form renderer. */
|
|
1005
|
+
lookups: unknown[];
|
|
1006
|
+
/** Module property keys/labels captured per checklist entry. */
|
|
1007
|
+
propertyFields: LookupCheckListPropertyConfig[];
|
|
1008
|
+
/** Scope module id whose form is loaded for each section. */
|
|
1009
|
+
scopeId: number | string | null;
|
|
1010
|
+
/** Property keys to render in each section form (`allowedFieldKeys`). */
|
|
1011
|
+
propertyKeys: string[];
|
|
1012
|
+
/** Runtime ids needed to load each section form. */
|
|
1013
|
+
runtimeContext: LookupModuleCheckListFieldRuntimeContext | null;
|
|
1014
|
+
/** Raw property configuration (lookup id, scope/module id, properties). */
|
|
1015
|
+
configuration: any;
|
|
1016
|
+
|
|
1017
|
+
constructor(
|
|
1018
|
+
config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
1019
|
+
lookupOptions?: LookupOptionItemConfig[];
|
|
1020
|
+
lookups?: unknown[];
|
|
1021
|
+
propertyFields?: LookupCheckListPropertyConfig[];
|
|
1022
|
+
scopeId?: number | string | null;
|
|
1023
|
+
propertyKeys?: string[];
|
|
1024
|
+
runtimeContext?: LookupModuleCheckListFieldRuntimeContext | null;
|
|
1025
|
+
configuration?: any;
|
|
1026
|
+
},
|
|
1027
|
+
) {
|
|
1028
|
+
super({ ...config, type: 'lookup-module-check-list' });
|
|
1029
|
+
this.lookupOptions = config.lookupOptions || [];
|
|
1030
|
+
this.lookups = config.lookups || [];
|
|
1031
|
+
this.propertyFields = config.propertyFields || [];
|
|
1032
|
+
this.scopeId = config.scopeId ?? null;
|
|
1033
|
+
this.propertyKeys = config.propertyKeys || [];
|
|
1034
|
+
this.runtimeContext = config.runtimeContext ?? null;
|
|
1035
|
+
this.configuration = config.configuration ?? null;
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
// Union type for all field configurations
|
|
1040
|
+
export type DynamicFieldConfig = {
|
|
1041
|
+
[K in keyof (TextFieldConfig &
|
|
1042
|
+
TextareaFieldConfig &
|
|
1043
|
+
SelectFieldConfig &
|
|
1044
|
+
DateFieldConfig &
|
|
1045
|
+
NumberFieldConfig &
|
|
1046
|
+
SliderFieldConfig &
|
|
1047
|
+
MultiSelectFieldConfig &
|
|
1048
|
+
PickListFieldConfig &
|
|
1049
|
+
CheckboxFieldConfig &
|
|
1050
|
+
ToggleFieldConfig &
|
|
1051
|
+
LocationFieldConfig &
|
|
1052
|
+
ColorPickerFieldConfig &
|
|
1053
|
+
IconFieldConfig &
|
|
1054
|
+
SpacerFieldConfig &
|
|
1055
|
+
LookupMatrixFieldConfig &
|
|
1056
|
+
SchemaConnectionFieldConfig &
|
|
1057
|
+
SchedulePredecessorFieldConfig &
|
|
1058
|
+
EntityListFieldConfig &
|
|
1059
|
+
ScheduleItemSelectorFieldConfig &
|
|
1060
|
+
LookupModuleCheckListFieldConfig &
|
|
1061
|
+
BaseFieldConfig)]?: (TextFieldConfig &
|
|
1062
|
+
TextareaFieldConfig &
|
|
1063
|
+
SelectFieldConfig &
|
|
1064
|
+
DateFieldConfig &
|
|
1065
|
+
NumberFieldConfig &
|
|
1066
|
+
SliderFieldConfig &
|
|
1067
|
+
MultiSelectFieldConfig &
|
|
1068
|
+
PickListFieldConfig &
|
|
1069
|
+
CheckboxFieldConfig &
|
|
1070
|
+
ToggleFieldConfig &
|
|
1071
|
+
LocationFieldConfig &
|
|
1072
|
+
ColorPickerFieldConfig &
|
|
1073
|
+
IconFieldConfig &
|
|
1074
|
+
SpacerFieldConfig &
|
|
1075
|
+
LookupMatrixFieldConfig &
|
|
1076
|
+
SchemaConnectionFieldConfig &
|
|
1077
|
+
SchedulePredecessorFieldConfig &
|
|
1078
|
+
EntityListFieldConfig &
|
|
1079
|
+
ScheduleItemSelectorFieldConfig &
|
|
1080
|
+
LookupModuleCheckListFieldConfig &
|
|
1081
|
+
BaseFieldConfig)[K];
|
|
1082
|
+
};
|
|
1083
|
+
|
|
1084
|
+
// Layout configuration
|
|
1085
|
+
export interface LayoutConfig {
|
|
1086
|
+
containerClass?: string;
|
|
1087
|
+
sectionClass?: string;
|
|
1088
|
+
fieldClass?: string;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
// Simplified form configuration interface
|
|
1092
|
+
export interface DynamicFormConfig {
|
|
1093
|
+
sections: SectionConfig[];
|
|
1094
|
+
layout?: LayoutConfig;
|
|
1095
|
+
validationRules?: FormulaValidationRuleConfig[];
|
|
1096
|
+
}
|
|
1097
|
+
export interface SectionConfig {
|
|
1098
|
+
key?: string;
|
|
1099
|
+
label?: string;
|
|
1100
|
+
type: 'none' | 'header';
|
|
1101
|
+
cssClass?: string;
|
|
1102
|
+
bodyClass?: string;
|
|
1103
|
+
headerClass?: string;
|
|
1104
|
+
columns?: number;
|
|
1105
|
+
|
|
1106
|
+
order?: number;
|
|
1107
|
+
fields: DynamicFieldConfig[];
|
|
1108
|
+
}
|
|
1109
|
+
export interface FieldState {
|
|
1110
|
+
hidden: boolean;
|
|
1111
|
+
disabled: boolean;
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
export function createCustomValidator(
|
|
1115
|
+
customValidator: (
|
|
1116
|
+
value: any,
|
|
1117
|
+
control?: AbstractControl,
|
|
1118
|
+
) => boolean | Promise<boolean>,
|
|
1119
|
+
message?: string,
|
|
1120
|
+
): ValidatorFn {
|
|
1121
|
+
return (control: AbstractControl): ValidationErrors | null => {
|
|
1122
|
+
const result = customValidator(control.value, control);
|
|
1123
|
+
|
|
1124
|
+
if (result instanceof Promise) {
|
|
1125
|
+
// Handle async validation
|
|
1126
|
+
result.then((isValid) => {
|
|
1127
|
+
if (!isValid) {
|
|
1128
|
+
control.setErrors({
|
|
1129
|
+
custom: { message: message || 'Invalid value' },
|
|
1130
|
+
});
|
|
1131
|
+
}
|
|
1132
|
+
});
|
|
1133
|
+
return null; // For async, return null initially
|
|
1134
|
+
} else {
|
|
1135
|
+
// Handle sync validation
|
|
1136
|
+
return result
|
|
1137
|
+
? null
|
|
1138
|
+
: { custom: { message: message || 'Invalid value' } };
|
|
1139
|
+
}
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
export function wrapValidatorWithMessage(
|
|
1144
|
+
validator: ValidatorFn,
|
|
1145
|
+
errorKey: string,
|
|
1146
|
+
message: string,
|
|
1147
|
+
): ValidatorFn {
|
|
1148
|
+
return (control: AbstractControl): ValidationErrors | null => {
|
|
1149
|
+
const result = validator(control);
|
|
1150
|
+
if (result) {
|
|
1151
|
+
// Replace the default error with custom message
|
|
1152
|
+
return { [errorKey]: { ...result[Object.keys(result)[0]], message } };
|
|
1153
|
+
}
|
|
1154
|
+
return null;
|
|
1155
|
+
};
|
|
1156
|
+
}
|
|
1157
|
+
// DynamicFieldConfig = input.required<any>({
|
|
1158
|
+
// transform: (value: any) => this.transformToDateFieldConfig(value)
|
|
1159
|
+
// });
|
|
1160
|
+
// transformToDateFieldConfig(value: any){
|
|
1161
|
+
// return new TextFieldConfig()
|
|
1162
|
+
// }
|