@api-client/ui 0.5.57 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INSTRUCTIONS.md +141 -0
- package/build/src/builders/DialogBuilder.d.ts +245 -0
- package/build/src/builders/DialogBuilder.d.ts.map +1 -0
- package/build/src/builders/DialogBuilder.js +406 -0
- package/build/src/builders/DialogBuilder.js.map +1 -0
- package/build/src/cache/Cache.d.ts +72 -0
- package/build/src/cache/Cache.d.ts.map +1 -0
- package/build/src/cache/Cache.js +221 -0
- package/build/src/cache/Cache.js.map +1 -0
- package/build/src/core/Model.d.ts +18 -64
- package/build/src/core/Model.d.ts.map +1 -1
- package/build/src/core/Model.js +47 -90
- package/build/src/core/Model.js.map +1 -1
- package/build/src/core/ServiceManager.d.ts.map +1 -1
- package/build/src/core/ServiceManager.js +1 -0
- package/build/src/core/ServiceManager.js.map +1 -1
- package/build/src/data/BreadcrumbsModel.d.ts +37 -0
- package/build/src/data/BreadcrumbsModel.d.ts.map +1 -0
- package/build/src/data/BreadcrumbsModel.js +77 -0
- package/build/src/data/BreadcrumbsModel.js.map +1 -0
- package/build/src/data/DataCatalogModel.d.ts +53 -0
- package/build/src/data/DataCatalogModel.d.ts.map +1 -0
- package/build/src/data/DataCatalogModel.js +174 -0
- package/build/src/data/DataCatalogModel.js.map +1 -0
- package/build/src/data/DomainBrowserModel.d.ts +30 -0
- package/build/src/data/DomainBrowserModel.d.ts.map +1 -0
- package/build/src/data/DomainBrowserModel.js +113 -0
- package/build/src/data/DomainBrowserModel.js.map +1 -0
- package/build/src/data/FileModel.d.ts +36 -0
- package/build/src/data/FileModel.d.ts.map +1 -0
- package/build/src/data/FileModel.js +71 -0
- package/build/src/data/FileModel.js.map +1 -0
- package/build/src/data/FileShareModel.d.ts +57 -0
- package/build/src/data/FileShareModel.d.ts.map +1 -0
- package/build/src/data/FileShareModel.js +238 -0
- package/build/src/data/FileShareModel.js.map +1 -0
- package/build/src/data/FilesModel.d.ts +71 -0
- package/build/src/data/FilesModel.d.ts.map +1 -0
- package/build/src/data/FilesModel.js +205 -0
- package/build/src/data/FilesModel.js.map +1 -0
- package/build/src/data/InvitationModel.d.ts +27 -0
- package/build/src/data/InvitationModel.d.ts.map +1 -0
- package/build/src/data/InvitationModel.js +66 -0
- package/build/src/data/InvitationModel.js.map +1 -0
- package/build/src/data/PatchableFileModel.d.ts +167 -0
- package/build/src/data/PatchableFileModel.d.ts.map +1 -0
- package/build/src/data/PatchableFileModel.js +243 -0
- package/build/src/data/PatchableFileModel.js.map +1 -0
- package/build/src/data/PatchableLiveDataContentModel.d.ts +8 -0
- package/build/src/data/PatchableLiveDataContentModel.d.ts.map +1 -0
- package/build/src/data/PatchableLiveDataContentModel.js +32 -0
- package/build/src/data/PatchableLiveDataContentModel.js.map +1 -0
- package/build/src/data/PatchableRawContentModel.d.ts +10 -0
- package/build/src/data/PatchableRawContentModel.d.ts.map +1 -0
- package/build/src/data/PatchableRawContentModel.js +38 -0
- package/build/src/data/PatchableRawContentModel.js.map +1 -0
- package/build/src/data/TrashModel.d.ts +51 -0
- package/build/src/data/TrashModel.d.ts.map +1 -0
- package/build/src/data/TrashModel.js +112 -0
- package/build/src/data/TrashModel.js.map +1 -0
- package/build/src/data/UserModel.d.ts +28 -0
- package/build/src/data/UserModel.d.ts.map +1 -0
- package/build/src/data/UserModel.js +98 -0
- package/build/src/data/UserModel.js.map +1 -0
- package/build/src/data/UsersModel.d.ts +84 -0
- package/build/src/data/UsersModel.d.ts.map +1 -0
- package/build/src/data/UsersModel.js +307 -0
- package/build/src/data/UsersModel.js.map +1 -0
- package/build/src/data/retry_logic.d.ts +66 -0
- package/build/src/data/retry_logic.d.ts.map +1 -0
- package/build/src/data/retry_logic.js +84 -0
- package/build/src/data/retry_logic.js.map +1 -0
- package/build/src/elements/autocomplete/internals/autocomplete.d.ts.map +1 -1
- package/build/src/elements/autocomplete/internals/autocomplete.js +5 -2
- package/build/src/elements/autocomplete/internals/autocomplete.js.map +1 -1
- package/build/src/elements/data-table/DataTable.d.ts +17 -0
- package/build/src/elements/data-table/DataTable.d.ts.map +1 -1
- package/build/src/elements/data-table/DataTable.js +5 -4
- package/build/src/elements/data-table/DataTable.js.map +1 -1
- package/build/src/elements/data-table/DataTable.styles.d.ts.map +1 -1
- package/build/src/elements/data-table/DataTable.styles.js +7 -2
- package/build/src/elements/data-table/DataTable.styles.js.map +1 -1
- package/build/src/elements/data-table/data-catalog-table.d.ts +16 -0
- package/build/src/elements/data-table/data-catalog-table.d.ts.map +1 -0
- package/build/src/elements/data-table/data-catalog-table.js +33 -0
- package/build/src/elements/data-table/data-catalog-table.js.map +1 -0
- package/build/src/elements/data-table/filesystem-table.d.ts +17 -0
- package/build/src/elements/data-table/filesystem-table.d.ts.map +1 -0
- package/build/src/elements/data-table/filesystem-table.js +35 -0
- package/build/src/elements/data-table/filesystem-table.js.map +1 -0
- package/build/src/elements/data-table/internals/DataCatalog.styles.d.ts +3 -0
- package/build/src/elements/data-table/internals/DataCatalog.styles.d.ts.map +1 -0
- package/build/src/elements/data-table/internals/DataCatalog.styles.js +29 -0
- package/build/src/elements/data-table/internals/DataCatalog.styles.js.map +1 -0
- package/build/src/elements/data-table/internals/DataCatalogTable.d.ts +44 -0
- package/build/src/elements/data-table/internals/DataCatalogTable.d.ts.map +1 -0
- package/build/src/elements/data-table/internals/DataCatalogTable.js +208 -0
- package/build/src/elements/data-table/internals/DataCatalogTable.js.map +1 -0
- package/build/src/elements/data-table/internals/Filesystem.styles.d.ts +3 -0
- package/build/src/elements/data-table/internals/Filesystem.styles.d.ts.map +1 -0
- package/build/src/elements/data-table/internals/Filesystem.styles.js +23 -0
- package/build/src/elements/data-table/internals/Filesystem.styles.js.map +1 -0
- package/build/src/elements/data-table/internals/FilesystemDataTable.d.ts +36 -0
- package/build/src/elements/data-table/internals/FilesystemDataTable.d.ts.map +1 -0
- package/build/src/elements/data-table/internals/FilesystemDataTable.js +230 -0
- package/build/src/elements/data-table/internals/FilesystemDataTable.js.map +1 -0
- package/build/src/elements/data-table/internals/TrashDataTable.d.ts +32 -0
- package/build/src/elements/data-table/internals/TrashDataTable.d.ts.map +1 -0
- package/build/src/elements/data-table/internals/TrashDataTable.js +161 -0
- package/build/src/elements/data-table/internals/TrashDataTable.js.map +1 -0
- package/build/src/elements/data-table/internals/UserData.styles.d.ts +3 -0
- package/build/src/elements/data-table/internals/UserData.styles.d.ts.map +1 -0
- package/build/src/elements/data-table/internals/UserData.styles.js +16 -0
- package/build/src/elements/data-table/internals/UserData.styles.js.map +1 -0
- package/build/src/elements/data-table/internals/UsersDataTable.d.ts +30 -0
- package/build/src/elements/data-table/internals/UsersDataTable.d.ts.map +1 -0
- package/build/src/elements/data-table/internals/UsersDataTable.js +243 -0
- package/build/src/elements/data-table/internals/UsersDataTable.js.map +1 -0
- package/build/src/elements/data-table/trash-table.d.ts +11 -0
- package/build/src/elements/data-table/trash-table.d.ts.map +1 -0
- package/build/src/elements/data-table/trash-table.js +28 -0
- package/build/src/elements/data-table/trash-table.js.map +1 -0
- package/build/src/elements/data-table/users-table.d.ts +11 -0
- package/build/src/elements/data-table/users-table.d.ts.map +1 -0
- package/build/src/elements/data-table/users-table.js +28 -0
- package/build/src/elements/data-table/users-table.js.map +1 -0
- package/build/src/elements/file-system/internals/Breadcrumbs.d.ts +0 -2
- package/build/src/elements/file-system/internals/Breadcrumbs.d.ts.map +1 -1
- package/build/src/elements/file-system/internals/Breadcrumbs.js +0 -2
- package/build/src/elements/file-system/internals/Breadcrumbs.js.map +1 -1
- package/build/src/elements/file-system/internals/QuickApiFilesystem.d.ts +197 -0
- package/build/src/elements/file-system/internals/QuickApiFilesystem.d.ts.map +1 -0
- package/build/src/elements/file-system/internals/QuickApiFilesystem.js +434 -0
- package/build/src/elements/file-system/internals/QuickApiFilesystem.js.map +1 -0
- package/build/src/elements/file-system/internals/QuickApiFilesystem.styles.d.ts +3 -0
- package/build/src/elements/file-system/internals/QuickApiFilesystem.styles.d.ts.map +1 -0
- package/build/src/elements/file-system/internals/QuickApiFilesystem.styles.js +49 -0
- package/build/src/elements/file-system/internals/QuickApiFilesystem.styles.js.map +1 -0
- package/build/src/elements/file-system/internals/ShareFile.d.ts +166 -0
- package/build/src/elements/file-system/internals/ShareFile.d.ts.map +1 -0
- package/build/src/elements/file-system/internals/ShareFile.js +581 -0
- package/build/src/elements/file-system/internals/ShareFile.js.map +1 -0
- package/build/src/elements/file-system/internals/ShareFile.styles.d.ts +3 -0
- package/build/src/elements/file-system/internals/ShareFile.styles.d.ts.map +1 -0
- package/build/src/elements/file-system/internals/ShareFile.styles.js +98 -0
- package/build/src/elements/file-system/internals/ShareFile.styles.js.map +1 -0
- package/build/src/elements/file-system/quick-api-filesystem.d.ts +11 -0
- package/build/src/elements/file-system/quick-api-filesystem.d.ts.map +1 -0
- package/build/src/elements/file-system/quick-api-filesystem.js +28 -0
- package/build/src/elements/file-system/quick-api-filesystem.js.map +1 -0
- package/build/src/elements/file-system/share-file.d.ts +20 -0
- package/build/src/elements/file-system/share-file.d.ts.map +1 -0
- package/build/src/elements/file-system/share-file.js +37 -0
- package/build/src/elements/file-system/share-file.js.map +1 -0
- package/build/src/elements/file-system/ui-breadcrumbs.d.ts +2 -0
- package/build/src/elements/file-system/ui-breadcrumbs.d.ts.map +1 -1
- package/build/src/elements/file-system/ui-breadcrumbs.js +2 -0
- package/build/src/elements/file-system/ui-breadcrumbs.js.map +1 -1
- package/build/src/elements/layout/SplitItem.d.ts.map +1 -1
- package/build/src/elements/layout/SplitItem.js +0 -7
- package/build/src/elements/layout/SplitItem.js.map +1 -1
- package/build/src/elements/navigation/internals/Navigation.d.ts +1 -1
- package/build/src/elements/navigation/internals/Navigation.d.ts.map +1 -1
- package/build/src/elements/navigation/internals/Navigation.js +10 -4
- package/build/src/elements/navigation/internals/Navigation.js.map +1 -1
- package/build/src/elements/search-input/internals/input.d.ts +27 -0
- package/build/src/elements/search-input/internals/input.d.ts.map +1 -0
- package/build/src/elements/search-input/internals/input.js +99 -0
- package/build/src/elements/search-input/internals/input.js.map +1 -0
- package/build/src/elements/search-input/internals/input.styles.d.ts +3 -0
- package/build/src/elements/search-input/internals/input.styles.d.ts.map +1 -0
- package/build/src/elements/search-input/internals/input.styles.js +38 -0
- package/build/src/elements/search-input/internals/input.styles.js.map +1 -0
- package/build/src/elements/search-input/search-input.d.ts +12 -0
- package/build/src/elements/search-input/search-input.d.ts.map +1 -0
- package/build/src/elements/search-input/search-input.js +30 -0
- package/build/src/elements/search-input/search-input.js.map +1 -0
- package/build/src/elements/setup/internals/InvitationScreen.d.ts +189 -0
- package/build/src/elements/setup/internals/InvitationScreen.d.ts.map +1 -0
- package/build/src/elements/setup/internals/InvitationScreen.js +466 -0
- package/build/src/elements/setup/internals/InvitationScreen.js.map +1 -0
- package/build/src/elements/setup/internals/InvitationScreen.styles.d.ts +3 -0
- package/build/src/elements/setup/internals/InvitationScreen.styles.d.ts.map +1 -0
- package/build/src/elements/setup/internals/InvitationScreen.styles.js +3 -0
- package/build/src/elements/setup/internals/InvitationScreen.styles.js.map +1 -0
- package/build/src/elements/setup/internals/LoginScreen.d.ts +61 -0
- package/build/src/elements/setup/internals/LoginScreen.d.ts.map +1 -0
- package/build/src/elements/setup/internals/LoginScreen.js +181 -0
- package/build/src/elements/setup/internals/LoginScreen.js.map +1 -0
- package/build/src/elements/setup/internals/LoginScreen.styles.d.ts +3 -0
- package/build/src/elements/setup/internals/LoginScreen.styles.d.ts.map +1 -0
- package/build/src/elements/setup/internals/LoginScreen.styles.js +3 -0
- package/build/src/elements/setup/internals/LoginScreen.styles.js.map +1 -0
- package/build/src/elements/setup/internals/OrganizationCreateScreen.d.ts +67 -0
- package/build/src/elements/setup/internals/OrganizationCreateScreen.d.ts.map +1 -0
- package/build/src/elements/setup/internals/OrganizationCreateScreen.js +194 -0
- package/build/src/elements/setup/internals/OrganizationCreateScreen.js.map +1 -0
- package/build/src/elements/setup/internals/OrganizationCreateScreen.styles.d.ts +3 -0
- package/build/src/elements/setup/internals/OrganizationCreateScreen.styles.d.ts.map +1 -0
- package/build/src/elements/setup/internals/OrganizationCreateScreen.styles.js +3 -0
- package/build/src/elements/setup/internals/OrganizationCreateScreen.styles.js.map +1 -0
- package/build/src/elements/setup/internals/OrganizationSelectionScreen.d.ts +41 -0
- package/build/src/elements/setup/internals/OrganizationSelectionScreen.d.ts.map +1 -0
- package/build/src/elements/setup/internals/OrganizationSelectionScreen.js +123 -0
- package/build/src/elements/setup/internals/OrganizationSelectionScreen.js.map +1 -0
- package/build/src/elements/setup/internals/OrganizationSelectionScreen.styles.d.ts +3 -0
- package/build/src/elements/setup/internals/OrganizationSelectionScreen.styles.d.ts.map +1 -0
- package/build/src/elements/setup/internals/OrganizationSelectionScreen.styles.js +3 -0
- package/build/src/elements/setup/internals/OrganizationSelectionScreen.styles.js.map +1 -0
- package/build/src/elements/setup/internals/OrganizationSelector.d.ts +56 -0
- package/build/src/elements/setup/internals/OrganizationSelector.d.ts.map +1 -0
- package/build/src/elements/setup/internals/OrganizationSelector.js +140 -0
- package/build/src/elements/setup/internals/OrganizationSelector.js.map +1 -0
- package/build/src/elements/setup/internals/OrganizationSelector.styles.d.ts +3 -0
- package/build/src/elements/setup/internals/OrganizationSelector.styles.d.ts.map +1 -0
- package/build/src/elements/setup/internals/OrganizationSelector.styles.js +3 -0
- package/build/src/elements/setup/internals/OrganizationSelector.styles.js.map +1 -0
- package/build/src/elements/setup/internals/common.styles.d.ts +3 -0
- package/build/src/elements/setup/internals/common.styles.d.ts.map +1 -0
- package/build/src/elements/setup/internals/common.styles.js +72 -0
- package/build/src/elements/setup/internals/common.styles.js.map +1 -0
- package/build/src/elements/setup/internals/icons.d.ts +4 -0
- package/build/src/elements/setup/internals/icons.d.ts.map +1 -0
- package/build/src/elements/setup/internals/icons.js +41 -0
- package/build/src/elements/setup/internals/icons.js.map +1 -0
- package/build/src/elements/setup/invitation-screen.d.ts +13 -0
- package/build/src/elements/setup/invitation-screen.d.ts.map +1 -0
- package/build/src/elements/setup/invitation-screen.js +32 -0
- package/build/src/elements/setup/invitation-screen.js.map +1 -0
- package/build/src/elements/setup/login-screen.d.ts +12 -0
- package/build/src/elements/setup/login-screen.d.ts.map +1 -0
- package/build/src/elements/setup/login-screen.js +31 -0
- package/build/src/elements/setup/login-screen.js.map +1 -0
- package/build/src/elements/setup/organization-create-screen.d.ts +13 -0
- package/build/src/elements/setup/organization-create-screen.d.ts.map +1 -0
- package/build/src/elements/setup/organization-create-screen.js +32 -0
- package/build/src/elements/setup/organization-create-screen.js.map +1 -0
- package/build/src/elements/setup/organization-selection-screen.d.ts +14 -0
- package/build/src/elements/setup/organization-selection-screen.d.ts.map +1 -0
- package/build/src/elements/setup/organization-selection-screen.js +33 -0
- package/build/src/elements/setup/organization-selection-screen.js.map +1 -0
- package/build/src/elements/setup/organization-selector.d.ts +32 -0
- package/build/src/elements/setup/organization-selector.d.ts.map +1 -0
- package/build/src/elements/setup/organization-selector.js +50 -0
- package/build/src/elements/setup/organization-selector.js.map +1 -0
- package/build/src/elements/user/internals/UserAvatar.d.ts +3 -1
- package/build/src/elements/user/internals/UserAvatar.d.ts.map +1 -1
- package/build/src/elements/user/internals/UserAvatar.js +5 -1
- package/build/src/elements/user/internals/UserAvatar.js.map +1 -1
- package/build/src/events/DomainEvents.d.ts +31 -0
- package/build/src/events/DomainEvents.d.ts.map +1 -0
- package/build/src/events/DomainEvents.js +65 -0
- package/build/src/events/DomainEvents.js.map +1 -0
- package/build/src/events/EventTypes.d.ts +7 -0
- package/build/src/events/EventTypes.d.ts.map +1 -1
- package/build/src/events/EventTypes.js +8 -0
- package/build/src/events/EventTypes.js.map +1 -1
- package/build/src/events/Events.d.ts +32 -25
- package/build/src/events/Events.d.ts.map +1 -1
- package/build/src/events/Events.js +2 -0
- package/build/src/events/Events.js.map +1 -1
- package/build/src/exceptions/builder.d.ts +11 -0
- package/build/src/exceptions/builder.d.ts.map +1 -0
- package/build/src/exceptions/builder.js +29 -0
- package/build/src/exceptions/builder.js.map +1 -0
- package/build/src/help/help_coordinator.d.ts +82 -0
- package/build/src/help/help_coordinator.d.ts.map +1 -0
- package/build/src/help/help_coordinator.js +206 -0
- package/build/src/help/help_coordinator.js.map +1 -0
- package/build/src/help/help_panel.d.ts +88 -0
- package/build/src/help/help_panel.d.ts.map +1 -0
- package/build/src/help/help_panel.js +323 -0
- package/build/src/help/help_panel.js.map +1 -0
- package/build/src/help/help_panel.styles.d.ts +3 -0
- package/build/src/help/help_panel.styles.d.ts.map +1 -0
- package/build/src/help/help_panel.styles.js +196 -0
- package/build/src/help/help_panel.styles.js.map +1 -0
- package/build/src/help/help_service_controller.d.ts +108 -0
- package/build/src/help/help_service_controller.d.ts.map +1 -0
- package/build/src/help/help_service_controller.js +252 -0
- package/build/src/help/help_service_controller.js.map +1 -0
- package/build/src/help/help_topic.d.ts +60 -0
- package/build/src/help/help_topic.d.ts.map +1 -0
- package/build/src/help/help_topic.js +2 -0
- package/build/src/help/help_topic.js.map +1 -0
- package/build/src/help/index.d.ts +6 -0
- package/build/src/help/index.d.ts.map +1 -0
- package/build/src/help/index.js +6 -0
- package/build/src/help/index.js.map +1 -0
- package/build/src/help/render.d.ts +14 -0
- package/build/src/help/render.d.ts.map +1 -0
- package/build/src/help/render.js +37 -0
- package/build/src/help/render.js.map +1 -0
- package/build/src/lib/Dom.d.ts +7 -0
- package/build/src/lib/Dom.d.ts.map +1 -1
- package/build/src/lib/Dom.js +33 -0
- package/build/src/lib/Dom.js.map +1 -1
- package/build/src/lib/files/Utils.d.ts +10 -0
- package/build/src/lib/files/Utils.d.ts.map +1 -1
- package/build/src/lib/files/Utils.js +47 -0
- package/build/src/lib/files/Utils.js.map +1 -1
- package/build/src/md/button/internals/base.d.ts +5 -0
- package/build/src/md/button/internals/base.d.ts.map +1 -1
- package/build/src/md/button/internals/base.js +23 -4
- package/build/src/md/button/internals/base.js.map +1 -1
- package/build/src/md/dropdown-list/internals/UiDropdownList.d.ts.map +1 -1
- package/build/src/md/dropdown-list/internals/UiDropdownList.js +11 -5
- package/build/src/md/dropdown-list/internals/UiDropdownList.js.map +1 -1
- package/build/src/md/icons/Icons.d.ts +2 -1
- package/build/src/md/icons/Icons.d.ts.map +1 -1
- package/build/src/md/icons/Icons.js +1 -0
- package/build/src/md/icons/Icons.js.map +1 -1
- package/build/src/md/input/Input.d.ts.map +1 -1
- package/build/src/md/input/Input.js +14 -9
- package/build/src/md/input/Input.js.map +1 -1
- package/build/src/md/list/internals/List.d.ts +8 -0
- package/build/src/md/list/internals/List.d.ts.map +1 -1
- package/build/src/md/list/internals/List.js +24 -2
- package/build/src/md/list/internals/List.js.map +1 -1
- package/build/src/md/list/internals/ListItem.d.ts.map +1 -1
- package/build/src/md/list/internals/ListItem.js +8 -4
- package/build/src/md/list/internals/ListItem.js.map +1 -1
- package/build/src/md/menu/internal/Menu.js +2 -2
- package/build/src/md/menu/internal/Menu.js.map +1 -1
- package/build/src/md/menu/internal/Menu.styles.d.ts.map +1 -1
- package/build/src/md/menu/internal/Menu.styles.js +4 -2
- package/build/src/md/menu/internal/Menu.styles.js.map +1 -1
- package/build/src/md/select/internals/Select.d.ts +4 -3
- package/build/src/md/select/internals/Select.d.ts.map +1 -1
- package/build/src/md/select/internals/Select.js +12 -15
- package/build/src/md/select/internals/Select.js.map +1 -1
- package/build/src/md/select/internals/Select.styles.d.ts.map +1 -1
- package/build/src/md/select/internals/Select.styles.js +3 -0
- package/build/src/md/select/internals/Select.styles.js.map +1 -1
- package/build/src/md/switch/internals/SwitchElement.js +3 -3
- package/build/src/md/switch/internals/SwitchElement.js.map +1 -1
- package/build/src/modeling/api-create-action-editor.d.ts +17 -0
- package/build/src/modeling/api-create-action-editor.d.ts.map +1 -0
- package/build/src/modeling/api-create-action-editor.js +34 -0
- package/build/src/modeling/api-create-action-editor.js.map +1 -0
- package/build/src/modeling/api-delete-action-editor.d.ts +21 -0
- package/build/src/modeling/api-delete-action-editor.d.ts.map +1 -0
- package/build/src/modeling/api-delete-action-editor.js +38 -0
- package/build/src/modeling/api-delete-action-editor.js.map +1 -0
- package/build/src/modeling/api-list-action-editor.d.ts +25 -0
- package/build/src/modeling/api-list-action-editor.d.ts.map +1 -0
- package/build/src/modeling/api-list-action-editor.js +42 -0
- package/build/src/modeling/api-list-action-editor.js.map +1 -0
- package/build/src/modeling/api-modeling-access-configuration.d.ts +21 -0
- package/build/src/modeling/api-modeling-access-configuration.d.ts.map +1 -0
- package/build/src/modeling/api-modeling-access-configuration.js +37 -0
- package/build/src/modeling/api-modeling-access-configuration.js.map +1 -0
- package/build/src/modeling/api-modeling-access.d.ts +19 -0
- package/build/src/modeling/api-modeling-access.d.ts.map +1 -0
- package/build/src/modeling/api-modeling-access.js +39 -0
- package/build/src/modeling/api-modeling-access.js.map +1 -0
- package/build/src/modeling/api-modeling-actions.d.ts +20 -0
- package/build/src/modeling/api-modeling-actions.d.ts.map +1 -0
- package/build/src/modeling/api-modeling-actions.js +40 -0
- package/build/src/modeling/api-modeling-actions.js.map +1 -0
- package/build/src/modeling/api-modeling-description.d.ts +15 -0
- package/build/src/modeling/api-modeling-description.d.ts.map +1 -0
- package/build/src/modeling/api-modeling-description.js +35 -0
- package/build/src/modeling/api-modeling-description.js.map +1 -0
- package/build/src/modeling/api-modeling-entity-card.d.ts +11 -0
- package/build/src/modeling/api-modeling-entity-card.d.ts.map +1 -0
- package/build/src/modeling/api-modeling-entity-card.js +28 -0
- package/build/src/modeling/api-modeling-entity-card.js.map +1 -0
- package/build/src/modeling/api-modeling-entity-editor.d.ts +17 -0
- package/build/src/modeling/api-modeling-entity-editor.d.ts.map +1 -0
- package/build/src/modeling/api-modeling-entity-editor.js +35 -0
- package/build/src/modeling/api-modeling-entity-editor.js.map +1 -0
- package/build/src/modeling/api-modeling-navigation.d.ts +13 -0
- package/build/src/modeling/api-modeling-navigation.d.ts.map +1 -0
- package/build/src/modeling/api-modeling-navigation.js +31 -0
- package/build/src/modeling/api-modeling-navigation.js.map +1 -0
- package/build/src/modeling/api-modeling-rate-limiting.d.ts +19 -0
- package/build/src/modeling/api-modeling-rate-limiting.d.ts.map +1 -0
- package/build/src/modeling/api-modeling-rate-limiting.js +35 -0
- package/build/src/modeling/api-modeling-rate-limiting.js.map +1 -0
- package/build/src/modeling/api-modeling-session.d.ts +31 -0
- package/build/src/modeling/api-modeling-session.d.ts.map +1 -0
- package/build/src/modeling/api-modeling-session.js +51 -0
- package/build/src/modeling/api-modeling-session.js.map +1 -0
- package/build/src/modeling/api-read-action-editor.d.ts +17 -0
- package/build/src/modeling/api-read-action-editor.d.ts.map +1 -0
- package/build/src/modeling/api-read-action-editor.js +34 -0
- package/build/src/modeling/api-read-action-editor.js.map +1 -0
- package/build/src/modeling/api-search-action-editor.d.ts +22 -0
- package/build/src/modeling/api-search-action-editor.d.ts.map +1 -0
- package/build/src/modeling/api-search-action-editor.js +39 -0
- package/build/src/modeling/api-search-action-editor.js.map +1 -0
- package/build/src/modeling/api-update-action-editor.d.ts +18 -0
- package/build/src/modeling/api-update-action-editor.d.ts.map +1 -0
- package/build/src/modeling/api-update-action-editor.js +35 -0
- package/build/src/modeling/api-update-action-editor.js.map +1 -0
- package/build/src/modeling/data-catalog-browser.d.ts +12 -0
- package/build/src/modeling/data-catalog-browser.d.ts.map +1 -0
- package/build/src/modeling/data-catalog-browser.js +28 -0
- package/build/src/modeling/data-catalog-browser.js.map +1 -0
- package/build/src/modeling/dialogs/CalculatedTaxonomy.d.ts +64 -0
- package/build/src/modeling/dialogs/CalculatedTaxonomy.d.ts.map +1 -0
- package/build/src/modeling/dialogs/CalculatedTaxonomy.js +299 -0
- package/build/src/modeling/dialogs/CalculatedTaxonomy.js.map +1 -0
- package/build/src/modeling/dialogs/CategoryTaxonomy.d.ts +25 -0
- package/build/src/modeling/dialogs/CategoryTaxonomy.d.ts.map +1 -0
- package/build/src/modeling/dialogs/CategoryTaxonomy.js +210 -0
- package/build/src/modeling/dialogs/CategoryTaxonomy.js.map +1 -0
- package/build/src/modeling/dialogs/CurrencyTaxonomy.d.ts +27 -0
- package/build/src/modeling/dialogs/CurrencyTaxonomy.d.ts.map +1 -0
- package/build/src/modeling/dialogs/CurrencyTaxonomy.js +212 -0
- package/build/src/modeling/dialogs/CurrencyTaxonomy.js.map +1 -0
- package/build/src/modeling/dialogs/EmailTaxonomy.d.ts +21 -0
- package/build/src/modeling/dialogs/EmailTaxonomy.d.ts.map +1 -0
- package/build/src/modeling/dialogs/EmailTaxonomy.js +166 -0
- package/build/src/modeling/dialogs/EmailTaxonomy.js.map +1 -0
- package/build/src/modeling/dialogs/GeospatialCoordinatesTaxonomy.d.ts +34 -0
- package/build/src/modeling/dialogs/GeospatialCoordinatesTaxonomy.d.ts.map +1 -0
- package/build/src/modeling/dialogs/GeospatialCoordinatesTaxonomy.js +488 -0
- package/build/src/modeling/dialogs/GeospatialCoordinatesTaxonomy.js.map +1 -0
- package/build/src/modeling/dialogs/HtmlTaxonomy.d.ts +31 -0
- package/build/src/modeling/dialogs/HtmlTaxonomy.d.ts.map +1 -0
- package/build/src/modeling/dialogs/HtmlTaxonomy.js +331 -0
- package/build/src/modeling/dialogs/HtmlTaxonomy.js.map +1 -0
- package/build/src/modeling/dialogs/MarkdownTaxonomy.d.ts +29 -0
- package/build/src/modeling/dialogs/MarkdownTaxonomy.d.ts.map +1 -0
- package/build/src/modeling/dialogs/MarkdownTaxonomy.js +290 -0
- package/build/src/modeling/dialogs/MarkdownTaxonomy.js.map +1 -0
- package/build/src/modeling/dialogs/PasswordTaxonomy.d.ts +22 -0
- package/build/src/modeling/dialogs/PasswordTaxonomy.d.ts.map +1 -0
- package/build/src/modeling/dialogs/PasswordTaxonomy.js +206 -0
- package/build/src/modeling/dialogs/PasswordTaxonomy.js.map +1 -0
- package/build/src/modeling/dialogs/PhoneTaxonomy.d.ts +21 -0
- package/build/src/modeling/dialogs/PhoneTaxonomy.d.ts.map +1 -0
- package/build/src/modeling/dialogs/PhoneTaxonomy.js +242 -0
- package/build/src/modeling/dialogs/PhoneTaxonomy.js.map +1 -0
- package/build/src/modeling/dialogs/PublicUniqueNameTaxonomy.d.ts +28 -0
- package/build/src/modeling/dialogs/PublicUniqueNameTaxonomy.d.ts.map +1 -0
- package/build/src/modeling/dialogs/PublicUniqueNameTaxonomy.js +205 -0
- package/build/src/modeling/dialogs/PublicUniqueNameTaxonomy.js.map +1 -0
- package/build/src/modeling/dialogs/SkuTaxonomy.d.ts +31 -0
- package/build/src/modeling/dialogs/SkuTaxonomy.d.ts.map +1 -0
- package/build/src/modeling/dialogs/SkuTaxonomy.js +319 -0
- package/build/src/modeling/dialogs/SkuTaxonomy.js.map +1 -0
- package/build/src/modeling/dialogs/StatusTaxonomy.d.ts +27 -0
- package/build/src/modeling/dialogs/StatusTaxonomy.d.ts.map +1 -0
- package/build/src/modeling/dialogs/StatusTaxonomy.js +138 -0
- package/build/src/modeling/dialogs/StatusTaxonomy.js.map +1 -0
- package/build/src/modeling/dialogs/TagsTaxonomy.d.ts +23 -0
- package/build/src/modeling/dialogs/TagsTaxonomy.d.ts.map +1 -0
- package/build/src/modeling/dialogs/TagsTaxonomy.js +169 -0
- package/build/src/modeling/dialogs/TagsTaxonomy.js.map +1 -0
- package/build/src/modeling/dialogs/TaxonomyDialog.d.ts +53 -0
- package/build/src/modeling/dialogs/TaxonomyDialog.d.ts.map +1 -0
- package/build/src/modeling/dialogs/TaxonomyDialog.js +176 -0
- package/build/src/modeling/dialogs/TaxonomyDialog.js.map +1 -0
- package/build/src/modeling/dialogs/UrlTaxonomy.d.ts +19 -0
- package/build/src/modeling/dialogs/UrlTaxonomy.d.ts.map +1 -0
- package/build/src/modeling/dialogs/UrlTaxonomy.js +199 -0
- package/build/src/modeling/dialogs/UrlTaxonomy.js.map +1 -0
- package/build/src/modeling/dialogs/common.d.ts +3 -0
- package/build/src/modeling/dialogs/common.d.ts.map +1 -0
- package/build/src/modeling/dialogs/common.js +52 -0
- package/build/src/modeling/dialogs/common.js.map +1 -0
- package/build/src/modeling/domain-association-editor.d.ts +20 -0
- package/build/src/modeling/domain-association-editor.d.ts.map +1 -0
- package/build/src/modeling/domain-association-editor.js +38 -0
- package/build/src/modeling/domain-association-editor.js.map +1 -0
- package/build/src/modeling/domain-auto-fields-dialog.d.ts +23 -0
- package/build/src/modeling/domain-auto-fields-dialog.d.ts.map +1 -0
- package/build/src/modeling/domain-auto-fields-dialog.js +58 -0
- package/build/src/modeling/domain-auto-fields-dialog.js.map +1 -0
- package/build/src/modeling/domain-browser.d.ts +19 -0
- package/build/src/modeling/domain-browser.d.ts.map +1 -0
- package/build/src/modeling/domain-browser.js +37 -0
- package/build/src/modeling/domain-browser.js.map +1 -0
- package/build/src/modeling/domain-entity-editor.d.ts +26 -0
- package/build/src/modeling/domain-entity-editor.d.ts.map +1 -0
- package/build/src/modeling/domain-entity-editor.js +46 -0
- package/build/src/modeling/domain-entity-editor.js.map +1 -0
- package/build/src/modeling/domain-file-import.d.ts +16 -0
- package/build/src/modeling/domain-file-import.d.ts.map +1 -0
- package/build/src/modeling/domain-file-import.js +34 -0
- package/build/src/modeling/domain-file-import.js.map +1 -0
- package/build/src/modeling/domain-model-editor.d.ts +13 -0
- package/build/src/modeling/domain-model-editor.d.ts.map +1 -0
- package/build/src/modeling/domain-model-editor.js +33 -0
- package/build/src/modeling/domain-model-editor.js.map +1 -0
- package/build/src/modeling/domain-namespace-editor.d.ts +14 -0
- package/build/src/modeling/domain-namespace-editor.d.ts.map +1 -0
- package/build/src/modeling/domain-namespace-editor.js +34 -0
- package/build/src/modeling/domain-namespace-editor.js.map +1 -0
- package/build/src/modeling/domain-navigation.d.ts +15 -0
- package/build/src/modeling/domain-navigation.d.ts.map +1 -0
- package/build/src/modeling/domain-navigation.js +33 -0
- package/build/src/modeling/domain-navigation.js.map +1 -0
- package/build/src/modeling/domain-property-editor.d.ts +14 -0
- package/build/src/modeling/domain-property-editor.d.ts.map +1 -0
- package/build/src/modeling/domain-property-editor.js +33 -0
- package/build/src/modeling/domain-property-editor.js.map +1 -0
- package/build/src/modeling/domain-template-browser.d.ts +14 -0
- package/build/src/modeling/domain-template-browser.d.ts.map +1 -0
- package/build/src/modeling/domain-template-browser.js +31 -0
- package/build/src/modeling/domain-template-browser.js.map +1 -0
- package/build/src/modeling/domain-validation-report.d.ts +13 -0
- package/build/src/modeling/domain-validation-report.d.ts.map +1 -0
- package/build/src/modeling/domain-validation-report.js +30 -0
- package/build/src/modeling/domain-validation-report.js.map +1 -0
- package/build/src/modeling/internals/ApiCreateActionEditor.d.ts +60 -0
- package/build/src/modeling/internals/ApiCreateActionEditor.d.ts.map +1 -0
- package/build/src/modeling/internals/ApiCreateActionEditor.js +216 -0
- package/build/src/modeling/internals/ApiCreateActionEditor.js.map +1 -0
- package/build/src/modeling/internals/ApiDeleteActionEditor.d.ts +70 -0
- package/build/src/modeling/internals/ApiDeleteActionEditor.d.ts.map +1 -0
- package/build/src/modeling/internals/ApiDeleteActionEditor.js +301 -0
- package/build/src/modeling/internals/ApiDeleteActionEditor.js.map +1 -0
- package/build/src/modeling/internals/ApiEditor.d.ts +59 -0
- package/build/src/modeling/internals/ApiEditor.d.ts.map +1 -0
- package/build/src/modeling/internals/ApiEditor.js +119 -0
- package/build/src/modeling/internals/ApiEditor.js.map +1 -0
- package/build/src/modeling/internals/ApiListActionEditor.d.ts +93 -0
- package/build/src/modeling/internals/ApiListActionEditor.d.ts.map +1 -0
- package/build/src/modeling/internals/ApiListActionEditor.js +505 -0
- package/build/src/modeling/internals/ApiListActionEditor.js.map +1 -0
- package/build/src/modeling/internals/ApiModelingAccessConfiguration.d.ts +100 -0
- package/build/src/modeling/internals/ApiModelingAccessConfiguration.d.ts.map +1 -0
- package/build/src/modeling/internals/ApiModelingAccessConfiguration.js +607 -0
- package/build/src/modeling/internals/ApiModelingAccessConfiguration.js.map +1 -0
- package/build/src/modeling/internals/ApiModelingAccessScreen.d.ts +36 -0
- package/build/src/modeling/internals/ApiModelingAccessScreen.d.ts.map +1 -0
- package/build/src/modeling/internals/ApiModelingAccessScreen.js +296 -0
- package/build/src/modeling/internals/ApiModelingAccessScreen.js.map +1 -0
- package/build/src/modeling/internals/ApiModelingActionsScreen.d.ts +82 -0
- package/build/src/modeling/internals/ApiModelingActionsScreen.d.ts.map +1 -0
- package/build/src/modeling/internals/ApiModelingActionsScreen.js +298 -0
- package/build/src/modeling/internals/ApiModelingActionsScreen.js.map +1 -0
- package/build/src/modeling/internals/ApiModelingDescriptionScreen.d.ts +40 -0
- package/build/src/modeling/internals/ApiModelingDescriptionScreen.d.ts.map +1 -0
- package/build/src/modeling/internals/ApiModelingDescriptionScreen.js +356 -0
- package/build/src/modeling/internals/ApiModelingDescriptionScreen.js.map +1 -0
- package/build/src/modeling/internals/ApiModelingEntityCard.d.ts +74 -0
- package/build/src/modeling/internals/ApiModelingEntityCard.d.ts.map +1 -0
- package/build/src/modeling/internals/ApiModelingEntityCard.js +225 -0
- package/build/src/modeling/internals/ApiModelingEntityCard.js.map +1 -0
- package/build/src/modeling/internals/ApiModelingEntityEditor.d.ts +50 -0
- package/build/src/modeling/internals/ApiModelingEntityEditor.d.ts.map +1 -0
- package/build/src/modeling/internals/ApiModelingEntityEditor.js +384 -0
- package/build/src/modeling/internals/ApiModelingEntityEditor.js.map +1 -0
- package/build/src/modeling/internals/ApiModelingNavigation.d.ts +36 -0
- package/build/src/modeling/internals/ApiModelingNavigation.d.ts.map +1 -0
- package/build/src/modeling/internals/ApiModelingNavigation.js +115 -0
- package/build/src/modeling/internals/ApiModelingNavigation.js.map +1 -0
- package/build/src/modeling/internals/ApiModelingRateLimiting.d.ts +59 -0
- package/build/src/modeling/internals/ApiModelingRateLimiting.d.ts.map +1 -0
- package/build/src/modeling/internals/ApiModelingRateLimiting.js +394 -0
- package/build/src/modeling/internals/ApiModelingRateLimiting.js.map +1 -0
- package/build/src/modeling/internals/ApiModelingScreen.d.ts +23 -0
- package/build/src/modeling/internals/ApiModelingScreen.d.ts.map +1 -0
- package/build/src/modeling/internals/ApiModelingScreen.js +50 -0
- package/build/src/modeling/internals/ApiModelingScreen.js.map +1 -0
- package/build/src/modeling/internals/ApiModelingSessionScreen.d.ts +79 -0
- package/build/src/modeling/internals/ApiModelingSessionScreen.d.ts.map +1 -0
- package/build/src/modeling/internals/ApiModelingSessionScreen.js +708 -0
- package/build/src/modeling/internals/ApiModelingSessionScreen.js.map +1 -0
- package/build/src/modeling/internals/ApiReadActionEditor.d.ts +60 -0
- package/build/src/modeling/internals/ApiReadActionEditor.d.ts.map +1 -0
- package/build/src/modeling/internals/ApiReadActionEditor.js +216 -0
- package/build/src/modeling/internals/ApiReadActionEditor.js.map +1 -0
- package/build/src/modeling/internals/ApiSearchActionEditor.d.ts +75 -0
- package/build/src/modeling/internals/ApiSearchActionEditor.d.ts.map +1 -0
- package/build/src/modeling/internals/ApiSearchActionEditor.js +340 -0
- package/build/src/modeling/internals/ApiSearchActionEditor.js.map +1 -0
- package/build/src/modeling/internals/ApiUpdateActionEditor.d.ts +67 -0
- package/build/src/modeling/internals/ApiUpdateActionEditor.d.ts.map +1 -0
- package/build/src/modeling/internals/ApiUpdateActionEditor.js +301 -0
- package/build/src/modeling/internals/ApiUpdateActionEditor.js.map +1 -0
- package/build/src/modeling/internals/DataCatalogBrowser.d.ts +108 -0
- package/build/src/modeling/internals/DataCatalogBrowser.d.ts.map +1 -0
- package/build/src/modeling/internals/DataCatalogBrowser.js +320 -0
- package/build/src/modeling/internals/DataCatalogBrowser.js.map +1 -0
- package/build/src/modeling/internals/DomainAssociationEditor.d.ts +116 -0
- package/build/src/modeling/internals/DomainAssociationEditor.d.ts.map +1 -0
- package/build/src/modeling/internals/DomainAssociationEditor.js +688 -0
- package/build/src/modeling/internals/DomainAssociationEditor.js.map +1 -0
- package/build/src/modeling/internals/DomainAutoFieldsDialog.d.ts +45 -0
- package/build/src/modeling/internals/DomainAutoFieldsDialog.d.ts.map +1 -0
- package/build/src/modeling/internals/DomainAutoFieldsDialog.js +290 -0
- package/build/src/modeling/internals/DomainAutoFieldsDialog.js.map +1 -0
- package/build/src/modeling/internals/DomainBrowser.d.ts +176 -0
- package/build/src/modeling/internals/DomainBrowser.d.ts.map +1 -0
- package/build/src/modeling/internals/DomainBrowser.js +492 -0
- package/build/src/modeling/internals/DomainBrowser.js.map +1 -0
- package/build/src/modeling/internals/DomainEntityEditor.d.ts +168 -0
- package/build/src/modeling/internals/DomainEntityEditor.d.ts.map +1 -0
- package/build/src/modeling/internals/DomainEntityEditor.js +1183 -0
- package/build/src/modeling/internals/DomainEntityEditor.js.map +1 -0
- package/build/src/modeling/internals/DomainFileImport.d.ts +101 -0
- package/build/src/modeling/internals/DomainFileImport.d.ts.map +1 -0
- package/build/src/modeling/internals/DomainFileImport.js +473 -0
- package/build/src/modeling/internals/DomainFileImport.js.map +1 -0
- package/build/src/modeling/internals/DomainModelEditor.d.ts +15 -0
- package/build/src/modeling/internals/DomainModelEditor.d.ts.map +1 -0
- package/build/src/modeling/internals/DomainModelEditor.js +81 -0
- package/build/src/modeling/internals/DomainModelEditor.js.map +1 -0
- package/build/src/modeling/internals/DomainNamespaceEditor.d.ts +15 -0
- package/build/src/modeling/internals/DomainNamespaceEditor.d.ts.map +1 -0
- package/build/src/modeling/internals/DomainNamespaceEditor.js +81 -0
- package/build/src/modeling/internals/DomainNamespaceEditor.js.map +1 -0
- package/build/src/modeling/internals/DomainNavigation.d.ts +352 -0
- package/build/src/modeling/internals/DomainNavigation.d.ts.map +1 -0
- package/build/src/modeling/internals/DomainNavigation.js +1734 -0
- package/build/src/modeling/internals/DomainNavigation.js.map +1 -0
- package/build/src/modeling/internals/DomainPropertyEditor.d.ts +289 -0
- package/build/src/modeling/internals/DomainPropertyEditor.d.ts.map +1 -0
- package/build/src/modeling/internals/DomainPropertyEditor.js +1478 -0
- package/build/src/modeling/internals/DomainPropertyEditor.js.map +1 -0
- package/build/src/modeling/internals/DomainTemplateBrowser.d.ts +82 -0
- package/build/src/modeling/internals/DomainTemplateBrowser.d.ts.map +1 -0
- package/build/src/modeling/internals/DomainTemplateBrowser.js +492 -0
- package/build/src/modeling/internals/DomainTemplateBrowser.js.map +1 -0
- package/build/src/modeling/internals/DomainValidationReport.d.ts +85 -0
- package/build/src/modeling/internals/DomainValidationReport.d.ts.map +1 -0
- package/build/src/modeling/internals/DomainValidationReport.js +372 -0
- package/build/src/modeling/internals/DomainValidationReport.js.map +1 -0
- package/build/src/modeling/internals/ModelingElement.d.ts +56 -0
- package/build/src/modeling/internals/ModelingElement.d.ts.map +1 -0
- package/build/src/modeling/internals/ModelingElement.js +122 -0
- package/build/src/modeling/internals/ModelingElement.js.map +1 -0
- package/build/src/modeling/internals/styles/AccessConfiguration.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/AccessConfiguration.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/AccessConfiguration.styles.js +106 -0
- package/build/src/modeling/internals/styles/AccessConfiguration.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/ApiCreateActionEditor.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/ApiCreateActionEditor.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/ApiCreateActionEditor.styles.js +15 -0
- package/build/src/modeling/internals/styles/ApiCreateActionEditor.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/ApiDeleteActionEditor.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/ApiDeleteActionEditor.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/ApiDeleteActionEditor.styles.js +15 -0
- package/build/src/modeling/internals/styles/ApiDeleteActionEditor.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/ApiListActionEditor.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/ApiListActionEditor.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/ApiListActionEditor.styles.js +15 -0
- package/build/src/modeling/internals/styles/ApiListActionEditor.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/ApiModelingActionsScreen.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/ApiModelingActionsScreen.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/ApiModelingActionsScreen.styles.js +31 -0
- package/build/src/modeling/internals/styles/ApiModelingActionsScreen.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/ApiModelingEntityCard.d.ts +3 -0
- package/build/src/modeling/internals/styles/ApiModelingEntityCard.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/ApiModelingEntityCard.js +85 -0
- package/build/src/modeling/internals/styles/ApiModelingEntityCard.js.map +1 -0
- package/build/src/modeling/internals/styles/ApiModelingEntityEditor.d.ts +3 -0
- package/build/src/modeling/internals/styles/ApiModelingEntityEditor.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/ApiModelingEntityEditor.js +68 -0
- package/build/src/modeling/internals/styles/ApiModelingEntityEditor.js.map +1 -0
- package/build/src/modeling/internals/styles/ApiModelingNavigation.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/ApiModelingNavigation.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/ApiModelingNavigation.styles.js +23 -0
- package/build/src/modeling/internals/styles/ApiModelingNavigation.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/ApiReadActionEditor.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/ApiReadActionEditor.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/ApiReadActionEditor.styles.js +15 -0
- package/build/src/modeling/internals/styles/ApiReadActionEditor.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/ApiSearchActionEditor.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/ApiSearchActionEditor.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/ApiSearchActionEditor.styles.js +15 -0
- package/build/src/modeling/internals/styles/ApiSearchActionEditor.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/ApiUpdateActionEditor.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/ApiUpdateActionEditor.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/ApiUpdateActionEditor.styles.js +15 -0
- package/build/src/modeling/internals/styles/ApiUpdateActionEditor.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/DataCatalogBrowser.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/DataCatalogBrowser.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/DataCatalogBrowser.styles.js +53 -0
- package/build/src/modeling/internals/styles/DataCatalogBrowser.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/DomainAutoFieldsDialog.d.ts +3 -0
- package/build/src/modeling/internals/styles/DomainAutoFieldsDialog.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/DomainAutoFieldsDialog.js +35 -0
- package/build/src/modeling/internals/styles/DomainAutoFieldsDialog.js.map +1 -0
- package/build/src/modeling/internals/styles/DomainBrowser.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/DomainBrowser.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/DomainBrowser.styles.js +26 -0
- package/build/src/modeling/internals/styles/DomainBrowser.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/DomainEntityEditor.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/DomainEntityEditor.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/DomainEntityEditor.styles.js +98 -0
- package/build/src/modeling/internals/styles/DomainEntityEditor.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/DomainFileImport.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/DomainFileImport.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/DomainFileImport.styles.js +100 -0
- package/build/src/modeling/internals/styles/DomainFileImport.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/DomainModelEditor.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/DomainModelEditor.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/DomainModelEditor.styles.js +7 -0
- package/build/src/modeling/internals/styles/DomainModelEditor.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/DomainNamespaceEditor.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/DomainNamespaceEditor.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/DomainNamespaceEditor.styles.js +7 -0
- package/build/src/modeling/internals/styles/DomainNamespaceEditor.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/DomainNavigation.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/DomainNavigation.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/DomainNavigation.styles.js +343 -0
- package/build/src/modeling/internals/styles/DomainNavigation.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/DomainPropertyEditor.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/DomainPropertyEditor.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/DomainPropertyEditor.styles.js +18 -0
- package/build/src/modeling/internals/styles/DomainPropertyEditor.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/DomainTemplateBrowser.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/DomainTemplateBrowser.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/DomainTemplateBrowser.styles.js +553 -0
- package/build/src/modeling/internals/styles/DomainTemplateBrowser.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/DomainValidationReport.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/DomainValidationReport.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/DomainValidationReport.styles.js +75 -0
- package/build/src/modeling/internals/styles/DomainValidationReport.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/EditorCommon.styles.d.ts +8 -0
- package/build/src/modeling/internals/styles/EditorCommon.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/EditorCommon.styles.js +141 -0
- package/build/src/modeling/internals/styles/EditorCommon.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/RateLimiting.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/RateLimiting.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/RateLimiting.styles.js +83 -0
- package/build/src/modeling/internals/styles/RateLimiting.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/api.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/api.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/api.styles.js +146 -0
- package/build/src/modeling/internals/styles/api.styles.js.map +1 -0
- package/build/src/modeling/internals/styles/form_styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/form_styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/form_styles.js +107 -0
- package/build/src/modeling/internals/styles/form_styles.js.map +1 -0
- package/build/src/modeling/internals/styles/learning.styles.d.ts +3 -0
- package/build/src/modeling/internals/styles/learning.styles.d.ts.map +1 -0
- package/build/src/modeling/internals/styles/learning.styles.js +40 -0
- package/build/src/modeling/internals/styles/learning.styles.js.map +1 -0
- package/build/src/modeling/lib/access_helpers.d.ts +8 -0
- package/build/src/modeling/lib/access_helpers.d.ts.map +1 -0
- package/build/src/modeling/lib/access_helpers.js +42 -0
- package/build/src/modeling/lib/access_helpers.js.map +1 -0
- package/build/src/modeling/lib/formula_parser.d.ts +57 -0
- package/build/src/modeling/lib/formula_parser.d.ts.map +1 -0
- package/build/src/modeling/lib/formula_parser.js +162 -0
- package/build/src/modeling/lib/formula_parser.js.map +1 -0
- package/build/src/modeling/lib/ui_mapping.d.ts +60 -0
- package/build/src/modeling/lib/ui_mapping.d.ts.map +1 -0
- package/build/src/modeling/lib/ui_mapping.js +244 -0
- package/build/src/modeling/lib/ui_mapping.js.map +1 -0
- package/build/src/modeling/lib/validators.d.ts +15 -0
- package/build/src/modeling/lib/validators.d.ts.map +1 -0
- package/build/src/modeling/lib/validators.js +26 -0
- package/build/src/modeling/lib/validators.js.map +1 -0
- package/build/src/modeling/types.d.ts +261 -0
- package/build/src/modeling/types.d.ts.map +1 -0
- package/build/src/modeling/types.js +2 -0
- package/build/src/modeling/types.js.map +1 -0
- package/build/src/providers/organization.d.ts +9 -0
- package/build/src/providers/organization.d.ts.map +1 -0
- package/build/src/providers/organization.js +6 -0
- package/build/src/providers/organization.js.map +1 -0
- package/build/src/providers/organizations.d.ts +9 -0
- package/build/src/providers/organizations.d.ts.map +1 -0
- package/build/src/providers/organizations.js +6 -0
- package/build/src/providers/organizations.js.map +1 -0
- package/build/src/providers/user.d.ts +9 -0
- package/build/src/providers/user.d.ts.map +1 -0
- package/build/src/providers/user.js +6 -0
- package/build/src/providers/user.js.map +1 -0
- package/build/src/services/CacheService.d.ts +29 -0
- package/build/src/services/CacheService.d.ts.map +1 -0
- package/build/src/services/CacheService.js +47 -0
- package/build/src/services/CacheService.js.map +1 -0
- package/build/src/services/ConfigurationService.d.ts +12 -0
- package/build/src/services/ConfigurationService.d.ts.map +1 -0
- package/build/src/services/ConfigurationService.js +23 -0
- package/build/src/services/ConfigurationService.js.map +1 -0
- package/build/src/services/LoggingService.d.ts +29 -0
- package/build/src/services/LoggingService.d.ts.map +1 -0
- package/build/src/services/LoggingService.js +49 -0
- package/build/src/services/LoggingService.js.map +1 -0
- package/build/src/services/OrganizationService.d.ts +79 -0
- package/build/src/services/OrganizationService.d.ts.map +1 -0
- package/build/src/services/OrganizationService.js +222 -0
- package/build/src/services/OrganizationService.js.map +1 -0
- package/build/src/services/SdkService.d.ts +22 -0
- package/build/src/services/SdkService.d.ts.map +1 -0
- package/build/src/services/SdkService.js +46 -0
- package/build/src/services/SdkService.js.map +1 -0
- package/build/src/services/TransmitService.d.ts +14 -0
- package/build/src/services/TransmitService.d.ts.map +1 -0
- package/build/src/services/TransmitService.js +23 -0
- package/build/src/services/TransmitService.js.map +1 -0
- package/build/src/services/UserCacheService.d.ts +22 -0
- package/build/src/services/UserCacheService.d.ts.map +1 -0
- package/build/src/services/UserCacheService.js +49 -0
- package/build/src/services/UserCacheService.js.map +1 -0
- package/build/src/services/UserService.d.ts +50 -0
- package/build/src/services/UserService.d.ts.map +1 -0
- package/build/src/services/UserService.js +199 -0
- package/build/src/services/UserService.js.map +1 -0
- package/build/src/services/api_service.d.ts +22 -0
- package/build/src/services/api_service.d.ts.map +1 -0
- package/build/src/services/api_service.js +4 -0
- package/build/src/services/api_service.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/lit-plugin.log +7904 -0
- package/package.json +20 -9
- package/src/builders/DialogBuilder.ts +474 -0
- package/src/builders/README.md +272 -0
- package/src/cache/Cache.ts +265 -0
- package/src/core/Model.ts +53 -119
- package/src/core/ServiceManager.ts +1 -0
- package/src/data/BreadcrumbsModel.ts +85 -0
- package/src/data/DataCatalogModel.ts +199 -0
- package/src/data/DomainBrowserModel.ts +118 -0
- package/src/data/FileModel.ts +76 -0
- package/src/data/FileShareModel.ts +258 -0
- package/src/data/FilesModel.ts +226 -0
- package/src/data/InvitationModel.ts +69 -0
- package/src/data/PatchableFileModel.ts +293 -0
- package/src/data/PatchableLiveDataContentModel.ts +34 -0
- package/src/data/PatchableRawContentModel.ts +43 -0
- package/src/data/TrashModel.ts +125 -0
- package/src/data/UserModel.ts +102 -0
- package/src/data/UsersModel.ts +325 -0
- package/src/data/retry_logic.ts +111 -0
- package/src/elements/autocomplete/internals/autocomplete.ts +5 -2
- package/src/elements/data-table/DataTable.styles.ts +7 -2
- package/src/elements/data-table/DataTable.ts +24 -5
- package/src/elements/data-table/data-catalog-table.ts +22 -0
- package/src/elements/data-table/filesystem-table.ts +24 -0
- package/src/elements/data-table/internals/DataCatalog.styles.ts +29 -0
- package/src/elements/data-table/internals/DataCatalogTable.ts +234 -0
- package/src/elements/data-table/internals/Filesystem.styles.ts +23 -0
- package/src/elements/data-table/internals/FilesystemDataTable.ts +227 -0
- package/src/elements/data-table/internals/TrashDataTable.ts +157 -0
- package/src/elements/data-table/internals/UserData.styles.ts +16 -0
- package/src/elements/data-table/internals/UsersDataTable.ts +238 -0
- package/src/elements/data-table/trash-table.ts +16 -0
- package/src/elements/data-table/users-table.ts +16 -0
- package/src/elements/file-system/internals/Breadcrumbs.ts +0 -3
- package/src/elements/file-system/internals/QuickApiFilesystem.styles.ts +49 -0
- package/src/elements/file-system/internals/QuickApiFilesystem.ts +452 -0
- package/src/elements/file-system/internals/ShareFile.styles.ts +98 -0
- package/src/elements/file-system/internals/ShareFile.ts +540 -0
- package/src/elements/file-system/quick-api-filesystem.ts +16 -0
- package/src/elements/file-system/share-file.ts +26 -0
- package/src/elements/file-system/ui-breadcrumbs.ts +3 -0
- package/src/elements/layout/SplitItem.ts +0 -8
- package/src/elements/navigation/internals/Navigation.ts +9 -4
- package/src/elements/search-input/internals/input.styles.ts +38 -0
- package/src/elements/search-input/internals/input.ts +74 -0
- package/src/elements/search-input/search-input.ts +18 -0
- package/src/elements/setup/Readme.md +3 -0
- package/src/elements/setup/internals/InvitationScreen.styles.ts +3 -0
- package/src/elements/setup/internals/InvitationScreen.ts +418 -0
- package/src/elements/setup/internals/LoginScreen.styles.ts +3 -0
- package/src/elements/setup/internals/LoginScreen.ts +136 -0
- package/src/elements/setup/internals/OrganizationCreateScreen.styles.ts +3 -0
- package/src/elements/setup/internals/OrganizationCreateScreen.ts +170 -0
- package/src/elements/setup/internals/OrganizationSelectionScreen.styles.ts +3 -0
- package/src/elements/setup/internals/OrganizationSelectionScreen.ts +100 -0
- package/src/elements/setup/internals/OrganizationSelector.styles.ts +3 -0
- package/src/elements/setup/internals/OrganizationSelector.ts +133 -0
- package/src/elements/setup/internals/common.styles.ts +72 -0
- package/src/elements/setup/internals/icons.ts +43 -0
- package/src/elements/setup/invitation-screen.ts +20 -0
- package/src/elements/setup/login-screen.ts +19 -0
- package/src/elements/setup/organization-create-screen.ts +20 -0
- package/src/elements/setup/organization-selection-screen.ts +21 -0
- package/src/elements/setup/organization-selector.ts +38 -0
- package/src/elements/user/internals/UserAvatar.ts +7 -2
- package/src/events/DomainEvents.ts +80 -0
- package/src/events/EventTypes.ts +8 -0
- package/src/events/Events.ts +2 -0
- package/src/exceptions/builder.ts +28 -0
- package/src/help/README.md +99 -0
- package/src/help/help_coordinator.ts +168 -0
- package/src/help/help_panel.styles.ts +196 -0
- package/src/help/help_panel.ts +329 -0
- package/src/help/help_service_controller.ts +338 -0
- package/src/help/help_topic.ts +61 -0
- package/src/help/index.ts +8 -0
- package/src/help/render.ts +41 -0
- package/src/lib/Dom.ts +36 -0
- package/src/lib/files/Utils.ts +65 -0
- package/src/md/button/internals/base.ts +15 -3
- package/src/md/dropdown-list/internals/UiDropdownList.ts +11 -4
- package/src/md/icons/Icons.ts +8 -0
- package/src/md/input/Input.ts +14 -9
- package/src/md/list/internals/List.ts +17 -1
- package/src/md/list/internals/ListItem.ts +6 -4
- package/src/md/menu/internal/Menu.styles.ts +4 -2
- package/src/md/menu/internal/Menu.ts +2 -2
- package/src/md/select/internals/Select.styles.ts +3 -0
- package/src/md/select/internals/Select.ts +16 -18
- package/src/md/switch/internals/SwitchElement.ts +3 -3
- package/src/modeling/api-create-action-editor.ts +23 -0
- package/src/modeling/api-delete-action-editor.ts +27 -0
- package/src/modeling/api-list-action-editor.ts +31 -0
- package/src/modeling/api-modeling-access-configuration.ts +28 -0
- package/src/modeling/api-modeling-access.ts +27 -0
- package/src/modeling/api-modeling-actions.ts +30 -0
- package/src/modeling/api-modeling-description.ts +23 -0
- package/src/modeling/api-modeling-entity-card.ts +16 -0
- package/src/modeling/api-modeling-entity-editor.ts +24 -0
- package/src/modeling/api-modeling-navigation.ts +19 -0
- package/src/modeling/api-modeling-rate-limiting.ts +26 -0
- package/src/modeling/api-modeling-session.ts +39 -0
- package/src/modeling/api-read-action-editor.ts +23 -0
- package/src/modeling/api-search-action-editor.ts +28 -0
- package/src/modeling/api-update-action-editor.ts +24 -0
- package/src/modeling/data-catalog-browser.ts +18 -0
- package/src/modeling/dialogs/CalculatedTaxonomy.ts +305 -0
- package/src/modeling/dialogs/CategoryTaxonomy.ts +210 -0
- package/src/modeling/dialogs/CurrencyTaxonomy.ts +209 -0
- package/src/modeling/dialogs/EmailTaxonomy.ts +163 -0
- package/src/modeling/dialogs/GeospatialCoordinatesTaxonomy.ts +500 -0
- package/src/modeling/dialogs/HtmlTaxonomy.ts +333 -0
- package/src/modeling/dialogs/MarkdownTaxonomy.ts +290 -0
- package/src/modeling/dialogs/PasswordTaxonomy.ts +201 -0
- package/src/modeling/dialogs/PhoneTaxonomy.ts +238 -0
- package/src/modeling/dialogs/PublicUniqueNameTaxonomy.ts +212 -0
- package/src/modeling/dialogs/SkuTaxonomy.ts +321 -0
- package/src/modeling/dialogs/StatusTaxonomy.ts +132 -0
- package/src/modeling/dialogs/TagsTaxonomy.ts +163 -0
- package/src/modeling/dialogs/TaxonomyDialog.ts +183 -0
- package/src/modeling/dialogs/UrlTaxonomy.ts +194 -0
- package/src/modeling/dialogs/common.ts +52 -0
- package/src/modeling/domain-association-editor.ts +26 -0
- package/src/modeling/domain-auto-fields-dialog.ts +55 -0
- package/src/modeling/domain-browser.ts +25 -0
- package/src/modeling/domain-entity-editor.ts +34 -0
- package/src/modeling/domain-file-import.ts +22 -0
- package/src/modeling/domain-model-editor.ts +21 -0
- package/src/modeling/domain-namespace-editor.ts +22 -0
- package/src/modeling/domain-navigation.ts +21 -0
- package/src/modeling/domain-property-editor.ts +21 -0
- package/src/modeling/domain-template-browser.ts +19 -0
- package/src/modeling/domain-validation-report.ts +18 -0
- package/src/modeling/internals/ApiCreateActionEditor.ts +177 -0
- package/src/modeling/internals/ApiDeleteActionEditor.ts +269 -0
- package/src/modeling/internals/ApiEditor.ts +91 -0
- package/src/modeling/internals/ApiListActionEditor.ts +479 -0
- package/src/modeling/internals/ApiModelingAccessConfiguration.ts +606 -0
- package/src/modeling/internals/ApiModelingAccessScreen.ts +279 -0
- package/src/modeling/internals/ApiModelingActionsScreen.ts +333 -0
- package/src/modeling/internals/ApiModelingDescriptionScreen.ts +342 -0
- package/src/modeling/internals/ApiModelingEntityCard.ts +210 -0
- package/src/modeling/internals/ApiModelingEntityEditor.ts +363 -0
- package/src/modeling/internals/ApiModelingNavigation.ts +87 -0
- package/src/modeling/internals/ApiModelingRateLimiting.ts +389 -0
- package/src/modeling/internals/ApiModelingScreen.ts +43 -0
- package/src/modeling/internals/ApiModelingSessionScreen.ts +725 -0
- package/src/modeling/internals/ApiReadActionEditor.ts +177 -0
- package/src/modeling/internals/ApiSearchActionEditor.ts +302 -0
- package/src/modeling/internals/ApiUpdateActionEditor.ts +266 -0
- package/src/modeling/internals/DataCatalogBrowser.ts +286 -0
- package/src/modeling/internals/DomainAssociationEditor.ts +722 -0
- package/src/modeling/internals/DomainAutoFieldsDialog.ts +281 -0
- package/src/modeling/internals/DomainBrowser.ts +499 -0
- package/src/modeling/internals/DomainEntityEditor.ts +1245 -0
- package/src/modeling/internals/DomainFileImport.ts +482 -0
- package/src/modeling/internals/DomainModelEditor.ts +87 -0
- package/src/modeling/internals/DomainNamespaceEditor.ts +87 -0
- package/src/modeling/internals/DomainNavigation.ts +1887 -0
- package/src/modeling/internals/DomainPropertyEditor.ts +1506 -0
- package/src/modeling/internals/DomainTemplateBrowser.ts +500 -0
- package/src/modeling/internals/DomainValidationReport.ts +291 -0
- package/src/modeling/internals/ModelingElement.ts +95 -0
- package/src/modeling/internals/styles/AccessConfiguration.styles.ts +106 -0
- package/src/modeling/internals/styles/ApiCreateActionEditor.styles.ts +15 -0
- package/src/modeling/internals/styles/ApiDeleteActionEditor.styles.ts +15 -0
- package/src/modeling/internals/styles/ApiListActionEditor.styles.ts +15 -0
- package/src/modeling/internals/styles/ApiModelingActionsScreen.styles.ts +31 -0
- package/src/modeling/internals/styles/ApiModelingEntityCard.ts +85 -0
- package/src/modeling/internals/styles/ApiModelingEntityEditor.ts +68 -0
- package/src/modeling/internals/styles/ApiModelingNavigation.styles.ts +23 -0
- package/src/modeling/internals/styles/ApiReadActionEditor.styles.ts +15 -0
- package/src/modeling/internals/styles/ApiSearchActionEditor.styles.ts +15 -0
- package/src/modeling/internals/styles/ApiUpdateActionEditor.styles.ts +15 -0
- package/src/modeling/internals/styles/DataCatalogBrowser.styles.ts +53 -0
- package/src/modeling/internals/styles/DomainAutoFieldsDialog.ts +35 -0
- package/src/modeling/internals/styles/DomainBrowser.styles.ts +26 -0
- package/src/modeling/internals/styles/DomainEntityEditor.styles.ts +98 -0
- package/src/modeling/internals/styles/DomainFileImport.styles.ts +100 -0
- package/src/modeling/internals/styles/DomainModelEditor.styles.ts +7 -0
- package/src/modeling/internals/styles/DomainNamespaceEditor.styles.ts +7 -0
- package/src/modeling/internals/styles/DomainNavigation.styles.ts +343 -0
- package/src/modeling/internals/styles/DomainPropertyEditor.styles.ts +18 -0
- package/src/modeling/internals/styles/DomainTemplateBrowser.styles.ts +553 -0
- package/src/modeling/internals/styles/DomainValidationReport.styles.ts +75 -0
- package/src/modeling/internals/styles/EditorCommon.styles.ts +141 -0
- package/src/modeling/internals/styles/RateLimiting.styles.ts +83 -0
- package/src/modeling/internals/styles/api.styles.ts +146 -0
- package/src/modeling/internals/styles/form_styles.ts +107 -0
- package/src/modeling/internals/styles/learning.styles.ts +40 -0
- package/src/modeling/lib/access_helpers.ts +57 -0
- package/src/modeling/lib/formula_parser.ts +187 -0
- package/src/modeling/lib/ui_mapping.ts +258 -0
- package/src/modeling/lib/validators.ts +30 -0
- package/src/modeling/types.ts +279 -0
- package/src/providers/organization.ts +7 -0
- package/src/providers/organizations.ts +7 -0
- package/src/providers/user.ts +7 -0
- package/src/services/CacheService.ts +56 -0
- package/src/services/ConfigurationService.ts +28 -0
- package/src/services/LoggingService.ts +60 -0
- package/src/services/OrganizationService.ts +238 -0
- package/src/services/SdkService.ts +57 -0
- package/src/services/TransmitService.ts +28 -0
- package/src/services/UserCacheService.ts +51 -0
- package/src/services/UserService.ts +214 -0
- package/src/services/api_service.ts +24 -0
- package/tsconfig.json +19 -4
|
@@ -0,0 +1,1478 @@
|
|
|
1
|
+
import { __esDecorate, __runInitializers } from "tslib";
|
|
2
|
+
import { nothing, html } from 'lit';
|
|
3
|
+
import { state } from 'lit/decorators.js';
|
|
4
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
5
|
+
import { live } from 'lit/directives/live.js';
|
|
6
|
+
import { getFormatInfo, getPropertyInputOptions } from '../lib/ui_mapping.js';
|
|
7
|
+
import { DomainProperty } from '@api-client/core/modeling/DomainProperty.js';
|
|
8
|
+
import { cancelEvent } from '@api-client/core/lib/events/Utils.js';
|
|
9
|
+
import { BinaryFormats, NumberFormats } from '@api-client/core/modeling/DataFormat.js';
|
|
10
|
+
import { SemanticScope, SemanticType, getSemanticsByCategory, } from '@api-client/core/modeling/Semantics.js';
|
|
11
|
+
import { ModelingElement } from './ModelingElement.js';
|
|
12
|
+
import { renderHelp } from '../../help/render.js';
|
|
13
|
+
import { PasswordTaxonomy } from '../dialogs/PasswordTaxonomy.js';
|
|
14
|
+
import { MarkdownTaxonomy } from '../dialogs/MarkdownTaxonomy.js';
|
|
15
|
+
import { HtmlTaxonomy } from '../dialogs/HtmlTaxonomy.js';
|
|
16
|
+
import { CurrencyTaxonomy } from '../dialogs/CurrencyTaxonomy.js';
|
|
17
|
+
import { StatusTaxonomy } from '../dialogs/StatusTaxonomy.js';
|
|
18
|
+
import { SkuTaxonomy } from '../dialogs/SkuTaxonomy.js';
|
|
19
|
+
import { EmailTaxonomy } from '../dialogs/EmailTaxonomy.js';
|
|
20
|
+
import { PhoneTaxonomy } from '../dialogs/PhoneTaxonomy.js';
|
|
21
|
+
import { UrlTaxonomy } from '../dialogs/UrlTaxonomy.js';
|
|
22
|
+
import { PublicUniqueNameTaxonomy } from '../dialogs/PublicUniqueNameTaxonomy.js';
|
|
23
|
+
import { GeospatialCoordinatesTaxonomy } from '../dialogs/GeospatialCoordinatesTaxonomy.js';
|
|
24
|
+
import { CalculatedTaxonomy } from '../dialogs/CalculatedTaxonomy.js';
|
|
25
|
+
let DomainPropertyEditor = (() => {
|
|
26
|
+
let _classSuper = ModelingElement;
|
|
27
|
+
let _domainElement_decorators;
|
|
28
|
+
let _domainElement_initializers = [];
|
|
29
|
+
let _domainElement_extraInitializers = [];
|
|
30
|
+
let _hasDefaultValueInput_decorators;
|
|
31
|
+
let _hasDefaultValueInput_initializers = [];
|
|
32
|
+
let _hasDefaultValueInput_extraInitializers = [];
|
|
33
|
+
let _enumEnabled_decorators;
|
|
34
|
+
let _enumEnabled_initializers = [];
|
|
35
|
+
let _enumEnabled_extraInitializers = [];
|
|
36
|
+
return class DomainPropertyEditor extends _classSuper {
|
|
37
|
+
static {
|
|
38
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
39
|
+
_domainElement_decorators = [state()];
|
|
40
|
+
_hasDefaultValueInput_decorators = [state()];
|
|
41
|
+
_enumEnabled_decorators = [state()];
|
|
42
|
+
__esDecorate(this, null, _domainElement_decorators, { kind: "accessor", name: "domainElement", static: false, private: false, access: { has: obj => "domainElement" in obj, get: obj => obj.domainElement, set: (obj, value) => { obj.domainElement = value; } }, metadata: _metadata }, _domainElement_initializers, _domainElement_extraInitializers);
|
|
43
|
+
__esDecorate(this, null, _hasDefaultValueInput_decorators, { kind: "accessor", name: "hasDefaultValueInput", static: false, private: false, access: { has: obj => "hasDefaultValueInput" in obj, get: obj => obj.hasDefaultValueInput, set: (obj, value) => { obj.hasDefaultValueInput = value; } }, metadata: _metadata }, _hasDefaultValueInput_initializers, _hasDefaultValueInput_extraInitializers);
|
|
44
|
+
__esDecorate(this, null, _enumEnabled_decorators, { kind: "accessor", name: "enumEnabled", static: false, private: false, access: { has: obj => "enumEnabled" in obj, get: obj => obj.enumEnabled, set: (obj, value) => { obj.enumEnabled = value; } }, metadata: _metadata }, _enumEnabled_initializers, _enumEnabled_extraInitializers);
|
|
45
|
+
if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
46
|
+
}
|
|
47
|
+
#domainElement_accessor_storage = __runInitializers(this, _domainElement_initializers, void 0);
|
|
48
|
+
/**
|
|
49
|
+
* The `DomainProperty` object being edited.
|
|
50
|
+
* This is updated when the `selected` property changes.
|
|
51
|
+
*/
|
|
52
|
+
get domainElement() { return this.#domainElement_accessor_storage; }
|
|
53
|
+
set domainElement(value) { this.#domainElement_accessor_storage = value; }
|
|
54
|
+
#hasDefaultValueInput_accessor_storage = (__runInitializers(this, _domainElement_extraInitializers), __runInitializers(this, _hasDefaultValueInput_initializers, false
|
|
55
|
+
/**
|
|
56
|
+
* Whether the enum options are enabled.
|
|
57
|
+
* When `true` the user can add, update, and delete enum values.
|
|
58
|
+
*/
|
|
59
|
+
));
|
|
60
|
+
/**
|
|
61
|
+
* Indicates whether the default value input field is visible.
|
|
62
|
+
* This is set to `true` when the user selects the "Literal" option in the default value select.
|
|
63
|
+
*/
|
|
64
|
+
get hasDefaultValueInput() { return this.#hasDefaultValueInput_accessor_storage; }
|
|
65
|
+
set hasDefaultValueInput(value) { this.#hasDefaultValueInput_accessor_storage = value; }
|
|
66
|
+
#enumEnabled_accessor_storage = (__runInitializers(this, _hasDefaultValueInput_extraInitializers), __runInitializers(this, _enumEnabled_initializers, false
|
|
67
|
+
/**
|
|
68
|
+
* A fields that holds in memory enum values after disabling the enum editor.
|
|
69
|
+
* When that happens the values are removed from the model but kept in memory.
|
|
70
|
+
* As long as the property stays the same, the user can reopen the enum editor
|
|
71
|
+
* and restore the previous value.
|
|
72
|
+
*/
|
|
73
|
+
));
|
|
74
|
+
/**
|
|
75
|
+
* Whether the enum options are enabled.
|
|
76
|
+
* When `true` the user can add, update, and delete enum values.
|
|
77
|
+
*/
|
|
78
|
+
get enumEnabled() { return this.#enumEnabled_accessor_storage; }
|
|
79
|
+
set enumEnabled(value) { this.#enumEnabled_accessor_storage = value; }
|
|
80
|
+
/**
|
|
81
|
+
* A fields that holds in memory enum values after disabling the enum editor.
|
|
82
|
+
* When that happens the values are removed from the model but kept in memory.
|
|
83
|
+
* As long as the property stays the same, the user can reopen the enum editor
|
|
84
|
+
* and restore the previous value.
|
|
85
|
+
*/
|
|
86
|
+
cachedEnumValues = __runInitializers(this, _enumEnabled_extraInitializers);
|
|
87
|
+
/**
|
|
88
|
+
* A cached value of the schema-sensitive input configuration.
|
|
89
|
+
* These are the default value and enum value inputs.
|
|
90
|
+
*/
|
|
91
|
+
cachedSchemaInputConfig;
|
|
92
|
+
/**
|
|
93
|
+
* A configuration for a schema-sensitive HTML input.
|
|
94
|
+
*/
|
|
95
|
+
get schemaInputConfig() {
|
|
96
|
+
return this.cachedSchemaInputConfig || { type: 'text' };
|
|
97
|
+
}
|
|
98
|
+
willUpdate(cp) {
|
|
99
|
+
if (cp.has('selected') || cp.has('root') || cp.has('namespace')) {
|
|
100
|
+
this.computeProperty();
|
|
101
|
+
}
|
|
102
|
+
super.willUpdate(cp);
|
|
103
|
+
}
|
|
104
|
+
async computeProperty() {
|
|
105
|
+
const { root, selected, namespace } = this;
|
|
106
|
+
this.domainElement = undefined;
|
|
107
|
+
if (!root || !selected) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
await this.updateComplete;
|
|
111
|
+
const value = root.findProperty(selected, namespace);
|
|
112
|
+
this.domainElement = value;
|
|
113
|
+
const schema = value?.ensureSchema();
|
|
114
|
+
if (schema && schema.defaultValue) {
|
|
115
|
+
this.hasDefaultValueInput = schema.defaultValue.type === 'literal';
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
this.hasDefaultValueInput = false;
|
|
119
|
+
}
|
|
120
|
+
if (schema && schema.enum) {
|
|
121
|
+
this.enumEnabled = true;
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
this.enumEnabled = false;
|
|
125
|
+
}
|
|
126
|
+
this.cachedEnumValues = undefined;
|
|
127
|
+
this.updateSchemaInputConfig();
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Toggles the state of the enum editor.
|
|
131
|
+
*
|
|
132
|
+
* If the editor was disabled, it enables it and vice-versa.
|
|
133
|
+
*
|
|
134
|
+
* It ensures the property has the schema and then:
|
|
135
|
+
* - When enabling:
|
|
136
|
+
* - If `cachedEnumValues` is set it restores them.
|
|
137
|
+
* - Otherwise it sets the default enum value `['']`
|
|
138
|
+
* - When disabling:
|
|
139
|
+
* - It sets the `cachedEnumValues` to the current enum value.
|
|
140
|
+
* - Removes the enum from the model
|
|
141
|
+
* - Requests the model update.
|
|
142
|
+
*
|
|
143
|
+
* @fires change - Dispatched when the enum editor state changes.
|
|
144
|
+
*/
|
|
145
|
+
toggleEnum() {
|
|
146
|
+
const { domainElement } = this;
|
|
147
|
+
if (!domainElement) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
this.enumEnabled = !this.enumEnabled;
|
|
151
|
+
const schema = domainElement.ensureSchema();
|
|
152
|
+
if (!this.enumEnabled) {
|
|
153
|
+
this.cachedEnumValues = schema.enum;
|
|
154
|
+
schema.enum = undefined;
|
|
155
|
+
}
|
|
156
|
+
else if (this.cachedEnumValues) {
|
|
157
|
+
schema.enum = this.cachedEnumValues || [''];
|
|
158
|
+
this.cachedEnumValues = undefined;
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
schema.enum = [''];
|
|
162
|
+
}
|
|
163
|
+
this.requestUpdate();
|
|
164
|
+
this.notifyChange();
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Updates an enum value.
|
|
168
|
+
*
|
|
169
|
+
* @param index The index at which to update the value.
|
|
170
|
+
* @param value The value to set. Empty string is acceptable. The type is determined by the property type.
|
|
171
|
+
* @throws {RangeError} When the index is out of bounds.
|
|
172
|
+
* @throws {TypeError} When the value is not a string.
|
|
173
|
+
* @fires change - Dispatched when the enum value is updated.
|
|
174
|
+
*/
|
|
175
|
+
updateEnum(index, value) {
|
|
176
|
+
if (index < 0) {
|
|
177
|
+
throw new RangeError(`Enum array index cannot be negative.`);
|
|
178
|
+
}
|
|
179
|
+
if (typeof value !== 'string') {
|
|
180
|
+
throw new TypeError(`Expected a string for the enum value, got ${typeof value}.`);
|
|
181
|
+
}
|
|
182
|
+
const { domainElement } = this;
|
|
183
|
+
if (!domainElement) {
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
const schema = domainElement.ensureSchema();
|
|
187
|
+
if (!schema.enum) {
|
|
188
|
+
schema.enum = [value];
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
if (schema.enum.length - 1 < index) {
|
|
192
|
+
throw new RangeError(`Invalid enum array index: ${index}.`);
|
|
193
|
+
}
|
|
194
|
+
schema.enum[index] = value;
|
|
195
|
+
}
|
|
196
|
+
this.notifyChange();
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Adds a new enum value to the property.
|
|
200
|
+
*
|
|
201
|
+
* @param value The value to add. Defaults to an empty string.
|
|
202
|
+
* @throws {TypeError} When the value is not a string.
|
|
203
|
+
* @fires change - Dispatched when a new enum value is added.
|
|
204
|
+
*/
|
|
205
|
+
addEnum(value = '') {
|
|
206
|
+
if (typeof value !== 'string') {
|
|
207
|
+
throw new TypeError(`Expected a string for the enum value, got ${typeof value}.`);
|
|
208
|
+
}
|
|
209
|
+
const { domainElement } = this;
|
|
210
|
+
if (!domainElement) {
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
const schema = domainElement.ensureSchema();
|
|
214
|
+
if (!schema.enum) {
|
|
215
|
+
schema.enum = [value];
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
schema.enum.push(value);
|
|
219
|
+
}
|
|
220
|
+
this.requestUpdate();
|
|
221
|
+
// this should be immediately propagated to other clients.
|
|
222
|
+
this.notifyChange();
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Deletes an enum value at a position.
|
|
226
|
+
*
|
|
227
|
+
* @param index The index at which to delete an enum property.
|
|
228
|
+
* @throws {RangeError} When the index is out of bounds.
|
|
229
|
+
* @fires change - Dispatched when an enum value is deleted.
|
|
230
|
+
*/
|
|
231
|
+
deleteEnum(index) {
|
|
232
|
+
if (index < 0) {
|
|
233
|
+
throw new RangeError(`Enum array index cannot be negative.`);
|
|
234
|
+
}
|
|
235
|
+
const { domainElement } = this;
|
|
236
|
+
if (!domainElement) {
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
const schema = domainElement.ensureSchema();
|
|
240
|
+
if (!schema.enum) {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
if (schema.enum.length - 1 < index) {
|
|
244
|
+
throw new RangeError(`Invalid enum array index: ${index}.`);
|
|
245
|
+
}
|
|
246
|
+
schema.enum.splice(index, 1);
|
|
247
|
+
this.requestUpdate();
|
|
248
|
+
this.notifyChange();
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Sets a new defaultValue on the property schema.
|
|
252
|
+
*
|
|
253
|
+
* @param value The default value to set. Empty to remove.
|
|
254
|
+
* @param type The type of the value.
|
|
255
|
+
* @param dataType Optional data type to set. Defaults to string. Only used with `type` equal `literal`.
|
|
256
|
+
* @fires change - Dispatched when the default value is updated.
|
|
257
|
+
*/
|
|
258
|
+
setDefaultValue(value, type = 'function') {
|
|
259
|
+
const { domainElement } = this;
|
|
260
|
+
if (!domainElement) {
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
const schema = domainElement.ensureSchema();
|
|
264
|
+
if (value === schema.defaultValue?.value) {
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
if (value || (type === 'literal' && value === '')) {
|
|
268
|
+
schema.defaultValue = {
|
|
269
|
+
type,
|
|
270
|
+
value: value,
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
else {
|
|
274
|
+
delete schema.defaultValue;
|
|
275
|
+
}
|
|
276
|
+
this.notifyChange();
|
|
277
|
+
this.requestUpdate();
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Updates the property's data type.
|
|
281
|
+
*
|
|
282
|
+
* It sets the `format` for `number`, `datetime`, and `binary` data types.
|
|
283
|
+
*
|
|
284
|
+
* @param value The value to set.
|
|
285
|
+
* @throws {TypeError} When the passed value is not a valid data type.
|
|
286
|
+
* @fires change - Dispatched when the data type is updated.
|
|
287
|
+
*/
|
|
288
|
+
setDataType(value) {
|
|
289
|
+
const { domainElement } = this;
|
|
290
|
+
if (!domainElement) {
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
if (!DomainProperty.isValidType(value)) {
|
|
294
|
+
throw new TypeError(`Invalid data type: ${value}.`);
|
|
295
|
+
}
|
|
296
|
+
domainElement.type = value;
|
|
297
|
+
const binding = domainElement.getWebBinding();
|
|
298
|
+
if (value === 'number') {
|
|
299
|
+
binding.format = 'int64';
|
|
300
|
+
}
|
|
301
|
+
else if (value === 'binary') {
|
|
302
|
+
binding.format = 'base64';
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
binding.format = undefined;
|
|
306
|
+
}
|
|
307
|
+
this.notifyChange();
|
|
308
|
+
this.requestUpdate();
|
|
309
|
+
this.updateSchemaInputConfig();
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Sets the value of one of the "attribute" fields.
|
|
313
|
+
* These are the checkboxes located in the "Attributes" section.
|
|
314
|
+
*
|
|
315
|
+
* @param name The name of the attribute to set.
|
|
316
|
+
* @param value The boolean option to set as the value.
|
|
317
|
+
* @throws {TypeError} When the passed name is not a valid attribute name.
|
|
318
|
+
* @throws {TypeError} When the passed value is not a boolean value.
|
|
319
|
+
* @fires change - Dispatched when an attribute value is updated.
|
|
320
|
+
*/
|
|
321
|
+
setModelAttribute(name, value) {
|
|
322
|
+
if (!DomainProperty.isValidAttribute(name)) {
|
|
323
|
+
throw new TypeError(`Invalid attribute name: ${name}.`);
|
|
324
|
+
}
|
|
325
|
+
if (typeof value !== 'boolean') {
|
|
326
|
+
throw new TypeError(`Invalid attribute value: ${value}.`);
|
|
327
|
+
}
|
|
328
|
+
const { domainElement } = this;
|
|
329
|
+
if (!domainElement) {
|
|
330
|
+
return;
|
|
331
|
+
}
|
|
332
|
+
domainElement[name] = value;
|
|
333
|
+
this.notifyChange();
|
|
334
|
+
this.requestUpdate();
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Sets the `format` value on the model.
|
|
338
|
+
*
|
|
339
|
+
* @param format The format value to set.
|
|
340
|
+
* @throws {TypeError} When the passed format value is not supported.
|
|
341
|
+
* @fires change - Dispatched when the format value is updated.
|
|
342
|
+
*/
|
|
343
|
+
setFormat(format) {
|
|
344
|
+
if (!DomainProperty.isValidFormat(format)) {
|
|
345
|
+
throw new TypeError(`Invalid format value: ${format}.`);
|
|
346
|
+
}
|
|
347
|
+
const { domainElement } = this;
|
|
348
|
+
if (!domainElement) {
|
|
349
|
+
return;
|
|
350
|
+
}
|
|
351
|
+
const binding = domainElement.getWebBinding();
|
|
352
|
+
if (binding.format === format) {
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
binding.format = format;
|
|
356
|
+
this.requestUpdate();
|
|
357
|
+
this.notifyChange();
|
|
358
|
+
this.updateSchemaInputConfig();
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Sets an example value on the schema.
|
|
362
|
+
* @param value The value to set. Removes the examples array if not set.
|
|
363
|
+
*/
|
|
364
|
+
setExampleValue(value) {
|
|
365
|
+
const { domainElement } = this;
|
|
366
|
+
if (!domainElement) {
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
// @TODO: Eventually, support multiple examples
|
|
370
|
+
const schema = domainElement.ensureSchema();
|
|
371
|
+
if (value) {
|
|
372
|
+
schema.examples = [value];
|
|
373
|
+
}
|
|
374
|
+
else {
|
|
375
|
+
delete schema.examples;
|
|
376
|
+
}
|
|
377
|
+
this.requestUpdate();
|
|
378
|
+
this.notifyChange();
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* A method to be called when a schema property changes.
|
|
382
|
+
* It caches the schema-sensitive input configuration.
|
|
383
|
+
*/
|
|
384
|
+
updateSchemaInputConfig() {
|
|
385
|
+
const { domainElement } = this;
|
|
386
|
+
if (!domainElement) {
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
389
|
+
this.cachedSchemaInputConfig = getPropertyInputOptions(domainElement);
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* A handler for the one of the metadata inputs value change.
|
|
393
|
+
*
|
|
394
|
+
* It supports the following fields:
|
|
395
|
+
*
|
|
396
|
+
* - `name`
|
|
397
|
+
* - `displayName`
|
|
398
|
+
* - `description`
|
|
399
|
+
* - `literalDefaultValue`
|
|
400
|
+
*/
|
|
401
|
+
handleMetaChange(e) {
|
|
402
|
+
const { domainElement } = this;
|
|
403
|
+
if (!domainElement) {
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
const node = e.target;
|
|
407
|
+
const { name, value } = node;
|
|
408
|
+
if (value && !node.reportValidity()) {
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
if (!['name', 'displayName', 'description'].includes(name)) {
|
|
412
|
+
return;
|
|
413
|
+
}
|
|
414
|
+
if (name === 'name' && !value) {
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
domainElement.info[name] = value;
|
|
418
|
+
this.notifyChange();
|
|
419
|
+
}
|
|
420
|
+
handleSchemaChange(e) {
|
|
421
|
+
const { domainElement } = this;
|
|
422
|
+
if (!domainElement) {
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
const node = e.target;
|
|
426
|
+
const { name, value, checked } = node;
|
|
427
|
+
if ((value || checked) && !node.reportValidity()) {
|
|
428
|
+
return;
|
|
429
|
+
}
|
|
430
|
+
if (name === 'literalDefaultValue') {
|
|
431
|
+
this.setDefaultValue(value, 'literal');
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
if (['minimum', 'maximum', 'multipleOf'].includes(name)) {
|
|
435
|
+
const schema = domainElement.ensureSchema();
|
|
436
|
+
schema[name] = Number(value) || undefined;
|
|
437
|
+
}
|
|
438
|
+
else if (['exclusiveMinimum', 'exclusiveMaximum'].includes(name)) {
|
|
439
|
+
const schema = domainElement.ensureSchema();
|
|
440
|
+
schema[name] = checked;
|
|
441
|
+
}
|
|
442
|
+
this.updateSchemaInputConfig();
|
|
443
|
+
this.notifyChange();
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* A handler for the data type select input change
|
|
447
|
+
*/
|
|
448
|
+
handleDataTypeChange(e) {
|
|
449
|
+
const select = e.target;
|
|
450
|
+
const { value, name } = select;
|
|
451
|
+
if (name !== 'datatype' || !value) {
|
|
452
|
+
return;
|
|
453
|
+
}
|
|
454
|
+
this.setDataType(value);
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* A handler for any of the checkboxes in the `attributes` section.
|
|
458
|
+
* It calls the `setModelAttribute()` method.
|
|
459
|
+
*/
|
|
460
|
+
handleAttributeOptionChange(e) {
|
|
461
|
+
const checkbox = e.target;
|
|
462
|
+
const { name = '', checked } = checkbox;
|
|
463
|
+
this.setModelAttribute(name, !!checked);
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* A handler for the default value select input change.
|
|
467
|
+
* Depending on the selected options it calls the `setDefaultValue()`
|
|
468
|
+
* with appropriate arguments.
|
|
469
|
+
*/
|
|
470
|
+
handleDefaultValueChange(e) {
|
|
471
|
+
const { domainElement } = this;
|
|
472
|
+
if (!domainElement) {
|
|
473
|
+
return;
|
|
474
|
+
}
|
|
475
|
+
const select = e.target;
|
|
476
|
+
const { value = '' } = select;
|
|
477
|
+
if (!value) {
|
|
478
|
+
this.setDefaultValue();
|
|
479
|
+
this.hasDefaultValueInput = false;
|
|
480
|
+
return;
|
|
481
|
+
}
|
|
482
|
+
if (value.startsWith('function.')) {
|
|
483
|
+
const fName = value.substring(9);
|
|
484
|
+
this.setDefaultValue(fName, 'function');
|
|
485
|
+
this.hasDefaultValueInput = false;
|
|
486
|
+
return;
|
|
487
|
+
}
|
|
488
|
+
if (value.startsWith('literal.')) {
|
|
489
|
+
const setValue = value.substring(8);
|
|
490
|
+
this.setDefaultValue(setValue, 'literal');
|
|
491
|
+
this.hasDefaultValueInput = false;
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
494
|
+
if (value === 'literal') {
|
|
495
|
+
this.hasDefaultValueInput = true;
|
|
496
|
+
this.setDefaultValue('', 'literal');
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* A handler for the format select input change.
|
|
501
|
+
* Calls the `setFormat()` with the appropriate value.
|
|
502
|
+
*/
|
|
503
|
+
handleFormatChange(e) {
|
|
504
|
+
const { domainElement } = this;
|
|
505
|
+
if (!domainElement) {
|
|
506
|
+
return;
|
|
507
|
+
}
|
|
508
|
+
const select = e.target;
|
|
509
|
+
const { value } = select;
|
|
510
|
+
this.setFormat(value);
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* Handles the toggle button for the enum editor.
|
|
514
|
+
* It calls the toggleEnum() whenever activated.
|
|
515
|
+
*/
|
|
516
|
+
handleEnumOptionChange() {
|
|
517
|
+
this.toggleEnum();
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* A handler for the enum input change.
|
|
521
|
+
* It calls the `updateEnum()` method
|
|
522
|
+
*/
|
|
523
|
+
handleEnumChange(e) {
|
|
524
|
+
const input = e.target;
|
|
525
|
+
if (!input.reportValidity()) {
|
|
526
|
+
return;
|
|
527
|
+
}
|
|
528
|
+
const { value, dataset } = input;
|
|
529
|
+
const index = Number(dataset.index);
|
|
530
|
+
if (isNaN(index)) {
|
|
531
|
+
return;
|
|
532
|
+
}
|
|
533
|
+
this.updateEnum(index, value);
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* A handler for the add enum button.
|
|
537
|
+
*/
|
|
538
|
+
handleAddEnum() {
|
|
539
|
+
this.addEnum();
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* A handler for the delete enum value button click.
|
|
543
|
+
*/
|
|
544
|
+
handleDeleteEnum(e) {
|
|
545
|
+
const button = e.currentTarget;
|
|
546
|
+
const { dataset } = button;
|
|
547
|
+
const index = Number(dataset.index);
|
|
548
|
+
if (isNaN(index)) {
|
|
549
|
+
return;
|
|
550
|
+
}
|
|
551
|
+
this.deleteEnum(index);
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* Handles a change on the example input.
|
|
555
|
+
*/
|
|
556
|
+
handleExampleChange(e) {
|
|
557
|
+
const node = e.target;
|
|
558
|
+
const { name, value } = node;
|
|
559
|
+
if (value && !node.reportValidity()) {
|
|
560
|
+
return;
|
|
561
|
+
}
|
|
562
|
+
if (name !== 'example') {
|
|
563
|
+
return;
|
|
564
|
+
}
|
|
565
|
+
this.setExampleValue(value);
|
|
566
|
+
}
|
|
567
|
+
// protected handleTaxonomyChange(e: Event): void {
|
|
568
|
+
// const node = e.currentTarget as MdOutlinedSelect
|
|
569
|
+
// const { value } = node
|
|
570
|
+
// if (!value) {
|
|
571
|
+
// return
|
|
572
|
+
// }
|
|
573
|
+
// node.displayText = ''
|
|
574
|
+
// this.domainElement?.addSemantic({
|
|
575
|
+
// id: value as SemanticType,
|
|
576
|
+
// })
|
|
577
|
+
// this.requestUpdate()
|
|
578
|
+
// }
|
|
579
|
+
handleDeleteTaxonomy(e) {
|
|
580
|
+
const button = e.currentTarget;
|
|
581
|
+
const { id } = button.dataset;
|
|
582
|
+
if (!id) {
|
|
583
|
+
return;
|
|
584
|
+
}
|
|
585
|
+
this.domainElement?.removeSemantic(id);
|
|
586
|
+
}
|
|
587
|
+
handleTaxonomySelect(e) {
|
|
588
|
+
const { value } = e.detail.item.dataset;
|
|
589
|
+
if (value) {
|
|
590
|
+
this.domainElement?.addSemantic({
|
|
591
|
+
id: value,
|
|
592
|
+
});
|
|
593
|
+
this.requestUpdate();
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
handleConfigureTaxonomy(e) {
|
|
597
|
+
const button = e.currentTarget;
|
|
598
|
+
const { id } = button.dataset;
|
|
599
|
+
if (!id) {
|
|
600
|
+
return;
|
|
601
|
+
}
|
|
602
|
+
const element = this.domainElement;
|
|
603
|
+
if (!element) {
|
|
604
|
+
return;
|
|
605
|
+
}
|
|
606
|
+
let dialog;
|
|
607
|
+
if (id === SemanticType.Password) {
|
|
608
|
+
dialog = new PasswordTaxonomy(element);
|
|
609
|
+
}
|
|
610
|
+
else if (id === SemanticType.Markdown) {
|
|
611
|
+
dialog = new MarkdownTaxonomy(element);
|
|
612
|
+
}
|
|
613
|
+
else if (id === SemanticType.HTML) {
|
|
614
|
+
dialog = new HtmlTaxonomy(element);
|
|
615
|
+
}
|
|
616
|
+
else if (id === SemanticType.Status) {
|
|
617
|
+
dialog = new StatusTaxonomy(element);
|
|
618
|
+
}
|
|
619
|
+
else if (id === SemanticType.Currency) {
|
|
620
|
+
dialog = new CurrencyTaxonomy(element);
|
|
621
|
+
}
|
|
622
|
+
else if (id === SemanticType.SKU) {
|
|
623
|
+
dialog = new SkuTaxonomy(element);
|
|
624
|
+
}
|
|
625
|
+
else if (id === SemanticType.Email) {
|
|
626
|
+
dialog = new EmailTaxonomy(element);
|
|
627
|
+
}
|
|
628
|
+
else if (id === SemanticType.Phone) {
|
|
629
|
+
dialog = new PhoneTaxonomy(element);
|
|
630
|
+
}
|
|
631
|
+
else if (id === SemanticType.URL) {
|
|
632
|
+
dialog = new UrlTaxonomy(element);
|
|
633
|
+
}
|
|
634
|
+
else if (id === SemanticType.PublicUniqueName) {
|
|
635
|
+
dialog = new PublicUniqueNameTaxonomy(element);
|
|
636
|
+
}
|
|
637
|
+
else if (id === SemanticType.GeospatialCoordinates) {
|
|
638
|
+
dialog = new GeospatialCoordinatesTaxonomy(element);
|
|
639
|
+
}
|
|
640
|
+
else if (id === SemanticType.Calculated) {
|
|
641
|
+
dialog = new CalculatedTaxonomy(element);
|
|
642
|
+
}
|
|
643
|
+
else {
|
|
644
|
+
throw new TypeError(`Unsupported taxonomy type: ${id}.`);
|
|
645
|
+
}
|
|
646
|
+
dialog.run();
|
|
647
|
+
}
|
|
648
|
+
render() {
|
|
649
|
+
const { domainElement } = this;
|
|
650
|
+
if (!domainElement) {
|
|
651
|
+
return nothing;
|
|
652
|
+
}
|
|
653
|
+
return this.renderForm(domainElement);
|
|
654
|
+
}
|
|
655
|
+
renderForm(model) {
|
|
656
|
+
return html `
|
|
657
|
+
<form name="property" @submit="${cancelEvent}" data-key="${model.key}" class="modeling-form">
|
|
658
|
+
${this.renderMetaInputs(model)} ${this.renderAttributes(model)} ${this.renderSchema(model)}
|
|
659
|
+
${this.renderDataGovernanceSection(model)}
|
|
660
|
+
</form>
|
|
661
|
+
`;
|
|
662
|
+
}
|
|
663
|
+
renderMetaInputs(model) {
|
|
664
|
+
const disabled = !this.canEdit;
|
|
665
|
+
const formatError = 'Name must start with a letter or underscore and can only contain letters, numbers, and underscores.';
|
|
666
|
+
return html `
|
|
667
|
+
<div class="editor-section">
|
|
668
|
+
<div class="row input-row">
|
|
669
|
+
<ui-outlined-text-field
|
|
670
|
+
class="input"
|
|
671
|
+
name="name"
|
|
672
|
+
.value="${live(model.info.name || '')}"
|
|
673
|
+
label="Name"
|
|
674
|
+
required
|
|
675
|
+
minLength="2"
|
|
676
|
+
maxLength="59"
|
|
677
|
+
pattern="[a-zA-Z_][a-zA-Z0-9_]+"
|
|
678
|
+
.invalidText="${formatError}"
|
|
679
|
+
?disabled="${disabled}"
|
|
680
|
+
@change="${this.handleMetaChange}"
|
|
681
|
+
></ui-outlined-text-field>
|
|
682
|
+
${renderHelp('property', 'name-input')}
|
|
683
|
+
</div>
|
|
684
|
+
<div class="row input-row">
|
|
685
|
+
<ui-outlined-text-field
|
|
686
|
+
class="input"
|
|
687
|
+
name="displayName"
|
|
688
|
+
.value="${live(model.info.displayName || '')}"
|
|
689
|
+
label="Display name (optional)"
|
|
690
|
+
?disabled="${disabled}"
|
|
691
|
+
@change="${this.handleMetaChange}"
|
|
692
|
+
></ui-outlined-text-field>
|
|
693
|
+
${renderHelp('property', 'displayName-input')}
|
|
694
|
+
</div>
|
|
695
|
+
<div class="row input-row">
|
|
696
|
+
<ui-outlined-text-field
|
|
697
|
+
class="input"
|
|
698
|
+
name="description"
|
|
699
|
+
.value="${live(model.info.description || '')}"
|
|
700
|
+
label="Description (optional)"
|
|
701
|
+
?disabled="${disabled}"
|
|
702
|
+
@change="${this.handleMetaChange}"
|
|
703
|
+
></ui-outlined-text-field>
|
|
704
|
+
${renderHelp('property', 'description-input')}
|
|
705
|
+
</div>
|
|
706
|
+
</div>
|
|
707
|
+
`;
|
|
708
|
+
}
|
|
709
|
+
renderAttributes(model) {
|
|
710
|
+
return html `<div class="editor-section">
|
|
711
|
+
<div class="section-title title-medium">Attributes</div>
|
|
712
|
+
${this.renderDataTypeInput(model)} ${this.renderFormat(model)} ${this.renderAttributeOptions(model)}
|
|
713
|
+
</div>`;
|
|
714
|
+
}
|
|
715
|
+
renderTaxonomy() {
|
|
716
|
+
return html `<div class="editor-section"></div>`;
|
|
717
|
+
}
|
|
718
|
+
renderSchema(model) {
|
|
719
|
+
if (model.type === 'binary') {
|
|
720
|
+
return nothing;
|
|
721
|
+
}
|
|
722
|
+
let content;
|
|
723
|
+
switch (model.type) {
|
|
724
|
+
case 'string':
|
|
725
|
+
content = this.renderStringSchema(model);
|
|
726
|
+
break;
|
|
727
|
+
case 'number':
|
|
728
|
+
content = this.renderNumberSchema(model);
|
|
729
|
+
break;
|
|
730
|
+
case 'boolean':
|
|
731
|
+
content = this.renderBooleanSchema(model);
|
|
732
|
+
break;
|
|
733
|
+
case 'date':
|
|
734
|
+
content = this.renderDateSchema(model);
|
|
735
|
+
break;
|
|
736
|
+
case 'time':
|
|
737
|
+
content = this.renderTimeSchema(model);
|
|
738
|
+
break;
|
|
739
|
+
case 'datetime':
|
|
740
|
+
content = this.renderDateTimeSchema(model);
|
|
741
|
+
break;
|
|
742
|
+
// case 'binary':
|
|
743
|
+
// content = this.renderBinarySchema(model)
|
|
744
|
+
// break
|
|
745
|
+
default:
|
|
746
|
+
content = nothing;
|
|
747
|
+
}
|
|
748
|
+
return html `<div class="editor-section">
|
|
749
|
+
<div class="section-title title-medium">Schema</div>
|
|
750
|
+
${content}
|
|
751
|
+
</div>`;
|
|
752
|
+
}
|
|
753
|
+
renderDataTypeInput(model) {
|
|
754
|
+
const disabled = !this.canEdit;
|
|
755
|
+
const { type } = model;
|
|
756
|
+
return html `<div class="row input-row">
|
|
757
|
+
<ui-select
|
|
758
|
+
label="Data Type"
|
|
759
|
+
class="input"
|
|
760
|
+
required
|
|
761
|
+
name="datatype"
|
|
762
|
+
?disabled="${disabled}"
|
|
763
|
+
@change="${this.handleDataTypeChange}"
|
|
764
|
+
>
|
|
765
|
+
<ui-option ?selected="${type === 'string'}" value="string">
|
|
766
|
+
<div>String</div>
|
|
767
|
+
</ui-option>
|
|
768
|
+
<ui-option ?selected="${type === 'number'}" value="number">
|
|
769
|
+
<div>Number</div>
|
|
770
|
+
</ui-option>
|
|
771
|
+
<ui-option ?selected="${type === 'boolean'}" value="boolean">
|
|
772
|
+
<div>Boolean</div>
|
|
773
|
+
</ui-option>
|
|
774
|
+
<ui-option ?selected="${type === 'date'}" value="date">
|
|
775
|
+
<div>Date</div>
|
|
776
|
+
</ui-option>
|
|
777
|
+
<ui-option ?selected="${type === 'time'}" value="time">
|
|
778
|
+
<div>Time</div>
|
|
779
|
+
</ui-option>
|
|
780
|
+
<ui-option ?selected="${type === 'datetime'}" value="datetime">
|
|
781
|
+
<div>Date and time</div>
|
|
782
|
+
</ui-option>
|
|
783
|
+
<ui-option ?selected="${type === 'binary'}" value="binary">
|
|
784
|
+
<div>Binary</div>
|
|
785
|
+
</ui-option>
|
|
786
|
+
</ui-select>
|
|
787
|
+
${renderHelp('property', 'datatype-select')}
|
|
788
|
+
</div>`;
|
|
789
|
+
}
|
|
790
|
+
renderAttributeOptions(model) {
|
|
791
|
+
const { primary = false, index = false, required = false, multiple = false, readOnly = false } = model;
|
|
792
|
+
const disabled = !this.canEdit;
|
|
793
|
+
return html `<div class="checkbox-group">
|
|
794
|
+
<div class="row">
|
|
795
|
+
<div class="input checkbox metadata">
|
|
796
|
+
<ui-checkbox
|
|
797
|
+
id="att-identifier"
|
|
798
|
+
.checked="${primary}"
|
|
799
|
+
name="primary"
|
|
800
|
+
@change="${this.handleAttributeOptionChange}"
|
|
801
|
+
?disabled="${disabled}"
|
|
802
|
+
></ui-checkbox>
|
|
803
|
+
<div class="label">
|
|
804
|
+
<label for="att-identifier" class="body-medium">Identifier</label>
|
|
805
|
+
<span class="body-small meta">The primary key in the data store.</span>
|
|
806
|
+
</div>
|
|
807
|
+
</div>
|
|
808
|
+
${renderHelp('property', 'primary-checkbox')}
|
|
809
|
+
</div>
|
|
810
|
+
<div class="row">
|
|
811
|
+
<div class="input checkbox metadata">
|
|
812
|
+
<ui-checkbox
|
|
813
|
+
id="att-index"
|
|
814
|
+
.checked="${index}"
|
|
815
|
+
name="index"
|
|
816
|
+
?disabled="${disabled}"
|
|
817
|
+
@change="${this.handleAttributeOptionChange}"
|
|
818
|
+
></ui-checkbox>
|
|
819
|
+
<div class="label">
|
|
820
|
+
<label for="att-index" class="body-medium">Search field</label>
|
|
821
|
+
<span class="body-small meta">Marks this field as index and enables searching on it.</span>
|
|
822
|
+
</div>
|
|
823
|
+
</div>
|
|
824
|
+
${renderHelp('property', 'index-checkbox')}
|
|
825
|
+
</div>
|
|
826
|
+
<div class="row">
|
|
827
|
+
<div class="input checkbox">
|
|
828
|
+
<ui-checkbox
|
|
829
|
+
id="att-required"
|
|
830
|
+
.checked="${required}"
|
|
831
|
+
name="required"
|
|
832
|
+
?disabled="${disabled}"
|
|
833
|
+
@change="${this.handleAttributeOptionChange}"
|
|
834
|
+
></ui-checkbox>
|
|
835
|
+
<div class="label">
|
|
836
|
+
<label for="att-required" class="body-medium">Required</label>
|
|
837
|
+
</div>
|
|
838
|
+
</div>
|
|
839
|
+
${renderHelp('property', 'required-checkbox')}
|
|
840
|
+
</div>
|
|
841
|
+
<div class="row">
|
|
842
|
+
<div class="input checkbox metadata">
|
|
843
|
+
<ui-checkbox
|
|
844
|
+
id="att-multiple"
|
|
845
|
+
.checked="${multiple}"
|
|
846
|
+
name="multiple"
|
|
847
|
+
?disabled="${disabled}"
|
|
848
|
+
@change="${this.handleAttributeOptionChange}"
|
|
849
|
+
></ui-checkbox>
|
|
850
|
+
<div class="label">
|
|
851
|
+
<label for="att-multiple" class="body-medium">Multiple values</label>
|
|
852
|
+
<span class="body-small meta">Creates an array of values.</span>
|
|
853
|
+
</div>
|
|
854
|
+
</div>
|
|
855
|
+
${renderHelp('property', 'multiple-checkbox')}
|
|
856
|
+
</div>
|
|
857
|
+
<div class="row">
|
|
858
|
+
<div class="input checkbox metadata">
|
|
859
|
+
<ui-checkbox
|
|
860
|
+
id="att-readOnly"
|
|
861
|
+
.checked="${readOnly}"
|
|
862
|
+
name="readOnly"
|
|
863
|
+
?disabled="${disabled}"
|
|
864
|
+
@change="${this.handleAttributeOptionChange}"
|
|
865
|
+
></ui-checkbox>
|
|
866
|
+
<div class="label">
|
|
867
|
+
<label for="att-readOnly" class="body-medium">Read only</label>
|
|
868
|
+
<span class="body-small meta">The value can only be set when object is created.</span>
|
|
869
|
+
</div>
|
|
870
|
+
</div>
|
|
871
|
+
${renderHelp('property', 'readOnly-checkbox')}
|
|
872
|
+
</div>
|
|
873
|
+
</div>`;
|
|
874
|
+
}
|
|
875
|
+
renderStringSchema(model) {
|
|
876
|
+
return [
|
|
877
|
+
this.renderDefaultValueInput(model),
|
|
878
|
+
this.renderLiteralDefaultValueInput(model),
|
|
879
|
+
this.renderExampleValueInput(model),
|
|
880
|
+
this.renderEnumEditor(model),
|
|
881
|
+
this.renderMinimumValueInput(model),
|
|
882
|
+
this.renderExclusiveMinimumInput(model),
|
|
883
|
+
this.renderMaximumValueInput(model),
|
|
884
|
+
this.renderExclusiveMaximumInput(model),
|
|
885
|
+
];
|
|
886
|
+
}
|
|
887
|
+
renderNumberSchema(model) {
|
|
888
|
+
return [
|
|
889
|
+
this.renderMultipleOfInput(model),
|
|
890
|
+
this.renderDefaultValueInput(model),
|
|
891
|
+
this.renderLiteralDefaultValueInput(model),
|
|
892
|
+
this.renderExampleValueInput(model),
|
|
893
|
+
this.renderEnumEditor(model),
|
|
894
|
+
this.renderMinimumValueInput(model),
|
|
895
|
+
this.renderExclusiveMinimumInput(model),
|
|
896
|
+
this.renderMaximumValueInput(model),
|
|
897
|
+
this.renderExclusiveMaximumInput(model),
|
|
898
|
+
];
|
|
899
|
+
}
|
|
900
|
+
renderBooleanSchema(model) {
|
|
901
|
+
return [this.renderDefaultValueInput(model)];
|
|
902
|
+
}
|
|
903
|
+
renderDateSchema(model) {
|
|
904
|
+
return [
|
|
905
|
+
this.renderDefaultValueInput(model),
|
|
906
|
+
this.renderLiteralDefaultValueInput(model),
|
|
907
|
+
this.renderExampleValueInput(model),
|
|
908
|
+
this.renderMinimumValueInput(model),
|
|
909
|
+
this.renderExclusiveMinimumInput(model),
|
|
910
|
+
this.renderMaximumValueInput(model),
|
|
911
|
+
this.renderExclusiveMaximumInput(model),
|
|
912
|
+
];
|
|
913
|
+
}
|
|
914
|
+
renderTimeSchema(model) {
|
|
915
|
+
return [
|
|
916
|
+
this.renderDefaultValueInput(model),
|
|
917
|
+
this.renderLiteralDefaultValueInput(model),
|
|
918
|
+
this.renderExampleValueInput(model),
|
|
919
|
+
this.renderMinimumValueInput(model),
|
|
920
|
+
this.renderExclusiveMinimumInput(model),
|
|
921
|
+
this.renderMaximumValueInput(model),
|
|
922
|
+
this.renderExclusiveMaximumInput(model),
|
|
923
|
+
];
|
|
924
|
+
}
|
|
925
|
+
renderDateTimeSchema(model) {
|
|
926
|
+
return [
|
|
927
|
+
this.renderDefaultValueInput(model),
|
|
928
|
+
this.renderLiteralDefaultValueInput(model),
|
|
929
|
+
this.renderExampleValueInput(model),
|
|
930
|
+
this.renderMinimumValueInput(model),
|
|
931
|
+
this.renderExclusiveMinimumInput(model),
|
|
932
|
+
this.renderMaximumValueInput(model),
|
|
933
|
+
this.renderExclusiveMaximumInput(model),
|
|
934
|
+
];
|
|
935
|
+
}
|
|
936
|
+
/**
|
|
937
|
+
* Renders the input for the default value.
|
|
938
|
+
*
|
|
939
|
+
* Note, when defining a new function, add support for it generation in the
|
|
940
|
+
* `src/modeling/value_generator.ts` file.
|
|
941
|
+
*/
|
|
942
|
+
renderDefaultValueInput(model) {
|
|
943
|
+
const { type } = model;
|
|
944
|
+
// || type === 'any' || type === 'nil'
|
|
945
|
+
if (type === 'binary') {
|
|
946
|
+
return nothing;
|
|
947
|
+
}
|
|
948
|
+
const schema = model.schema || {};
|
|
949
|
+
const { defaultValue } = schema;
|
|
950
|
+
let isNone = true;
|
|
951
|
+
let isLiteral = false;
|
|
952
|
+
if (defaultValue) {
|
|
953
|
+
if (defaultValue.type === 'literal') {
|
|
954
|
+
isNone = false;
|
|
955
|
+
isLiteral = true;
|
|
956
|
+
}
|
|
957
|
+
else if (defaultValue.value) {
|
|
958
|
+
isNone = false;
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
let allowLiteral = false;
|
|
962
|
+
const options = [
|
|
963
|
+
html `<ui-option ?selected="${isNone}" value="">
|
|
964
|
+
<div>None</div>
|
|
965
|
+
</ui-option>`,
|
|
966
|
+
html `<ui-divider></ui-divider>`,
|
|
967
|
+
];
|
|
968
|
+
if (type === 'string') {
|
|
969
|
+
options.push(html `<ui-option ?selected="${defaultValue?.value === 'random'}" value="function.random">
|
|
970
|
+
<div>Random string</div>
|
|
971
|
+
<div slot="supporting-text">Generates a random string.</div>
|
|
972
|
+
</ui-option>`);
|
|
973
|
+
options.push(html `<ui-option ?selected="${defaultValue?.value === 'uuid-v4'}" value="function.uuid-v4">
|
|
974
|
+
<div>UUID</div>
|
|
975
|
+
<div slot="supporting-text">Random UUID v4 value.</div>
|
|
976
|
+
</ui-option>`);
|
|
977
|
+
allowLiteral = true;
|
|
978
|
+
}
|
|
979
|
+
else if (type === 'number') {
|
|
980
|
+
options.push(html `<ui-option ?selected="${defaultValue?.value === 'incremental'}" value="function.incremental">
|
|
981
|
+
<div>Incremental</div>
|
|
982
|
+
<div slot="supporting-text">Increments the value with each new object.</div>
|
|
983
|
+
</ui-option>`);
|
|
984
|
+
allowLiteral = true;
|
|
985
|
+
}
|
|
986
|
+
else if (type === 'boolean') {
|
|
987
|
+
options.push(html `<ui-option ?selected="${defaultValue?.value === 'false'}" value="literal.false">
|
|
988
|
+
<div>FALSE</div>
|
|
989
|
+
</ui-option>`);
|
|
990
|
+
options.push(html `<ui-option ?selected="${defaultValue?.value === 'true'}" value="literal.true">
|
|
991
|
+
<div>TRUE</div>
|
|
992
|
+
</ui-option>`);
|
|
993
|
+
}
|
|
994
|
+
else if (type === 'date') {
|
|
995
|
+
options.push(html `<ui-option ?selected="${defaultValue?.value === 'now'}" value="function.now">
|
|
996
|
+
<div>Current date</div>
|
|
997
|
+
<div slot="supporting-text">YYYY-MM-DD format</div>
|
|
998
|
+
</ui-option>`);
|
|
999
|
+
allowLiteral = true;
|
|
1000
|
+
}
|
|
1001
|
+
else if (type === 'time') {
|
|
1002
|
+
options.push(html `<ui-option ?selected="${defaultValue?.value === 'now'}" value="function.now">
|
|
1003
|
+
<div>Current time</div>
|
|
1004
|
+
<div slot="supporting-text">HH:mm:ss format.</div>
|
|
1005
|
+
</ui-option>`);
|
|
1006
|
+
allowLiteral = true;
|
|
1007
|
+
}
|
|
1008
|
+
else if (type === 'datetime') {
|
|
1009
|
+
options.push(html `<ui-option ?selected="${defaultValue?.value === 'now'}" value="function.now">
|
|
1010
|
+
<div>Current date and time</div>
|
|
1011
|
+
<div slot="supporting-text">YYYY-MM-DDTHH:mm:ss format.</div>
|
|
1012
|
+
</ui-option>`);
|
|
1013
|
+
allowLiteral = true;
|
|
1014
|
+
}
|
|
1015
|
+
if (allowLiteral) {
|
|
1016
|
+
// options.push(html`<ui-divider></ui-divider>`)
|
|
1017
|
+
options.push(html `<ui-option ?selected="${isLiteral}" value="literal">
|
|
1018
|
+
<div>Literal</div>
|
|
1019
|
+
<div slot="supporting-text">Enter custom value.</div>
|
|
1020
|
+
</ui-option>`);
|
|
1021
|
+
}
|
|
1022
|
+
const disabled = !this.canEdit;
|
|
1023
|
+
const supportingText = 'Used when creating the object.';
|
|
1024
|
+
return html `<div class="row input-row">
|
|
1025
|
+
<ui-select
|
|
1026
|
+
label="Default value"
|
|
1027
|
+
class="input"
|
|
1028
|
+
name="defaultValue"
|
|
1029
|
+
.supportingText="${supportingText}"
|
|
1030
|
+
?disabled="${disabled}"
|
|
1031
|
+
@change="${this.handleDefaultValueChange}"
|
|
1032
|
+
>
|
|
1033
|
+
${options}
|
|
1034
|
+
</ui-select>
|
|
1035
|
+
${renderHelp('property', 'defaultValue-select')}
|
|
1036
|
+
</div>`;
|
|
1037
|
+
}
|
|
1038
|
+
renderLiteralDefaultValueInput(model) {
|
|
1039
|
+
if (!this.hasDefaultValueInput) {
|
|
1040
|
+
return nothing;
|
|
1041
|
+
}
|
|
1042
|
+
const schema = model.schema || {};
|
|
1043
|
+
const { defaultValue } = schema;
|
|
1044
|
+
const currentValue = defaultValue?.value || '';
|
|
1045
|
+
const info = this.schemaInputConfig;
|
|
1046
|
+
const disabled = !this.canEdit;
|
|
1047
|
+
return html `<div class="row input-row">
|
|
1048
|
+
<ui-outlined-text-field
|
|
1049
|
+
class="input"
|
|
1050
|
+
name="literalDefaultValue"
|
|
1051
|
+
.value="${live(currentValue)}"
|
|
1052
|
+
label="Literal value"
|
|
1053
|
+
required
|
|
1054
|
+
type="${info.type}"
|
|
1055
|
+
pattern="${ifDefined(info.pattern)}"
|
|
1056
|
+
min="${ifDefined(info.min)}"
|
|
1057
|
+
max="${ifDefined(info.max)}"
|
|
1058
|
+
step="${ifDefined(info.step)}"
|
|
1059
|
+
.supportingText="${info.help || ''}"
|
|
1060
|
+
@change="${this.handleSchemaChange}"
|
|
1061
|
+
?disabled="${disabled}"
|
|
1062
|
+
></ui-outlined-text-field>
|
|
1063
|
+
${renderHelp('property', 'literalDefaultValue-input')}
|
|
1064
|
+
</div>`;
|
|
1065
|
+
}
|
|
1066
|
+
renderFormat(model) {
|
|
1067
|
+
const { type } = model;
|
|
1068
|
+
if (type === 'number') {
|
|
1069
|
+
return this.renderFormatInput(model, NumberFormats);
|
|
1070
|
+
}
|
|
1071
|
+
if (type === 'binary') {
|
|
1072
|
+
return this.renderFormatInput(model, BinaryFormats);
|
|
1073
|
+
}
|
|
1074
|
+
return nothing;
|
|
1075
|
+
}
|
|
1076
|
+
renderFormatInput(model, formats) {
|
|
1077
|
+
const binding = model.getWebBinding();
|
|
1078
|
+
const options = formats.map((format) => {
|
|
1079
|
+
const info = getFormatInfo(format);
|
|
1080
|
+
return html `<ui-option ?selected="${format === binding.format}" value="${format}">
|
|
1081
|
+
<div>${info.label}</div>
|
|
1082
|
+
<div slot="supporting-text">${info.help}</div>
|
|
1083
|
+
</ui-option>`;
|
|
1084
|
+
});
|
|
1085
|
+
const disabled = !this.canEdit;
|
|
1086
|
+
return html `<div class="row input-row">
|
|
1087
|
+
<ui-select
|
|
1088
|
+
label="Format"
|
|
1089
|
+
class="input"
|
|
1090
|
+
name="format"
|
|
1091
|
+
?disabled="${disabled}"
|
|
1092
|
+
@change="${this.handleFormatChange}"
|
|
1093
|
+
>
|
|
1094
|
+
${options}
|
|
1095
|
+
</ui-select>
|
|
1096
|
+
${renderHelp('property', 'format-select')}
|
|
1097
|
+
</div>`;
|
|
1098
|
+
}
|
|
1099
|
+
/**
|
|
1100
|
+
* Renders the enum editing editor section.
|
|
1101
|
+
*/
|
|
1102
|
+
renderEnumEditor(model) {
|
|
1103
|
+
return html `<div class="row">${this.renderEnumToggle()} ${renderHelp('property', 'enumValues-switch')}</div>
|
|
1104
|
+
${this.renderEnumValues(model)} ${this.renderAddEnumButton()}`;
|
|
1105
|
+
}
|
|
1106
|
+
/**
|
|
1107
|
+
* Renders the enum toggle button.
|
|
1108
|
+
*/
|
|
1109
|
+
renderEnumToggle() {
|
|
1110
|
+
const disabled = !this.canEdit;
|
|
1111
|
+
return html `<div class="input enum">
|
|
1112
|
+
<ui-switch
|
|
1113
|
+
.checked="${this.enumEnabled}"
|
|
1114
|
+
id="enumValues"
|
|
1115
|
+
?disabled="${disabled}"
|
|
1116
|
+
@change="${this.handleEnumOptionChange}"
|
|
1117
|
+
></ui-switch>
|
|
1118
|
+
<label for="enumValues" class="body-medium">Pre-defined values (enum)</label>
|
|
1119
|
+
</div>`;
|
|
1120
|
+
}
|
|
1121
|
+
/**
|
|
1122
|
+
* Renders the list of enum inputs or nothing when not required.
|
|
1123
|
+
*/
|
|
1124
|
+
renderEnumValues(model) {
|
|
1125
|
+
if (!this.enumEnabled) {
|
|
1126
|
+
return nothing;
|
|
1127
|
+
}
|
|
1128
|
+
const schema = model.schema || {};
|
|
1129
|
+
// We use the default value to render the first input when no enum was set.
|
|
1130
|
+
const { enum: enumValues = [''] } = schema;
|
|
1131
|
+
if (!enumValues.length) {
|
|
1132
|
+
return nothing;
|
|
1133
|
+
}
|
|
1134
|
+
return enumValues.map((value, index) => this.renderEnumItem(value, index));
|
|
1135
|
+
}
|
|
1136
|
+
/**
|
|
1137
|
+
* Renders the text field to edit an enum value.
|
|
1138
|
+
* @param value The enum value to render in the input
|
|
1139
|
+
* @param index The enum's index in the enum array.
|
|
1140
|
+
*/
|
|
1141
|
+
renderEnumItem(value, index) {
|
|
1142
|
+
const info = this.schemaInputConfig;
|
|
1143
|
+
const disabled = !this.canEdit;
|
|
1144
|
+
return html `<div class="enum-input row">
|
|
1145
|
+
<ui-outlined-text-field
|
|
1146
|
+
class="input"
|
|
1147
|
+
name="enum"
|
|
1148
|
+
.value="${live(value)}"
|
|
1149
|
+
label="Value"
|
|
1150
|
+
data-index="${index}"
|
|
1151
|
+
@change="${this.handleEnumChange}"
|
|
1152
|
+
type="${info.type}"
|
|
1153
|
+
pattern="${ifDefined(info.pattern)}"
|
|
1154
|
+
min="${ifDefined(info.min)}"
|
|
1155
|
+
max="${ifDefined(info.max)}"
|
|
1156
|
+
step="${ifDefined(info.step)}"
|
|
1157
|
+
?disabled="${disabled}"
|
|
1158
|
+
.supportingText="${info.help || ''}"
|
|
1159
|
+
></ui-outlined-text-field>
|
|
1160
|
+
<ui-icon-button type="button" data-index="${index}" @click="${this.handleDeleteEnum}"
|
|
1161
|
+
><ui-icon icon="deleteOutline"></ui-icon
|
|
1162
|
+
></ui-icon-button>
|
|
1163
|
+
</div>`;
|
|
1164
|
+
}
|
|
1165
|
+
/**
|
|
1166
|
+
* Renders the "add" value value button.
|
|
1167
|
+
*/
|
|
1168
|
+
renderAddEnumButton() {
|
|
1169
|
+
if (!this.enumEnabled || !this.canEdit) {
|
|
1170
|
+
return nothing;
|
|
1171
|
+
}
|
|
1172
|
+
return html `<div class="enum-input row">
|
|
1173
|
+
<ui-button color="outlined" @click="${this.handleAddEnum}">
|
|
1174
|
+
<ui-icon slot="icon" icon="add"></ui-icon>Add
|
|
1175
|
+
</ui-button>
|
|
1176
|
+
</div>`;
|
|
1177
|
+
}
|
|
1178
|
+
renderExampleValueInput(model) {
|
|
1179
|
+
const schema = model.schema || {};
|
|
1180
|
+
const { examples = [] } = schema;
|
|
1181
|
+
const [example = ''] = examples;
|
|
1182
|
+
const info = this.schemaInputConfig;
|
|
1183
|
+
const disabled = !this.canEdit;
|
|
1184
|
+
return html `<div class="row input-row">
|
|
1185
|
+
<ui-outlined-text-field
|
|
1186
|
+
class="input"
|
|
1187
|
+
name="example"
|
|
1188
|
+
.value="${live(example)}"
|
|
1189
|
+
label="Example value"
|
|
1190
|
+
@change="${this.handleExampleChange}"
|
|
1191
|
+
pattern="${ifDefined(info.pattern)}"
|
|
1192
|
+
min="${ifDefined(info.min)}"
|
|
1193
|
+
max="${ifDefined(info.max)}"
|
|
1194
|
+
step="${ifDefined(info.step)}"
|
|
1195
|
+
.supportingText="${info.help || 'Used with documentation.'}"
|
|
1196
|
+
.type="${info.type}"
|
|
1197
|
+
?disabled="${disabled}"
|
|
1198
|
+
></ui-outlined-text-field>
|
|
1199
|
+
${renderHelp('property', 'example-input')}
|
|
1200
|
+
</div>`;
|
|
1201
|
+
}
|
|
1202
|
+
renderMinimumValueInput(model) {
|
|
1203
|
+
const schema = model.schema || {};
|
|
1204
|
+
const { minimum } = schema;
|
|
1205
|
+
let label = 'Minimum length';
|
|
1206
|
+
if (model.type === 'number') {
|
|
1207
|
+
label = 'Minimum value';
|
|
1208
|
+
}
|
|
1209
|
+
else if (model.type === 'date' || model.type === 'datetime') {
|
|
1210
|
+
label = 'Minimum date';
|
|
1211
|
+
}
|
|
1212
|
+
else if (model.type === 'time') {
|
|
1213
|
+
label = 'Minimum time';
|
|
1214
|
+
}
|
|
1215
|
+
const info = this.schemaInputConfig;
|
|
1216
|
+
const disabled = !this.canEdit;
|
|
1217
|
+
return html `<div class="row input-row">
|
|
1218
|
+
<ui-outlined-text-field
|
|
1219
|
+
class="input"
|
|
1220
|
+
name="minimum"
|
|
1221
|
+
.value="${live(minimum ?? '')}"
|
|
1222
|
+
label="${label}"
|
|
1223
|
+
type="${info.type}"
|
|
1224
|
+
pattern="${ifDefined(info.pattern)}"
|
|
1225
|
+
min="${ifDefined(info.min)}"
|
|
1226
|
+
max="${ifDefined(info.max)}"
|
|
1227
|
+
step="${ifDefined(info.step)}"
|
|
1228
|
+
.supportingText="${info.help || ''}"
|
|
1229
|
+
@change="${this.handleSchemaChange}"
|
|
1230
|
+
?disabled="${disabled}"
|
|
1231
|
+
></ui-outlined-text-field>
|
|
1232
|
+
${renderHelp('property', 'schema:minimum-input')}
|
|
1233
|
+
</div>`;
|
|
1234
|
+
}
|
|
1235
|
+
renderExclusiveMinimumInput(model) {
|
|
1236
|
+
const schema = model.schema || {};
|
|
1237
|
+
const { exclusiveMinimum = false } = schema;
|
|
1238
|
+
const disabled = !this.canEdit;
|
|
1239
|
+
return html `<div class="checkbox row">
|
|
1240
|
+
<div class="input checkbox metadata">
|
|
1241
|
+
<ui-checkbox
|
|
1242
|
+
id="exclusive-minimum"
|
|
1243
|
+
.checked="${exclusiveMinimum}"
|
|
1244
|
+
name="exclusiveMinimum"
|
|
1245
|
+
@change="${this.handleSchemaChange}"
|
|
1246
|
+
?disabled="${disabled}"
|
|
1247
|
+
></ui-checkbox>
|
|
1248
|
+
<div class="label">
|
|
1249
|
+
<label for="exclusive-minimum" class="body-medium">Exclude minimum value</label>
|
|
1250
|
+
<span class="body-small meta">The value must be greater than, but not equal to, the minimum.</span>
|
|
1251
|
+
</div>
|
|
1252
|
+
</div>
|
|
1253
|
+
${renderHelp('property', 'schema:exclusive-minimum-checkbox')}
|
|
1254
|
+
</div>`;
|
|
1255
|
+
}
|
|
1256
|
+
renderExclusiveMaximumInput(model) {
|
|
1257
|
+
const schema = model.schema || {};
|
|
1258
|
+
const { exclusiveMaximum } = schema;
|
|
1259
|
+
const disabled = !this.canEdit;
|
|
1260
|
+
return html `<div class="checkbox row">
|
|
1261
|
+
<div class="input checkbox metadata">
|
|
1262
|
+
<ui-checkbox
|
|
1263
|
+
id="exclusive-maximum"
|
|
1264
|
+
.checked="${exclusiveMaximum || false}"
|
|
1265
|
+
name="exclusiveMaximum"
|
|
1266
|
+
@change="${this.handleSchemaChange}"
|
|
1267
|
+
?disabled="${disabled}"
|
|
1268
|
+
></ui-checkbox>
|
|
1269
|
+
<div class="label">
|
|
1270
|
+
<label for="exclusive-maximum" class="body-medium">Exclude maximum value</label>
|
|
1271
|
+
<span class="body-small meta">The value must be less than, but not equal to, the maximum.</span>
|
|
1272
|
+
</div>
|
|
1273
|
+
</div>
|
|
1274
|
+
${renderHelp('property', 'schema:exclusive-maximum-checkbox')}
|
|
1275
|
+
</div>`;
|
|
1276
|
+
}
|
|
1277
|
+
renderMaximumValueInput(model) {
|
|
1278
|
+
const schema = model.schema || {};
|
|
1279
|
+
const { maximum } = schema;
|
|
1280
|
+
let label = 'Maximum length';
|
|
1281
|
+
if (model.type === 'number') {
|
|
1282
|
+
label = 'Maximum value';
|
|
1283
|
+
}
|
|
1284
|
+
else if (model.type === 'date' || model.type === 'datetime') {
|
|
1285
|
+
label = 'Maximum date';
|
|
1286
|
+
}
|
|
1287
|
+
else if (model.type === 'time') {
|
|
1288
|
+
label = 'Maximum time';
|
|
1289
|
+
}
|
|
1290
|
+
const info = this.schemaInputConfig;
|
|
1291
|
+
const disabled = !this.canEdit;
|
|
1292
|
+
return html `<div class="row input-row">
|
|
1293
|
+
<ui-outlined-text-field
|
|
1294
|
+
class="input"
|
|
1295
|
+
name="maximum"
|
|
1296
|
+
.value="${live(maximum ?? '')}"
|
|
1297
|
+
label="${label}"
|
|
1298
|
+
type="${info.type}"
|
|
1299
|
+
pattern="${ifDefined(info.pattern)}"
|
|
1300
|
+
min="${ifDefined(info.min)}"
|
|
1301
|
+
max="${ifDefined(info.max)}"
|
|
1302
|
+
step="${ifDefined(info.step)}"
|
|
1303
|
+
.supportingText="${info.help || ''}"
|
|
1304
|
+
@change="${this.handleSchemaChange}"
|
|
1305
|
+
?disabled="${disabled}"
|
|
1306
|
+
></ui-outlined-text-field>
|
|
1307
|
+
${renderHelp('property', 'schema:maximum-input')}
|
|
1308
|
+
</div>`;
|
|
1309
|
+
}
|
|
1310
|
+
renderMultipleOfInput(model) {
|
|
1311
|
+
const schema = model.schema || {};
|
|
1312
|
+
const { multipleOf } = schema;
|
|
1313
|
+
const disabled = !this.canEdit;
|
|
1314
|
+
const supportingText = 'The number must be divisible by this value. E.g., 2 for even numbers.';
|
|
1315
|
+
return html `<div class="row input-row">
|
|
1316
|
+
<ui-outlined-text-field
|
|
1317
|
+
class="input"
|
|
1318
|
+
name="multipleOf"
|
|
1319
|
+
.value="${live(multipleOf || '')}"
|
|
1320
|
+
label="Value increment"
|
|
1321
|
+
.supportingText="${supportingText}"
|
|
1322
|
+
type="number"
|
|
1323
|
+
@change="${this.handleSchemaChange}"
|
|
1324
|
+
?disabled="${disabled}"
|
|
1325
|
+
></ui-outlined-text-field>
|
|
1326
|
+
${renderHelp('property', 'schema:multipleOf-input')}
|
|
1327
|
+
</div>`;
|
|
1328
|
+
}
|
|
1329
|
+
renderDataGovernanceSection(model) {
|
|
1330
|
+
// TODO: Add classification UI (data tagging)
|
|
1331
|
+
const tax = this.renderTaxonomyInput(model);
|
|
1332
|
+
if (tax === nothing) {
|
|
1333
|
+
return nothing;
|
|
1334
|
+
}
|
|
1335
|
+
return html `<div class="editor-section">
|
|
1336
|
+
<div class="section-title title-medium">Data Governance</div>
|
|
1337
|
+
${tax}
|
|
1338
|
+
</div>`;
|
|
1339
|
+
}
|
|
1340
|
+
renderTaxonomyInput(model) {
|
|
1341
|
+
const allCategories = getSemanticsByCategory(SemanticScope.Property);
|
|
1342
|
+
const selectedSemantics = [];
|
|
1343
|
+
const filteredCategories = {};
|
|
1344
|
+
// Filter categories and semantics, excluding already selected ones
|
|
1345
|
+
for (const category of Object.keys(allCategories)) {
|
|
1346
|
+
const semantics = allCategories[category].filter((s) => {
|
|
1347
|
+
if (s.applicableDataTypes && !s.applicableDataTypes.includes(model.type)) {
|
|
1348
|
+
return false;
|
|
1349
|
+
}
|
|
1350
|
+
// Check if this semantic is already selected
|
|
1351
|
+
if (model.semantics.some((ms) => ms.id === s.id)) {
|
|
1352
|
+
selectedSemantics.push(s);
|
|
1353
|
+
return false;
|
|
1354
|
+
}
|
|
1355
|
+
return true;
|
|
1356
|
+
});
|
|
1357
|
+
if (semantics.length > 0) {
|
|
1358
|
+
filteredCategories[category] = semantics;
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
if (Object.keys(filteredCategories).length === 0 && selectedSemantics.length === 0) {
|
|
1362
|
+
return nothing;
|
|
1363
|
+
}
|
|
1364
|
+
return html `<div class="taxonomy">
|
|
1365
|
+
<ui-button
|
|
1366
|
+
id="taxonomy-menu-anchor"
|
|
1367
|
+
popoverTarget="taxonomy-menu"
|
|
1368
|
+
color="outlined"
|
|
1369
|
+
aria-label="Add property taxonomy"
|
|
1370
|
+
?disabled="${!this.canEdit}"
|
|
1371
|
+
>
|
|
1372
|
+
<ui-icon slot="icon">add</ui-icon>Add taxonomy
|
|
1373
|
+
</ui-button>
|
|
1374
|
+
<ui-menu popover="auto" id="taxonomy-menu" class="taxonomy-menu" @select="${this.handleTaxonomySelect}">
|
|
1375
|
+
${this.renderTaxonomyCategories(filteredCategories)}
|
|
1376
|
+
</ui-menu>
|
|
1377
|
+
${renderHelp('property', 'taxonomy-select')}
|
|
1378
|
+
</div>
|
|
1379
|
+
${this.renderSelectedSemantics(selectedSemantics)}`;
|
|
1380
|
+
}
|
|
1381
|
+
renderSelectedSemantics(selected) {
|
|
1382
|
+
if (selected.length === 0) {
|
|
1383
|
+
return nothing;
|
|
1384
|
+
}
|
|
1385
|
+
const items = selected.map((semantic) => this.renderTaxonomyItem(semantic));
|
|
1386
|
+
return html `<div class="enabled-taxonomy">${items}</div>`;
|
|
1387
|
+
}
|
|
1388
|
+
renderTaxonomyItem(semantic) {
|
|
1389
|
+
const canEdit = this.canEdit;
|
|
1390
|
+
return html `<div class="taxonomy-item">
|
|
1391
|
+
<span class="label body-large">${semantic.displayName}</span>
|
|
1392
|
+
${semantic.hasConfig
|
|
1393
|
+
? html `<ui-button
|
|
1394
|
+
color="text"
|
|
1395
|
+
data-id="${semantic.id}"
|
|
1396
|
+
@click="${this.handleConfigureTaxonomy}"
|
|
1397
|
+
?disabled="${!canEdit}"
|
|
1398
|
+
>Configure</ui-button
|
|
1399
|
+
>`
|
|
1400
|
+
: nothing}
|
|
1401
|
+
${canEdit
|
|
1402
|
+
? html `<ui-icon-button
|
|
1403
|
+
type="button"
|
|
1404
|
+
data-id="${semantic.id}"
|
|
1405
|
+
@click="${this.handleDeleteTaxonomy}"
|
|
1406
|
+
?disabled="${!canEdit}"
|
|
1407
|
+
><ui-icon icon="deleteOutline"></ui-icon
|
|
1408
|
+
></ui-icon-button>`
|
|
1409
|
+
: nothing}
|
|
1410
|
+
</div>`;
|
|
1411
|
+
}
|
|
1412
|
+
renderTaxonomyCategories(categories) {
|
|
1413
|
+
const items = [];
|
|
1414
|
+
const entries = Object.entries(categories);
|
|
1415
|
+
const cLen = entries.length;
|
|
1416
|
+
entries.forEach(([categoryName, semantics], categoryIndex) => {
|
|
1417
|
+
// Add category title as a non-selectable menu item
|
|
1418
|
+
items.push(html ` <div class="menu-category-title title-small">${categoryName}</div> `);
|
|
1419
|
+
// Add semantics from this category
|
|
1420
|
+
for (const semantic of semantics) {
|
|
1421
|
+
items.push(html `
|
|
1422
|
+
<ui-menu-item data-value="${semantic.id}" lines="two">
|
|
1423
|
+
<div>${semantic.displayName}</div>
|
|
1424
|
+
<div slot="supporting-text">${semantic.description}</div>
|
|
1425
|
+
</ui-menu-item>
|
|
1426
|
+
`);
|
|
1427
|
+
}
|
|
1428
|
+
// Add divider after each category except the last one
|
|
1429
|
+
if (categoryIndex < cLen - 1) {
|
|
1430
|
+
items.push(html `<ui-divider></ui-divider>`);
|
|
1431
|
+
}
|
|
1432
|
+
});
|
|
1433
|
+
return items;
|
|
1434
|
+
}
|
|
1435
|
+
};
|
|
1436
|
+
})();
|
|
1437
|
+
/**
|
|
1438
|
+
* Dispatched when the user deletes a property.
|
|
1439
|
+
*
|
|
1440
|
+
* @event DomainPropertyEditor#delete
|
|
1441
|
+
* @type {CustomEvent}
|
|
1442
|
+
* @property {object} detail - The event details.
|
|
1443
|
+
* @property {string} detail.key - The key of the parent entity to navigate to.
|
|
1444
|
+
* @property {string} detail.kind - The kind of the parent entity. It will always be `DomainEntityKind`.
|
|
1445
|
+
*/
|
|
1446
|
+
/**
|
|
1447
|
+
* `DomainPropertyEditor` is a LitElement-based web component that provides a user interface for editing
|
|
1448
|
+
* properties of a `DomainProperty` object. It allows users to modify various aspects of a data property,
|
|
1449
|
+
* including its metadata, attributes, schema, and enum values.
|
|
1450
|
+
*
|
|
1451
|
+
* ## Features
|
|
1452
|
+
*
|
|
1453
|
+
* - **Metadata Editing**: Allows editing of the property's name, display name, and description.
|
|
1454
|
+
* - **Attribute Management**: Provides controls for setting data type, format, and other attributes
|
|
1455
|
+
* like `required`, `multiple`, `primary`, `index`, and `readOnly`.
|
|
1456
|
+
* - **Schema Definition**: Enables defining the schema for the property, including default values
|
|
1457
|
+
* and enum values.
|
|
1458
|
+
* - **Enum Editor**: Supports enabling and disabling an enum editor for predefined values, with
|
|
1459
|
+
* options to add, update, and delete enum values.
|
|
1460
|
+
* - **Default Value Setting**: Allows setting a default value for the property, either as a literal
|
|
1461
|
+
* value or a function.
|
|
1462
|
+
* - **Data Type and Format Selection**: Provides dropdowns for selecting the data type and format
|
|
1463
|
+
* of the property.
|
|
1464
|
+
* - **Validation**: Includes input validation to ensure data integrity.
|
|
1465
|
+
* - **Change Notification**: Dispatches a `change` event whenever a property is modified.
|
|
1466
|
+
*
|
|
1467
|
+
* ## Usage
|
|
1468
|
+
*
|
|
1469
|
+
* The `DomainPropertyEditor` is typically used within a larger application that manages data models.
|
|
1470
|
+
*
|
|
1471
|
+
* ```html
|
|
1472
|
+
* <domain-property-editor .root="${this.domainNamespace}" selected="property-key"></domain-property-editor>
|
|
1473
|
+
* ```
|
|
1474
|
+
*
|
|
1475
|
+
* @fires DomainPropertyEditor#delete - A custom event with the `key` and `type` when a property was selected.
|
|
1476
|
+
*/
|
|
1477
|
+
export default DomainPropertyEditor;
|
|
1478
|
+
//# sourceMappingURL=DomainPropertyEditor.js.map
|