Skip to content

Commit

Permalink
=
Browse files Browse the repository at this point in the history
  • Loading branch information
Arikaim committed Nov 29, 2021
1 parent 62cfbc5 commit d5265bb
Show file tree
Hide file tree
Showing 37 changed files with 38 additions and 111 deletions.
2 changes: 1 addition & 1 deletion arikaim-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "UI components",
"package-type": "components",
"name": "semantic",
"version": "1.7.2",
"version": "1.7.3",
"description": "Arikaim components library for Semantic UI.",
"repository": "https://github.com/arikaim/ui-components.git",
"require": {
Expand Down
2 changes: 1 addition & 1 deletion buttons/fullscreen/fullscreen.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {
$('.full-screen').on('click',function() {
var targetId = $(this).attr('iframe-id');
var el = $('#' + targetId);
Expand Down
2 changes: 1 addition & 1 deletion clipboard/copy/copy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {
$('.clipboard-copy').on('click',function() {
var type = $(this).attr('content-type');
var selector = $(this).attr('content-selector');
Expand Down
2 changes: 1 addition & 1 deletion code/code.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {
safeCall('hljs',function(obj) {
obj.highlightAll();
},true);
Expand Down
2 changes: 1 addition & 1 deletion form/clear/clear.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {
arikaim.ui.button('.clear-button',function(element) {
var formId = $(element).attr('form-id');
if (isEmpty(formId) == false) {
Expand Down
2 changes: 1 addition & 1 deletion form/fields/checkbox/checkbox.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {
$('.checkbox-field').checkbox({
onChecked: function() {
var fieldId = $(this).attr('data-field-id');
Expand Down
2 changes: 1 addition & 1 deletion form/fields/price/price.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {
arikaim.ui.button('.clear-price',function(element) {
var priceField = $(element).attr('price-field');
$('#' + priceField).val("");
Expand Down
2 changes: 1 addition & 1 deletion form/fields/slug/slug.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {
var slugSource = $('#slug').attr('slug-source');
var editable = $('#slug').attr('editable');
var disableUpdate = $('#slug').attr('disable-update');
Expand Down
2 changes: 1 addition & 1 deletion form/fields/url/url.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use stric';

arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {
$('.http-schema-dropdown').dropdown({});

arikaim.ui.button('.clear-url',function(element) {
Expand Down
4 changes: 2 additions & 2 deletions head/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
<!-- component files -->
{% for file in component_files['js'] %}
{%- set crossorigin = ('crossorigin' in file.params) ? 'crossorigin="anonymous"' : '' -%}
<script async {{ options.component_files }} class="component-file" component-type="{{ file.component_type }}" component-name="{{ file.component_name }}" src="{{ file.url }}" type="text/javascript" {{ crossorigin -}}></script>
<script async {{ options.component_files }} class="component-file" component-type="{{ file.component_type }}" component-name="{{ file.component_name }}" component-id="{{ file.component_id }}" src="{{ file.url }}" type="text/javascript" {{ crossorigin -}}></script>
{% endfor -%}
<!-- page files -->
{% for file in page_files['js'] -%}
<script async {{ options.page_files }} src="{{ file.url }}" type="text/javascript"></script>
<script async {{ options.page_files }} class="component-file" component-type="{{ file.component_type }}" component-name="{{ file.component_name }}" component-id="{{ file.component_id }}" src="{{ file.url }}" type="text/javascript"></script>
{%- endfor -%}
{% endcache %}

Expand Down
2 changes: 1 addition & 1 deletion image/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ function ImagePreviewModal() {

var imagePreviewModal = new ImagePreviewModal();

arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {
imagePreviewModal.loadCode();
});
11 changes: 0 additions & 11 deletions mail/button/button.html

This file was deleted.

8 changes: 0 additions & 8 deletions mail/callout/callout.html

This file was deleted.

8 changes: 0 additions & 8 deletions mail/column/column.html

This file was deleted.

7 changes: 0 additions & 7 deletions mail/container/container.html

This file was deleted.

16 changes: 0 additions & 16 deletions mail/expanded-button/expanded-butotn.html

This file was deleted.

3 changes: 0 additions & 3 deletions mail/menu-item/menu-item.html

This file was deleted.

11 changes: 0 additions & 11 deletions mail/menu/menu.html

This file was deleted.

7 changes: 0 additions & 7 deletions mail/rows/rows.html

This file was deleted.

7 changes: 0 additions & 7 deletions mail/spacer/spacer.html

This file was deleted.

7 changes: 0 additions & 7 deletions mail/wrapper/wrapper.html

This file was deleted.

2 changes: 1 addition & 1 deletion message/error/error.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {
$('.message .close').on('click',function() {
$(this).closest('.message').transition('fade');
});
Expand Down
2 changes: 1 addition & 1 deletion message/warning/warning.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {
$('.warning .close').on('click', function() {
$(this).closest('.message').transition('fade');
});
Expand Down
2 changes: 1 addition & 1 deletion modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ function Modal() {

var modal = new Modal();

arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {
modal.init();
});
4 changes: 2 additions & 2 deletions option/checkbox/checkbox.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% set value = value|default(0) %}
{% set value = value|default(getOption(name)) %}
{% set name = name|default('') %}
{% set label = label|default(name) %}
<div class="ui checkbox {{ class }} option-checkbox">
<input type="checkbox" {{ value|ifthen(1,'checked') }} name="{{ name }}" value="1">
<label class="{{ label_class }}">{{ label }}</label>
<label class="{{ label_class|default('font-bold') }}">{{ label }}</label>
</div>
2 changes: 1 addition & 1 deletion option/checkbox/checkbox.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {
$('.option-checkbox').checkbox({
onChecked: function() {
var name = $(this).attr('name');
Expand Down
2 changes: 1 addition & 1 deletion option/driver/driver.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {
$('#drivers_dropdown').dropdown({
onChange: function(value) {
var optionName = $('#driver_field').attr('option-name');
Expand Down
6 changes: 6 additions & 0 deletions option/input/input.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div class="ui action input" id="{{ component_id }}" type="test">
<input type="text" placeholder="Search...">
<button class="ui icon button">
<i class="search icon"></i>
</button>
</div>
4 changes: 4 additions & 0 deletions option/input/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
'use strict';

arikaim.component.onLoaded(function(component) {
});
2 changes: 2 additions & 0 deletions option/input/input.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
2 changes: 1 addition & 1 deletion option/radio/radio.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {
$('.option-checkbox').checkbox({
onChecked: function() {
var name = $(this).attr('name');
Expand Down
2 changes: 1 addition & 1 deletion orm/options/edit/edit.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {
$('.option-dropdown').dropdown();
$('.option-field').popup();
});
2 changes: 1 addition & 1 deletion paginator/page/dropdown/dropdown.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {
$('.page-go-menu').dropdown({
onChange: function(value) {
var namespace = $(this).attr('namespace');
Expand Down
2 changes: 1 addition & 1 deletion paginator/simple/simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ arikaim.events.on('paginator.load.page',function(result) {
}
},'simplePaginator');

arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {
var init = $('.paginator').attr('init');
if (init == true) {
paginator.init();
Expand Down
2 changes: 1 addition & 1 deletion properties/fields/fields.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {
$('.property-group').accordion();
$('.property-language-dropdown').dropdown();
arikaim.ui.viewPasswordButton('.view-password','#password');
Expand Down
2 changes: 1 addition & 1 deletion properties/items/oauth/oauth.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {

arikaim.events.on('oauth.success',function(result) {
drivers.reloadConfig();
Expand Down
2 changes: 1 addition & 1 deletion search/form/form.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';

arikaim.component.onLoaded(function() {
arikaim.component.onLoaded(function(component) {
$('.search-actions').dropdown();
});

0 comments on commit d5265bb

Please sign in to comment.