Skip to content

Commit

Permalink
Unified naming
Browse files Browse the repository at this point in the history
  • Loading branch information
cuioss committed Mar 31, 2024
1 parent 67e83ea commit 79069a9
Show file tree
Hide file tree
Showing 9 changed files with 375 additions and 370 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4334,6 +4334,7 @@
<tag-name>editableDataList</tag-name>
<component>
<resource-id>cui-bootstrap-composite/editableDataList.xhtml</resource-id>
<component-type>de.cuioss.cui.bootstrap.editableDataList</component-type>
</component>
<attribute>
<description><![CDATA[The model for interacting with the data list.
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,79 +1,79 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:composite="http://xmlns.jcp.org/jsf/composite"
xmlns:p="http://primefaces.org/ui"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:cui-boot="https://cuioss.de/jsf/bootstrap"
xmlns:cui-internal="https://cuioss.de/jsf/internal">
xmlns:composite="http://xmlns.jcp.org/jsf/composite"
xmlns:p="http://primefaces.org/ui"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:boot="https://cuioss.de/jsf/bootstrap"
xmlns:cui-internal="https://cuioss.de/jsf/internal">

<!-- INTERFACE -->
<composite:interface
shortDescription="Renders a text input to be used for filtering the result. See taglib for more details.">
<composite:attribute name="styleClass" type="java.lang.String"
required="false"
shortDescription="Additional css-classes to be applied to the list." />
required="false"
shortDescription="Additional css-classes to be applied to the list."/>
<composite:attribute name="style" type="java.lang.String"
required="false"
shortDescription="Additional style-attribute to be applied to the list." />
required="false"
shortDescription="Additional style-attribute to be applied to the list."/>
<composite:attribute name="searchAction" required="true"
shortDescription="ActionListener method to be invoked on change of text input."
method-signature="void action()" />
shortDescription="ActionListener method to be invoked on change of text input."
method-signature="void action()"/>
<composite:attribute name="clearFilterAction" required="false"
shortDescription="ActionListener method to be invoked on click of reset filter."
method-signature="void clearFilter()" />
shortDescription="ActionListener method to be invoked on click of reset filter."
method-signature="void clearFilter()"/>
<composite:attribute name="value" type="java.lang.String"
required="true" shortDescription="To store the filter text." />
required="true" shortDescription="To store the filter text."/>
<composite:attribute name="update" type="java.lang.String"
required="true"
shortDescription="The id of the lazy loading content." />
required="true"
shortDescription="The id of the lazy loading content."/>
<composite:attribute name="labelKey" type="java.lang.String"
required="false"
shortDescription="The key of the filter input label." />
required="false"
shortDescription="The key of the filter input label."/>
<composite:attribute name="labelValue" type="java.io.Serializable"
required="false"
shortDescription="The value of the filter input label." />
required="false"
shortDescription="The value of the filter input label."/>
<composite:attribute name="placeholderKey" type="java.lang.String"
required="false" default="cc.textfilter.input.placeholder"
shortDescription="The key of the filter input placeholder." />
required="false" default="cc.textfilter.input.placeholder"
shortDescription="The key of the filter input placeholder."/>
<composite:attribute name="placeholderValue"
type="java.io.Serializable" required="false"
shortDescription="The value of the filter input placeholder." />
type="java.io.Serializable" required="false"
shortDescription="The value of the filter input placeholder."/>
<composite:attribute name="layoutMode" type="java.lang.String"
required="false" default="plain"
shortDescription="The default mode for the labeledContainer." />
required="false" default="plain"
shortDescription="The default mode for the labeledContainer."/>
</composite:interface>

<!-- IMPLEMENTATION -->
<composite:implementation>
<cui-boot:labeledContainer placeholderKey="#{cc.attrs.placeholderKey}"
placeholderValue="#{cc.attrs.placeholderValue}"
labelKey="#{cc.attrs.labelKey}"
labelValue="#{cc.attrs.labelValue}"
layoutMode="#{cc.attrs.layoutMode}" id="filter"
styleClass="#{cc.attrs.styleClass}" style="#{cc.attrs.style}">
<boot:labeledContainer placeholderKey="#{cc.attrs.placeholderKey}"
placeholderValue="#{cc.attrs.placeholderValue}"
labelKey="#{cc.attrs.labelKey}"
labelValue="#{cc.attrs.labelValue}"
layoutMode="#{cc.attrs.layoutMode}" id="filter"
styleClass="#{cc.attrs.styleClass}" style="#{cc.attrs.style}">
<h:inputText id="input"
styleClass="inputBlockSelector form-control"
autocomplete="off" value="#{cc.attrs.value}">
styleClass="inputBlockSelector form-control"
autocomplete="off" value="#{cc.attrs.value}">
<cui-internal:typewatch wait="800" captureLength="1"
listener="#{cc.attrs.searchAction}" process="@this"
update="#{cc.attrs.update}" />
listener="#{cc.attrs.searchAction}" process="@this"
update="#{cc.attrs.update}"/>
</h:inputText>
<f:facet name="append">
<cui-boot:commandButton id="resetFilter" icon="cui-icon-remove_2"
titleKey="cc.textfilter.input.clear" immediate="true"
rendered="#{not empty cc.attrs.clearFilterAction}"
actionListener="#{cc.attrs.clearFilterAction}">
<boot:commandButton id="resetFilter" icon="cui-icon-remove_2"
titleKey="cc.textfilter.input.clear" immediate="true"
rendered="#{not empty cc.attrs.clearFilterAction}"
actionListener="#{cc.attrs.clearFilterAction}">
<p:ajax update="@composite:filter"
oncomplete="jQuery('.hidden-command-button').click();" />
</cui-boot:commandButton>
oncomplete="jQuery('.hidden-command-button').click();"/>
</boot:commandButton>
</f:facet>
</cui-boot:labeledContainer>
</boot:labeledContainer>
<p:commandLink actionListener="#{cc.attrs.searchAction}"
style="display:none" id="submitButton"
styleClass="hidden-command-button" update="#{cc.attrs.update}"
process="@this @composite:filter" />
<p:defaultCommand target="submitButton" />
<p:focus context="@component:filter" for="@composite:filter:input" />
style="display:none" id="submitButton"
styleClass="hidden-command-button" update="#{cc.attrs.update}"
process="@this @composite:filter"/>
<p:defaultCommand target="submitButton"/>
<p:focus context="@component:filter" for="@composite:filter:input"/>
</composite:implementation>
</html>
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:composite="http://xmlns.jcp.org/jsf/composite"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:cui-core="https://cuioss.de/jsf/core"
xmlns:cui-boot="https://cuioss.de/jsf/bootstrap"
xmlns:cui-composite="http://xmlns.jcp.org/jsf/composite/cui-bootstrap-composite">
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:composite="http://xmlns.jcp.org/jsf/composite"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:cui-core="https://cuioss.de/jsf/core"
xmlns:boot="https://cuioss.de/jsf/bootstrap"
xmlns:boot-composite="http://xmlns.jcp.org/jsf/composite/cui-bootstrap-composite">

<composite:interface
shortDescription="Display a excerpt of list items at the patient overview page">
<composite:attribute name="model"
type="de.cuioss.jsf.api.components.model.widget.ListItemWidgetModel"
shortDescription="Model to be displayed in this widget"
required="true" />
type="de.cuioss.jsf.api.components.model.widget.ListItemWidgetModel"
shortDescription="Model to be displayed in this widget"
required="true"/>
</composite:interface>

<composite:implementation>
<cui-composite:widget model="#{cc.attrs.model}">
<boot-composite:widget model="#{cc.attrs.model}">
<ul class="list-group widget-list">
<ui:repeat id="items" var="item"
value="#{cc.attrs.model.items}">
value="#{cc.attrs.model.items}">
<li class="list-group-item">
<cui-composite:listItemWidgetEntry
<boot-composite:listItemWidgetEntry
model="#{item}">
<f:facet name="timestamp">
<h:outputText value="#{item.timestampValue}"
rendered="#{not empty item.timestampValue}" />
rendered="#{not empty item.timestampValue}"/>
<h:outputText value="#{item.timestamp}"
rendered="#{empty item.timestampValue}">
<cui-core:convertDateTime type="both" />
rendered="#{empty item.timestampValue}">
<cui-core:convertDateTime type="both"/>
</h:outputText>
</f:facet>
</cui-composite:listItemWidgetEntry></li>
</boot-composite:listItemWidgetEntry></li>
</ui:repeat>
</ul>
<h:outputText value="#{cc.attrs.model.noItemsMessage}"
rendered="#{empty cc.attrs.model.items}" />
<cui-boot:button id="moreAvail"
outcome="#{cc.attrs.model.coreAction}"
rendered="#{cc.attrs.model.renderShowMoreButton}"
state="default" style="width:100%;"
labelKey="message.info.more.entries.available" />
</cui-composite:widget>
rendered="#{empty cc.attrs.model.items}"/>
<boot:button id="moreAvail"
outcome="#{cc.attrs.model.coreAction}"
rendered="#{cc.attrs.model.renderShowMoreButton}"
state="default" style="width:100%;"
labelKey="message.info.more.entries.available"/>
</boot-composite:widget>
</composite:implementation>

</html>
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:composite="http://xmlns.jcp.org/jsf/composite"
xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"
xmlns:cui-boot="https://cuioss.de/jsf/bootstrap">
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:composite="http://xmlns.jcp.org/jsf/composite"
xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"
xmlns:boot="https://cuioss.de/jsf/bootstrap">

<composite:interface
shortDescription="Display a excerpt of list items at the patient overview page">
<composite:attribute name="model"
type="de.cuioss.jsf.api.components.model.widget.ListItem"
shortDescription="Model to be displayed in this widget"
required="true" />
type="de.cuioss.jsf.api.components.model.widget.ListItem"
shortDescription="Model to be displayed in this widget"
required="true"/>
<composite:attribute name="styleClass" type="java.lang.String"
required="false" />
required="false"/>
<composite:facet name="content"
shortDescription="Content of the widget" />
shortDescription="Content of the widget"/>
<composite:facet name="timestamp"
shortDescription="Timestamp of the widget, default: item.timestamp with cui:prettyTimeConverter" />
shortDescription="Timestamp of the widget, default: item.timestamp with cui:prettyTimeConverter"/>
</composite:interface>

<composite:implementation>
<h:outputLink value="#{cc.attrs.model.clickLink}"
disabled="#{empty cc.attrs.model.clickLink}"
target="#{cc.attrs.model.clickLinkTarget}"
styleClass="#{cc.attrs.styleClass}">
disabled="#{empty cc.attrs.model.clickLink}"
target="#{cc.attrs.model.clickLinkTarget}"
styleClass="#{cc.attrs.styleClass}">
<!-- <f:passThroughAttributes value="#{cc.attrs.model.microData}" /> -->
<div class="widget-item-image">
<cui-boot:icon icon="#{cc.attrs.model.iconClass}"
rendered="#{not empty cc.attrs.model.iconClass and empty cc.attrs.model.previewImage}" />
<boot:icon icon="#{cc.attrs.model.iconClass}"
rendered="#{not empty cc.attrs.model.iconClass and empty cc.attrs.model.previewImage}"/>
<h:graphicImage
library="#{cc.attrs.model.previewImageLibrary}"
name="#{cc.attrs.model.previewImage}"
rendered="#{not empty cc.attrs.model.previewImage}" />
rendered="#{not empty cc.attrs.model.previewImage}"/>
</div>
<div class="widget-item-content">
<div class="font-title">
<div>
<h:outputText value="#{cc.attrs.model.title}"
pt:itemtype="#{cc.attrs.model.titleType}" />
<cui-boot:icon icon="cui-icon-new_window"
rendered="#{cc.attrs.model.clickLinkTarget ne null}" />
pt:itemtype="#{cc.attrs.model.titleType}"/>
<boot:icon icon="cui-icon-new_window"
rendered="#{cc.attrs.model.clickLinkTarget ne null}"/>
</div>
<time datetime="#{cc.attrs.model.timestamp}">
<composite:renderFacet name="timestamp" />
<composite:renderFacet name="timestamp"/>
</time>
</div>
<h:outputText value="#{cc.attrs.model.text}"
styleClass="widget-item-model-text"
pt:itemtype="#{cc.attrs.model.textType}" />
<composite:renderFacet name="content" />
styleClass="widget-item-model-text"
pt:itemtype="#{cc.attrs.model.textType}"/>
<composite:renderFacet name="content"/>
</div>
</h:outputLink>
</composite:implementation>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:composite="http://xmlns.jcp.org/jsf/composite"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:cui-boot="https://cuioss.de/jsf/bootstrap">
xmlns:composite="http://xmlns.jcp.org/jsf/composite"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:boot="https://cuioss.de/jsf/bootstrap">

<!-- INTERFACE -->
<composite:interface
shortDescription="Renders a content or a notification box if the content could not be retrieved. See taglib for more details.">
<composite:attribute name="notificationBoxStyleClass"
type="java.lang.String" required="false"
shortDescription="Additional css-classes to be applied to the list for the notification box." />
type="java.lang.String" required="false"
shortDescription="Additional css-classes to be applied to the list for the notification box."/>
<composite:attribute name="notificationBoxStyle"
type="java.lang.String" required="false"
shortDescription="Additional style-attribute to be applied to the list for the notification box." />
type="java.lang.String" required="false"
shortDescription="Additional style-attribute to be applied to the list for the notification box."/>
<composite:attribute name="renderAsRow" type="boolean"
shortDescription="Render the notification box as a row" />
shortDescription="Render the notification box as a row"/>
<composite:attribute name="model"
type="de.cuioss.jsf.api.components.model.resultContent.ResultContent"
shortDescription="Model to be displayed" required="true" />
type="de.cuioss.jsf.api.components.model.resultContent.ResultContent"
shortDescription="Model to be displayed" required="true"/>

</composite:interface>

<!-- IMPLEMENTATION -->
<composite:implementation>
<ui:fragment
rendered="#{cc.attrs.renderAsRow and not empty cc.attrs.model.notificationBoxMessages}">
<cui-boot:row>
<cui-boot:column size="12">
<boot:row>
<boot:column size="12">
<ui:repeat
value="#{cc.attrs.model.notificationBoxMessages}"
var="message">
<cui-boot:notificationBox
<boot:notificationBox
state="#{message.notificationBoxState}"
contentValue="#{message.notificationBoxValue}"
style="#{cc.attrs.notificationBoxStyle}"
styleClass="#{cc.attrs.notificationBoxStyleClass}" />
styleClass="#{cc.attrs.notificationBoxStyleClass}"/>
</ui:repeat>
</cui-boot:column>
</cui-boot:row>
</boot:column>
</boot:row>
</ui:fragment>
<ui:fragment
rendered="#{!cc.attrs.renderAsRow and not empty cc.attrs.model.notificationBoxMessages}">
<ui:repeat value="#{cc.attrs.model.notificationBoxMessages}"
var="message">
<cui-boot:notificationBox state="#{message.notificationBoxState}"
contentValue="#{message.notificationBoxValue}"
style="#{cc.attrs.notificationBoxStyle}"
styleClass="#{cc.attrs.notificationBoxStyleClass}" />
var="message">
<boot:notificationBox state="#{message.notificationBoxState}"
contentValue="#{message.notificationBoxValue}"
style="#{cc.attrs.notificationBoxStyle}"
styleClass="#{cc.attrs.notificationBoxStyleClass}"/>
</ui:repeat>
</ui:fragment>
<ui:fragment rendered="#{cc.attrs.model.renderContent}">
<composite:insertChildren />
<composite:insertChildren/>
</ui:fragment>
</composite:implementation>
</html>
Loading

0 comments on commit 79069a9

Please sign in to comment.