aril 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -48
- package/esm2022/http/index.mjs +1 -1
- package/esm2022/http/lib/enums.mjs +7 -6
- package/esm2022/http/lib/interfaces.mjs +10 -31
- package/esm2022/http/src/httpClient.mjs +3 -3
- package/esm2022/http/src/serviceBase.mjs +25 -27
- package/esm2022/http/src/serviceStateMethods.mjs +3 -3
- package/esm2022/public-api.mjs +2 -2
- package/esm2022/theme/layout/app/breadcrumb/app.breadcrumb.component.mjs +41 -0
- package/esm2022/theme/layout/app/config/app.config.component.mjs +132 -0
- package/esm2022/theme/layout/app/layout/app.layout.component.mjs +137 -0
- package/esm2022/theme/layout/app/menu/app.menu.component.mjs +381 -0
- package/esm2022/theme/layout/app/profileSidebar/app.profilesidebar.component.mjs +25 -0
- package/esm2022/theme/layout/app/sidebar/app.sidebar.component.mjs +41 -0
- package/esm2022/theme/layout/app/topbar/app.topbar.component.mjs +29 -0
- package/esm2022/theme/layout/aril-theme-layout.mjs +5 -0
- package/esm2022/theme/layout/index.mjs +2 -0
- package/esm2022/theme/layout/service/app.layout.service.mjs +127 -0
- package/esm2022/theme/layout/service/app.menu.service.mjs +27 -0
- package/esm2022/theme/layout/service/menuchangeevent.mjs +2 -0
- package/esm2022/ui/badge/index.mjs +1 -1
- package/esm2022/ui/badge/src/badge.component.mjs +3 -3
- package/esm2022/ui/button/index.mjs +1 -1
- package/esm2022/ui/button/src/button.component.mjs +2 -2
- package/esm2022/ui/button/src/split-button.component.mjs +3 -3
- package/esm2022/ui/calendar/index.mjs +1 -1
- package/esm2022/ui/calendar/src/calendar.component.mjs +26 -13
- package/esm2022/ui/checkbox/index.mjs +1 -1
- package/esm2022/ui/checkbox/src/check-box.component.mjs +5 -5
- package/esm2022/ui/checkbox/src/tri-state-checkbox.component.mjs +5 -5
- package/esm2022/ui/dxField/index.mjs +1 -1
- package/esm2022/ui/dxField/src/dx-field.component.mjs +5 -5
- package/esm2022/ui/field/index.mjs +1 -1
- package/esm2022/ui/field/src/field.component.mjs +11 -9
- package/esm2022/ui/fileUpload/index.mjs +1 -1
- package/esm2022/ui/fileUpload/src/file-upload.component.mjs +11 -11
- package/esm2022/ui/form/index.mjs +20 -13
- package/esm2022/ui/form/src/form-submit-button.component.mjs +4 -3
- package/esm2022/ui/form/src/form.component.mjs +4 -4
- package/esm2022/ui/index.mjs +2 -2
- package/esm2022/ui/lib/index.mjs +1 -1
- package/esm2022/ui/lib/src/form/form-error-message.component.mjs +9 -9
- package/esm2022/ui/lib/src/form/form-error-message.directive.mjs +1 -1
- package/esm2022/ui/lib/src/form/form-field-builder.mjs +4 -4
- package/esm2022/ui/lib/src/form/form-validation.mjs +3 -3
- package/esm2022/ui/lib/src/grid/flex-grid.directive.mjs +2 -2
- package/esm2022/ui/lib/src/input/baseInput.mjs +4 -4
- package/esm2022/ui/lib/src/input/common-input-validators.service.mjs +6 -6
- package/esm2022/ui/lib/src/input/dx-input-error-message.pipe.mjs +3 -3
- package/esm2022/ui/lib/src/input/input-disabled.directive.mjs +1 -1
- package/esm2022/ui/lib/src/input/input-error-message.pipe.mjs +3 -2
- package/esm2022/ui/lib/src/input/input-transforms.mjs +1 -1
- package/esm2022/ui/lib/src/input/value-accessor.directive.mjs +12 -6
- package/esm2022/ui/mask/index.mjs +1 -1
- package/esm2022/ui/mask/src/mask.component.mjs +9 -9
- package/esm2022/ui/number/index.mjs +1 -1
- package/esm2022/ui/number/src/number.component.mjs +10 -10
- package/esm2022/ui/overlayPanel/index.mjs +1 -1
- package/esm2022/ui/overlayPanel/src/overlay-panel.component.mjs +4 -7
- package/esm2022/ui/panel/index.mjs +1 -1
- package/esm2022/ui/panel/src/panel.component.mjs +4 -4
- package/esm2022/ui/password/index.mjs +1 -1
- package/esm2022/ui/password/src/password.component.mjs +6 -6
- package/esm2022/ui/radioButton/index.mjs +1 -1
- package/esm2022/ui/radioButton/src/radio-button.component.mjs +7 -7
- package/esm2022/ui/selectBox/index.mjs +1 -1
- package/esm2022/ui/selectBox/src/select-box.component.mjs +7 -7
- package/esm2022/ui/switch/index.mjs +1 -1
- package/esm2022/ui/switch/src/switch.component.mjs +6 -6
- package/esm2022/ui/table/index.mjs +24 -17
- package/esm2022/ui/table/src/i18n.mjs +53 -90
- package/esm2022/ui/table/src/table-column.component.mjs +8 -10
- package/esm2022/ui/table/src/table.component.mjs +26 -41
- package/esm2022/ui/tagBox/index.mjs +1 -1
- package/esm2022/ui/tagBox/src/tag-box.component.mjs +12 -12
- package/esm2022/ui/text/index.mjs +1 -1
- package/esm2022/ui/text/src/text.component.mjs +4 -4
- package/esm2022/ui/textArea/index.mjs +1 -1
- package/esm2022/ui/textArea/src/text-area.component.mjs +3 -3
- package/esm2022/ui/tree/index.mjs +1 -1
- package/esm2022/ui/tree/src/tree.component.mjs +29 -45
- package/esm2022/ui/treeTable/index.mjs +1 -1
- package/esm2022/ui/treeTable/src/tree-table.component.mjs +39 -43
- package/esm2022/ui/value/index.mjs +1 -1
- package/esm2022/ui/value/src/value.component.mjs +13 -13
- package/esm2022/util/index.mjs +2 -2
- package/esm2022/util/init-event/index.mjs +1 -1
- package/esm2022/util/init-event/src/init-event.directive.mjs +1 -1
- package/esm2022/util/lib/index.mjs +1 -1
- package/esm2022/util/lib/src/interfaces.mjs +1 -1
- package/esm2022/util/lib/src/types.mjs +1 -1
- package/esm2022/util/primitive-extensions/index.mjs +5 -5
- package/esm2022/util/primitive-extensions/src/boolean.extensions.mjs +1 -1
- package/esm2022/util/primitive-extensions/src/date.extensions.mjs +68 -47
- package/esm2022/util/primitive-extensions/src/number.extensions.mjs +13 -7
- package/esm2022/util/primitive-extensions/src/string.extensions.mjs +4 -4
- package/esm2022/util/pub-sub/index.mjs +1 -1
- package/esm2022/util/pub-sub/src/pub-sub.service.mjs +7 -5
- package/fesm2022/aril-http.mjs +39 -60
- package/fesm2022/aril-http.mjs.map +1 -1
- package/fesm2022/aril-theme-layout.mjs +899 -0
- package/fesm2022/aril-theme-layout.mjs.map +1 -0
- package/fesm2022/aril-ui-badge.mjs +2 -2
- package/fesm2022/aril-ui-badge.mjs.map +1 -1
- package/fesm2022/aril-ui-button.mjs +3 -3
- package/fesm2022/aril-ui-button.mjs.map +1 -1
- package/fesm2022/aril-ui-calendar.mjs +24 -11
- package/fesm2022/aril-ui-calendar.mjs.map +1 -1
- package/fesm2022/aril-ui-checkbox.mjs +8 -8
- package/fesm2022/aril-ui-checkbox.mjs.map +1 -1
- package/fesm2022/aril-ui-dxField.mjs +4 -4
- package/fesm2022/aril-ui-dxField.mjs.map +1 -1
- package/fesm2022/aril-ui-field.mjs +9 -7
- package/fesm2022/aril-ui-field.mjs.map +1 -1
- package/fesm2022/aril-ui-fileUpload.mjs +10 -10
- package/fesm2022/aril-ui-fileUpload.mjs.map +1 -1
- package/fesm2022/aril-ui-form.mjs +23 -20
- package/fesm2022/aril-ui-form.mjs.map +1 -1
- package/fesm2022/aril-ui-lib.mjs +30 -23
- package/fesm2022/aril-ui-lib.mjs.map +1 -1
- package/fesm2022/aril-ui-mask.mjs +10 -10
- package/fesm2022/aril-ui-mask.mjs.map +1 -1
- package/fesm2022/aril-ui-number.mjs +11 -11
- package/fesm2022/aril-ui-number.mjs.map +1 -1
- package/fesm2022/aril-ui-overlayPanel.mjs +2 -5
- package/fesm2022/aril-ui-overlayPanel.mjs.map +1 -1
- package/fesm2022/aril-ui-panel.mjs +2 -2
- package/fesm2022/aril-ui-panel.mjs.map +1 -1
- package/fesm2022/aril-ui-password.mjs +6 -6
- package/fesm2022/aril-ui-password.mjs.map +1 -1
- package/fesm2022/aril-ui-radioButton.mjs +6 -6
- package/fesm2022/aril-ui-radioButton.mjs.map +1 -1
- package/fesm2022/aril-ui-selectBox.mjs +4 -4
- package/fesm2022/aril-ui-selectBox.mjs.map +1 -1
- package/fesm2022/aril-ui-switch.mjs +6 -6
- package/fesm2022/aril-ui-switch.mjs.map +1 -1
- package/fesm2022/aril-ui-table.mjs +99 -150
- package/fesm2022/aril-ui-table.mjs.map +1 -1
- package/fesm2022/aril-ui-tagBox.mjs +10 -10
- package/fesm2022/aril-ui-tagBox.mjs.map +1 -1
- package/fesm2022/aril-ui-text.mjs +3 -3
- package/fesm2022/aril-ui-text.mjs.map +1 -1
- package/fesm2022/aril-ui-textArea.mjs +2 -2
- package/fesm2022/aril-ui-textArea.mjs.map +1 -1
- package/fesm2022/aril-ui-tree.mjs +28 -44
- package/fesm2022/aril-ui-tree.mjs.map +1 -1
- package/fesm2022/aril-ui-treeTable.mjs +38 -42
- package/fesm2022/aril-ui-treeTable.mjs.map +1 -1
- package/fesm2022/aril-ui-value.mjs +11 -11
- package/fesm2022/aril-ui-value.mjs.map +1 -1
- package/fesm2022/aril-ui.mjs +1 -1
- package/fesm2022/aril-ui.mjs.map +1 -1
- package/fesm2022/aril-util-init-event.mjs.map +1 -1
- package/fesm2022/aril-util-lib.mjs.map +1 -1
- package/fesm2022/aril-util-primitive-extensions.mjs +82 -55
- package/fesm2022/aril-util-primitive-extensions.mjs.map +1 -1
- package/fesm2022/aril-util-pub-sub.mjs +6 -4
- package/fesm2022/aril-util-pub-sub.mjs.map +1 -1
- package/fesm2022/aril-util.mjs +1 -1
- package/fesm2022/aril-util.mjs.map +1 -1
- package/fesm2022/aril.mjs +1 -1
- package/fesm2022/aril.mjs.map +1 -1
- package/http/lib/enums.d.ts +6 -5
- package/http/lib/interfaces.d.ts +9 -29
- package/http/src/httpClient.d.ts +3 -3
- package/http/src/serviceBase.d.ts +2 -1
- package/http/src/serviceStateMethods.d.ts +1 -1
- package/package.json +13 -7
- package/styles/ui/ui.common.scss +8 -8
- package/theme/layout/app/breadcrumb/app.breadcrumb.component.d.ts +16 -0
- package/theme/layout/app/breadcrumb/app.breadcrumb.component.html +10 -0
- package/theme/layout/app/breadcrumb/app.breadcrumb.component.ts +50 -0
- package/theme/layout/app/config/app.config.component.d.ts +36 -0
- package/theme/layout/app/config/app.config.component.html +142 -0
- package/theme/layout/app/config/app.config.component.ts +143 -0
- package/theme/layout/app/layout/app.layout.component.d.ts +51 -0
- package/theme/layout/app/layout/app.layout.component.html +13 -0
- package/theme/layout/app/layout/app.layout.component.ts +170 -0
- package/theme/layout/app/menu/app.menu.component.d.ts +44 -0
- package/theme/layout/app/menu/app.menu.component.html +9 -0
- package/theme/layout/app/menu/app.menu.component.ts +343 -0
- package/theme/layout/app/profileSidebar/app.profilesidebar.component.d.ts +10 -0
- package/theme/layout/app/profileSidebar/app.profilesidebar.component.html +152 -0
- package/theme/layout/app/profileSidebar/app.profilesidebar.component.ts +24 -0
- package/theme/layout/app/sidebar/app.sidebar.component.d.ts +15 -0
- package/theme/layout/app/sidebar/app.sidebar.component.html +45 -0
- package/theme/layout/app/sidebar/app.sidebar.component.ts +43 -0
- package/theme/layout/app/topbar/app.topbar.component.d.ts +13 -0
- package/theme/layout/app/topbar/app.topbar.component.html +37 -0
- package/theme/layout/app/topbar/app.topbar.component.ts +28 -0
- package/theme/layout/index.d.ts +1 -0
- package/theme/layout/index.ts +1 -0
- package/theme/layout/ng-package.json +6 -0
- package/theme/layout/service/app.layout.service.d.ts +51 -0
- package/theme/layout/service/app.layout.service.ts +178 -0
- package/theme/layout/service/app.menu.service.d.ts +14 -0
- package/theme/layout/service/app.menu.service.ts +27 -0
- package/theme/layout/service/menuchangeevent.d.ts +4 -0
- package/theme/layout/service/menuchangeevent.ts +4 -0
- package/theme/styles/layout/_animation.scss +53 -53
- package/theme/styles/layout/_breadcrumb.scss +21 -21
- package/theme/styles/layout/_config.scss +42 -42
- package/theme/styles/layout/_content.scss +3 -3
- package/theme/styles/layout/_fonts.scss +40 -36
- package/theme/styles/layout/_layout_dark.scss +5 -5
- package/theme/styles/layout/_layout_dim.scss +5 -5
- package/theme/styles/layout/_layout_light.scss +5 -5
- package/theme/styles/layout/_main.scss +28 -28
- package/theme/styles/layout/_profile.scss +10 -10
- package/theme/styles/layout/_responsive.scss +111 -113
- package/theme/styles/layout/_sidebar_drawer.scss +234 -236
- package/theme/styles/layout/_sidebar_horizontal.scss +163 -163
- package/theme/styles/layout/_sidebar_reveal.scss +201 -203
- package/theme/styles/layout/_sidebar_slim.scss +144 -145
- package/theme/styles/layout/_sidebar_slim_plus.scss +162 -163
- package/theme/styles/layout/_sidebar_vertical.scss +153 -153
- package/theme/styles/layout/_topbar.scss +78 -78
- package/theme/styles/layout/_typography.scss +68 -63
- package/theme/styles/layout/_utils.scss +24 -24
- package/theme/styles/layout/layout.scss +24 -24
- package/theme/styles/layout/menutheme/_colorscheme.scss +11 -11
- package/theme/styles/layout/menutheme/_menutheme.scss +3 -3
- package/theme/styles/layout/menutheme/_primarycolor.scss +16 -16
- package/theme/styles/layout/menutheme/_transparent.scss +26 -26
- package/theme/styles/layout/preloading.scss +84 -84
- package/theme/styles/theme/base/_colors.scss +14 -15
- package/theme/styles/theme/base/_common.scss +39 -38
- package/theme/styles/theme/base/_components.scss +97 -97
- package/theme/styles/theme/base/_mixins.scss +281 -281
- package/theme/styles/theme/base/components/button/_button.scss +535 -535
- package/theme/styles/theme/base/components/button/_speeddial.scss +60 -60
- package/theme/styles/theme/base/components/button/_splitbutton.scss +328 -334
- package/theme/styles/theme/base/components/data/_carousel.scss +31 -31
- package/theme/styles/theme/base/components/data/_datatable.scss +336 -336
- package/theme/styles/theme/base/components/data/_dataview.scss +38 -38
- package/theme/styles/theme/base/components/data/_filter.scss +124 -125
- package/theme/styles/theme/base/components/data/_organizationchart.scss +48 -48
- package/theme/styles/theme/base/components/data/_paginator.scss +78 -78
- package/theme/styles/theme/base/components/data/_timeline.scss +33 -36
- package/theme/styles/theme/base/components/data/_treetable.scss +253 -254
- package/theme/styles/theme/base/components/data/_virtualscroller.scss +24 -24
- package/theme/styles/theme/base/components/file/_fileupload.scss +51 -51
- package/theme/styles/theme/base/components/input/_autocomplete.scss +120 -120
- package/theme/styles/theme/base/components/input/_calendar.scss +250 -250
- package/theme/styles/theme/base/components/input/_cascadeselect.scss +117 -118
- package/theme/styles/theme/base/components/input/_checkbox.scss +71 -71
- package/theme/styles/theme/base/components/input/_chips.scss +49 -49
- package/theme/styles/theme/base/components/input/_colorpicker.scss +11 -11
- package/theme/styles/theme/base/components/input/_dropdown.scss +141 -141
- package/theme/styles/theme/base/components/input/_editor.scss +120 -120
- package/theme/styles/theme/base/components/input/_inputgroup.scss +42 -42
- package/theme/styles/theme/base/components/input/_inputmask.scss +10 -10
- package/theme/styles/theme/base/components/input/_inputnumber.scss +21 -21
- package/theme/styles/theme/base/components/input/_inputswitch.scss +54 -54
- package/theme/styles/theme/base/components/input/_inputtext.scss +62 -62
- package/theme/styles/theme/base/components/input/_listbox.scss +80 -80
- package/theme/styles/theme/base/components/input/_multiselect.scss +158 -160
- package/theme/styles/theme/base/components/input/_password.scss +42 -42
- package/theme/styles/theme/base/components/input/_radiobutton.scss +57 -57
- package/theme/styles/theme/base/components/input/_rating.scss +53 -53
- package/theme/styles/theme/base/components/input/_selectbutton.scss +46 -46
- package/theme/styles/theme/base/components/input/_slider.scss +59 -55
- package/theme/styles/theme/base/components/input/_togglebutton.scss +44 -44
- package/theme/styles/theme/base/components/input/_treeselect.scss +119 -119
- package/theme/styles/theme/base/components/menu/_breadcrumb.scss +33 -33
- package/theme/styles/theme/base/components/menu/_contextmenu.scss +31 -31
- package/theme/styles/theme/base/components/menu/_dock.scss +80 -80
- package/theme/styles/theme/base/components/menu/_megamenu.scss +54 -54
- package/theme/styles/theme/base/components/menu/_menu.scss +30 -30
- package/theme/styles/theme/base/components/menu/_menubar.scss +136 -137
- package/theme/styles/theme/base/components/menu/_panelmenu.scss +151 -151
- package/theme/styles/theme/base/components/menu/_slidemenu.scss +57 -57
- package/theme/styles/theme/base/components/menu/_steps.scss +46 -46
- package/theme/styles/theme/base/components/menu/_tabmenu.scss +60 -61
- package/theme/styles/theme/base/components/menu/_tieredmenu.scss +34 -34
- package/theme/styles/theme/base/components/messages/_inlinemessage.scss +55 -55
- package/theme/styles/theme/base/components/messages/_message.scss +105 -105
- package/theme/styles/theme/base/components/messages/_toast.scss +97 -98
- package/theme/styles/theme/base/components/misc/_avatar.scss +22 -22
- package/theme/styles/theme/base/components/misc/_badge.scss +40 -40
- package/theme/styles/theme/base/components/misc/_chip.scss +39 -39
- package/theme/styles/theme/base/components/misc/_inplace.scss +12 -13
- package/theme/styles/theme/base/components/misc/_progressbar.scss +13 -13
- package/theme/styles/theme/base/components/misc/_scrolltop.scss +20 -20
- package/theme/styles/theme/base/components/misc/_skeleton.scss +6 -6
- package/theme/styles/theme/base/components/misc/_tag.scss +31 -31
- package/theme/styles/theme/base/components/misc/_terminal.scss +1 -1
- package/theme/styles/theme/base/components/multimedia/_galleria.scss +150 -150
- package/theme/styles/theme/base/components/multimedia/_image.scss +35 -35
- package/theme/styles/theme/base/components/overlay/_confirmpopup.scss +57 -59
- package/theme/styles/theme/base/components/overlay/_dialog.scss +56 -56
- package/theme/styles/theme/base/components/overlay/_overlaypanel.scss +58 -60
- package/theme/styles/theme/base/components/overlay/_sidebar.scss +20 -20
- package/theme/styles/theme/base/components/overlay/_tooltip.scss +27 -27
- package/theme/styles/theme/base/components/panel/_accordion.scss +104 -104
- package/theme/styles/theme/base/components/panel/_card.scss +23 -23
- package/theme/styles/theme/base/components/panel/_divider.scss +24 -24
- package/theme/styles/theme/base/components/panel/_fieldset.scss +38 -38
- package/theme/styles/theme/base/components/panel/_panel.scss +61 -61
- package/theme/styles/theme/base/components/panel/_scrollpanel.scss +5 -5
- package/theme/styles/theme/base/components/panel/_splitter.scss +15 -15
- package/theme/styles/theme/base/components/panel/_tabview.scss +68 -68
- package/theme/styles/theme/base/components/panel/_toolbar.scss +8 -8
- package/theme/styles/theme/dark/_extensions.scss +134 -120
- package/theme/styles/theme/dark/_variables.scss +918 -896
- package/theme/styles/theme/dark/blue/theme.scss +14 -14
- package/theme/styles/theme/dark/indigo/theme.scss +14 -14
- package/theme/styles/theme/light/_extensions.scss +116 -102
- package/theme/styles/theme/light/_variables.scss +911 -898
- package/theme/styles/theme/light/blue/theme.scss +14 -14
- package/theme/styles/theme/light/indigo/theme.scss +14 -14
- package/ui/calendar/src/calendar.component.d.ts +2 -2
- package/ui/form/index.d.ts +9 -0
- package/ui/form/src/form-submit-button.component.d.ts +1 -1
- package/ui/form/src/form.component.d.ts +1 -1
- package/ui/lib/src/form/form-validation.d.ts +1 -1
- package/ui/lib/src/input/baseInput.d.ts +2 -2
- package/ui/lib/src/input/common-input-validators.service.d.ts +3 -3
- package/ui/lib/src/input/dx-input-error-message.pipe.d.ts +2 -2
- package/ui/lib/src/input/input-transforms.d.ts +1 -1
- package/ui/mask/src/mask.component.d.ts +3 -3
- package/ui/number/src/number.component.d.ts +4 -4
- package/ui/overlayPanel/src/overlay-panel.component.d.ts +1 -1
- package/ui/password/src/password.component.d.ts +3 -3
- package/ui/selectBox/src/select-box.component.d.ts +2 -2
- package/ui/switch/src/switch.component.d.ts +3 -3
- package/ui/table/index.d.ts +13 -0
- package/ui/table/src/table-column.component.d.ts +6 -5
- package/ui/table/src/table.component.d.ts +8 -15
- package/ui/tree/src/tree.component.d.ts +14 -19
- package/ui/treeTable/src/tree-table.component.d.ts +14 -18
- package/ui/value/src/value.component.d.ts +2 -2
- package/util/lib/src/types.d.ts +2 -2
- package/util/primitive-extensions/index.d.ts +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-radioButton.mjs","sources":["../../projects/aril/ui/radioButton/src/radio-button.component.ts","../../projects/aril/ui/radioButton/src/radio-button.component.html","../../projects/aril/ui/radioButton/aril-ui-radioButton.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\
|
|
1
|
+
{"version":3,"file":"aril-ui-radioButton.mjs","sources":["../../projects/aril/ui/radioButton/src/radio-button.component.ts","../../projects/aril/ui/radioButton/src/radio-button.component.html","../../projects/aril/ui/radioButton/aril-ui-radioButton.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { RadioButtonModule } from 'primeng/radiobutton';\nimport { TooltipModule } from 'primeng/tooltip';\n\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\n\n/* TODO : \n 1. InputSignal\n 2. Use computed or effect instead of input setter\n*/\n\ntype Aligns = 'horizontal' | 'vertical';\ninterface RadioButtonOption {\n\tkey: any;\n\tlabel: string;\n}\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-radio-button[ngModel], aril-radio-button[formControl], aril-radio-button[formControlName]',\n\ttemplateUrl: './radio-button.component.html',\n\timports: [ReactiveFormsModule, RadioButtonModule, TooltipModule, InputErrorMessagePipe],\n\thostDirectives: [ValueAccessorDirective],\n\tchangeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class RadioButtonComponent extends BaseInputComponent {\n\t@Input({ required: true }) options: RadioButtonOption[] = [];\n\t@Input() tabindex!: number;\n\t@Input() set align(value: Aligns) {\n\t\tthis._pAlign = value == 'horizontal' ? 'flex flex-wrap gap-3' : 'flex flex-column gap-3';\n\t\tthis._cAlign = value == 'horizontal' ? 'flex align-items-center' : \"field-checkbox'\";\n\t}\n\n\t_pAlign = 'flex flex-wrap gap-3';\n\t_cAlign = 'flex align-items-center';\n}\n","<div [class]=\"_pAlign\">\n\t@for (item of options; track item) {\n\t\t<div [class]=\"_cAlign\">\n\t\t\t<p-radioButton\n\t\t\t\t[value]=\"item.key\"\n\t\t\t\t[inputId]=\"item.key\"\n\t\t\t\t[tabindex]=\"tabindex\"\n\t\t\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t\t\t\t[tooltipOptions]=\"tooltipOptions\"\n\t\t\t\t[formControl]=\"ngControl.control\"\n\t\t\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n\t\t\t</p-radioButton\n\t\t\t> \n\t\t\t<span class=\"ml-2\">{{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|
@@ -10,18 +10,18 @@ import { BaseInputComponent, InputErrorMessagePipe, DXInputErrorMessagePipe, Val
|
|
|
10
10
|
class SelectBoxComponent extends BaseInputComponent {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|
|
13
|
-
this.itemKey =
|
|
14
|
-
this.itemText =
|
|
13
|
+
this.itemKey = 'key';
|
|
14
|
+
this.itemText = 'text';
|
|
15
15
|
this.items = [];
|
|
16
16
|
/** * @description when grouped = true, option item structure { key:string, items:[] } */
|
|
17
17
|
this.grouped = false;
|
|
18
18
|
}
|
|
19
19
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SelectBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
20
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: SelectBoxComponent, isStandalone: true, selector: "aril-select-box[formControl], aril-select-box[formControlName]", inputs: { itemKey: "itemKey", itemText: "itemText", tabindex: "tabindex", items: "items", grouped: "grouped", placeholder: "placeholder", searchExpr: "searchExpr" }, providers: [InputErrorMessagePipe], usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<dx-select-box\
|
|
20
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: SelectBoxComponent, isStandalone: true, selector: "aril-select-box[formControl], aril-select-box[formControlName]", inputs: { itemKey: "itemKey", itemText: "itemText", tabindex: "tabindex", items: "items", grouped: "grouped", placeholder: "placeholder", searchExpr: "searchExpr" }, providers: [InputErrorMessagePipe], usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<dx-select-box\n\t[items]=\"items\"\n\t[valueExpr]=\"itemKey\"\n\t[displayExpr]=\"itemText\"\n\t[searchEnabled]=\"true\"\n\t[searchExpr]=\"searchExpr\"\n\t[tabIndex]=\"tabindex\"\n\t[grouped]=\"grouped\"\n\t[placeholder]=\"placeholder\"\n\t[showClearButton]=\"true\"\n\t[isValid]=\"ngControl?.control?.valid || ngControl?.control?.pristine || false\"\n\t[validationError]=\"ngControl?.control?.errors | dxInputErrorMessage: ngControl?.control\"\n\tvalidationMessagePosition=\"top\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</dx-select-box>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: DxSelectBoxModule }, { kind: "component", type: i3.DxSelectBoxComponent, selector: "dx-select-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "buttons", "customItemCreateEvent", "dataSource", "deferRendering", "disabled", "displayExpr", "displayValue", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hint", "hoverStateEnabled", "inputAttr", "isDirty", "isValid", "items", "itemTemplate", "label", "labelMode", "maxLength", "minSearchLength", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectedItem", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showSelectionControls", "spellcheck", "stylingMode", "tabIndex", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCopy", "onCustomItemCreating", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onOpened", "onOptionChanged", "onPaste", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "customItemCreateEventChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "displayValueChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isDirtyChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxLengthChange", "minSearchLengthChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectedItemChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showSelectionControlsChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "pipe", type: DXInputErrorMessagePipe, name: "dxInputErrorMessage" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
21
21
|
}
|
|
22
22
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SelectBoxComponent, decorators: [{
|
|
23
23
|
type: Component,
|
|
24
|
-
args: [{ standalone: true, selector: 'aril-select-box[formControl], aril-select-box[formControlName]', imports: [ReactiveFormsModule, DxSelectBoxModule, DXInputErrorMessagePipe], providers: [InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<dx-select-box\
|
|
24
|
+
args: [{ standalone: true, selector: 'aril-select-box[formControl], aril-select-box[formControlName]', imports: [ReactiveFormsModule, DxSelectBoxModule, DXInputErrorMessagePipe], providers: [InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<dx-select-box\n\t[items]=\"items\"\n\t[valueExpr]=\"itemKey\"\n\t[displayExpr]=\"itemText\"\n\t[searchEnabled]=\"true\"\n\t[searchExpr]=\"searchExpr\"\n\t[tabIndex]=\"tabindex\"\n\t[grouped]=\"grouped\"\n\t[placeholder]=\"placeholder\"\n\t[showClearButton]=\"true\"\n\t[isValid]=\"ngControl?.control?.valid || ngControl?.control?.pristine || false\"\n\t[validationError]=\"ngControl?.control?.errors | dxInputErrorMessage: ngControl?.control\"\n\tvalidationMessagePosition=\"top\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</dx-select-box>\n" }]
|
|
25
25
|
}], propDecorators: { itemKey: [{
|
|
26
26
|
type: Input
|
|
27
27
|
}], itemText: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-selectBox.mjs","sources":["../../projects/aril/ui/selectBox/src/select-box.component.ts","../../projects/aril/ui/selectBox/src/select-box.component.html","../../projects/aril/ui/selectBox/aril-ui-selectBox.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\
|
|
1
|
+
{"version":3,"file":"aril-ui-selectBox.mjs","sources":["../../projects/aril/ui/selectBox/src/select-box.component.ts","../../projects/aril/ui/selectBox/src/select-box.component.html","../../projects/aril/ui/selectBox/aril-ui-selectBox.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { DxSelectBoxModule } from 'devextreme-angular/ui/select-box';\n\nimport { Interfaces } from 'aril/util/lib';\nimport {\n\tBaseInputComponent,\n\tValueAccessorDirective,\n\tDXInputErrorMessagePipe,\n\tInputErrorMessagePipe\n} from 'aril/ui/lib';\n\n/* TODO : \n 1. InputSignal\n*/\n\ntype SelectBoxItem =\n\t| Interfaces.MapStringString\n\t| Interfaces.MapStringNumber\n\t| Interfaces.MapNumberString\n\t| Interfaces.MapNumberNumber;\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-select-box[formControl], aril-select-box[formControlName]',\n\ttemplateUrl: './select-box.component.html',\n\timports: [ReactiveFormsModule, DxSelectBoxModule, DXInputErrorMessagePipe],\n\tproviders: [InputErrorMessagePipe],\n\thostDirectives: [ValueAccessorDirective],\n\tchangeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SelectBoxComponent extends BaseInputComponent {\n\t@Input() itemKey = 'key';\n\t@Input() itemText = 'text';\n\t@Input() tabindex!: number;\n\t@Input({ required: true }) items: Array<SelectBoxItem> = [];\n\n\t/** * @description when grouped = true, option item structure { key:string, items:[] } */\n\t@Input() grouped = false;\n\t@Input() placeholder!: string;\n\t@Input() searchExpr!: Array<string>;\n}\n","<dx-select-box\n\t[items]=\"items\"\n\t[valueExpr]=\"itemKey\"\n\t[displayExpr]=\"itemText\"\n\t[searchEnabled]=\"true\"\n\t[searchExpr]=\"searchExpr\"\n\t[tabIndex]=\"tabindex\"\n\t[grouped]=\"grouped\"\n\t[placeholder]=\"placeholder\"\n\t[showClearButton]=\"true\"\n\t[isValid]=\"ngControl?.control?.valid || ngControl?.control?.pristine || false\"\n\t[validationError]=\"ngControl?.control?.errors | dxInputErrorMessage: ngControl?.control\"\n\tvalidationMessagePosition=\"top\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</dx-select-box>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAgCM,MAAO,kBAAmB,SAAQ,kBAAkB,CAAA;AAT1D,IAAA,WAAA,GAAA;;QAUU,IAAO,CAAA,OAAA,GAAG,KAAK,CAAC;QAChB,IAAQ,CAAA,QAAA,GAAG,MAAM,CAAC;QAEA,IAAK,CAAA,KAAA,GAAyB,EAAE,CAAC;;QAGnD,IAAO,CAAA,OAAA,GAAG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,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,UAAU,EAAA,CAAA;sBAAlB,KAAK;;;AEzCP;;AAEG;;;;"}
|
|
@@ -12,13 +12,13 @@ import { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } fro
|
|
|
12
12
|
/* TODO :
|
|
13
13
|
1. InputSignal
|
|
14
14
|
*/
|
|
15
|
-
class
|
|
16
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type:
|
|
17
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type:
|
|
15
|
+
class SwitchComponent extends BaseInputComponent {
|
|
16
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SwitchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
17
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: SwitchComponent, isStandalone: true, selector: "aril-switch[ngModel], aril-switch[formControl], aril-switch[formControlName]", inputs: { tabindex: "tabindex" }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<p-inputSwitch\n\t[tabindex]=\"tabindex\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</p-inputSwitch>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: InputSwitchModule }, { kind: "component", type: i3.InputSwitch, selector: "p-inputSwitch", inputs: ["style", "styleClass", "tabindex", "inputId", "name", "disabled", "readonly", "trueValue", "falseValue", "ariaLabel", "ariaLabelledBy"], outputs: ["onChange"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
18
18
|
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type:
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SwitchComponent, decorators: [{
|
|
20
20
|
type: Component,
|
|
21
|
-
args: [{ standalone: true, selector: 'aril-switch[ngModel], aril-switch[formControl], aril-switch[formControlName]', imports: [ReactiveFormsModule, InputSwitchModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-inputSwitch\
|
|
21
|
+
args: [{ standalone: true, selector: 'aril-switch[ngModel], aril-switch[formControl], aril-switch[formControlName]', imports: [ReactiveFormsModule, InputSwitchModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-inputSwitch\n\t[tabindex]=\"tabindex\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</p-inputSwitch>\n" }]
|
|
22
22
|
}], propDecorators: { tabindex: [{
|
|
23
23
|
type: Input
|
|
24
24
|
}] } });
|
|
@@ -27,5 +27,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
27
27
|
* Generated bundle index. Do not edit.
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
|
-
export {
|
|
30
|
+
export { SwitchComponent };
|
|
31
31
|
//# sourceMappingURL=aril-ui-switch.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-switch.mjs","sources":["../../projects/aril/ui/switch/src/switch.component.ts","../../projects/aril/ui/switch/src/switch.component.html","../../projects/aril/ui/switch/aril-ui-switch.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\
|
|
1
|
+
{"version":3,"file":"aril-ui-switch.mjs","sources":["../../projects/aril/ui/switch/src/switch.component.ts","../../projects/aril/ui/switch/src/switch.component.html","../../projects/aril/ui/switch/aril-ui-switch.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { TooltipModule } from 'primeng/tooltip';\nimport { InputSwitchModule } from 'primeng/inputswitch';\n\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\n\n/* TODO : \n 1. InputSignal\n*/\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-switch[ngModel], aril-switch[formControl], aril-switch[formControlName]',\n\ttemplateUrl: './switch.component.html',\n\timports: [ReactiveFormsModule, InputSwitchModule, TooltipModule, InputErrorMessagePipe],\n\thostDirectives: [ValueAccessorDirective],\n\tchangeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SwitchComponent extends BaseInputComponent {\n\t@Input() tabindex!: number;\n}\n","<p-inputSwitch\n\t[tabindex]=\"tabindex\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</p-inputSwitch>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAQA;;AAEE;AAUI,MAAO,eAAgB,SAAQ,kBAAkB,CAAA;8GAA1C,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,8EAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,sBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECpB5B,6SAOA,EDSW,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,mBAAmB,yTAAE,iBAAiB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,WAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,YAAA,EAAA,UAAA,EAAA,SAAA,EAAA,MAAA,EAAA,UAAA,EAAA,UAAA,EAAA,WAAA,EAAA,YAAA,EAAA,WAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,iBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,eAAA,EAAA,mBAAA,EAAA,eAAA,EAAA,QAAA,EAAA,WAAA,EAAA,WAAA,EAAA,MAAA,EAAA,aAAA,EAAA,cAAA,EAAA,UAAA,EAAA,YAAA,EAAA,cAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,qBAAqB,EAAA,IAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAI1E,eAAe,EAAA,UAAA,EAAA,CAAA;kBAR3B,SAAS;AACG,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,YACN,8EAA8E,EAAA,OAAA,EAE/E,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,aAAa,EAAE,qBAAqB,CAAC,kBACvE,CAAC,sBAAsB,CAAC,EACvB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,6SAAA,EAAA,CAAA;8BAGtC,QAAQ,EAAA,CAAA;sBAAhB,KAAK;;;AErBP;;AAEG;;;;"}
|
|
@@ -1,126 +1,89 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef, Component, Input, ContentChild, EventEmitter, ChangeDetectionStrategy, Output, ContentChildren } from '@angular/core';
|
|
3
|
-
import * as
|
|
2
|
+
import { TemplateRef, Component, Input, ContentChild, input, EventEmitter, ChangeDetectionStrategy, Output, ContentChildren, NgModule } from '@angular/core';
|
|
3
|
+
import * as i5 from '@angular/forms';
|
|
4
4
|
import { FormsModule } from '@angular/forms';
|
|
5
|
+
import * as i6 from '@angular/common';
|
|
5
6
|
import { NgFor, NgForOf, NgTemplateOutlet } from '@angular/common';
|
|
6
7
|
import * as i2 from 'primeng/table';
|
|
7
8
|
import { TableModule } from 'primeng/table';
|
|
8
|
-
import * as
|
|
9
|
+
import * as i3 from 'aril/ui/button';
|
|
9
10
|
import { ButtonComponent } from 'aril/ui/button';
|
|
11
|
+
import * as i4 from 'aril/ui/text';
|
|
10
12
|
import { TextComponent } from 'aril/ui/text';
|
|
13
|
+
import * as FileSaver from 'file-saver';
|
|
11
14
|
import { ProxyTypes } from 'aril/http';
|
|
12
15
|
import * as i1 from 'primeng/api';
|
|
13
16
|
|
|
14
17
|
const tranlations = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"Cmt"
|
|
57
|
-
],
|
|
58
|
-
"dayNamesMin": [
|
|
59
|
-
"Pz",
|
|
60
|
-
"Pt",
|
|
61
|
-
"Sa",
|
|
62
|
-
"Ça",
|
|
63
|
-
"Pe",
|
|
64
|
-
"Cu",
|
|
65
|
-
"Ct"
|
|
18
|
+
matchAll: 'Tümü',
|
|
19
|
+
matchAny: 'Herhangi biri',
|
|
20
|
+
startsWith: 'İle başlar',
|
|
21
|
+
contains: 'İçerir',
|
|
22
|
+
notContains: 'İçermez',
|
|
23
|
+
notEquals: 'Eşit değildir',
|
|
24
|
+
endsWith: 'İle biter',
|
|
25
|
+
equals: 'Eşittir',
|
|
26
|
+
lt: 'Eşit değildir',
|
|
27
|
+
lte: 'Küçük eşittir',
|
|
28
|
+
gt: 'Büyüktür',
|
|
29
|
+
gte: 'Büyük eşittir',
|
|
30
|
+
is: 'Eşittir',
|
|
31
|
+
isNot: 'Eşit değildir',
|
|
32
|
+
before: 'Önce',
|
|
33
|
+
after: 'Sonra',
|
|
34
|
+
clear: 'Temizle',
|
|
35
|
+
apply: 'Uygula',
|
|
36
|
+
addRule: 'Kural Ekle',
|
|
37
|
+
removeRule: 'Kural Kaldır',
|
|
38
|
+
accept: 'Kabul',
|
|
39
|
+
reject: 'Reddet',
|
|
40
|
+
choose: 'Seç',
|
|
41
|
+
upload: 'Yükle',
|
|
42
|
+
cancel: 'İptal',
|
|
43
|
+
dayNames: ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'],
|
|
44
|
+
dayNamesShort: ['Paz', 'Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cmt'],
|
|
45
|
+
dayNamesMin: ['Pz', 'Pt', 'Sa', 'Ça', 'Pe', 'Cu', 'Ct'],
|
|
46
|
+
monthNames: [
|
|
47
|
+
'Ocak',
|
|
48
|
+
'Şubat',
|
|
49
|
+
'Mart',
|
|
50
|
+
'Nisan',
|
|
51
|
+
'Mayıs',
|
|
52
|
+
'Haziran',
|
|
53
|
+
'Temmuz',
|
|
54
|
+
'Ağustos',
|
|
55
|
+
'Eylül',
|
|
56
|
+
'Ekim',
|
|
57
|
+
'Kasım',
|
|
58
|
+
'Aralık'
|
|
66
59
|
],
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"Kasım",
|
|
79
|
-
"Aralık"
|
|
80
|
-
],
|
|
81
|
-
"monthNamesShort": [
|
|
82
|
-
"Oca",
|
|
83
|
-
"Şub",
|
|
84
|
-
"Mar",
|
|
85
|
-
"Nis",
|
|
86
|
-
"May",
|
|
87
|
-
"Haz",
|
|
88
|
-
"Tem",
|
|
89
|
-
"Ağu",
|
|
90
|
-
"Eyl",
|
|
91
|
-
"Eki",
|
|
92
|
-
"Kas",
|
|
93
|
-
"Ara"
|
|
94
|
-
],
|
|
95
|
-
"dateFormat": "dd.mm.yy",
|
|
96
|
-
"firstDayOfWeek": 1,
|
|
97
|
-
"today": "Bugün",
|
|
98
|
-
"weekHeader": "Hf",
|
|
99
|
-
"weak": "Zayıf",
|
|
100
|
-
"medium": "Orta",
|
|
101
|
-
"strong": "Güçlü",
|
|
102
|
-
"passwordPrompt": "Şifre",
|
|
103
|
-
"emptyMessage": "Kayıt bulunamadı",
|
|
104
|
-
"emptyFilterMessage": "Eşleşen kayıt bulunamadı"
|
|
60
|
+
monthNamesShort: ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'],
|
|
61
|
+
dateFormat: 'dd.mm.yy',
|
|
62
|
+
firstDayOfWeek: 1,
|
|
63
|
+
today: 'Bugün',
|
|
64
|
+
weekHeader: 'Hf',
|
|
65
|
+
weak: 'Zayıf',
|
|
66
|
+
medium: 'Orta',
|
|
67
|
+
strong: 'Güçlü',
|
|
68
|
+
passwordPrompt: 'Şifre',
|
|
69
|
+
emptyMessage: 'Kayıt bulunamadı',
|
|
70
|
+
emptyFilterMessage: 'Eşleşen kayıt bulunamadı'
|
|
105
71
|
};
|
|
106
72
|
|
|
107
73
|
class TableColumnComponent {
|
|
108
74
|
constructor() {
|
|
109
75
|
this.type = 'text';
|
|
76
|
+
this.isOperation = false;
|
|
110
77
|
}
|
|
111
78
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TableColumnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
112
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: TableColumnComponent,
|
|
113
|
-
<ng-content></ng-content>
|
|
114
|
-
`, isInline: true }); }
|
|
79
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: TableColumnComponent, selector: "aril-table-column", inputs: { field: "field", header: "header", type: "type", isOperation: "isOperation" }, queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true }); }
|
|
115
80
|
}
|
|
116
81
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TableColumnComponent, decorators: [{
|
|
117
82
|
type: Component,
|
|
118
83
|
args: [{
|
|
119
|
-
standalone: true,
|
|
84
|
+
// standalone: true,
|
|
120
85
|
selector: 'aril-table-column',
|
|
121
|
-
template: `
|
|
122
|
-
<ng-content></ng-content>
|
|
123
|
-
`
|
|
86
|
+
template: ` <ng-content></ng-content> `
|
|
124
87
|
}]
|
|
125
88
|
}], propDecorators: { field: [{
|
|
126
89
|
type: Input,
|
|
@@ -129,7 +92,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
129
92
|
type: Input,
|
|
130
93
|
args: [{ required: true }]
|
|
131
94
|
}], type: [{
|
|
132
|
-
type: Input
|
|
95
|
+
type: Input,
|
|
96
|
+
args: [{ required: true }]
|
|
133
97
|
}], isOperation: [{
|
|
134
98
|
type: Input
|
|
135
99
|
}], template: [{
|
|
@@ -137,28 +101,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
137
101
|
args: [TemplateRef]
|
|
138
102
|
}] } });
|
|
139
103
|
|
|
104
|
+
/* TODO :
|
|
105
|
+
* server-side-proxy (ProxyTypes.ServerSide)
|
|
106
|
+
* search & colum filter & sort
|
|
107
|
+
* export
|
|
108
|
+
* pagination operation
|
|
109
|
+
* p-datatable-sm th padding:.25rem
|
|
110
|
+
*/
|
|
111
|
+
const pageOptions = [10, 20, 50, 100];
|
|
140
112
|
class TableComponent {
|
|
141
113
|
constructor(primengConfig) {
|
|
142
114
|
this.primengConfig = primengConfig;
|
|
143
|
-
this.data =
|
|
144
|
-
this.checkboxSelection =
|
|
145
|
-
this.
|
|
146
|
-
this.
|
|
147
|
-
this.
|
|
148
|
-
this.loading = false;
|
|
149
|
-
this.proxy = ProxyTypes.Native;
|
|
115
|
+
this.data = input.required();
|
|
116
|
+
this.checkboxSelection = input();
|
|
117
|
+
this.pageSize = input(10);
|
|
118
|
+
this.proxy = input(ProxyTypes.Native);
|
|
119
|
+
this.onPageEvent = new EventEmitter();
|
|
150
120
|
this.selectionEvent = new EventEmitter();
|
|
121
|
+
this.pageOptions = pageOptions;
|
|
151
122
|
this.primengConfig.setTranslation(tranlations);
|
|
152
123
|
}
|
|
153
|
-
setFilteredRows(rows) {
|
|
154
|
-
this.filteredRows = rows;
|
|
155
|
-
}
|
|
156
124
|
excelExport() {
|
|
157
125
|
import('xlsx').then((xlsx) => {
|
|
158
|
-
const worksheet = xlsx.utils.json_to_sheet(this.
|
|
126
|
+
const worksheet = xlsx.utils.json_to_sheet(this.data());
|
|
159
127
|
const workbook = { Sheets: { data: worksheet }, SheetNames: ['data'] };
|
|
160
128
|
const excelBuffer = xlsx.write(workbook, { bookType: 'xlsx', type: 'array' });
|
|
161
|
-
this.saveAsExcelFile(excelBuffer, '
|
|
129
|
+
this.saveAsExcelFile(excelBuffer, 'excel_worksheet');
|
|
162
130
|
});
|
|
163
131
|
}
|
|
164
132
|
saveAsExcelFile(buffer, fileName) {
|
|
@@ -170,30 +138,13 @@ class TableComponent {
|
|
|
170
138
|
FileSaver.saveAs(data, fileName + '_export_' + new Date().getTime() + EXCEL_EXTENSION);
|
|
171
139
|
}
|
|
172
140
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TableComponent, deps: [{ token: i1.PrimeNGConfig }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
173
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: TableComponent,
|
|
141
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: TableComponent, selector: "aril-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, checkboxSelection: { classPropertyName: "checkboxSelection", publicName: "checkboxSelection", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, proxy: { classPropertyName: "proxy", publicName: "proxy", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onPageEvent: "onPageEvent", selectionEvent: "selectionEvent" }, queries: [{ propertyName: "columns", predicate: TableColumnComponent }], ngImport: i0, template: "<p-table\n\t#ref\n\t[value]=\"data()\"\n\t[columns]=\"columns._results\"\n\t[rows]=\"pageSize()\"\n\t[rowHover]=\"true\"\n\t[paginator]=\"true\"\n\t[rowsPerPageOptions]=\"[10, 20, 50, 100]\"\n\t[filterDelay]=\"0\"\n\tsortMode=\"multiple\"\n\t[(selection)]=\"selectedRows\"\n\t(onPage)=\"onPageEvent.emit($event)\"\n\t(selectionChange)=\"selectionEvent.emit(selectedRows)\"\n\t[showCurrentPageReport]=\"true\"\n\tcurrentPageReportTemplate=\"Toplam : {totalRecords} kay\u0131t | Sayfa : {currentPage} / {totalPages}\"\n\tstyleClass=\"p-datatable-gridlines p-datatable-striped p-datatable-sm\">\n\t<ng-template pTemplate=\"caption\">\n\t\t<div class=\"flex\">\n\t\t\t<aril-button\n\t\t\t\tsize=\"sm\"\n\t\t\t\ticon=\"FILE_EXCEL\"\n\t\t\t\tcolor=\"primary\"\n\t\t\t\tpTooltip=\"XLS\"\n\t\t\t\ttooltipPosition=\"top\"\n\t\t\t\t(clickEvent)=\"excelExport()\">\n\t\t\t</aril-button>\n\t\t\t<span class=\"p-input-icon-left ml-auto\">\n\t\t\t\t<aril-text\n\t\t\t\t\ticon=\"SEARCH\"\n\t\t\t\t\ticonPos=\"left\"\n\t\t\t\t\tplaceholder=\"Arama\"\n\t\t\t\t\t[ngModel]=\"filterText\"\n\t\t\t\t\t(ngModelChange)=\"ref.filterGlobal($event, 'contains')\">\n\t\t\t\t</aril-text>\n\t\t\t</span>\n\t\t</div>\n\t</ng-template>\n\t<ng-template pTemplate=\"header\" let-columns>\n\t\t<tr>\n\t\t\t@if (checkboxSelection()) {\n\t\t\t\t<th>\n\t\t\t\t\t<p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n\t\t\t\t</th>\n\t\t\t}\n\t\t\t@for (column of columns; track $index) {\n\t\t\t\t@if (column.isOperation) {\n\t\t\t\t\t<th>\n\t\t\t\t\t\t<div class=\"flex justify-content-center\">Operations</div>\n\t\t\t\t\t</th>\n\t\t\t\t} @else {\n\t\t\t\t\t<th [pSortableColumn]=\"column.field\">\n\t\t\t\t\t\t<div class=\"flex justify-content-between align-items-center\">\n\t\t\t\t\t\t\t{{ column.header }}\n\t\t\t\t\t\t\t<p-sortIcon [field]=\"column.field\"></p-sortIcon>\n\t\t\t\t\t\t\t<p-columnFilter\n\t\t\t\t\t\t\t\tdisplay=\"menu\"\n\t\t\t\t\t\t\t\t[type]=\"column.type\"\n\t\t\t\t\t\t\t\t[field]=\"column.field\"\n\t\t\t\t\t\t\t\t[showMatchModes]=\"true\"\n\t\t\t\t\t\t\t\t[showOperator]=\"false\"\n\t\t\t\t\t\t\t\t[showAddButton]=\"true\">\n\t\t\t\t\t\t\t</p-columnFilter>\n\t\t\t\t\t\t\t<!-- custom filter for (date etc.)-->\n\t\t\t\t\t\t\t<!-- <p-columnFilter type=\"text\" [field]=\"col.field\" [matchModeOptions]=\"matchModeOptions\" [matchMode]=\"'custom-equals'\"></p-columnFilter> -->\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</th>\n\t\t\t\t}\n\t\t\t}\n\t\t</tr>\n\t</ng-template>\n\t<ng-template pTemplate=\"body\" let-item let-columns=\"columns\">\n\t\t<tr>\n\t\t\t@if (checkboxSelection()) {\n\t\t\t\t<td>\n\t\t\t\t\t<p-tableCheckbox [value]=\"item\"></p-tableCheckbox>\n\t\t\t\t</td>\n\t\t\t}\n\t\t\t@for (column of columns; track $index) {\n\t\t\t\t<td>\n\t\t\t\t\t<ng-template ngFor [ngForOf]=\"[item]\" [ngForTemplate]=\"column.template\"> </ng-template>\n\t\t\t\t</td>\n\t\t\t}\n\t\t</tr>\n\t</ng-template>\n\t<ng-template pTemplate=\"summary\">\n\t\t<ng-content select=\"[footer]\"></ng-content>\n\t</ng-template>\n\t<ng-template pTemplate=\"emptymessage\">\n\t\t<tr>\n\t\t\t<td [attr.colspan]=\"columns._results.length\">No Data Found</td>\n\t\t</tr>\n\t</ng-template>\n</p-table>\n", dependencies: [{ kind: "component", type: i2.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll", "virtualRowHeight"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i2.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { kind: "component", type: i2.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { kind: "component", type: i2.TableCheckbox, selector: "p-tableCheckbox", inputs: ["disabled", "value", "index", "inputId", "name", "required", "ariaLabel"] }, { kind: "component", type: i2.TableHeaderCheckbox, selector: "p-tableHeaderCheckbox", inputs: ["disabled", "inputId", "name", "ariaLabel"] }, { kind: "component", type: i2.ColumnFilter, selector: "p-columnFilter", inputs: ["field", "type", "display", "showMenu", "matchMode", "operator", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "hideOnClear", "placeholder", "matchModeOptions", "maxConstraints", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "useGrouping", "showButtons"] }, { kind: "component", type: i3.ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "outlined", "badge", "size", "icon", "color"], outputs: ["clickEvent"] }, { kind: "component", type: i4.TextComponent, selector: "aril-text[ngModel], aril-text[formControl], aril-text[formControlName]", inputs: ["placeholder", "tabindex", "icon", "iconPos", "size"] }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
|
|
174
142
|
}
|
|
175
143
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TableComponent, decorators: [{
|
|
176
144
|
type: Component,
|
|
177
|
-
args: [{
|
|
178
|
-
}], ctorParameters: () => [{ type: i1.PrimeNGConfig }], propDecorators: {
|
|
179
|
-
type:
|
|
180
|
-
args: [{ required: true }]
|
|
181
|
-
}], checkboxSelection: [{
|
|
182
|
-
type: Input
|
|
183
|
-
}], rows: [{
|
|
184
|
-
type: Input
|
|
185
|
-
}], rowsPerPageOptions: [{
|
|
186
|
-
type: Input
|
|
187
|
-
}], paginator: [{
|
|
188
|
-
type: Input
|
|
189
|
-
}], loading: [{
|
|
190
|
-
type: Input
|
|
191
|
-
}], selectionMode: [{
|
|
192
|
-
type: Input
|
|
193
|
-
}], contextMenu: [{
|
|
194
|
-
type: Input
|
|
195
|
-
}], proxy: [{
|
|
196
|
-
type: Input
|
|
145
|
+
args: [{ selector: 'aril-table', changeDetection: ChangeDetectionStrategy.Default, template: "<p-table\n\t#ref\n\t[value]=\"data()\"\n\t[columns]=\"columns._results\"\n\t[rows]=\"pageSize()\"\n\t[rowHover]=\"true\"\n\t[paginator]=\"true\"\n\t[rowsPerPageOptions]=\"[10, 20, 50, 100]\"\n\t[filterDelay]=\"0\"\n\tsortMode=\"multiple\"\n\t[(selection)]=\"selectedRows\"\n\t(onPage)=\"onPageEvent.emit($event)\"\n\t(selectionChange)=\"selectionEvent.emit(selectedRows)\"\n\t[showCurrentPageReport]=\"true\"\n\tcurrentPageReportTemplate=\"Toplam : {totalRecords} kay\u0131t | Sayfa : {currentPage} / {totalPages}\"\n\tstyleClass=\"p-datatable-gridlines p-datatable-striped p-datatable-sm\">\n\t<ng-template pTemplate=\"caption\">\n\t\t<div class=\"flex\">\n\t\t\t<aril-button\n\t\t\t\tsize=\"sm\"\n\t\t\t\ticon=\"FILE_EXCEL\"\n\t\t\t\tcolor=\"primary\"\n\t\t\t\tpTooltip=\"XLS\"\n\t\t\t\ttooltipPosition=\"top\"\n\t\t\t\t(clickEvent)=\"excelExport()\">\n\t\t\t</aril-button>\n\t\t\t<span class=\"p-input-icon-left ml-auto\">\n\t\t\t\t<aril-text\n\t\t\t\t\ticon=\"SEARCH\"\n\t\t\t\t\ticonPos=\"left\"\n\t\t\t\t\tplaceholder=\"Arama\"\n\t\t\t\t\t[ngModel]=\"filterText\"\n\t\t\t\t\t(ngModelChange)=\"ref.filterGlobal($event, 'contains')\">\n\t\t\t\t</aril-text>\n\t\t\t</span>\n\t\t</div>\n\t</ng-template>\n\t<ng-template pTemplate=\"header\" let-columns>\n\t\t<tr>\n\t\t\t@if (checkboxSelection()) {\n\t\t\t\t<th>\n\t\t\t\t\t<p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n\t\t\t\t</th>\n\t\t\t}\n\t\t\t@for (column of columns; track $index) {\n\t\t\t\t@if (column.isOperation) {\n\t\t\t\t\t<th>\n\t\t\t\t\t\t<div class=\"flex justify-content-center\">Operations</div>\n\t\t\t\t\t</th>\n\t\t\t\t} @else {\n\t\t\t\t\t<th [pSortableColumn]=\"column.field\">\n\t\t\t\t\t\t<div class=\"flex justify-content-between align-items-center\">\n\t\t\t\t\t\t\t{{ column.header }}\n\t\t\t\t\t\t\t<p-sortIcon [field]=\"column.field\"></p-sortIcon>\n\t\t\t\t\t\t\t<p-columnFilter\n\t\t\t\t\t\t\t\tdisplay=\"menu\"\n\t\t\t\t\t\t\t\t[type]=\"column.type\"\n\t\t\t\t\t\t\t\t[field]=\"column.field\"\n\t\t\t\t\t\t\t\t[showMatchModes]=\"true\"\n\t\t\t\t\t\t\t\t[showOperator]=\"false\"\n\t\t\t\t\t\t\t\t[showAddButton]=\"true\">\n\t\t\t\t\t\t\t</p-columnFilter>\n\t\t\t\t\t\t\t<!-- custom filter for (date etc.)-->\n\t\t\t\t\t\t\t<!-- <p-columnFilter type=\"text\" [field]=\"col.field\" [matchModeOptions]=\"matchModeOptions\" [matchMode]=\"'custom-equals'\"></p-columnFilter> -->\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</th>\n\t\t\t\t}\n\t\t\t}\n\t\t</tr>\n\t</ng-template>\n\t<ng-template pTemplate=\"body\" let-item let-columns=\"columns\">\n\t\t<tr>\n\t\t\t@if (checkboxSelection()) {\n\t\t\t\t<td>\n\t\t\t\t\t<p-tableCheckbox [value]=\"item\"></p-tableCheckbox>\n\t\t\t\t</td>\n\t\t\t}\n\t\t\t@for (column of columns; track $index) {\n\t\t\t\t<td>\n\t\t\t\t\t<ng-template ngFor [ngForOf]=\"[item]\" [ngForTemplate]=\"column.template\"> </ng-template>\n\t\t\t\t</td>\n\t\t\t}\n\t\t</tr>\n\t</ng-template>\n\t<ng-template pTemplate=\"summary\">\n\t\t<ng-content select=\"[footer]\"></ng-content>\n\t</ng-template>\n\t<ng-template pTemplate=\"emptymessage\">\n\t\t<tr>\n\t\t\t<td [attr.colspan]=\"columns._results.length\">No Data Found</td>\n\t\t</tr>\n\t</ng-template>\n</p-table>\n" }]
|
|
146
|
+
}], ctorParameters: () => [{ type: i1.PrimeNGConfig }], propDecorators: { onPageEvent: [{
|
|
147
|
+
type: Output
|
|
197
148
|
}], selectionEvent: [{
|
|
198
149
|
type: Output
|
|
199
150
|
}], columns: [{
|
|
@@ -201,26 +152,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
201
152
|
args: [TableColumnComponent]
|
|
202
153
|
}] } });
|
|
203
154
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
// })
|
|
219
|
-
// export class ARiLTableModule { }
|
|
155
|
+
const components = [TableComponent, TableColumnComponent];
|
|
156
|
+
class ARiLTableModule {
|
|
157
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ARiLTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
158
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.2", ngImport: i0, type: ARiLTableModule, declarations: [TableComponent, TableColumnComponent], imports: [TableModule, ButtonComponent, TextComponent, FormsModule, NgFor, NgForOf, NgTemplateOutlet], exports: [TableComponent, TableColumnComponent] }); }
|
|
159
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ARiLTableModule, imports: [TableModule, ButtonComponent, TextComponent, FormsModule] }); }
|
|
160
|
+
}
|
|
161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ARiLTableModule, decorators: [{
|
|
162
|
+
type: NgModule,
|
|
163
|
+
args: [{
|
|
164
|
+
imports: [TableModule, ButtonComponent, TextComponent, FormsModule, NgFor, NgForOf, NgTemplateOutlet],
|
|
165
|
+
exports: [components],
|
|
166
|
+
declarations: [components]
|
|
167
|
+
}]
|
|
168
|
+
}] });
|
|
220
169
|
|
|
221
170
|
/**
|
|
222
171
|
* Generated bundle index. Do not edit.
|
|
223
172
|
*/
|
|
224
173
|
|
|
225
|
-
export { TableColumnComponent, TableComponent };
|
|
174
|
+
export { ARiLTableModule, TableColumnComponent, TableComponent };
|
|
226
175
|
//# sourceMappingURL=aril-ui-table.mjs.map
|