balance sheet
This commit is contained in:
@@ -116,10 +116,13 @@
|
||||
(str " bg-white dark:bg-gray-600 border-gray-300 dark:border-gray-700 text-gray-500 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-100 font-medium border border-gray-300 dark:border-gray-700")))
|
||||
(assoc :tabindex 0)
|
||||
(assoc :href (:href params "#")))
|
||||
[:div.htmx-indicator.flex.items-center
|
||||
(svg/spinner {:class "inline w-4 h-4 text-white"})
|
||||
[:div.ml-3 "Loading..."]]
|
||||
(into [:div.htmx-indicator-hidden.inline-flex.gap-2.items-center.justify-center] children)])
|
||||
(when (:indicator? params true)
|
||||
[:div.htmx-indicator.flex.items-center
|
||||
(svg/spinner {:class "inline w-4 h-4 text-white"})
|
||||
[:div.ml-3 "Loading..."]])
|
||||
(into [:div.inline-flex.gap-2.items-center.justify-center {:class (when (:indicator? params true)
|
||||
"htmx-indicator-hidden")}]
|
||||
children)])
|
||||
|
||||
(defn icon-button- [params & children]
|
||||
(into
|
||||
|
||||
@@ -369,7 +369,7 @@
|
||||
(assoc :value value)
|
||||
;; the data-date field has to be bound before the datepicker can be initialized
|
||||
(assoc :x-init "$nextTick(() => { dp = initMultiDatepicker($el, value); ;}); ")
|
||||
(assoc "x-effect" "setTimeout(()=> { if(dp) { dp.setDate(Array.from(value), {clear: true}); }}, 2000) ")
|
||||
(assoc "x-effect" "if(dp) { dp.setDate(Array.from(value), {clear: true}); } ")
|
||||
(assoc ":data-date" "Array.prototype.join.call(value, ', ')")
|
||||
(assoc "@htmx:before-history-save" "destroyDatepicker(dp)" )
|
||||
(assoc "@htmx:before-cleanup-element" "destroyDatepicker(dp)" )
|
||||
|
||||
@@ -295,7 +295,8 @@
|
||||
[:input {:type "hidden"
|
||||
:name (fc/field-name)
|
||||
:x-model "v"}] ]
|
||||
(com/a-button {"x-tooltip.on.click.theme.dropdown.placement.bottom.interactive" "{content: ()=> $refs.tooltip.innerHTML, allowHTML: true, appendTo: $root}"}
|
||||
(com/a-button {"x-tooltip.on.click.theme.dropdown.placement.bottom.interactive" "{content: ()=> $refs.tooltip.innerHTML, allowHTML: true, appendTo: $root}"
|
||||
:indicator? false}
|
||||
|
||||
[:template {:x-if "dates.length == 0"}
|
||||
[:span.text-left.text-gray-400 "None selected"]]
|
||||
@@ -316,6 +317,7 @@
|
||||
(com/multi-date-input {:placeholder "12/21/2020"
|
||||
:x-model "dates" })
|
||||
(com/a-button {"@click" "dates=getFourWeekPeriods(dates[dates.length -1])"} "13 periods")
|
||||
(com/a-button {"@click" "dates=withLastYear(dates[dates.length -1])"} "Add prior year")
|
||||
(com/a-button {"@click" "dates=[]"} "Clear")]]]]))
|
||||
|
||||
(com/button {:color :primary :class "w-32"}
|
||||
|
||||
Reference in New Issue
Block a user