Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update directory name from forms to fields #205

Merged
merged 2 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This document is a guide to help you get started adding a new component to the W
* **index.ts**: a TypeScript file for the component's code
* **_component-name-styles.ts_**: a Typescript file that returns a lit-element construct for the \<style> block added into the component's rendering. (subject to change)

* **components/forms**: this directory is used for components that are typically placed in the context of a form. For example: TextInput, Dropdown
* **components/fields**: this directory is used for components that are typically placed in the context of a form. For example: TextInput, Dropdown

* **components/templates**: this directory is used for components that represent templates used by Views and Pages in the application. For example: CaseView, OneColumn, TwoColumn

Expand Down
40 changes: 20 additions & 20 deletions src/components/Region/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@ import '../widgets/CaseHistory';
import '../widgets/FileUtility';
import '../ToDo';
import '../Pulse';
import '../forms/AutoComplete';
import '../forms/Checkbox';
import '../forms/Currency';
import '../forms/Date';
import '../forms/DateTime';
import '../forms/Decimal';
import '../forms/Dropdown';
import '../forms/Email';
import '../forms/FormattedText';
import '../forms/Integer';
import '../forms/Percentage';
import '../forms/Phone';
import '../forms/RadioButtons';
import '../forms/Text';
import '../forms/TextArea';
import '../forms/TextContent';
import '../forms/TextInput';
import '../forms/Time';
import '../forms/URL';
import '../forms/UserReference';
import '../fields/AutoComplete';
import '../fields/Checkbox';
import '../fields/Currency';
import '../fields/Date';
import '../fields/DateTime';
import '../fields/Decimal';
import '../fields/Dropdown';
import '../fields/Email';
import '../fields/FormattedText';
import '../fields/Integer';
import '../fields/Percentage';
import '../fields/Phone';
import '../fields/RadioButtons';
import '../fields/Text';
import '../fields/TextArea';
import '../fields/TextContent';
import '../fields/TextInput';
import '../fields/Time';
import '../fields/URL';
import '../fields/UserReference';
import '../templates/details/Details';
import '../templates/details/DetailsTwoColumn';
import '../Attachment';
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { html, nothing } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { BridgeBase } from '../../../bridge/BridgeBase';
import { Utils } from '../../../helpers/utils';
import { format } from '../../../helpers/formatters/';
import { format } from '../../../helpers/formatters';

// NOTE: you need to import ANY component you may render.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { html, nothing } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { BridgeBase } from '../../../bridge/BridgeBase';
import { Utils } from '../../../helpers/utils';
import { format } from '../../../helpers/formatters/';
import { format } from '../../../helpers/formatters';
import type { PConnFieldProps } from '../../../types/PConnProps.interface';

// NOTE: you need to import ANY component you may render.
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/components/templates/DataReference/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { customElement, property } from 'lit/decorators.js';
import { BridgeBase } from '../../../bridge/BridgeBase';
// NOTE: you need to import ANY component you may render.
import '../SimpleTableSelect';
import '../../forms/Dropdown';
import '../../fields/Dropdown';
import '../MultiReferenceReadonly';
import '../SingleReferenceReadonly';
import '../../forms/SemanticLink';
import '../../fields/SemanticLink';

const SELECTION_MODE = { SINGLE: 'single', MULTI: 'multi' };

Expand Down
2 changes: 1 addition & 1 deletion src/components/templates/SingleReferenceReadonly/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { BridgeBase } from '../../../bridge/BridgeBase';
// NOTE: you need to import ANY component you may render.

// import the component's styles as HTML with <style>
import '../../../components/forms/SemanticLink';
import '../../../components/fields/SemanticLink';

// Declare that PCore will be defined when this code is run

Expand Down
Loading