A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/signumsoftware/framework/commit/8057968f8f7b5aed429487364cb83c1f5be21937 below:

rename ValueSearchControl -> SearchValue · signumsoftware/framework@8057968 · GitHub

File tree Expand file treeCollapse file tree 40 files changed

+697

-679

lines changed

Filter options

Expand file treeCollapse file tree 40 files changed

+697

-679

lines changed Original file line number Diff line number Diff line change

@@ -392,7 +392,7 @@ protected virtual string WriteEntityComponentFile(Type type)

392 392

sb.AppendLine("import * as React from 'react'");

393 393

sb.AppendLine("import { " + type.Name + " } from '../" + type.Namespace + "'");

394 394

sb.AppendLine("import { TypeContext, ValueLine, EntityLine, EntityCombo, EntityList, EntityDetail, EntityStrip, EntityRepeater, EntityTable, FormGroup } from '@framework/Lines'");

395 -

sb.AppendLine("import { SearchControl, ValueSearchControl, FilterOperation, OrderType, PaginationMode } from '@framework/Search'");

395 +

sb.AppendLine("import { SearchControl, SearchValue, FilterOperation, OrderType, PaginationMode } from '@framework/Search'");

396 396 397 397

var v = GetVarName(type);

398 398 Original file line number Diff line number Diff line change

@@ -285,13 +285,13 @@ public static SearchControlProxy GetSearchControl(this ILineContainer lineContai

285 285

return new SearchControlProxy(element);

286 286

}

287 287 288 -

public static ValueSearchControlLineProxy GetValueSearchControlLine(this ILineContainer lineContainer, object queryName)

288 +

public static SearchValueLineProxy GetSearchValueLine(this ILineContainer lineContainer, object queryName)

289 289

{

290 290

string queryKey = QueryUtils.GetKey(queryName);

291 291 292 292

var element = lineContainer.Element.WaitElementVisible(By.CssSelector("[data-value-query-key={0}]".FormatWith(queryKey)));

293 293 294 -

return new ValueSearchControlLineProxy(element);

294 +

return new SearchValueLineProxy(element);

295 295

}

296 296

}

297 297 Original file line number Diff line number Diff line change

@@ -4,13 +4,13 @@

4 4 5 5

namespace Signum.React.Extensions.Selenium.Search;

6 6 7 -

public class ValueSearchControlLineProxy

7 +

public class SearchValueLineProxy

8 8

