├── .gitignore
├── documentation
├── html
│ ├── fonts
│ │ ├── Harabara.eot
│ │ ├── Harabara.ttf
│ │ └── Harabara.woff
│ ├── footer.html
│ └── extra-styles.css
└── filters
│ └── traits.php
├── Ajax
├── semantic
│ ├── html
│ │ ├── base
│ │ │ ├── ClassModifier.php
│ │ │ ├── constants
│ │ │ │ ├── Sens.php
│ │ │ │ ├── Side.php
│ │ │ │ ├── Direction.php
│ │ │ │ ├── CheckboxType.php
│ │ │ │ ├── VerticalAlignment.php
│ │ │ │ ├── Emphasis.php
│ │ │ │ ├── RevealType.php
│ │ │ │ ├── SegmentType.php
│ │ │ │ ├── HeaderSize.php
│ │ │ │ ├── Size.php
│ │ │ │ ├── StepStatus.php
│ │ │ │ ├── TextAlignment.php
│ │ │ │ ├── Style.php
│ │ │ │ ├── Social.php
│ │ │ │ ├── icons
│ │ │ │ │ ├── Message.php
│ │ │ │ │ ├── Currency.php
│ │ │ │ │ ├── Technologies.php
│ │ │ │ │ ├── Media.php
│ │ │ │ │ ├── PaymentOptions.php
│ │ │ │ │ ├── UserTypes.php
│ │ │ │ │ ├── LayoutAdjustment.php
│ │ │ │ │ ├── Animals.php
│ │ │ │ │ ├── Rating.php
│ │ │ │ │ ├── Map.php
│ │ │ │ │ ├── GenderSexuality.php
│ │ │ │ │ ├── Shapes.php
│ │ │ │ │ ├── Audio.php
│ │ │ │ │ ├── Tables.php
│ │ │ │ │ ├── TextEditor.php
│ │ │ │ │ ├── Objects.php
│ │ │ │ │ ├── ItemSelection.php
│ │ │ │ │ ├── ComputerFilesystem.php
│ │ │ │ │ ├── WebContent.php
│ │ │ │ │ ├── UserActions.php
│ │ │ │ │ ├── Pointers.php
│ │ │ │ │ └── Brands.php
│ │ │ │ ├── Wide.php
│ │ │ │ ├── Variation.php
│ │ │ │ ├── emojis
│ │ │ │ │ ├── People.php
│ │ │ │ │ └── Nature.php
│ │ │ │ ├── Color.php
│ │ │ │ ├── Transition.php
│ │ │ │ └── State.php
│ │ │ ├── traits
│ │ │ │ ├── TableElementTrait.php
│ │ │ │ ├── AttachedTrait.php
│ │ │ │ ├── TextAlignmentTrait.php
│ │ │ │ ├── HasTimeoutTrait.php
│ │ │ │ ├── LabeledIconTrait.php
│ │ │ │ └── IconTrait.php
│ │ │ ├── HtmlSemSingleElement.php
│ │ │ └── HtmlSemCollection.php
│ │ ├── templates
│ │ │ ├── tplDropdownMenu.php
│ │ │ └── tplDropdown.php
│ │ ├── views
│ │ │ ├── HtmlCard.php
│ │ │ ├── HtmlItems.php
│ │ │ └── HtmlCardGroups.php
│ │ ├── content
│ │ │ ├── view
│ │ │ │ ├── HtmlItem.php
│ │ │ │ ├── ContentPartTrait.php
│ │ │ │ └── HtmlViewGroups.php
│ │ │ ├── HtmlAccordionMenuItem.php
│ │ │ ├── HtmlShapeItem.php
│ │ │ ├── HtmlMenuItem.php
│ │ │ ├── HtmlAccordionItem.php
│ │ │ ├── HtmlStepItem.php
│ │ │ ├── HtmlGridCol.php
│ │ │ ├── HtmlListItem.php
│ │ │ └── InternalPopup.php
│ │ ├── elements
│ │ │ ├── HtmlLoader.php
│ │ │ ├── html5
│ │ │ │ ├── HtmlDatalist.php
│ │ │ │ ├── HtmlImg.php
│ │ │ │ └── HtmlLink.php
│ │ │ ├── HtmlContainer.php
│ │ │ ├── HtmlFlag.php
│ │ │ ├── HtmlRail.php
│ │ │ ├── HtmlLabelGroups.php
│ │ │ ├── HtmlImage.php
│ │ │ ├── HtmlSegmentGroups.php
│ │ │ ├── HtmlDivider.php
│ │ │ ├── HtmlIconGroups.php
│ │ │ └── HtmlEmoji.php
│ │ ├── modules
│ │ │ ├── checkbox
│ │ │ │ ├── HtmlRadio.php
│ │ │ │ └── HtmlCheckbox.php
│ │ │ ├── HtmlRating.php
│ │ │ ├── HtmlSticky.php
│ │ │ └── HtmlToast.php
│ │ └── collections
│ │ │ ├── form
│ │ │ ├── HtmlFormRadio.php
│ │ │ ├── traits
│ │ │ │ ├── TextFieldsTrait.php
│ │ │ │ └── CheckboxTrait.php
│ │ │ ├── HtmlFormTextarea.php
│ │ │ └── HtmlFormCheckbox.php
│ │ │ ├── menus
│ │ │ ├── HtmlIconMenu.php
│ │ │ ├── HtmlLabeledIconMenu.php
│ │ │ ├── HtmlAccordionMenu.php
│ │ │ └── HtmlPaginationMenu.php
│ │ │ └── table
│ │ │ └── ActiveRow.php
│ ├── components
│ │ ├── search
│ │ │ ├── ISearch.php
│ │ │ ├── AbstractSearchResult.php
│ │ │ ├── SearchCategory.php
│ │ │ ├── SearchCategories.php
│ │ │ └── SearchResult.php
│ │ ├── Rating.php
│ │ ├── Shape.php
│ │ ├── Tab.php
│ │ ├── Progress.php
│ │ ├── Dimmer.php
│ │ ├── Sticky.php
│ │ ├── Accordion.php
│ │ ├── Checkbox.php
│ │ ├── validation
│ │ │ ├── CustomRule.php
│ │ │ ├── AjaxRule.php
│ │ │ └── languages
│ │ │ │ └── fr.js
│ │ ├── Modal.php
│ │ ├── Search.php
│ │ ├── Visibility.php
│ │ ├── Popup.php
│ │ ├── SimpleSemExtComponent.php
│ │ ├── Slider.php
│ │ ├── Dropdown.php
│ │ ├── Form.php
│ │ └── jsTemplates
│ │ │ └── tplCheckedList.php
│ ├── widgets
│ │ ├── datatable
│ │ │ └── PositionInTable.php
│ │ ├── business
│ │ │ ├── user
│ │ │ │ └── UserModel.php
│ │ │ └── BusinessForm.php
│ │ └── dataelement
│ │ │ └── DeInstanceViewer.php
│ └── traits
│ │ └── SemanticHtmlViewsTrait.php
├── bootstrap
│ ├── html
│ │ ├── templates
│ │ │ ├── tplInputgroup.php
│ │ │ ├── tplCarouselControl.php
│ │ │ ├── tplCarouselItem.php
│ │ │ ├── tplPanel.php
│ │ │ ├── tplProgressbar.php
│ │ │ ├── tplDropdown.php
│ │ │ ├── tplCarousel.php
│ │ │ ├── tplSplitbutton.php
│ │ │ ├── tplModal.php
│ │ │ └── tplNavbar.php
│ │ ├── base
│ │ │ ├── CssNavbar.php
│ │ │ ├── CssSize.php
│ │ │ ├── CssButton.php
│ │ │ ├── HtmlElementAsContent.php
│ │ │ ├── HtmlNavElement.php
│ │ │ └── HtmlBsDoubleElement.php
│ │ ├── HtmlInputRadio.php
│ │ ├── HtmlInputCheckbox.php
│ │ ├── HtmlBadge.php
│ │ ├── content
│ │ │ ├── HtmlTabContentItem.php
│ │ │ ├── HtmlTabContent.php
│ │ │ ├── HtmlCarouselControl.php
│ │ │ ├── HtmlCarouselItem.php
│ │ │ └── HtmlTabItem.php
│ │ ├── HtmlLink.php
│ │ ├── HtmlGlyphButton.php
│ │ ├── HtmlLabel.php
│ │ ├── HtmlSplitbutton.php
│ │ ├── HtmlGlyphicon.php
│ │ ├── HtmlInput.php
│ │ └── HtmlListgroup.php
│ └── components
│ │ ├── js
│ │ └── Draggable.php
│ │ ├── Popover.php
│ │ ├── Splitbutton.php
│ │ ├── Scrollspy.php
│ │ ├── Dropdown.php
│ │ └── Collapse.php
├── common
│ ├── html
│ │ ├── HtmlContentOnly.php
│ │ ├── html5
│ │ │ ├── HtmlUtils.php
│ │ │ ├── HtmlLinkTrait.php
│ │ │ ├── HtmlList.php
│ │ │ ├── HtmlOption.php
│ │ │ ├── HtmlTextarea.php
│ │ │ ├── HtmlImg.php
│ │ │ └── HtmlInput.php
│ │ ├── traits
│ │ │ ├── BaseHooksTrait.php
│ │ │ └── NavElementTrait.php
│ │ ├── BaseWidget.php
│ │ ├── HtmlSingleElement.php
│ │ └── PropertyWrapper.php
│ ├── components
│ │ ├── GenericComponent.php
│ │ └── SimpleExtComponent.php
│ └── JsCode.php
├── ui
│ ├── components
│ │ ├── Menu.php
│ │ ├── Tabs.php
│ │ ├── Spinner.php
│ │ ├── Selectmenu.php
│ │ ├── Progressbar.php
│ │ ├── Slider.php
│ │ ├── Buttonset.php
│ │ ├── DialogButton.php
│ │ └── Dialog.php
│ └── properties
│ │ └── Animation.php
├── php
│ ├── symfony
│ │ ├── JquerySemantic.php
│ │ ├── JqueryBootstrap.php
│ │ └── Jquery_.php
│ ├── cakephp
│ │ ├── JsUtilsComponent.php
│ │ └── _JsUtils.php
│ ├── ubiquity
│ │ └── UIService.php
│ ├── laravel
│ │ └── JsUtils.php
│ ├── yii
│ │ └── JsUtils.php
│ └── phalcon
│ │ └── JsUtils.php
├── lib
│ ├── CDNJQuery.php
│ ├── CDNCoreCss.php
│ └── CDNBase.php
├── service
│ ├── JQueryAjaxEffect.php
│ ├── AjaxTransition.php
│ ├── JReflection.php
│ └── AjaxCall.php
├── config
│ ├── DefaultConfig.php
│ └── Config.php
└── Semantic.php
├── CONTRIBUTING.md
├── .scrutinizer.yml
├── .github
└── issue_template.md
└── composer.json
/.gitignore:
--------------------------------------------------------------------------------
1 | .project
2 | *.buildpath
3 | .settings/*
4 | doxygeneJquery
5 | doc/*
6 | .idea/
7 |
--------------------------------------------------------------------------------
/documentation/html/fonts/Harabara.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phpMv/phpMv-UI/HEAD/documentation/html/fonts/Harabara.eot
--------------------------------------------------------------------------------
/documentation/html/fonts/Harabara.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phpMv/phpMv-UI/HEAD/documentation/html/fonts/Harabara.ttf
--------------------------------------------------------------------------------
/documentation/html/fonts/Harabara.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phpMv/phpMv-UI/HEAD/documentation/html/fonts/Harabara.woff
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/ClassModifier.php:
--------------------------------------------------------------------------------
1 |
3 | %input%
4 | %items%
5 | %tagName%>';
6 |
--------------------------------------------------------------------------------
/Ajax/bootstrap/html/templates/tplInputgroup.php:
--------------------------------------------------------------------------------
1 |
3 | %addonLeft%
4 |
5 | %addonRight%
6 | ';
7 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/templates/tplDropdown.php:
--------------------------------------------------------------------------------
1 |
3 | %input%
4 | %content%
5 | <%mTagName% class="%mClass%">
6 | %items%
7 | %mTagName%>
8 | %tagName%>';
9 |
--------------------------------------------------------------------------------
/Ajax/bootstrap/html/base/CssNavbar.php:
--------------------------------------------------------------------------------
1 |
4 |
5 | %caption%
6 | ';
7 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/constants/Sens.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 | %caption%
7 |
8 | ';
9 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/constants/Direction.php:
--------------------------------------------------------------------------------
1 |
3 | %header%
4 | %collapseBegin%
5 |
6 | %content%
7 |
8 | %footer%
9 | %collapseEnd%
10 | ';
11 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/constants/Emphasis.php:
--------------------------------------------------------------------------------
1 |
4 | %caption%
5 | ';
6 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/constants/SegmentType.php:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/Ajax/semantic/components/Rating.php:
--------------------------------------------------------------------------------
1 | uiName="rating";
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Ajax/semantic/components/Shape.php:
--------------------------------------------------------------------------------
1 | uiName="shape";
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/constants/TextAlignment.php:
--------------------------------------------------------------------------------
1 | mask="$('%identifier%').draggable({ handle: '.modal-header' });";
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/constants/Style.php:
--------------------------------------------------------------------------------
1 | _template='%wrapContentBefore%%content%%wrapContentAfter%';
9 | $this->setContent($content);
10 | }
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/Ajax/common/html/html5/HtmlUtils.php:
--------------------------------------------------------------------------------
1 | ';
8 | }
9 |
10 | public static function stylesheetInclude($url){
11 | return '';
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/constants/Wide.php:
--------------------------------------------------------------------------------
1 | uiName="tab";
12 | }
13 | public function setDebug($value=true) {
14 | return $this->setParam("debug", $value);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/constants/Variation.php:
--------------------------------------------------------------------------------
1 |
3 | <%tagName% id="%identifier%" class="%class%" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
4 | %btnCaption%
5 |
6 | %tagName%>
7 |
10 | %mTagName%>';
11 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/constants/emojis/People.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 | %indicators%
7 |
8 |
9 |
10 |
11 | %slides%
12 |
13 |
14 |
15 | %leftControl%
16 | %rightControl%
17 | ';
18 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/constants/icons/PaymentOptions.php:
--------------------------------------------------------------------------------
1 | uiName = "menu";
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Ajax/ui/components/Tabs.php:
--------------------------------------------------------------------------------
1 | uiName = "tabs";
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Ajax/ui/components/Spinner.php:
--------------------------------------------------------------------------------
1 | uiName = "spinner";
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Ajax/bootstrap/components/Popover.php:
--------------------------------------------------------------------------------
1 | uiName="popover";
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/constants/icons/UserTypes.php:
--------------------------------------------------------------------------------
1 | uiName = "selectmenu";
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Ajax/php/symfony/JquerySemantic.php:
--------------------------------------------------------------------------------
1 | true,"defer"=>true],$router);
11 | $this->container=$container;
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Ajax/php/symfony/JqueryBootstrap.php:
--------------------------------------------------------------------------------
1 | true,"defer"=>true],$router);
11 | $this->container=$container;
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/constants/icons/LayoutAdjustment.php:
--------------------------------------------------------------------------------
1 |
3 | <%tagName% id="split-%identifier%" class="%class%">%btnCaption%%tagName%>
4 | <%tagName% id="%identifier%" class="%class%" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
5 |
6 | %tagName%>
7 |
10 | %mTagName%>';
11 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/content/HtmlAccordionMenuItem.php:
--------------------------------------------------------------------------------
1 | content->setActive($value);
13 | return $this;
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Ajax/semantic/components/search/AbstractSearchResult.php:
--------------------------------------------------------------------------------
1 | fromDatabaseObject($object, $function);
11 | }
12 | }
13 | return $this;
14 | }
15 |
16 | abstract protected function fromDatabaseObject($object, $function);
17 | }
18 |
--------------------------------------------------------------------------------
/Ajax/semantic/components/Progress.php:
--------------------------------------------------------------------------------
1 | uiName="progress";
12 | }
13 |
14 | public function setOnChange($jsCode) {
15 | return $this->params["onChange"]=$jsCode;
16 | }
17 |
18 | public function setText($values) {
19 | return $this->params["text"]=$values;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Ajax/ui/components/Progressbar.php:
--------------------------------------------------------------------------------
1 | params = array(
18 | "value" => 50
19 | );
20 | $this->uiName = "progressbar";
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/constants/icons/Animals.php:
--------------------------------------------------------------------------------
1 | setProperty("type", "radio");
15 | $this->setProperty("class", "");
16 | if (isset($label)) {
17 | $this->setLabel($label, false);
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/constants/icons/Rating.php:
--------------------------------------------------------------------------------
1 | jquery=new _JsUtils();
17 | if(isset($semantic)){
18 | $this->jquery->semantic(new Semantic());
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/modules/checkbox/HtmlRadio.php:
--------------------------------------------------------------------------------
1 | setType($checkboxType);
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Ajax/bootstrap/html/HtmlInputCheckbox.php:
--------------------------------------------------------------------------------
1 | setProperty("type", "checkbox");
15 | $this->setProperty("class", "");
16 | if (isset($label)) {
17 | $this->setLabel($label, false);
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Ajax/common/html/html5/HtmlLinkTrait.php:
--------------------------------------------------------------------------------
1 | setProperty("href", $value);
12 | }
13 |
14 | public function getHref() {
15 | return $this->getProperty("href");
16 | }
17 |
18 | public function setTarget($value="_self") {
19 | return $this->setProperty("target", $value);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Ajax/bootstrap/html/HtmlBadge.php:
--------------------------------------------------------------------------------
1 | content=$caption;
18 | $this->setProperty("class", "badge");
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Ajax/lib/CDNJQuery.php:
--------------------------------------------------------------------------------
1 | data=$this->data ["JQuery"];
13 | }
14 |
15 | public function getUrl() {
16 | return $this->getUrlOrCss($this->jsUrl, "url");
17 | }
18 |
19 | public function __toString() {
20 | $url=$this->getUrl();
21 | return HtmlUtils::javascriptInclude($url);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/constants/icons/Map.php:
--------------------------------------------------------------------------------
1 | setProperty("role", "tabpanel");
17 | $this->setProperty("class", "tab-pane");
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/content/HtmlShapeItem.php:
--------------------------------------------------------------------------------
1 | addToPropertyCtrl("class", "active", ["active"]);
14 | }else{
15 | $this->removePropertyValue("class", "active");
16 | }
17 | return $this;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Ajax/semantic/components/Dimmer.php:
--------------------------------------------------------------------------------
1 | uiName = "dimmer";
11 | }
12 |
13 | public function setOn($value = false) {
14 | $this->params["on"] = $value;
15 | }
16 |
17 | public function setOpacity($value) {
18 | $this->params["opacity"] = $value;
19 | }
20 |
21 | public function setClosable($value) {
22 | $this->params["closable"] = $value;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/Ajax/config/DefaultConfig.php:
--------------------------------------------------------------------------------
1 | array (
12 | "txt" => "input_text",
13 | "btn" => "button",
14 | "ck" => "checkbox",
15 | "cmb" => "select_1",
16 | "list" => "select_5",
17 | "_" => "input_hidden",
18 | "f" => "input_file",
19 | "radio" => "radio",
20 | "mail" => "input_email"
21 | )
22 | ));
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/constants/icons/GenderSexuality.php:
--------------------------------------------------------------------------------
1 | uiName="sticky";
12 | }
13 |
14 | /**
15 | *
16 | * @param string $value default : ""
17 | * @return $this
18 | */
19 | public function setContext($value="") {
20 | return $this->setParam("context", $value);
21 | }
22 |
23 | public function setOffset($offset=0){
24 | return $this->setParam("offset", $offset);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Ajax/bootstrap/html/templates/tplModal.php:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
9 |
10 | %content%
11 |
12 |
15 |
16 |
17 | ';
18 |
--------------------------------------------------------------------------------
/Ajax/semantic/components/Accordion.php:
--------------------------------------------------------------------------------
1 | uiName="accordion";
12 | }
13 |
14 | /**
15 | *
16 | * @param string $value default : click
17 | * @return $this
18 | */
19 | public function setOn($value="click") {
20 | return $this->setParam("on", $value);
21 | }
22 |
23 | public function setExclusive($value=true) {
24 | return $this->setParam("exclusive", $value);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/constants/emojis/Nature.php:
--------------------------------------------------------------------------------
1 | login;
14 | }
15 |
16 | public function setLogin($login) {
17 | $this->login=$login;
18 | return $this;
19 | }
20 |
21 | public function getPassword() {
22 | return $this->password;
23 | }
24 |
25 | public function setPassword($password) {
26 | $this->password=$password;
27 | return $this;
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/Ajax/semantic/components/Checkbox.php:
--------------------------------------------------------------------------------
1 | uiName="checkbox";
12 | }
13 |
14 | public function setOnChecked($value) {
15 | $this->params["onChecked"]="%function(){".$value."}%";
16 | }
17 |
18 | public function setOnUnchecked($value) {
19 | $this->params["onUnchecked"]="%function(){".$value."}%";
20 | }
21 |
22 | public function setOnChange($value){
23 | $this->params["onChange"]="%function(){".$value."}%";
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/elements/html5/HtmlDatalist.php:
--------------------------------------------------------------------------------
1 | setProperty("value", $value);
16 | $elm->setContent($value);
17 | return $elm;
18 | }
19 |
20 | protected function createCondition($value) {
21 | return true;
22 | }
23 | }
24 |
25 |
--------------------------------------------------------------------------------
/Ajax/common/components/GenericComponent.php:
--------------------------------------------------------------------------------
1 | jquery_code_for_compile=array ();
15 | foreach ( $this->jsCodes as $jsCode ) {
16 | $this->jquery_code_for_compile []=$jsCode->compile(array (
17 | "identifier" => $this->attachTo
18 | ));
19 | }
20 | $this->compileEvents();
21 | return $this->compileJQueryCode();
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Ajax/ui/components/Slider.php:
--------------------------------------------------------------------------------
1 | uiName = "slider";
18 | $this->setParam("value", 0);
19 | }
20 |
21 | public function onChange($jsCode) {
22 | return $this->addEvent("change", $jsCode);
23 | }
24 |
25 | public function onSlide($jsCode) {
26 | return $this->addEvent("slide", $jsCode);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Ajax/common/JsCode.php:
--------------------------------------------------------------------------------
1 | mask=$mask;
15 | }
16 |
17 | public function getMask() {
18 | return $this->mask;
19 | }
20 |
21 | public function setMask($mask) {
22 | $this->mask=$mask;
23 | return $this;
24 | }
25 |
26 | public function compile($keyAndvalues) {
27 | $result=$this->mask;
28 | foreach ( $keyAndvalues as $k => $v ) {
29 | $result=str_ireplace("%{$k}%", $v, $result);
30 | }
31 | return $result;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/views/HtmlItems.php:
--------------------------------------------------------------------------------
1 | count());
22 | }
23 |
24 | public function newItem($identifier) {
25 | return new HtmlItem($identifier);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Ajax/config/Config.php:
--------------------------------------------------------------------------------
1 | vars=$vars;
10 | }
11 |
12 | public function setVar($name, $values) {
13 | $this->vars [$name]=$values;
14 | return $this;
15 | }
16 |
17 | public function getVar($name) {
18 | return $this->vars [$name];
19 | }
20 |
21 | public function getVars() {
22 | return $this->vars;
23 | }
24 |
25 | public function setVars($values) {
26 | $this->vars=$values;
27 | return $this;
28 | }
29 |
30 | public function addVars($values) {
31 | $this->vars=array_merge($this->vars, $values);
32 | return $this;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Ajax/semantic/components/validation/CustomRule.php:
--------------------------------------------------------------------------------
1 | jsFunction = $jsFunction;
21 | }
22 |
23 | public function compile(JsUtils $js) {
24 | $js->exec(Rule::custom($this->getType(), $this->jsFunction), true);
25 | }
26 | }
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/constants/Color.php:
--------------------------------------------------------------------------------
1 | addToProperty("class", self::RED);
13 | }
14 |
15 | public static function setGreen(HtmlSemDoubleElement $e) {
16 | return $e->addToProperty("class", self::GREEN);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Ajax/bootstrap/components/Splitbutton.php:
--------------------------------------------------------------------------------
1 | events as $event => $jsCode ) {
13 | if ($event==="buttonClick") {
14 | $this->jquery_code_for_compile []="$( \"#split-".preg_replace('/[^a-zA-Z0-9\-.]/s', '', $this->attachTo)."\" ).on(\"click\" , function( event, data ) {".$jsCode."});";
15 | } else {
16 | $this->jquery_code_for_compile []="$( \"".$this->attachTo."\" ).on(\"".$event."\" , function( event, data ) {".$jsCode."});";
17 | }
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/collections/form/HtmlFormRadio.php:
--------------------------------------------------------------------------------
1 | _identifier=$identifier;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/collections/form/traits/TextFieldsTrait.php:
--------------------------------------------------------------------------------
1 | getDataField()->setPlaceholder($value);
11 | return $this;
12 | }
13 |
14 | public function setValue($value){
15 | $this->getDataField()->setValue($value);
16 | return $this;
17 | }
18 |
19 | public function setInputType($type){
20 | if($type==="hidden")
21 | $this->addToProperty("style","display:none;");
22 | $this->getDataField()->setInputType($type);
23 | return $this;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Ajax/semantic/components/Modal.php:
--------------------------------------------------------------------------------
1 |
11 | * @version 1.0.1
12 | *
13 | */
14 | class Modal extends SimpleSemExtComponent {
15 |
16 | public function __construct(JsUtils $js) {
17 | parent::__construct($js);
18 | $this->uiName='modal';
19 | }
20 |
21 | public function showDimmer(){
22 | return $this->addBehavior('hide dimmer');
23 | }
24 |
25 | public function setInverted(){
26 | $this->params['inverted']=true;
27 | }
28 |
29 | public function setOnHidden($jsCode) {
30 | $this->addComponentEvent('onHidden', $jsCode);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Ajax/php/symfony/Jquery_.php:
--------------------------------------------------------------------------------
1 | container->get("twig");
18 | $this->compile($parameters);
19 | return new Response($twig->render($viewName, $parameters));
20 | }
21 |
22 | public function generateUrl($path){
23 | $request=Request::createFromGlobals();
24 | return $request->getBaseUrl().$path;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Ajax/bootstrap/html/HtmlLink.php:
--------------------------------------------------------------------------------
1 | setHref($href);
15 | $this->content=$content;
16 | }
17 |
18 | /*
19 | * (non-PHPdoc)
20 | * @see \Ajax\bootstrap\html\base\HtmlSingleElement::run()
21 | */
22 | public function run(JsUtils $js) {
23 | $this->_bsComponent=$js->bootstrap()->generic("#".$this->identifier);
24 | $this->addEventsOnRun($js);
25 | return $this->_bsComponent;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/traits/TableElementTrait.php:
--------------------------------------------------------------------------------
1 | addState(State::POSITIVE);
13 | }
14 |
15 | public function setNegative() {
16 | return $this->addState(State::NEGATIVE);
17 | }
18 |
19 | public function setWarning() {
20 | return $this->addState(State::WARNING);
21 | }
22 |
23 | public function setError() {
24 | return $this->addState(State::ERROR);
25 | }
26 |
27 | public function setDisabled($disable=true) {
28 | if($disable)
29 | $this->addState(State::DISABLED);
30 | return $this;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/HtmlSemSingleElement.php:
--------------------------------------------------------------------------------
1 | _baseClass=$baseClass;
19 | $this->setClass($baseClass);
20 | }
21 |
22 | /**
23 | * {@inheritDoc}
24 | * @see \Ajax\semantic\html\base\traits\BaseTrait::addContent()
25 | */
26 | public function addContent($content, $before=false) {}
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/constants/icons/Objects.php:
--------------------------------------------------------------------------------
1 | content=$content;
19 | }
20 |
21 | public function asText(){
22 | return $this->addToProperty("class", "text");
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/Ajax/bootstrap/html/HtmlGlyphButton.php:
--------------------------------------------------------------------------------
1 | _template='<%tagName% id="%identifier%" %properties%>%glyph% %content%%tagName%>';
16 | $this->tagName="button";
17 | $this->setGlyph($glyph);
18 | }
19 |
20 | public function setGlyph($glyph) {
21 | $this->glyph=new HtmlGlyphicon($this->identifier."-glyph");
22 | $this->glyph->setGlyphicon($glyph);
23 | return $this;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/constants/Transition.php:
--------------------------------------------------------------------------------
1 | _baseClass="ui image";
13 | $this->setClass($this->_baseClass);
14 | }
15 |
16 | public function asAvatar($caption=NULL) {
17 | if (isset($caption))
18 | $this->wrap("", $caption);
19 | return $this->addToProperty("class", "avatar");
20 | }
21 |
22 | /**
23 | * {@inheritDoc}
24 | * @see \Ajax\semantic\html\base\traits\BaseTrait::addContent()
25 | */
26 | public function addContent($content, $before=false) {}
27 | }
28 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/traits/AttachedTrait.php:
--------------------------------------------------------------------------------
1 | setAttached(true);
19 | }
20 | return $this->addToPropertyCtrl("class", $side . " attached", Side::getConstantValues("attached"));
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/base/HtmlSemCollection.php:
--------------------------------------------------------------------------------
1 | _baseClass=$baseClass;
18 | $this->setClass($baseClass);
19 | }
20 |
21 | public function run(JsUtils $js) {
22 | parent::run($js);
23 | $this->_bsComponent=$js->semantic()->generic("#".$this->identifier);
24 | $this->addEventsOnRun($js);
25 | return $this->_bsComponent;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/modules/checkbox/HtmlCheckbox.php:
--------------------------------------------------------------------------------
1 | setType($checkboxType);
13 | }
14 | }
15 |
16 | public static function slider($identifier, $label="", $value=NULL) {
17 | return new HtmlCheckbox($identifier, $label, $value, CheckboxType::SLIDER);
18 | }
19 |
20 | public static function toggle($identifier, $label="", $value=NULL) {
21 | return new HtmlCheckbox($identifier, $label, $value, CheckboxType::TOGGLE);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Ajax/common/components/SimpleExtComponent.php:
--------------------------------------------------------------------------------
1 | events [$event]=$jsCode;
13 | return $this;
14 | }
15 |
16 | public function getScript() {
17 | parent::getScript();
18 | $this->compileJsCodes();
19 | return $this->compileJQueryCode();
20 | }
21 |
22 | protected function compileJsCodes(){
23 | foreach ( $this->jsCodes as $jsCode ) {
24 | $this->jquery_code_for_compile []=$jsCode->compile(array (
25 | "identifier" => $this->attachTo
26 | ));
27 | }
28 | }
29 |
30 | public function addCode($jsCode) {
31 | $this->jsCodes []=new JsCode($jsCode);
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/Ajax/bootstrap/components/Scrollspy.php:
--------------------------------------------------------------------------------
1 | uiName="scrollspy";
18 | }
19 |
20 | /*
21 | * (non-PHPdoc)
22 | * @see \Ajax\common\components\SimpleComponent::attach()
23 | */
24 | public function attach($identifier) {
25 | parent::attach($identifier);
26 | }
27 |
28 | public function setTarget($target) {
29 | $this->setParam("target", $target);
30 | }
31 |
32 | public function onActivate($jsCode) {
33 | $this->addEvent("activate.bs.scrollspy", $jsCode);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Ajax/semantic/html/views/HtmlCardGroups.php:
--------------------------------------------------------------------------------
1 | count());
20 | }
21 |
22 | public function newItem($identifier) {
23 | return new HtmlCard($identifier);
24 | }
25 |
26 | public function getCard($index) {
27 | return $this->getItem($index);
28 | }
29 |
30 | public function getCardContent($cardIndex, $contentIndex) {
31 | return $this->getItemContent($cardIndex, $contentIndex);
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/Ajax/common/html/html5/HtmlList.php:
--------------------------------------------------------------------------------
1 | addItems($items);
16 | }
17 | public function setOrdered($ordered=true){
18 | $this->tagName=($ordered===true)?"ol":"ul";
19 | }
20 |
21 | /**
22 | * {@inheritDoc}
23 | * @see HtmlCollection::createItem()
24 | */
25 | protected function createItem($value) {
26 | $item=new HtmlDoubleElement("item-".$this->identifier."-".$this->count());
27 | $item->setTagName("li");
28 | $item->setContent($value);
29 | return $item;
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/Ajax/semantic/components/Search.php:
--------------------------------------------------------------------------------
1 | uiName="search";
12 | }
13 |
14 | public function setSource($value) {
15 | $this->params["source"]=$value;
16 | return $this;
17 | }
18 |
19 | public function setType($type) {
20 | $this->params["type"]=$type;
21 | return $this;
22 | }
23 |
24 | public function setSearchFields($fields) {
25 | $this->params["searchFields"]=$fields;
26 | return $this;
27 | }
28 |
29 | public function setApiSettings($value) {
30 | $this->params["apiSettings"]=$value;
31 | return $this;
32 | }
33 |
34 | public function setOnSelect($jsCode) {
35 | $this->params["onSelect"]=$jsCode;
36 | return $this;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/documentation/html/footer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
22 |
23 |