repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/model/api/user-login-model.ts
export interface OCOrganizationResponse { name?: string; username?: string; type?: string; email: string; customData?: any; } export class UserLoginModel { email: string; password: string; isChecked: boolean; } export interface OCNativeSignup { password: string; } export interface ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/market-components/oc-rating/oc-rating.component.spec.ts
<reponame>mukesh-openchannel/angular-template-libraries import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcRatingComponent } from './oc-rating.component'; import { NgbModule, NgbRating } from '@ng-bootstrap/ng-bootstrap'; import { By } from '@angular/platform-browser'; import {...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/model/api/properties.model.ts
export interface OcPropertyModel { propertyId: string; value: any; }
mukesh-openchannel/angular-template-libraries
src/formComponent.stories.ts
<reponame>mukesh-openchannel/angular-template-libraries import { AppFormField, AppFormModel, DropdownAdditionalField, DropdownFormField, FileDetails, OcFormComponent, OcFormComponentsModule, FileUploaderService, } from '@openchannel/angular-common-components/src/lib/form-components'; import ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/management-components/oc-management-components.module.ts
<reponame>mukesh-openchannel/angular-template-libraries import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { OcInviteModalComponent } from './oc-invite-modal/oc-invite-modal.component'; import { OcMenuUserGridComponent } from './oc-menu-user-grid/oc-menu-user-grid.component...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/file-upload-download.service.ts
import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { HttpRequestService } from './http-request-services'; import { mergeMap } from 'rxjs/operators'; import { ConfigService } from './config.service'; import { OcHttpParams ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/model/api/invite-user.model.ts
export interface AbstractInviteModel { email?: string; expireDate?: number; expireSeconds?: number; createdDate?: number; subject?: string; body?: string; name?: string; type?: string; customData?: any; token?: string; lastSent?: number; roles?: string[]; permissions?...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/developer-account.service.ts
<gh_stars>0 import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { HttpRequestService } from './http-request-services'; import { DeveloperAccount } from '../model/api/developer-account.model'; import { DeveloperAccountModel } from '../model/api/developer.model'; import { Page } from '.....
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/market-components/oc-app-get-started/oc-app-get-started.component.spec.ts
<filename>projects/angular-common-components/src/lib/market-components/oc-app-get-started/oc-app-get-started.component.spec.ts<gh_stars>0 import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcAppGetStartedComponent } from './oc-app-get-started.component'; import { By } from '@angu...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/oc-form-modal/oc-form-modal.component.ts
<reponame>mukesh-openchannel/angular-template-libraries<gh_stars>0 import { Component, Input, TemplateRef } from '@angular/core'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { FormGroup } from '@angular/forms'; import { AppFormModel } from '../model/app-form-model'; import { ErrorMessageFormId }...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/model/api/app-type-model.ts
export interface AppTypeOptionModelResponse { value: string; } export interface AppTypeFieldModelResponse { id: string; label: string; type: string; attributes?: any; description?: string; fields?: AppTypeFieldModelResponse[]; defaultValue?: any; placeholder?: string; options?: ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/oc-dropdown/oc-dropdown.component.spec.ts
<gh_stars>0 import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcDropdownComponent } from './oc-dropdown.component'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; describe('OcDropdownComponent', () => { let component: OcDropdownComponent; let fixture: Component...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/model/api/meta-tag.model.ts
import { MetaDefinition } from '@angular/platform-browser'; /** * Custom meta tag implementation. * Content for this meta can be filled from the specific response data. * Used only for config: {@link PageMetaTags} * * @example * const customDescriptionMetaTag: CustomMetaDefinition = { * name: 'og:description'...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/pipe/ellipsis.pipe.ts
<reponame>mukesh-openchannel/angular-template-libraries<gh_stars>0 import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'ellipsis', }) export class EllipsisPipe implements PipeTransform { transform(value: string, limit: number = 25, ellipsis: string = '...'): string { return value.length ...
mukesh-openchannel/angular-template-libraries
src/dropdown.stories.ts
<filename>src/dropdown.stories.ts import { OcCommonLibModule, OcDropdownComponent } from '@openchannel/angular-common-components/src/lib/common-components'; import { moduleMetadata } from '@storybook/angular'; import { AngularSvgIconModule } from 'angular-svg-icon'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/oc-multi-select-checkbox-list/oc-multi-select-checkbox-list.component.spec.ts
<filename>projects/angular-common-components/src/lib/form-components/oc-multi-select-checkbox-list/oc-multi-select-checkbox-list.component.spec.ts import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcMultiSelectCheckboxListComponent } from './oc-multi-select-checkbox-list.compone...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/auth-components/oc-reset-password/oc-reset-password.component.ts
<filename>projects/angular-common-components/src/lib/auth-components/oc-reset-password/oc-reset-password.component.ts<gh_stars>0 import { Component, EventEmitter, Input, Output } from '@angular/core'; import { ComponentsUserResetPassword } from '../models/auth-types.model'; import { ErrorMessageFormId, HeadingTag } fro...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/oc-tag-element/oc-tag-element.component.spec.ts
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcTagElementComponent } from './oc-tag-element.component'; import { By } from '@angular/platform-browser'; import { HttpClientTestingModule } from '@angular/common/http/testing'; import { MockSvgIconComponent } from '@openchannel...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/portal-components/public-api.ts
<filename>projects/angular-common-components/src/lib/portal-components/public-api.ts<gh_stars>0 export * from './oc-chart/oc-chart.component'; export * from './oc-app-table/oc-app-table.component'; export * from './oc-portal-components.module'; /** Models */ export * from './models/app-listing.model'; export * from '....
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/pipe/html-tags-replacer.pipe.ts
import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'replaceHtmlTags', }) export class HtmlTagsReplacerPipe implements PipeTransform { transform(value: string): string { if (typeof value === 'string' && value.match(/<[^>]*>/g)) { const tmp = document.createElement('div'); ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/oc-color/oc-color.component.ts
<filename>projects/angular-common-components/src/lib/form-components/oc-color/oc-color.component.ts import { Component, forwardRef, Input } from '@angular/core'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; /** * Component represents input for color data. User can choose a color from the ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/market-components/oc-app-gallery/oc-app-gallery.component.ts
import { Component, EventEmitter, Input, Output, TemplateRef } from '@angular/core'; import { FullAppData, HeadingTag } from '@openchannel/angular-common-components/src/lib/common-components'; import { get } from 'lodash'; @Component({ selector: 'oc-app-gallery', templateUrl: './oc-app-gallery.component.html',...
mukesh-openchannel/angular-template-libraries
src/app-overall-rating.stories.ts
import { moduleMetadata } from '@storybook/angular'; import { OcOverallRatingComponent } from '@openchannel/angular-common-components/src/lib/market-components'; import { OcCommonLibModule } from '@openchannel/angular-common-components/src/lib/common-components'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; ...
mukesh-openchannel/angular-template-libraries
src/file-uploader.stories.ts
<reponame>mukesh-openchannel/angular-template-libraries import { moduleMetadata, storiesOf } from '@storybook/angular'; import { withA11y } from '@storybook/addon-a11y'; import { OcFileUploadComponent, FileDetails, FileUploaderService } from '@openchannel/angular-common-components/src/lib/form-components'; import { act...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/model/utils.model.ts
<filename>projects/angular-common-components/src/lib/common-components/model/utils.model.ts import { AbstractControl, AbstractControlDirective, FormArray, FormGroup, NgModel } from '@angular/forms'; export function replaceHTMLTags(text: string): string { if (text && text.match(/<[^>]*>/g)) { const tmp = do...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/oc-label/oc-label.component.ts
<gh_stars>0 import { Component, Input } from '@angular/core'; /** * Label component. Represent label template with some variables. * * @example <oc-label [text]="`label`" [required]="true" [class]="`label`"> */ @Component({ selector: 'oc-label', templateUrl: './oc-label.component.html', styleUrls: ['./o...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/oc-form/oc-form-validator.ts
<gh_stars>0 import { AbstractControl, ValidatorFn } from '@angular/forms'; import { OcFieldType } from '../model/app-form-model'; import { TrimTextUtils } from '../service/trim-text-utils/trim-text.service'; import { AppTypeFieldModel } from '@openchannel/angular-common-components/src/lib/common-components'; export cl...
mukesh-openchannel/angular-template-libraries
src/login.stories.ts
<reponame>mukesh-openchannel/angular-template-libraries import { moduleMetadata } from '@storybook/angular'; import { OcCommonLibModule } from '@openchannel/angular-common-components/src/lib/common-components'; import { ComponentsUserLoginModel, OcLoginComponent } from '@openchannel/angular-common-components/src/lib/au...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/oc-multi-select-checkbox-list/oc-multi-select-checkbox-list.component.ts
<reponame>mukesh-openchannel/angular-template-libraries import { Component, EventEmitter, forwardRef, Input, OnInit, Output } from '@angular/core'; import { DropdownItem, DropdownItemType } from '../model/multi-select-checkbox.model'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; interface ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/auth-components/oc-activation/oc-activation.component.spec.ts
<filename>projects/angular-common-components/src/lib/auth-components/oc-activation/oc-activation.component.spec.ts<gh_stars>0 import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcActivationComponent } from './oc-activation.component'; import { FormsModule } from '@angular/forms';...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/management-components/models/menu-user-grid.model.ts
import { SortField } from '../oc-menu-user-grid/oc-menu-user-grid.component'; /** * Config for setting current sort icon direction (up or down). Used in {@link OcMenuUserGridComponent#sortOptions}. * * Values:<br> * -1 => sort icon to down.<br> * null => sort icon to down.<br> * 1 => sort icon to up.<br> *...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/oc-radio-button/oc-radio-button.component.spec.ts
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { OcRadioButtonComponent } from './oc-radio-button.component'; import { By } from '@angular/platform-browser'; import { TransformTextPipe } from '@openchannel/angular-common-components/src/lib/common-components'; describe('OcRadioButtonComponen...
mukesh-openchannel/angular-template-libraries
src/review-list.stories.ts
import { OcRatingComponent, OCReviewDetails, OcReviewListComponent, } from '@openchannel/angular-common-components/src/lib/market-components'; import { OcButtonComponent } from '@openchannel/angular-common-components/src/lib/common-components'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/model/social-link.model.ts
export class SocialLink { link: string; iconSrc: string; iconAlt: string; }
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/oc-sidebar/oc-sidebar.component.spec.ts
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing'; import { OcSidebarComponent } from './oc-sidebar.component'; import { Component, Input, SimpleChanges } from '@angular/core'; import { NgbCollapseModule } from '@ng-bootstrap/ng-bootstrap'; import { RouterTestingModule } from '@angular/ro...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/oc-multi-select-list/oc-multi-select-list.component.spec.ts
<reponame>mukesh-openchannel/angular-template-libraries<gh_stars>0 import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing'; import { OcMultiSelectListComponent } from './oc-multi-select-list.component'; import { DropboxMockComponent, TagElementMockComponent } from '@openchannel/angular-common-co...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/directive/heading-tag.directive.ts
import { Directive, ElementRef, Input, OnChanges, Renderer2, SimpleChanges } from '@angular/core'; import { HeadingTag } from '../model/heading-tag.interface'; @Directive({ selector: '[headingTag]', }) export class HeadingTagDirective implements OnChanges { @Input() headingTag: HeadingTag; @Input() set he...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/users.service.ts
import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { Page } from '../model/api/page.model'; import { HttpRequestService } from './http-request-services'; import { UserCompanyModel } from '../model/api/user.model'; import { OcHttpParams } from '../model/api/http-params-encoder-model'; ...
mukesh-openchannel/angular-template-libraries
src/rating.stories.ts
<filename>src/rating.stories.ts<gh_stars>0 import { moduleMetadata } from '@storybook/angular'; import { OcRatingComponent } from '@openchannel/angular-common-components/src/lib/market-components'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { AngularSvgIconModule } from 'angular-svg-icon'; import { ...
mukesh-openchannel/angular-template-libraries
src/grid-user.stories.ts
<filename>src/grid-user.stories.ts import { moduleMetadata } from '@storybook/angular'; import { OcMenuUserGridComponent, OcManagementComponentsModule, ComponentsUsersGridParametersModel, } from '@openchannel/angular-common-components/src/lib/management-components'; const modules = { imports: [OcManage...
mukesh-openchannel/angular-template-libraries
src/select-expandable.stories.ts
import { OcCommonLibModule, OcSelectExpandableComponent } from '@openchannel/angular-common-components/src/lib/common-components'; import { moduleMetadata } from '@storybook/angular'; /** List of module dependencies and component declarations. Stored as separate var because they are shared among all stories */ const m...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/model/api/user-activation-model.ts
export interface UserActivationModel { password: string; email: string; code: string; } export interface UserResetPassword { newPassword: string; code: string; }
mukesh-openchannel/angular-template-libraries
src/dropbox.stories.ts
import { moduleMetadata } from '@storybook/angular'; import { OcCommonLibModule } from '@openchannel/angular-common-components/src/lib/common-components'; import { OcDropboxComponent } from '@openchannel/angular-common-components'; const modules = { imports: [OcCommonLibModule], }; export default { title: 'Dr...
mukesh-openchannel/angular-template-libraries
src/radio-button.stories.ts
<reponame>mukesh-openchannel/angular-template-libraries import { moduleMetadata } from '@storybook/angular'; import { OcCommonLibModule, OcRadioButtonComponent } from '@openchannel/angular-common-components/src/lib/common-components'; const modules = { imports: [OcCommonLibModule], }; export default { title: ...
mukesh-openchannel/angular-template-libraries
src/title.stories.ts
<filename>src/title.stories.ts<gh_stars>0 import { moduleMetadata } from '@storybook/angular'; import { OcCommonLibModule, OcTitleComponent } from '@openchannel/angular-common-components/src/lib/common-components'; const modules = { imports: [OcCommonLibModule], }; export default { title: 'Title [BEM]', c...
mukesh-openchannel/angular-template-libraries
src/full-image-gallery-view-modal.stories.ts
import { moduleMetadata } from '@storybook/angular'; import { GalleryItem, OcCommonLibModule, OcFullImageGalleryViewModalComponent, } from '@openchannel/angular-common-components/src/lib/common-components'; import { CarouselModule } from 'ngx-owl-carousel-o'; import { BrowserAnimationsModule } from '@angula...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/oc-textarea/oc-textarea.component.spec.ts
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcTextareaComponent } from './oc-textarea.component'; import { FormsModule } from '@angular/forms'; describe('OcTextareaComponent', () => { let component: OcTextareaComponent; let fixture: ComponentFixture<OcTextareaComp...
mukesh-openchannel/angular-template-libraries
src/invite-user-modal.stories.ts
import { OcCommonLibModule, OcFormComponentsModule, OcInviteModalComponent } from '@openchannel/angular-common-components'; import { moduleMetadata } from '@storybook/angular'; import { of } from 'rxjs'; import { NgModule } from '@angular/core'; import { ERROR_MESSAGES_STORY_PROVIDER } from './utils.model'; const modu...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/auth-components/public-api.ts
export * from './oc-auth-components.module'; export * from './oc-signup/oc-signup.component'; export * from './oc-resend-activation/oc-resend-activation.component'; export * from './oc-activation/oc-activation.component'; export * from './oc-reset-password/oc-reset-password.component'; export * from './oc-login/oc-logi...
mukesh-openchannel/angular-template-libraries
src/input.stories.ts
import { moduleMetadata } from '@storybook/angular'; import { OcCheckboxComponent, OcCommonLibModule, OcInputComponent } from '@openchannel/angular-common-components/src/lib/common-components'; /** List of module dependencies and component declarations. Stored as separate var because they are shared among all stories ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/directive/ellipsis.directive.ts
<reponame>mukesh-openchannel/angular-template-libraries<filename>projects/angular-common-components/src/lib/common-components/directive/ellipsis.directive.ts import { AfterViewInit, Directive, ElementRef, HostBinding, HostListener, Inject, PLATFORM_ID } from '@angular/core'; import { isPlatformBrowser } from '@angular/...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/user-account-types.service.ts
import { Injectable } from '@angular/core'; import { HttpRequestService } from './http-request-services'; import { Observable } from 'rxjs'; import { Page } from '../model/api/page.model'; import { UserAccountTypeModel } from '../model/api/user-type.model'; import { OcHttpParams } from '../model/api/http-params-encoder...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/portal-components/models/oc-chart.model.ts
<filename>projects/angular-common-components/src/lib/portal-components/models/oc-chart.model.ts import { DropdownItemModel } from '@openchannel/angular-common-components/src/lib/common-components'; /** * Interface for the [Chart]{@link OcChartComponent} component. * Contains of chart layout type, chart data, chart f...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/oc-multi-select-list/oc-multi-select-list.component.ts
import { Component, forwardRef, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { difference } from 'lodash'; /** * Multi select list component. Represent input for search tags by name and tags list. * * @example <oc-mu...
mukesh-openchannel/angular-template-libraries
src/utils.model.ts
import { Provider } from '@angular/core'; import { AbstractErrorMessageConfiguration, DefaultErrorMessageConfiguration, } from '@openchannel/angular-common-components/src/lib/common-components'; // --- providers --- export const ERROR_MESSAGES_STORY_PROVIDER: Provider = { provide: AbstractErrorMessageConfi...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/config.service.ts
<filename>projects/angular-common-services/src/lib/service/config.service.ts<gh_stars>0 import { Injectable } from '@angular/core'; import { HttpRequestService } from './http-request-services'; import { BehaviorSubject, Observable } from 'rxjs'; import { tap } from 'rxjs/operators'; import { OcApiPaths } from '../oc-ng...
mukesh-openchannel/angular-template-libraries
src/recommended-apps.stories.ts
import { moduleMetadata } from '@storybook/angular'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { OcMarketComponentsModule, OcRecommendedAppsComponent } from '@openchannel/angular-common-components/src/lib/market-...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/oc-profile-navbar/oc-profile-navbar.component.spec.ts
import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; import { OcProfileNavbarComponent } from './oc-profile-navbar.component'; import {By} from '@angular/platform-browser'; describe('OcProfileNavbarComponent', () => { let component: OcProfileNavbarComponent; let fixture: ComponentFixture...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/market-components/oc-app-description/oc-app-description.component.spec.ts
<reponame>mukesh-openchannel/angular-template-libraries import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcAppDescriptionComponent } from './oc-app-description.component'; import { FormsModule } from '@angular/forms'; import { OcCommonLibModule } from '../../common-components/'...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/market-components/oc-recommended-apps/oc-recommended-apps.component.ts
<reponame>mukesh-openchannel/angular-template-libraries import { Component, EventEmitter, Input, Output, TemplateRef } from '@angular/core'; import { FullAppData, HeadingTag } from '@openchannel/angular-common-components/src/lib/common-components'; import { get } from 'lodash'; /** * Recommended apps component. Rende...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/oc-additional-select/oc-additional-select.component.ts
<reponame>mukesh-openchannel/angular-template-libraries<filename>projects/angular-common-components/src/lib/form-components/oc-additional-select/oc-additional-select.component.ts import { Component, Input, OnDestroy, OnInit } from '@angular/core'; import { AppFormField, DropdownAdditionalField } from '../model/app-form...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/oc-tooltip-label/oc-tooltip-label.component.ts
import { Component, Input } from '@angular/core'; type TooltipPlacement = | 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'left-top' | 'left-bottom' | 'right-top' | 'right-bottom'; export type TooltipPlace...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/oc-full-image-gallery-view-modal/oc-full-image-gallery-view-modal.component.spec.ts
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { OcFullImageGalleryViewModalComponent } from './oc-full-image-gallery-view-modal.component'; import { MockSvgIconComponent, MockVideoComponent } from '@openchannel/angular-common-components/src/mock/mock'; import { NgbActiveModal } from '@ng-bo...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/model/oc-sidebar-model.ts
import { SidebarValue } from './components-basic.model'; export class OcSidebarSelectModel { parent: SidebarValue; child: SidebarValue; }
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/authentication.service.ts
import { Injectable } from '@angular/core'; import { HttpRequestService } from './http-request-services'; import { Observable, of, throwError } from 'rxjs'; import { LoginRequest, LoginResponse, RefreshTokenRequest } from '../model/api/login.model'; import { AuthHolderService } from './auth-holder.service'; import { ca...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/auth-components/utils/type-mapper.util.ts
<filename>projects/angular-common-components/src/lib/auth-components/utils/type-mapper.util.ts import { cloneDeep, each, forIn, get, map, set } from 'lodash'; import { OptionValue, TypeFieldModel, TypeModel } from '../models/oc-type-definition.model'; export class TypeMapperUtils { /** * Inject default value ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/management-components/public-api.ts
export * from './oc-management-components.module'; export * from './oc-menu-user-grid/oc-menu-user-grid.component'; export * from './oc-invite-modal/oc-invite-modal.component'; /** Models */ export * from './models/oc-modal.model'; export * from './models/user-data.model'; export * from './models/menu-user-grid.model'...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/oc-datetime-picker/oc-datetime-picker.component.spec.ts
<reponame>mukesh-openchannel/angular-template-libraries import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcDatetimePickerComponent } from './oc-datetime-picker.component'; import { FormsModule } from '@angular/forms'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; impo...
mukesh-openchannel/angular-template-libraries
src/radio-button-list.stories.ts
import { moduleMetadata } from '@storybook/angular'; import { OcFormComponentsModule, OcRadioButtonListComponent } from '@openchannel/angular-common-components/src/lib/form-components'; const modules = { imports: [OcFormComponentsModule], }; export default { title: 'Radio Button List [BEM]', component: Oc...
mukesh-openchannel/angular-template-libraries
src/tags.stories.ts
<filename>src/tags.stories.ts import { moduleMetadata } from '@storybook/angular'; import { OcCommonLibModule } from '@openchannel/angular-common-components/src/lib/common-components'; import { OcTagsComponent } from '@openchannel/angular-common-components/src/lib/form-components'; const modules = { imports: [OcCo...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/http-request-services.ts
import { HttpClient, HttpErrorResponse, HttpHeaders } from '@angular/common/http'; import { Inject, Injectable } from '@angular/core'; import { Observable, throwError } from 'rxjs'; import { catchError, mergeMap } from 'rxjs/operators'; import { API_URL, OcApiPaths } from '../oc-ng-common-service.module'; /** * Descr...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/oc-file-upload/oc-file-upload.component.ts
<gh_stars>0 import { Component, ElementRef, EventEmitter, forwardRef, Input, OnDestroy, OnInit, Output, ViewChild } from '@angular/core'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { base64ToFile, ImageCroppedEvent, ImageTransform } from 'ngx-image-cropper'; import { HttpEventType, HttpResponse } fro...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/pipe/price.pipe.ts
import { Pipe, PipeTransform } from '@angular/core'; import { AppModel } from '../model/app-data.model'; @Pipe({ name: 'price', }) export class PricePipe implements PipeTransform { private isoCurrencyCode = { USD: '$', EUR: '€', CNY: '¥', GBP: '£', }; transform(model: A...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/app-categories/models/app-category-model.ts
/** * Class consist of necessary fields: * ``` typescript * { * categoryName: string; * categoryQuery: any; * } * ``` * And not required fields: * ``` typescript * { * categoryCardClass: string; * categoryLogo: string; * categoryBackgroundImage: string; * categoryTitleColor: string; * } * ``` */...
mukesh-openchannel/angular-template-libraries
src/dropdown-multi-app.stories.ts
import { OcFormComponentsModule } from '@openchannel/angular-common-components/src/lib/form-components'; import { moduleMetadata } from '@storybook/angular'; import { OcDropdownMultiAppComponent } from '@openchannel/angular-common-components/src/lib/form-components/oc-dropdown-multi-app/oc-dropdown-multi-app.component'...
mukesh-openchannel/angular-template-libraries
src/button.stories.ts
<filename>src/button.stories.ts<gh_stars>0 import { moduleMetadata } from '@storybook/angular'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { OcButtonComponent, OcCommonLibModule } from '@openchannel/angular-common-components/src/lib/common-components'; const modules = { ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/oc-dropbox/oc-dropbox.component.ts
import { Component, ElementRef, EventEmitter, forwardRef, Input, OnInit, Output, TemplateRef, ViewChild } from '@angular/core'; import { NgbTypeaheadSelectItemEvent } from '@ng-bootstrap/ng-bootstrap'; import { Observable, of, Subject } from 'rxjs'; import { map, mergeAll } from 'rxjs/operators'; import { ControlValueA...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/directive/autofocus.directive.ts
<reponame>mukesh-openchannel/angular-template-libraries import { Directive, ElementRef, Input, OnInit } from '@angular/core'; @Directive({ selector: '[ocAutofocus]', }) export class AutofocusDirective implements OnInit { @Input() ocAutofocus = false; constructor(private elementRef: ElementRef) {} ngO...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/market-components/oc-market-components.module.ts
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { OcAppCardComponent } from './oc-app-card/oc-app-card.component'; import { OcAppDescriptionComponent } from './oc-app-description/oc-app-description.component'; import { OcAppGalleryComponent } from './oc-app-gallery/oc-ap...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/portal-components/models/app-listing.model.ts
<reponame>mukesh-openchannel/angular-template-libraries import { ComponentsPage, FullAppData } from '@openchannel/angular-common-components/src/lib/common-components'; import { TemplateRef } from '@angular/core'; /** Default column IDs. */ export type ModifyColumnId = | 'left-placeholder' | 'name' | 'summa...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/management-components/models/user-data.model.ts
import { ComponentsPage } from '@openchannel/angular-common-components/src/lib/common-components'; export interface ComponentsUser { userId: string; name: string; email: string; customData: any; created: number; type?: string; roles?: string[]; permissions?: string[]; } export interfac...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/oc-select-expandable/oc-select-expandable.component.ts
<gh_stars>0 import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { SelectModel } from '../model/components-basic.model'; @Component({ selector: 'oc-select-expandable', templateUrl: './oc-select-expandable.component.html', styleUrls: ['./oc-select-expandable.component.css']...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/market-components/models/overall-rating-summary-model.ts
<filename>projects/angular-common-components/src/lib/market-components/models/overall-rating-summary-model.ts export class OverallRatingSummary { rating = 0; reviewCount = 0; 1 = 0; 2 = 0; 3 = 0; 4 = 0; 5 = 0; constructor(rating?: number, reviewCount?: number) { this.rating = ra...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/portal-components/oc-portal-components.module.ts
<filename>projects/angular-common-components/src/lib/portal-components/oc-portal-components.module.ts import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { OcChartComponent } from './oc-chart/oc-chart.component'; import { OcAppTableComponent, OcAppTableCellPattern } from './...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/prerender-requests-watcher.service.ts
<reponame>mukesh-openchannel/angular-template-libraries<gh_stars>0 import { Injectable } from '@angular/core'; import { Observable, of, throwError } from 'rxjs'; import { catchError, delay, filter, finalize, tap } from 'rxjs/operators'; import { HttpEvent, HttpResponse, HttpResponseBase } from '@angular/common/http'; ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/transactions.service.ts
import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { HttpRequestService } from './http-request-services'; import { OcApiPaths } from '../oc-ng-common-service.module'; import { Page } from '../model/api/page.model'; import { Transaction } from '../model/api/transaction.model'; import {...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/app-categories/oc-app-categories/oc-app-categories.component.ts
import { Component, Input, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { CarouselComponent, OwlOptions } from 'ngx-owl-carousel-o'; import { AppCategoryDetail } from '../models/app-category-model'; @Component({ selector: 'oc-app-categories', templateUrl: './oc-app-categor...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/model/api/user.model.ts
<gh_stars>0 import { Page } from './page.model'; import { OwnershipModelResponse } from './ownership.model'; export interface User { userId: string; name: string; email: string; customData: any; created: number; type?: string; roles?: string[]; permissions?: string[]; } export interfac...
mukesh-openchannel/angular-template-libraries
src/image-gallery.stories.ts
import { moduleMetadata } from '@storybook/angular'; import { OcImageGalleryComponent } from '@openchannel/angular-common-components/src/lib/market-components'; import { GalleryItem, OcCommonLibModule } from '@openchannel/angular-common-components/src/lib/common-components'; import { CarouselModule } from 'ngx-owl-caro...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/app-categories/oc-app-categories/oc-app-categories.component.spec.ts
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcAppCategoriesComponent } from './oc-app-categories.component'; import { By } from '@angular/platform-browser'; import { CarouselModule } from 'ngx-owl-carousel-o'; import { RouterTestingModule } from '@angular/router/testing'; i...
mukesh-openchannel/angular-template-libraries
src/content-modal.stories.ts
import { moduleMetadata } from '@storybook/angular'; import { OcCommonLibModule, OcContentModalComponent } from '@openchannel/angular-common-components/src/lib/common-components'; const modules = { imports: [OcCommonLibModule], }; export default { title: 'Content modal [BEM]', component: OcContentModalCom...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/pipe/get-text-by-path.pipe.ts
<filename>projects/angular-common-components/src/lib/common-components/pipe/get-text-by-path.pipe.ts import { Pipe, PipeTransform } from '@angular/core'; import { get } from 'lodash'; import { replaceHTMLTags } from '../model/utils.model'; /** * Select text value from object by path. * @example without default value...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/oc-dropdown-form/oc-dropdown-form.component.spec.ts
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { OcDropdownFormComponent } from './oc-dropdown-form.component'; import { MockFormComponent } from '@openchannel/angular-common-components/src/mock/mock'; describe('OcDropdownFormComponent', () => { let component: OcDropdownFormComponent; ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/market-components/oc-review/oc-review.component.ts
<filename>projects/angular-common-components/src/lib/market-components/oc-review/oc-review.component.ts import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { Review } from '../models/oc-review-details-mode...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/model/api/type-model.ts
export interface TypeModel<T extends TypeFieldModel> { fields?: T[]; } export interface TypeFieldModel { id: string; type: string; label?: string; defaultValue?: any; attributes?: any; options?: OptionValue[] | string[]; fields?: TypeFieldModel[]; } export interface OptionValue { v...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/model/api/stripe.model.ts
export interface StripeAccount { stripeId: string; accountName: string; country: string; defaultCurrency: string; } export interface ChangeableCreditCardFields { isDefault: boolean; address_city?: string; address_country?: string; address_line1?: string; address_line2?: string; ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/oc-social-links/oc-social-links.component.ts
import { Component, Input } from '@angular/core'; import { SocialLink } from '../model/social-link.model'; @Component({ selector: 'oc-social-links', templateUrl: './oc-social-links.component.html', styleUrls: ['./oc-social-links.component.css'], }) export class OcSocialLinksComponent { /** data passed ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/auth-components/oc-edit-user-form/oc-edit-user-form.component.ts
import { Component, EventEmitter, Input, OnInit, Output, TemplateRef } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; import { OcCheckboxData, OcEditUserFormConfig, OcEditUserResult, OCOrganization } from '../models/oc-edit-user-form.model'; import { TypeMergeUtils } from '.....
mukesh-openchannel/angular-template-libraries
src/form-modal.stories.ts
import { FileDetails, OcFormComponentsModule, OcFormModalComponent, FileUploaderService, } from '@openchannel/angular-common-components/src/lib/form-components'; import { moduleMetadata } from '@storybook/angular'; import { Observable, of } from 'rxjs'; import { EmbedVideoService } from 'ngx-embed-video...
mukesh-openchannel/angular-template-libraries
src/featured.stories.ts
import { moduleMetadata } from '@storybook/angular'; import { OcCommonLibModule, FullAppData, StatElement } from '@openchannel/angular-common-components/src/lib/common-components'; import { OcFeaturedAppsComponent } from '@openchannel/angular-common-components/src/lib/market-components'; import { BrowserAnimationsModul...