summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/view-models/modals/onboarding-modal/onboarding-modal-view.html
blob: 3657fad0177943097c46b8c81562960ec6ae1c6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color: #75715e } /* Comment.Special */
.highlight .gd { color: #f92672 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gi { color: #a6e22e } /* Generic.Inserted */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #75715e } /* Generic.Subheading */
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
.highlight .kr { color: #66d9ef } /* Keyword.Reserved */
.highlight .kt { color: #66d9ef } /* Keyword.Type */
.highlight .ld { color: #e6db74 } /* Literal.Date */
.highlight .m { color: #ae81ff } /* Literal.Number */
.highlight .s { color: #e6db74 } /* Literal.String */
.highlight .na { color: #a6e22e } /* Name.Attribute */
.highlight .nb { color: #f8f8f2 } /* Name.Builtin */
.highlight .nc { color: #a6e22e } /* Name.Class */
.highlight .no { color: #66d9ef } /* Name.Constant */
.highlight .nd { color: #a6e22e } /* Name.Decorator */
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
.highlight .ne { color: #a6e22e } /* Name.Exception */
.highlight .nf { color: #a6e22e } /* Name.Function */
.highlight .nl { color: #f8f8f2 } /* Name.Label */
.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
.highlight .nx { color: #a6e22e } /* Name.Other */
.highlight .py { color: #f8f8f2 } /* Name.Property */
.highlight .nt { color: #f92672 } /* Name.Tag */
.highlight .nv { color: #f8f8f2 } /* Name.Variable */
.highlight .ow { color: #f92672 } /* Operator.Word */
.highlight .w { color: #f8f8f2 } /* Text.Whitespace */
.highlight .mb { color: #ae81ff } /* Literal.Number.Bin */
.highlight .mf { color: #ae81ff } /* Literal.Number.Float */
.highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
.highlight .sa { color: #e6db74 } /* Literal.String.Affix */
.highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
.highlight .sc { color: #e6db74 } /* Literal.String.Char */
.highlight .dl { color: #e6db74 } /* Literal.String.Delimiter */
.highlight .sd { color: #e6db74 } /* Literal.String.Doc */
.highlight .s2 { color: #e6db74 } /* Literal.String.Double */
.highlight .se { color: #ae81ff } /* Literal.String.Escape */
.highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
.highlight .si { color: #e6db74 } /* Literal.String.Interpol */
.highlight .sx { color: #e6db74 } /* Literal.String.Other */
.highlight .sr { color: #e6db74 } /* Literal.String.Regex */
.highlight .s1 { color: #e6db74 } /* Literal.String.Single */
.highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #a6e22e } /* Name.Function.Magic */
.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
.highlight .vm { color: #f8f8f2 } /* Name.Variable.Magic */
.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */
}
@media (prefers-color-scheme: light) {
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highligh
<sdc-modal modal="modalOnboarding" class="w-sdc-modal-onboarding w-sdc-classic-top-line-modal" buttons="footerButtons" header="Import VF" show-close-button="true">
    <info-tooltip class="general-info-button" info-message-translate="ON_BOARDING_GENERAL_INFO "></info-tooltip>
    <div class="title-wrapper">
        <div>
            <p class="sub-title">Select one of the software product component below:</p>
        </div>

        <div class="top-search">
            <input type="text"
                   class="search-text"
                   placeholder="Search"
                   data-ng-model="searchBind"
                   data-tests-id="onboarding-search"
                   ng-model-options="{ debounce: 500 }" />
            <span class="w-sdc-search-icon magnification"></span>
        </div>
    </div>

    <div class="table-container-flex">
        <div class="table" data-ng-class="{'view-mode': isViewMode()}">

            <!-- Table headers -->
            <div class="head flex-container">
                <div class="table-header head-row hand flex-item" ng-repeat="header in tableHeadersList track by $index" data-ng-click="sort(header.property)" data-tests-id="{{header.title}}">{{header.title}}
                    <span data-ng-show="sortBy === header.property" class="table-header-sort-arrow" data-ng-class="{'down': reverse, 'up':!reverse}"> </span>
                </div>
            </div>

            <!-- Table body -->
            <div class="body">
                <perfect-scrollbar suppress-scroll-x="true" scroll-y-margin-offset="0" include-padding="true" class="scrollbar-container" id="onboarding-modal-scrollbar-container">

                    <!-- In case the component list is empty -->
                    <div data-ng-if="!componentsList || componentsList.length===0" class="no-row-text">
                        There are no software product component to display
                    </div>

                    <div infinite-scroll-disabled='allItemsDisplayed'  infinite-scroll="increaseNumItemsToDisplay()" infinite-scroll-container="'#onboarding-modal-scrollbar-container'">

                    <!-- Loop on components list -->
                    <div data-ng-repeat-start="component in componentsList | filter: searchBind | orderBy:sortBy:reverse | limitTo:numberOfItemsToDisplay track by $index"
                         class="flex-container data-row"
                         data-ng-class="{'selected': component === selectedComponent}"
                         data-ng-click="doSelectComponent(component);"
                         data-tests-id="csar-row"
                         >

                        <!-- Name -->
                        <div class="table-col-general flex-item"  sdc-smart-tooltip>
                            <span class="sprite table-arrow" data-ng-class="{'opened': component === selectedComponent}" data-tests-id="{{component.name}}"></span>
                            {{component.name}}
                        </div>

                        <!-- Vendor -->
                        <div class="table-col-general flex-item" data-tests-id="{{component.vendorName}}" sdc-smart-tooltip>
                            {{component.vendorName}}
                        </div>

                        <!-- Category -->
                        <div class="table-col-general flex-item"  sdc-smart-tooltip>
                            {{component.categories[0].name}}&nbsp;{{component.categories[0].subcategories[0].name}}
                        </div>

                        <!-- Version -->
                        <div class="table-col-general flex-item"  sdc-smart-tooltip>
                            {{component.csarVersion}}
                        </div>

                        <!-- Import And Update -->
                        <div class="table-col-general flex-item"  sdc-smart-tooltip></div>

                    </div>

                    <div data-ng-repeat-end="" data-ng-if="component===selectedComponent" class="item-opened">

                        <div class="item-opened-description">
                            <div class="item-opened-description-title">VSP Description:</div>
                            {{component.description}}
                        </div>

                        <div class="item-opened-metadata1">
                            <div data-ng-if="isCsarComponentExists===true">
                                <div class="item-opened-metadata-title">VF'S Meta Data:</div>
                                <div><span class="th">Name:</span> {{componentFromServer.name}}</div>
                                <div><span class="th">Lifecycle:</span> {{componentFromServer.lifecycleState}}</div>
                                <div><span class="th">Creator:</span> {{componentFromServer.creatorFullName}}</div>
                            </div>
                        </div>

                        <div class="item-opened-metadata2">
                            <div data-ng-if="isCsarComponentExists===true">
                                <div class="item-opened-metadata-title">&nbsp;</div>
                                <div><span class="th">UUID:</span> {{componentFromServer.uuid}}</div>
                                <div><span class="th">Version:</span> {{componentFromServer.version}}</div>
                                <div><span class="th">Modifier:</span> {{componentFromServer.lastUpdaterFullName}}</div>
                                <div data-ng-if="componentFromServer.lifecycleState==='NOT_CERTIFIED_CHECKOUT' && componentFromServer.lastUpdaterUserId !== user.userId">
                                    <span class="note">Designers cannot update a VSP if the VF is checked out by another user.</span>
                                </div>
                                <div data-ng-if="componentFromServer.lifecycleState==='READY_FOR_CERTIFICATION'">
                                    <span class="note">Designers cannot update a VSP if the VF is in Ready for testing state.</span>
                                </div>
                            </div>
                        </div>

                        <div class="item-opened-metadata3">
                            <info-tooltip class="info-button" info-message-translate="{{isCsarComponentExists?'ON_BOARDING_UPDATE_INFO':'ON_BOARDING_IMPORT_INFO'}}" direction="left"></info-tooltip>
                        </div>

                        <div class="item-opened-icon">
                            <span data-ng-if="isCsarComponentExists!==true"
                                 class="sprite-new import-file-btn"
                                 data-ng-click="doImportCsar()"
                                 uib-tooltip="Import VSP"
                                 tooltip-class="uib-custom-tooltip"
                                 tooltip-placement="bottom"
                                 data-tests-id="import-csar"></span>

                            <span data-ng-if="isCsarComponentExists===true"
                                 class="sprite-new refresh-file-btn"
                                 uib-tooltip="Update VSP"
                                 tooltip-class="uib-custom-tooltip"
                                 tooltip-placement="bottom"
                                 data-ng-class="{'disabled': (componentFromServer.lifecycleState==='NOT_CERTIFIED_CHECKOUT' && componentFromServer.lastUpdaterUserId!==user.userId) || componentFromServer.lifecycleState==='READY_FOR_CERTIFICATION'}"
                                 data-ng-click="doUpdateCsar()"
                                 data-tests-id="update-csar"></span>

                            <span data-ng-click="downloadCsar(component.packageId)"
                                 class="sprite-new download-file-btn hand"
                                 uib-tooltip="Download VSP"
                                 tooltip-class="uib-custom-tooltip"
                                 tooltip-placement="bottom"
                                 data-tests-id="download-csar"></span>
                        </div>
                        <loader data-display="isLoading" relative="true" size="small"></loader>
                    </div>
                    </div>

                </perfect-scrollbar>
            </div><!-- End table body -->
        </div><!-- End table -->
    </div><!-- End table-container-flex -->
    <div class="w-sdc-modal-footer classic"></div>

</sdc-modal>