{

9 9

public WebDriver Selenium { get; private set; }

10 10 11 11

public IWebElement Element { get; private set; }

12 12 13 -

public ValueSearchControlLineProxy(IWebElement element)

13 +

public SearchValueLineProxy(IWebElement element)

14 14

{

15 15

this.Selenium = element.GetDriver();

16 16

this.Element = element;

Original file line number Diff line number Diff line change

@@ -4,7 +4,7 @@ import { EntityCheckboxList, ValueLine } from '@framework/Lines'

4 4

import { TypeContext } from '@framework/TypeContext'

5 5

import { AlertEntity, AlertState, AlertTypeSymbol, SendNotificationEmailTaskEntity } from '../Signum.Entities.Alerts'

6 6

import { useForceUpdate } from '../../../Signum.React/Scripts/Hooks';

7 -

import { ValueSearchControlLine } from '../../../Signum.React/Scripts/Search';

7 +

import { SearchValueLine } from '../../../Signum.React/Scripts/Search';

8 8

import { toLite } from '@framework/Signum.Entities'

9 9 10 10

export default function SendNotificationEmailTask(p: { ctx: TypeContext<SendNotificationEmailTaskEntity> }) {

@@ -17,7 +17,7 @@ export default function SendNotificationEmailTask(p: { ctx: TypeContext<SendNoti

17 17

<ValueLine ctx={ctx.subCtx(n => n.ignoreNotificationsOlderThan)} labelColumns={4} onChange={forceUpdate} valueColumns={2}/>

18 18

<ValueLine ctx={ctx.subCtx(n => n.sendBehavior)} labelColumns={4} onChange={forceUpdate} />

19 19

{(ctx.value.sendBehavior == "Exclude" || ctx.value.sendBehavior == "Include") && < EntityCheckboxList ctx={ctx.subCtx(n => n.alertTypes)} columnCount={1} onChange={forceUpdate}/>}

20 -

<ValueSearchControlLine ctx={ctx} findOptions={{

20 +

<SearchValueLine ctx={ctx} findOptions={{

21 21

queryName: AlertEntity,

22 22

filterOptions: [

23 23

{ token: AlertEntity.token(a => a.entity.state), value: AlertState.value("Saved") },

Original file line number Diff line number Diff line change

@@ -3,14 +3,14 @@ import { EntityLine, EntityTable, ValueLine } from '@framework/Lines'

3 3

import { TypeContext } from '@framework/TypeContext'

4 4

import { useForceUpdate } from '@framework/Hooks';

5 5

import { ADGroupEntity, UserADQuery } from '../Signum.Entities.Authorization';

6 -

import { ValueSearchControlLine } from '@framework/Search';

6 +

import { SearchValueLine } from '@framework/Search';

7 7 8 8

export default function ADGroup(p: { ctx: TypeContext<ADGroupEntity> }) {

9 9

const ctx = p.ctx;

10 10

return (

11 11

<div>

12 12

<ValueLine ctx={ctx.subCtx(n => n.displayName)} />

13 -

<ValueSearchControlLine ctx={ctx} findOptions={{ queryName: UserADQuery.ActiveDirectoryUsers, filterOptions: [{ token: "InGroup", value: ctx.value }] }} />

13 +

<SearchValueLine ctx={ctx} findOptions={{ queryName: UserADQuery.ActiveDirectoryUsers, filterOptions: [{ token: "InGroup", value: ctx.value }] }} />

14 14

</div>

15 15

);

16 16

}

Original file line number Diff line number Diff line change

@@ -2,7 +2,7 @@ import * as React from 'react'

2 2

import { RoleEntity, AuthAdminMessage, UserEntity } from '../Signum.Entities.Authorization'

3 3

import { ValueLine, EntityStrip, TypeContext } from '@framework/Lines'

4 4

import { useForceUpdate } from '@framework/Hooks'

5 -

import { ValueSearchControlLine } from '@framework/Search';

5 +

import { SearchValue, SearchValueLine } from '@framework/Search';

6 6 7 7

export default function Role(p : { ctx: TypeContext<RoleEntity> }){

8 8

const forceUpdate = useForceUpdate();

@@ -25,12 +25,12 @@ export default function Role(p : { ctx: TypeContext<RoleEntity> }){

25 25

}}

26 26

onChange={() => forceUpdate()} />

27 27 28 -

{!ctx.value.isNew && <ValueSearchControlLine ctx={ctx} findOptions={{

28 +

{!ctx.value.isNew && <SearchValueLine ctx={ctx} findOptions={{

29 29

queryName: UserEntity,

30 30

filterOptions: [{ token: UserEntity.token(u => u.entity.role), value: ctx.value }]

31 31

}} />

32 32

}

33 -

{!ctx.value.isNew && <ValueSearchControlLine ctx={ctx} findOptions={{

33 +

{!ctx.value.isNew && <SearchValueLine ctx={ctx} findOptions={{

34 34

queryName: RoleEntity,

35 35

filterOptions: [{ token: RoleEntity.token(a => a.entity).append(u => u.roles).any(), value: ctx.value }]

36 36

}} />

Original file line number Diff line number Diff line change

@@ -13,7 +13,7 @@ import { ColorTypeaheadLine } from "../../Basics/Templates/ColorTypeahead";

13 13

import "../Dashboard.css"

14 14

import { getToString, toLite } from '@framework/Signum.Entities';

15 15

import { useForceUpdate } from '@framework/Hooks'

16 -

import { ValueSearchControlLine } from '../../../Signum.React/Scripts/Search';

16 +

import { SearchValueLine } from '../../../Signum.React/Scripts/Search';

17 17

import { withClassName } from '../../Dynamic/View/HtmlAttributesExpression';

18 18

import { classes } from '../../../Signum.React/Scripts/Globals';

19 19

import { OperationButton } from '../../../Signum.React/Scripts/Operations/EntityOperations';

@@ -162,7 +162,7 @@ export default function Dashboard(p: { ctx: TypeContext<DashboardEntity> }) {

162 162

<ValueLine ctx={ectx.subCtx(cp => cp.autoRegenerateWhenOlderThan)} />

163 163

</div>

164 164

<div className="col-sm-2">

165 -

{!ctx.value.isNew && <ValueSearchControlLine ctx={ectx} findOptions={{ queryName: CachedQueryEntity, filterOptions: [{ token: CachedQueryEntity.token(a => a.dashboard), value: ctxBasic.value }] }} />}

165 +

{!ctx.value.isNew && <SearchValueLine ctx={ectx} findOptions={{ queryName: CachedQueryEntity, filterOptions: [{ token: CachedQueryEntity.token(a => a.dashboard), value: ctxBasic.value }] }} />}

166 166

</div>

167 167

<div className="col-sm-3 pt-4">

168 168

{!ctx.value.isNew && <OperationButton eoc={EntityOperationContext.fromTypeContext(ctx, DashboardOperation.RegenerateCachedQueries)} hideOnCanExecute className="w-100" />}

Original file line number Diff line number Diff line change

@@ -4,7 +4,7 @@ import { ValueLine, EntityRepeater, EntityTable } from '@framework/Lines'

4 4

import { TypeContext } from '@framework/TypeContext'

5 5

import { LinkListPartEntity, LinkElementEmbedded } from '../Signum.Entities.Dashboard'

6 6 7 -

export default function ValueSearchControlPart(p : { ctx: TypeContext<LinkListPartEntity> }){

7 +

export default function SearchValuePart(p : { ctx: TypeContext<LinkListPartEntity> }){

8 8

const ctx = p.ctx.subCtx({ formGroupStyle: "SrOnly", placeholderLabels: true });

9 9 10 10

return (

Original file line number Diff line number Diff line change

@@ -3,7 +3,7 @@ import * as React from 'react'

3 3

import { FindOptions } from '@framework/FindOptions'

4 4

import { getQueryKey, getQueryNiceName, getTypeInfos } from '@framework/Reflection'

5 5

import { Entity, Lite, is, JavascriptMessage, toLite, liteKey } from '@framework/Signum.Entities'

6 -

import { SearchControl, ValueSearchControl, ValueSearchControlController } from '@framework/Search'

6 +

import { SearchControl, SearchValue, SearchValueController } from '@framework/Search'

7 7

import * as UserQueryClient from '../../UserQueries/UserQueryClient'

8 8

import { UserQueryPartEntity, PanelPartEmbedded } from '../Signum.Entities.Dashboard'

9 9

import { classes, getColorContrasColorBWByHex, softCast } from '@framework/Globals';

@@ -142,7 +142,7 @@ interface BigValueBadgeProps {

142 142 143 143

export function BigValueSearchCounter(p: BigValueBadgeProps) {

144 144 145 -

const vsc = React.useRef<ValueSearchControlController>(null);

145 +

const vsc = React.useRef<SearchValueController>(null);

146 146 147 147

return (

148 148

<div className={classes(

@@ -158,7 +158,7 @@ export function BigValueSearchCounter(p: BigValueBadgeProps) {

158 158

</div>

159 159

<div className={classes("col-9 flip", "text-end")}>

160 160

<h1>

161 -

<ValueSearchControl ref={vsc} findOptions={p.findOptions} isLink={false} isBadge={false} deps={p.deps}

161 +

<SearchValue ref={vsc} findOptions={p.findOptions} isLink={false} isBadge={false} deps={p.deps}

162 162

customRequest={p.cachedQuery && ((req, fop, token) => p.cachedQuery!.then(cq => executeQueryValueCached(req, fop, token, cq)))}

163 163

/>

164 164

</h1>

Original file line number Diff line number Diff line change

@@ -4,7 +4,7 @@ import { FindOptions } from '@framework/FindOptions'

4 4

import * as Finder from '@framework/Finder'

5 5

import { getQueryNiceName, getTypeInfos } from '@framework/Reflection'

6 6

import { Entity, Lite, is, JavascriptMessage } from '@framework/Signum.Entities'

7 -

import { SearchControl, ValueSearchControl } from '@framework/Search'

7 +

import { SearchControl, SearchValue } from '@framework/Search'

8 8

import * as UserQueryClient from '../../UserQueries/UserQueryClient'

9 9

import { UserTreePartEntity } from '../Signum.Entities.Dashboard'

10 10

import { classes } from '@framework/Globals';

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4