@aquera/nile-elements 1.5.4 → 1.5.6
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 +10 -0
- package/demo/index.css +9 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +871 -255
- package/dist/nile-auto-complete/nile-auto-complete.css.cjs.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.css.cjs.js.map +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.css.esm.js +13 -2
- package/dist/nile-button/nile-button.cjs.js +1 -1
- package/dist/nile-button/nile-button.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.css.cjs.js +1 -1
- package/dist/nile-button/nile-button.css.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.css.esm.js +89 -33
- package/dist/nile-button/nile-button.esm.js +2 -2
- package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.esm.js +59 -2
- package/dist/nile-calendar/nile-calendar.esm.js +16 -10
- package/dist/nile-checkbox/nile-checkbox.css.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.css.cjs.js.map +1 -1
- package/dist/nile-checkbox/nile-checkbox.css.esm.js +4 -5
- package/dist/nile-chip/nile-chip.css.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.css.cjs.js.map +1 -1
- package/dist/nile-chip/nile-chip.css.esm.js +37 -23
- package/dist/nile-code-editor/nile-code-editor.cjs.js +1 -1
- package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
- package/dist/nile-code-editor/nile-code-editor.css.cjs.js +1 -1
- package/dist/nile-code-editor/nile-code-editor.css.cjs.js.map +1 -1
- package/dist/nile-code-editor/nile-code-editor.css.esm.js +7 -6
- package/dist/nile-code-editor/nile-code-editor.esm.js +1 -1
- package/dist/nile-date-picker/nile-date-picker.cjs.js +1 -1
- package/dist/nile-date-picker/nile-date-picker.cjs.js.map +1 -1
- package/dist/nile-date-picker/nile-date-picker.esm.js +4 -4
- package/dist/nile-detail/index.cjs.js +2 -0
- package/dist/nile-detail/index.cjs.js.map +1 -0
- package/dist/nile-detail/index.esm.js +1 -0
- package/dist/nile-detail/nile-detail.cjs.js +2 -0
- package/dist/nile-detail/nile-detail.cjs.js.map +1 -0
- package/dist/nile-detail/nile-detail.css.cjs.js +2 -0
- package/dist/nile-detail/nile-detail.css.cjs.js.map +1 -0
- package/dist/nile-detail/nile-detail.css.esm.js +149 -0
- package/dist/nile-detail/nile-detail.esm.js +45 -0
- package/dist/nile-detail/nile-detail.utils.cjs.js +2 -0
- package/dist/nile-detail/nile-detail.utils.cjs.js.map +1 -0
- package/dist/nile-detail/nile-detail.utils.esm.js +1 -0
- package/dist/nile-dropdown/nile-dropdown.cjs.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.cjs.js.map +1 -1
- package/dist/nile-dropdown/nile-dropdown.esm.js +1 -1
- package/dist/nile-file-upload/utils/file-validation.util.cjs.js +2 -2
- package/dist/nile-file-upload/utils/file-validation.util.cjs.js.map +1 -1
- package/dist/nile-file-upload/utils/file-validation.util.esm.js +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.cjs.js +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.cjs.js.map +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js.map +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.css.esm.js +24 -2
- package/dist/nile-filter-chip/nile-filter-chip.esm.js +2 -2
- package/dist/nile-inline-edit/nile-inline-edit.cjs.js +1 -1
- package/dist/nile-inline-edit/nile-inline-edit.cjs.js.map +1 -1
- package/dist/nile-inline-edit/nile-inline-edit.css.cjs.js +1 -1
- package/dist/nile-inline-edit/nile-inline-edit.css.cjs.js.map +1 -1
- package/dist/nile-inline-edit/nile-inline-edit.css.esm.js +15 -6
- package/dist/nile-inline-edit/nile-inline-edit.esm.js +2 -2
- package/dist/nile-inline-sidebar/nile-inline-sidebar.cjs.js +1 -1
- package/dist/nile-inline-sidebar/nile-inline-sidebar.cjs.js.map +1 -1
- package/dist/nile-inline-sidebar/nile-inline-sidebar.css.cjs.js +1 -1
- package/dist/nile-inline-sidebar/nile-inline-sidebar.css.cjs.js.map +1 -1
- package/dist/nile-inline-sidebar/nile-inline-sidebar.css.esm.js +19 -0
- package/dist/nile-inline-sidebar/nile-inline-sidebar.esm.js +16 -14
- package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.cjs.js +1 -1
- package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.cjs.js.map +1 -1
- package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.esm.js +8 -3
- package/dist/nile-input/nile-input.css.cjs.js +1 -1
- package/dist/nile-input/nile-input.css.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.css.esm.js +4 -4
- package/dist/nile-link/nile-link.cjs.js +1 -1
- package/dist/nile-link/nile-link.cjs.js.map +1 -1
- package/dist/nile-link/nile-link.css.cjs.js +1 -1
- package/dist/nile-link/nile-link.css.cjs.js.map +1 -1
- package/dist/nile-link/nile-link.css.esm.js +3 -4
- package/dist/nile-link/nile-link.esm.js +2 -2
- package/dist/nile-pagination/nile-pagination.cjs.js +1 -1
- package/dist/nile-pagination/nile-pagination.cjs.js.map +1 -1
- package/dist/nile-pagination/nile-pagination.css.cjs.js +1 -1
- package/dist/nile-pagination/nile-pagination.css.cjs.js.map +1 -1
- package/dist/nile-pagination/nile-pagination.css.esm.js +109 -5
- package/dist/nile-pagination/nile-pagination.esm.js +70 -3
- package/dist/nile-qr-code/index.cjs.js +2 -0
- package/dist/nile-qr-code/index.cjs.js.map +1 -0
- package/dist/nile-qr-code/index.esm.js +1 -0
- package/dist/nile-qr-code/nile-qr-code-utils.cjs.js +2 -0
- package/dist/nile-qr-code/nile-qr-code-utils.cjs.js.map +1 -0
- package/dist/nile-qr-code/nile-qr-code-utils.esm.js +1 -0
- package/dist/nile-qr-code/nile-qr-code.cjs.js +2 -0
- package/dist/nile-qr-code/nile-qr-code.cjs.js.map +1 -0
- package/dist/nile-qr-code/nile-qr-code.css.cjs.js +2 -0
- package/dist/nile-qr-code/nile-qr-code.css.cjs.js.map +1 -0
- package/dist/nile-qr-code/nile-qr-code.css.esm.js +12 -0
- package/dist/nile-qr-code/nile-qr-code.esm.js +9 -0
- package/dist/nile-radio/nile-radio.css.cjs.js +1 -1
- package/dist/nile-radio/nile-radio.css.cjs.js.map +1 -1
- package/dist/nile-radio/nile-radio.css.esm.js +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +25 -6
- package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +1 -1
- package/dist/nile-rich-text-editor/nile-rte-select.cjs.js +1 -1
- package/dist/nile-rich-text-editor/nile-rte-select.cjs.js.map +1 -1
- package/dist/nile-rich-text-editor/nile-rte-select.esm.js +4 -3
- package/dist/nile-select/nile-select.css.cjs.js +1 -1
- package/dist/nile-select/nile-select.css.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.css.esm.js +7 -4
- package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js.map +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.css.esm.js +5 -1
- package/dist/nile-textarea/nile-textarea.css.cjs.js +1 -1
- package/dist/nile-textarea/nile-textarea.css.cjs.js.map +1 -1
- package/dist/nile-textarea/nile-textarea.css.esm.js +10 -5
- package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js.map +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.css.esm.js +5 -3
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/nile-auto-complete/nile-auto-complete.css.js +11 -0
- package/dist/src/nile-auto-complete/nile-auto-complete.css.js.map +1 -1
- package/dist/src/nile-button/nile-button.css.js +89 -33
- package/dist/src/nile-button/nile-button.css.js.map +1 -1
- package/dist/src/nile-button/nile-button.js +5 -5
- package/dist/src/nile-button/nile-button.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.css.js +57 -0
- package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.d.ts +1 -0
- package/dist/src/nile-calendar/nile-calendar.js +24 -6
- package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
- package/dist/src/nile-checkbox/nile-checkbox.css.js +4 -5
- package/dist/src/nile-checkbox/nile-checkbox.css.js.map +1 -1
- package/dist/src/nile-chip/nile-chip.css.js +35 -21
- package/dist/src/nile-chip/nile-chip.css.js.map +1 -1
- package/dist/src/nile-code-editor/nile-code-editor.css.js +7 -6
- package/dist/src/nile-code-editor/nile-code-editor.css.js.map +1 -1
- package/dist/src/nile-code-editor/nile-code-editor.d.ts +1 -1
- package/dist/src/nile-code-editor/nile-code-editor.js +7 -1
- package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
- package/dist/src/nile-date-picker/nile-date-picker.d.ts +3 -0
- package/dist/src/nile-date-picker/nile-date-picker.js +22 -2
- package/dist/src/nile-date-picker/nile-date-picker.js.map +1 -1
- package/dist/src/nile-detail/index.d.ts +1 -0
- package/dist/src/nile-detail/index.js +2 -0
- package/dist/src/nile-detail/index.js.map +1 -0
- package/dist/src/nile-detail/nile-detail.css.d.ts +3 -0
- package/dist/src/nile-detail/nile-detail.css.js +152 -0
- package/dist/src/nile-detail/nile-detail.css.js.map +1 -0
- package/dist/src/nile-detail/nile-detail.d.ts +29 -0
- package/dist/src/nile-detail/nile-detail.js +143 -0
- package/dist/src/nile-detail/nile-detail.js.map +1 -0
- package/dist/src/nile-detail/nile-detail.test.d.ts +1 -0
- package/dist/src/nile-detail/nile-detail.test.js +168 -0
- package/dist/src/nile-detail/nile-detail.test.js.map +1 -0
- package/dist/src/nile-detail/nile-detail.utils.d.ts +8 -0
- package/dist/src/nile-detail/nile-detail.utils.js +117 -0
- package/dist/src/nile-detail/nile-detail.utils.js.map +1 -0
- package/dist/src/nile-dropdown/nile-dropdown.d.ts +1 -0
- package/dist/src/nile-dropdown/nile-dropdown.js +11 -0
- package/dist/src/nile-dropdown/nile-dropdown.js.map +1 -1
- package/dist/src/nile-file-upload/utils/file-validation.util.js +11 -6
- package/dist/src/nile-file-upload/utils/file-validation.util.js.map +1 -1
- package/dist/src/nile-filter-chip/nile-filter-chip.css.js +22 -0
- package/dist/src/nile-filter-chip/nile-filter-chip.css.js.map +1 -1
- package/dist/src/nile-filter-chip/nile-filter-chip.d.ts +1 -0
- package/dist/src/nile-filter-chip/nile-filter-chip.js +6 -0
- package/dist/src/nile-filter-chip/nile-filter-chip.js.map +1 -1
- package/dist/src/nile-inline-edit/nile-inline-edit.css.js +15 -6
- package/dist/src/nile-inline-edit/nile-inline-edit.css.js.map +1 -1
- package/dist/src/nile-inline-edit/nile-inline-edit.d.ts +2 -0
- package/dist/src/nile-inline-edit/nile-inline-edit.js +7 -0
- package/dist/src/nile-inline-edit/nile-inline-edit.js.map +1 -1
- package/dist/src/nile-inline-sidebar/nile-inline-sidebar.css.js +19 -0
- package/dist/src/nile-inline-sidebar/nile-inline-sidebar.css.js.map +1 -1
- package/dist/src/nile-inline-sidebar/nile-inline-sidebar.d.ts +6 -0
- package/dist/src/nile-inline-sidebar/nile-inline-sidebar.js +88 -4
- package/dist/src/nile-inline-sidebar/nile-inline-sidebar.js.map +1 -1
- package/dist/src/nile-inline-sidebar/nile-inline-sidebar.test.d.ts +3 -0
- package/dist/src/nile-inline-sidebar/nile-inline-sidebar.test.js +110 -0
- package/dist/src/nile-inline-sidebar/nile-inline-sidebar.test.js.map +1 -0
- package/dist/src/nile-inline-sidebar-group/nile-inline-sidebar-group.test.d.ts +2 -0
- package/dist/src/nile-inline-sidebar-group/nile-inline-sidebar-group.test.js +109 -0
- package/dist/src/nile-inline-sidebar-group/nile-inline-sidebar-group.test.js.map +1 -0
- package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.d.ts +4 -0
- package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.js +30 -2
- package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.js.map +1 -1
- package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.test.d.ts +2 -0
- package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.test.js +109 -0
- package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.test.js.map +1 -0
- package/dist/src/nile-input/nile-input.css.js +4 -4
- package/dist/src/nile-input/nile-input.css.js.map +1 -1
- package/dist/src/nile-link/nile-link.css.js +1 -2
- package/dist/src/nile-link/nile-link.css.js.map +1 -1
- package/dist/src/nile-link/nile-link.js +1 -0
- package/dist/src/nile-link/nile-link.js.map +1 -1
- package/dist/src/nile-pagination/nile-pagination.css.js +107 -3
- package/dist/src/nile-pagination/nile-pagination.css.js.map +1 -1
- package/dist/src/nile-pagination/nile-pagination.d.ts +5 -1
- package/dist/src/nile-pagination/nile-pagination.js +84 -1
- package/dist/src/nile-pagination/nile-pagination.js.map +1 -1
- package/dist/src/nile-pagination/nile-pagination.test.js +1187 -103
- package/dist/src/nile-pagination/nile-pagination.test.js.map +1 -1
- package/dist/src/nile-qr-code/index.d.ts +1 -0
- package/dist/src/nile-qr-code/index.js +2 -0
- package/dist/src/nile-qr-code/index.js.map +1 -0
- package/dist/src/nile-qr-code/nile-qr-code-utils.d.ts +15 -0
- package/dist/src/nile-qr-code/nile-qr-code-utils.js +678 -0
- package/dist/src/nile-qr-code/nile-qr-code-utils.js.map +1 -0
- package/dist/src/nile-qr-code/nile-qr-code.css.d.ts +12 -0
- package/dist/src/nile-qr-code/nile-qr-code.css.js +24 -0
- package/dist/src/nile-qr-code/nile-qr-code.css.js.map +1 -0
- package/dist/src/nile-qr-code/nile-qr-code.d.ts +127 -0
- package/dist/src/nile-qr-code/nile-qr-code.js +381 -0
- package/dist/src/nile-qr-code/nile-qr-code.js.map +1 -0
- package/dist/src/nile-qr-code/nile-qr-code.test.d.ts +1 -0
- package/dist/src/nile-qr-code/nile-qr-code.test.js +719 -0
- package/dist/src/nile-qr-code/nile-qr-code.test.js.map +1 -0
- package/dist/src/nile-radio/nile-radio.css.js +1 -1
- package/dist/src/nile-radio/nile-radio.css.js.map +1 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +25 -6
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +1 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +1 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +17 -6
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +1 -1
- package/dist/src/nile-rich-text-editor/nile-rte-select.d.ts +1 -0
- package/dist/src/nile-rich-text-editor/nile-rte-select.js +7 -2
- package/dist/src/nile-rich-text-editor/nile-rte-select.js.map +1 -1
- package/dist/src/nile-select/nile-select.css.js +7 -4
- package/dist/src/nile-select/nile-select.css.js.map +1 -1
- package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js +5 -1
- package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js.map +1 -1
- package/dist/src/nile-textarea/nile-textarea.css.js +10 -5
- package/dist/src/nile-textarea/nile-textarea.css.js.map +1 -1
- package/dist/src/nile-virtual-select/nile-virtual-select.css.js +5 -3
- package/dist/src/nile-virtual-select/nile-virtual-select.css.js.map +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
- package/src/index.ts +3 -2
- package/src/nile-auto-complete/nile-auto-complete.css.ts +11 -0
- package/src/nile-button/nile-button.css.ts +89 -33
- package/src/nile-button/nile-button.ts +6 -5
- package/src/nile-calendar/nile-calendar.css.ts +57 -0
- package/src/nile-calendar/nile-calendar.ts +17 -6
- package/src/nile-checkbox/nile-checkbox.css.ts +4 -5
- package/src/nile-chip/nile-chip.css.ts +35 -21
- package/src/nile-code-editor/nile-code-editor.css.ts +7 -6
- package/src/nile-code-editor/nile-code-editor.ts +7 -1
- package/src/nile-date-picker/nile-date-picker.ts +22 -2
- package/src/nile-detail/index.ts +1 -0
- package/src/nile-detail/nile-detail.css.ts +153 -0
- package/src/nile-detail/nile-detail.test.ts +215 -0
- package/src/nile-detail/nile-detail.ts +140 -0
- package/src/nile-detail/nile-detail.utils.ts +133 -0
- package/src/nile-dropdown/nile-dropdown.ts +11 -0
- package/src/nile-file-upload/utils/file-validation.util.ts +10 -5
- package/src/nile-filter-chip/nile-filter-chip.css.ts +22 -0
- package/src/nile-filter-chip/nile-filter-chip.ts +2 -0
- package/src/nile-inline-edit/nile-inline-edit.css.ts +15 -6
- package/src/nile-inline-edit/nile-inline-edit.ts +4 -0
- package/src/nile-inline-sidebar/nile-inline-sidebar.css.ts +19 -0
- package/src/nile-inline-sidebar/nile-inline-sidebar.test.ts +108 -0
- package/src/nile-inline-sidebar/nile-inline-sidebar.ts +108 -5
- package/src/nile-inline-sidebar-group/nile-inline-sidebar-group.test.ts +107 -0
- package/src/nile-inline-sidebar-item/nile-inline-sidebar-item.test.ts +107 -0
- package/src/nile-inline-sidebar-item/nile-inline-sidebar-item.ts +34 -3
- package/src/nile-input/nile-input.css.ts +4 -4
- package/src/nile-link/nile-link.css.ts +1 -2
- package/src/nile-link/nile-link.ts +1 -0
- package/src/nile-pagination/nile-pagination.css.ts +107 -3
- package/src/nile-pagination/nile-pagination.test.ts +1388 -101
- package/src/nile-pagination/nile-pagination.ts +87 -2
- package/src/nile-qr-code/index.ts +1 -0
- package/src/nile-qr-code/nile-qr-code-utils.ts +733 -0
- package/src/nile-qr-code/nile-qr-code.css.ts +26 -0
- package/src/nile-qr-code/nile-qr-code.test.ts +879 -0
- package/src/nile-qr-code/nile-qr-code.ts +431 -0
- package/src/nile-radio/nile-radio.css.ts +1 -1
- package/src/nile-rich-text-editor/nile-rich-text-editor.css.ts +25 -6
- package/src/nile-rich-text-editor/nile-rich-text-editor.ts +14 -6
- package/src/nile-rich-text-editor/nile-rte-select.ts +5 -2
- package/src/nile-select/nile-select.css.ts +7 -4
- package/src/nile-slide-toggle/nile-slide-toggle.css.ts +5 -1
- package/src/nile-textarea/nile-textarea.css.ts +10 -5
- package/src/nile-virtual-select/nile-virtual-select.css.ts +5 -3
- package/vscode-html-custom-data.json +163 -10
- package/web-test-runner.config.mjs +1 -1
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Webcomponent nile-elements following open-wc recommendations",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "nile-elements",
|
|
6
|
-
"version": "1.5.
|
|
6
|
+
"version": "1.5.6",
|
|
7
7
|
"main": "dist/src/index.js",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"module": "dist/src/index.js",
|
|
@@ -115,7 +115,8 @@
|
|
|
115
115
|
"./nile-inline-sidebar-group": "./dist/src/nile-inline-sidebar-group/index.js",
|
|
116
116
|
"./nile-inline-sidebar": "./dist/src/nile-inline-sidebar/index.js",
|
|
117
117
|
"./nile-inline-sidebar-item": "./dist/src/nile-inline-sidebar-item/index.js",
|
|
118
|
-
"./nile-lite-tooltip": "./dist/src/nile-lite-tooltip/index.js"
|
|
118
|
+
"./nile-lite-tooltip": "./dist/src/nile-lite-tooltip/index.js",
|
|
119
|
+
"./nile-qr-code": "./dist/src/nile-qr-code/index.js"
|
|
119
120
|
},
|
|
120
121
|
"scripts": {
|
|
121
122
|
"analyze": "cem analyze --litelement",
|
package/src/index.ts
CHANGED
|
@@ -112,5 +112,6 @@ export { NileInlineSidebarGroup } from './nile-inline-sidebar-group';
|
|
|
112
112
|
export { NileInlineSidebar } from './nile-inline-sidebar';
|
|
113
113
|
export { NileInlineSidebarItem } from './nile-inline-sidebar-item';
|
|
114
114
|
export { NileliteTooltip } from './nile-lite-tooltip';
|
|
115
|
-
|
|
116
|
-
export {
|
|
115
|
+
export { NileSideBarPanel } from './nile-side-bar-panel';
|
|
116
|
+
export { NileDetail } from './nile-detail';
|
|
117
|
+
export { NileQrCode } from './nile-qr-code';
|
|
@@ -50,6 +50,17 @@ export const styles = css`
|
|
|
50
50
|
color: var(--nile-colors-red-700, var(--ng-colors-text-error-primary-600));
|
|
51
51
|
margin-inline-start: 2px;
|
|
52
52
|
}
|
|
53
|
+
:host([disabled]) {
|
|
54
|
+
cursor: not-allowed;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:host([disabled]) nile-input::part(base){
|
|
58
|
+
pointer-events: none;
|
|
59
|
+
background: var(--nile-colors-dark-200, var(--ng-colors-bg-disabled-subtle));
|
|
60
|
+
color: var(--nile-colors-dark-500, var(--ng-colors-text-disabled));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
53
64
|
`;
|
|
54
65
|
|
|
55
66
|
export default [styles];
|
|
@@ -64,7 +64,6 @@ export const styles = css`
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
.button--disabled {
|
|
67
|
-
opacity: 0.5;
|
|
68
67
|
cursor: not-allowed;
|
|
69
68
|
}
|
|
70
69
|
|
|
@@ -120,18 +119,17 @@ export const styles = css`
|
|
|
120
119
|
}
|
|
121
120
|
|
|
122
121
|
.button--standard.button--primary.button--disabled {
|
|
123
|
-
background-color: var(--nile-colors-
|
|
124
|
-
border-color: var(--nile-colors-
|
|
125
|
-
color: var(--nile-colors-neutral-500, var(--ng-colors-fg-disabled));
|
|
122
|
+
background-color: var(--nile-colors-primary-500, var(--ng-colors-bg-disabled));
|
|
123
|
+
border-color: var(--nile-colors-primary-500, var(--ng-colors-border-disabled-subtle));
|
|
126
124
|
cursor: not-allowed;
|
|
125
|
+
color: var(--nile-colors-white-base, var(--ng-colors-border-neutral));
|
|
127
126
|
box-shadow: none;
|
|
128
127
|
}
|
|
129
128
|
|
|
130
129
|
.button--standard.button--primary.button--disabled:hover,
|
|
131
130
|
.button--standard.button--primary.button--disabled:active {
|
|
132
|
-
background-color: var(--nile-colors-
|
|
133
|
-
border-color: var(--nile-colors-
|
|
134
|
-
color: var(--nile-colors-neutral-500, var(--ng-colors-fg-disabled));
|
|
131
|
+
background-color: var(--nile-colors-primary-500, var(--ng-colors-bg-disabled));
|
|
132
|
+
border-color: var(--nile-colors-primary-500, var(--ng-colors-border-disabled-subtle));
|
|
135
133
|
cursor: not-allowed;
|
|
136
134
|
}
|
|
137
135
|
|
|
@@ -167,7 +165,7 @@ export const styles = css`
|
|
|
167
165
|
.button--standard.button--secondary.button--disabled {
|
|
168
166
|
background-color: var(--nile-colors-neutral-400, var(--ng-colors-bg-primary));
|
|
169
167
|
border-color: var(--nile-colors-neutral-400, var(--ng-colors-border-disabled-subtle));
|
|
170
|
-
color: var(--nile-colors-
|
|
168
|
+
color: var(--nile-colors-neutral-700, var(--ng-colors-fg-disabled));
|
|
171
169
|
cursor: not-allowed;
|
|
172
170
|
}
|
|
173
171
|
|
|
@@ -175,7 +173,7 @@ export const styles = css`
|
|
|
175
173
|
.button--standard.button--secondary.button--disabled:active {
|
|
176
174
|
background-color: var(--nile-colors-neutral-400, var(--ng-colors-bg-primary));
|
|
177
175
|
border-color: var(--nile-colors-neutral-400, var(--ng-colors-border-disabled-subtle));
|
|
178
|
-
color: var(--nile-colors-
|
|
176
|
+
color: var(--nile-colors-neutral-700, var(--ng-colors-fg-disabled));
|
|
179
177
|
cursor: not-allowed;
|
|
180
178
|
}
|
|
181
179
|
|
|
@@ -209,7 +207,7 @@ export const styles = css`
|
|
|
209
207
|
.button--standard.button--tertiary.button--disabled:hover,
|
|
210
208
|
.button--standard.button--tertiary.button--disabled:active {
|
|
211
209
|
background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
212
|
-
border-color: var(--nile-colors-neutral-
|
|
210
|
+
border-color: var(--nile-colors-neutral-400, var(--ng-colors-bg-primary));
|
|
213
211
|
color: var(--nile-colors-neutral-500, var(--ng-colors-fg-disabled));
|
|
214
212
|
cursor: not-allowed;
|
|
215
213
|
box-shadow: none;
|
|
@@ -255,31 +253,69 @@ export const styles = css`
|
|
|
255
253
|
|
|
256
254
|
/* caution */
|
|
257
255
|
.button--standard.button--caution {
|
|
258
|
-
background-color: var(--nile-colors-red-500);
|
|
256
|
+
background-color: var(--nile-colors-red-500,var(--ng-colors-bg-error-solid));
|
|
259
257
|
border-color: var(--nile-colors-red-500);
|
|
260
|
-
color: var(--nile-colors-white-base);
|
|
258
|
+
color: var(--nile-colors-white-base, var(--ng-colors-text-white));
|
|
259
|
+
border-width: var(--nile-border-width-1, var(--ng-border-width-0));
|
|
260
|
+
border-style: var(--nile-border-style-solid, var(--ng-border-style-none));
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
.button--standard.button--caution:hover:not(.button--disabled) {
|
|
264
|
-
background-color: var(--nile-colors-red-700);
|
|
264
|
+
background-color: var(--nile-colors-red-700,var( --ng-colors-bg-error-solid-hover));
|
|
265
265
|
border-color: var(--nile-colors-red-700);
|
|
266
|
-
color: var(--nile-colors-white-base);
|
|
266
|
+
color: var(--nile-colors-white-base, var(--ng-colors-text-white));
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
+
|
|
270
|
+
|
|
269
271
|
.button--standard.button--caution:active:not(.button--disabled) {
|
|
270
272
|
background-color: var(--nile-colors-red-700);
|
|
271
|
-
border-color: var(--nile-colors-red-700);
|
|
273
|
+
border-color: var(--nile-colors-red-700,var(--ng-border-style-none));
|
|
272
274
|
color: var(--nile-colors-white-base);
|
|
273
275
|
}
|
|
274
276
|
|
|
275
|
-
.button--standard.button--caution.button--disabled
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
border-color: var(--nile-colors-neutral-500);
|
|
280
|
-
color: var(--nile-colors-neutral-400);
|
|
277
|
+
.button--standard.button--caution:active:not(.button--disabled) {
|
|
278
|
+
background-color: var(--nile-colors-red-700, var(--ng-colors-bg-error-solid));
|
|
279
|
+
border-color: var(--nile-colors-dark-900, var(--ng-primary-standard));
|
|
280
|
+
color: var(--nile-colors-white-base, var(--ng-colors-text-white));
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
+
.button--standard.button--caution {
|
|
284
|
+
position: relative;
|
|
285
|
+
overflow: hidden;
|
|
286
|
+
box-shadow: var(--nile-box-shadow-1, var(--ng-shadow-none));
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.button--standard.button--caution::before {
|
|
290
|
+
content: "";
|
|
291
|
+
position: absolute;
|
|
292
|
+
inset: 0;
|
|
293
|
+
border-radius: inherit;
|
|
294
|
+
pointer-events: none;
|
|
295
|
+
background: var(--ng-skeuemorphic-gradient-border);
|
|
296
|
+
mask: var(--ng-mask-rim);
|
|
297
|
+
mask-composite: var(--ng-mask-composite-exclude);
|
|
298
|
+
padding: var(--ng-spacing-xxs);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.button--standard.button--caution::after {
|
|
302
|
+
content: "";
|
|
303
|
+
position: absolute;
|
|
304
|
+
inset: 0;
|
|
305
|
+
border-radius: inherit;
|
|
306
|
+
pointer-events: none;
|
|
307
|
+
box-shadow: var(--ng-shadow-xs-skeuomorphic);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.button.button--disabled {
|
|
311
|
+
box-shadow: none !important;
|
|
312
|
+
border-width: var(--nile-border-width-1, var(--ng-border-width-1)) !important;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.button.button--disabled::after {
|
|
316
|
+
box-shadow: none !important;
|
|
317
|
+
}
|
|
318
|
+
|
|
283
319
|
/* destructive */
|
|
284
320
|
.button--standard.button--destructive {
|
|
285
321
|
position: relative;
|
|
@@ -322,8 +358,8 @@ export const styles = css`
|
|
|
322
358
|
}
|
|
323
359
|
|
|
324
360
|
.button--standard.button--destructive:active:not(.button--disabled) {
|
|
325
|
-
background-color: var(--nile-colors-red-
|
|
326
|
-
border-color: var(--nile-colors-
|
|
361
|
+
background-color: var(--nile-colors-red-700, var(--ng-colors-bg-error-solid));
|
|
362
|
+
border-color: var(--nile-colors-dark-900, var(--ng-primary-standard));
|
|
327
363
|
color: var(--nile-colors-white-base, var(--ng-colors-text-white));
|
|
328
364
|
}
|
|
329
365
|
.button--standard.button--destructive:focus-visible:not(.button--disabled) {
|
|
@@ -335,7 +371,7 @@ export const styles = css`
|
|
|
335
371
|
|
|
336
372
|
.button--standard.button--destructive.button--disabled {
|
|
337
373
|
background-color: var(--nile-colors-neutral-100, var(--ng-colors-bg-disabled));
|
|
338
|
-
border-color: var(--nile-colors-neutral-400, var(--ng-colors-border-disabled-subtle));
|
|
374
|
+
border-color: var(--nile-colors-neutral-400, var(--ng-colors-border-border-disabled-subtle));
|
|
339
375
|
color: var(--nile-colors-neutral-500, var(--ng-colors-fg-disabled));
|
|
340
376
|
cursor: not-allowed;
|
|
341
377
|
box-shadow: none;
|
|
@@ -348,12 +384,12 @@ export const styles = css`
|
|
|
348
384
|
cursor: not-allowed;
|
|
349
385
|
}
|
|
350
386
|
|
|
351
|
-
|
|
352
|
-
background-color: var(--nile-colors-
|
|
353
|
-
|
|
354
|
-
color: var(--nile-colors-
|
|
387
|
+
.button--standard.button--destructive.button--disabled:hover {
|
|
388
|
+
background-color: var(--nile-colors-red-400,var(--ng-colors-bg-disabled));
|
|
389
|
+
color: var(--nile-colors-white-base,var(--ng-colors-fg-disabled));
|
|
390
|
+
border-color: var(--nile-colors-red-400,var(--ng-colors-border-disabled-subtle));
|
|
355
391
|
cursor: not-allowed;
|
|
356
|
-
}
|
|
392
|
+
}
|
|
357
393
|
|
|
358
394
|
/* secondary-Grey */
|
|
359
395
|
.button--standard.button--secondary-grey {
|
|
@@ -442,7 +478,7 @@ export const styles = css`
|
|
|
442
478
|
--nile-svg-fill: var(--nile-colors-white-base, var(--ng-componentcolors-components-button-primary-icon-hover)) !important;
|
|
443
479
|
}
|
|
444
480
|
.button--standard.button--primary.button--disabled ::slotted(nile-icon:not([color])) {
|
|
445
|
-
--nile-svg-fill: var(--nile-colors-
|
|
481
|
+
--nile-svg-fill: var(--nile-colors-white-base, var(--ng-colors-fg-disabled-subtle)) !important;
|
|
446
482
|
}
|
|
447
483
|
|
|
448
484
|
/* Secondary Variant */
|
|
@@ -470,7 +506,7 @@ export const styles = css`
|
|
|
470
506
|
--nile-svg-fill: var(--nile-colors-dark-900, var(--ng-colors-fg-quaternary-hover)) !important;
|
|
471
507
|
}
|
|
472
508
|
.button--standard.button--tertiary.button--disabled ::slotted(nile-icon:not([color])) {
|
|
473
|
-
--nile-svg-fill: var(--nile-colors-neutral-500, var(--ng-colors-fg-
|
|
509
|
+
--nile-svg-fill: var(--nile-colors-neutral-500, var(--ng-colors-fg-disabled-subtle)) !important;
|
|
474
510
|
}
|
|
475
511
|
|
|
476
512
|
/* Ghost Variant */
|
|
@@ -495,11 +531,23 @@ export const styles = css`
|
|
|
495
531
|
::slotted(nile-icon:not([color])),
|
|
496
532
|
.button--standard.button--caution:active:not(.button--disabled)
|
|
497
533
|
::slotted(nile-icon:not([color])) {
|
|
498
|
-
--nile-svg-fill: var(--nile-colors-white-base) !important;
|
|
534
|
+
--nile-svg-fill: var(--nile-colors-white-base,var(--ng-componentcolors-components-button-destructive-primary-icon-hover)) !important;
|
|
535
|
+
}
|
|
536
|
+
.button--standard.button--caution.button--disabled{
|
|
537
|
+
background-color: var(--nile-colors-red-400,var(--ng-colors-bg-disabled));
|
|
538
|
+
color: var(--nile-colors-white-base,var(--ng-colors-fg-disabled));
|
|
539
|
+
border-color: var(--nile-colors-red-400,var(--ng-colors-border-disabled-subtle));
|
|
540
|
+
border-width: var(--ng-border-width-1, 1px);
|
|
541
|
+
border-style: var(--ng-border-style-solid, solid);
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
.button--standard.button--caution ::slotted(nile-icon:not([color])) {
|
|
545
|
+
--nile-svg-fill: var(--nile-colors-white-base,var(--ng-componentcolors-components-button-destructive-primary-icon)) !important;
|
|
499
546
|
}
|
|
500
547
|
.button--standard.button--caution.button--disabled ::slotted(nile-icon:not([color])) {
|
|
501
|
-
--nile-svg-fill: var(--nile-colors-
|
|
548
|
+
--nile-svg-fill: var(--nile-colors-white-base, var(--ng-colors-fg-disabled-subtle)) !important;
|
|
502
549
|
}
|
|
550
|
+
|
|
503
551
|
|
|
504
552
|
/* destructive */
|
|
505
553
|
.button--standard.button--destructive ::slotted(nile-icon:not([color])) {
|
|
@@ -515,6 +563,14 @@ export const styles = css`
|
|
|
515
563
|
--nile-svg-fill: var(--nile-colors-white-base, var(--ng-colors-fg-disabled-subtle)) !important;
|
|
516
564
|
}
|
|
517
565
|
|
|
566
|
+
.button--standard.button--destructive.button--disabled{
|
|
567
|
+
background-color: var(--nile-colors-red-400,var(--ng-colors-bg-disabled));
|
|
568
|
+
color: var(--nile-colors-white-base,var(--ng-colors-fg-disabled));
|
|
569
|
+
border-color: var(--nile-colors-red-400,var(--ng-colors-border-disabled-subtle));
|
|
570
|
+
border-width: var(--ng-border-width-1, 1px);
|
|
571
|
+
border-style: var(--ng-border-style-solid, solid);
|
|
572
|
+
}
|
|
573
|
+
|
|
518
574
|
/*
|
|
519
575
|
* Outline buttons
|
|
520
576
|
*/
|
|
@@ -308,10 +308,11 @@ export class NileButton extends NileElement implements NileFormControl {
|
|
|
308
308
|
|
|
309
309
|
const variantCaretColors = {
|
|
310
310
|
primary: this.disabled ? 'var(--nile-colors-white-base, var(--ng-colors-fg-disabled-subtle))' : 'var(--nile-colors-white-base, var(--ng-componentcolors-components-button-primary-icon))',
|
|
311
|
-
secondary: this.disabled ? 'var(--nile-colors-dark-
|
|
312
|
-
tertiary: this.disabled ? 'var(--nile-colors-
|
|
313
|
-
caution: 'white',
|
|
314
|
-
|
|
311
|
+
secondary: this.disabled ? 'var(--nile-colors-dark-500, var(--ng-colors-fg-disabled-subtle))' : 'var(--nile-colors-dark-900, var(--ng-colors-fg-quaternary-400))',
|
|
312
|
+
tertiary: this.disabled ? 'var(--nile-colors-neutral-500, var(--ng-colors-fg-disabled-subtle))' : 'var(--nile-colors-dark-900, var(--ng-colors-fg-quaternary-400))',
|
|
313
|
+
caution: this.disabled? 'var(--nile-colors-white-base, var(--ng-colors-fg-disabled-subtle))': 'var(--nile-colors-white-base)',
|
|
314
|
+
|
|
315
|
+
ghost: this.disabled ? 'var(--nile-colors-neutral-500, var(--ng-colors-fg-disabled-subtle))' : 'var(--nile-colors-dark-900, var(--ng-colors-fg-quaternary-400))',
|
|
315
316
|
destructive: this.disabled ? 'var(--nile-colors-white-base, var(--ng-colors-fg-disabled-subtle))' : 'var(--nile-colors-white-base, var(--ng-componentcolors-components-button-destructive-primary-icon))',
|
|
316
317
|
'secondary-grey': 'black',
|
|
317
318
|
'secondary-blue': 'black',
|
|
@@ -424,7 +425,7 @@ export class NileButton extends NileElement implements NileFormControl {
|
|
|
424
425
|
<nile-icon
|
|
425
426
|
part="caret"
|
|
426
427
|
class="button__caret"
|
|
427
|
-
color
|
|
428
|
+
color=${variantCaretColors[this.variant]}
|
|
428
429
|
name="var(--nile-icon-arrow-down, var(--ng-icon-chevron-down))"
|
|
429
430
|
method="var(--nile-svg-method-fill, var(--ng-svg-method-stroke))"
|
|
430
431
|
></nile-icon>
|
|
@@ -580,6 +580,63 @@ export const styles = css`
|
|
|
580
580
|
.month-dropdown, .year-dropdown {
|
|
581
581
|
cursor: pointer;
|
|
582
582
|
}
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
:host([disabled]) .calendar-header__month-navigation,
|
|
587
|
+
:host([disabled]) .calendar-header__trigger,
|
|
588
|
+
:host([disabled]) .day_date {
|
|
589
|
+
cursor: not-allowed;
|
|
590
|
+
color: var(--nile-colors-dark-500, var(--ng-colors-fg-disabled));
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
:host([disabled]) .base {
|
|
596
|
+
background-color: var(--nile-colors-dark-200, var(--ng-colors-bg-disabled-subtle));
|
|
597
|
+
cursor: not-allowed;
|
|
598
|
+
color: var(--nile-colors-dark-500, var(--ng-colors-fg-disabled));
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
:host([disabled]) .calendar-container {
|
|
602
|
+
background-color: var(--nile-colors-dark-200, var(--ng-colors-bg-disabled-subtle));
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
:host([disabled]) .day_name {
|
|
606
|
+
color: var(--nile-colors-dark-500, var(--ng-colors-fg-disabled));
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
:host([disabled]) nile-input::part(form-control-label) {
|
|
610
|
+
color: var(--nile-colors-dark-500, var(--ng-colors-fg-disabled));
|
|
611
|
+
}
|
|
612
|
+
:host([disabled]) nile-select::part(form-control-label) {
|
|
613
|
+
color: var(--nile-colors-dark-500, var(--ng-colors-fg-disabled));
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
:host([disabled]) .calendar-switcher {
|
|
619
|
+
pointer-events: none;
|
|
620
|
+
opacity:var(--nile-opacity-50, var(--ng-opacity-50));
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
:host([disabled]) .day_date{
|
|
625
|
+
pointer-events:none;
|
|
626
|
+
}
|
|
627
|
+
:host([disabled]) .day_date:not(.range-start, .selected-date, .range-end) .current__date__dot {
|
|
628
|
+
background-color: var(--nile-colors-dark-500, var(--ng-colors-fg-disabled));
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
:host([disabled]) .duration_unit{
|
|
632
|
+
background-color: var(--nile-colors-dark-200, var(--ng-colors-bg-disabled-subtle));
|
|
633
|
+
}
|
|
634
|
+
:host([disabled]) .duration__value {
|
|
635
|
+
cursor: not-allowed;
|
|
636
|
+
background: var(--nile-colors-dark-200, var(--ng-colors-bg-disabled-subtle));
|
|
637
|
+
color: var(--nile-colors-dark-500, var(--ng-colors-fg-disabled));
|
|
638
|
+
border-color: var(--nile-colors-neutral-400, var(--ng-colors-border-disabled));
|
|
639
|
+
}
|
|
583
640
|
`;
|
|
584
641
|
|
|
585
642
|
export default [styles];
|
|
@@ -88,6 +88,7 @@ export class NileCalendar extends NileElement {
|
|
|
88
88
|
|
|
89
89
|
@state() allowedDatesLocal: NileCalendarDateRange | any = null;
|
|
90
90
|
|
|
91
|
+
@property({ type: Boolean, attribute: true, reflect: true }) disabled = false;
|
|
91
92
|
connectedCallback() {
|
|
92
93
|
super.connectedCallback();
|
|
93
94
|
this.initializeValue();
|
|
@@ -331,6 +332,7 @@ private handleEndDateInput(event: CustomEvent): void {
|
|
|
331
332
|
<div class="from">
|
|
332
333
|
<div class="from-date">
|
|
333
334
|
<nile-input
|
|
335
|
+
?disabled="${this.disabled}"
|
|
334
336
|
label="From"
|
|
335
337
|
class="manual-input date-input"
|
|
336
338
|
placeholder="${this.dateFormat}"
|
|
@@ -341,6 +343,7 @@ private handleEndDateInput(event: CustomEvent): void {
|
|
|
341
343
|
|
|
342
344
|
<div class="from-time">
|
|
343
345
|
<nile-input
|
|
346
|
+
?disabled="${this.disabled}"
|
|
344
347
|
class="manual-input time-input"
|
|
345
348
|
placeholder="HH:MM:SS"
|
|
346
349
|
value="${this.formatTime(this.startDate)}"
|
|
@@ -353,6 +356,7 @@ private handleEndDateInput(event: CustomEvent): void {
|
|
|
353
356
|
<div class="from">
|
|
354
357
|
<div class="from-date">
|
|
355
358
|
<nile-input
|
|
359
|
+
?disabled="${this.disabled}"
|
|
356
360
|
label="To"
|
|
357
361
|
class="manual-input date-input"
|
|
358
362
|
placeholder="${this.dateFormat}"
|
|
@@ -362,6 +366,7 @@ private handleEndDateInput(event: CustomEvent): void {
|
|
|
362
366
|
</div>
|
|
363
367
|
<div class="from-time">
|
|
364
368
|
<nile-input
|
|
369
|
+
?disabled="${this.disabled}"
|
|
365
370
|
class="manual-input time-input"
|
|
366
371
|
placeholder="HH:MM:SS"
|
|
367
372
|
value="${this.formatTime(this.endDate)}"
|
|
@@ -434,6 +439,7 @@ private handleEndDateInput(event: CustomEvent): void {
|
|
|
434
439
|
<div class="unit-input-container">
|
|
435
440
|
<nile-input
|
|
436
441
|
class="manual-input duration-input"
|
|
442
|
+
?disabled="${this.disabled}"
|
|
437
443
|
label="Duration"
|
|
438
444
|
inputmode="numeric"
|
|
439
445
|
type="number"
|
|
@@ -444,6 +450,7 @@ private handleEndDateInput(event: CustomEvent): void {
|
|
|
444
450
|
|
|
445
451
|
<nile-select
|
|
446
452
|
class="manual-input time-input"
|
|
453
|
+
?disabled="${this.disabled}"
|
|
447
454
|
label="Unit of time"
|
|
448
455
|
value="${this.selectedUnit}"
|
|
449
456
|
@nile-change="${this.handleUnitChange}"
|
|
@@ -568,7 +575,7 @@ private handleEndDateInput(event: CustomEvent): void {
|
|
|
568
575
|
class="calendar-header__month-navigation"
|
|
569
576
|
name="var(--nile-icon-arrow-left, var(--ng-icon-chevron-left))"
|
|
570
577
|
method="var(--nile-svg-method-fill, var(--ng-svg-method-stroke))"
|
|
571
|
-
color
|
|
578
|
+
color=${this.disabled ? 'var(--nile-colors-dark-500, var(--ng-colors-fg-disabled))' : 'black'}
|
|
572
579
|
role="button"
|
|
573
580
|
tabindex="${this.isPrevDisabled() ? '-1' : '0'}"
|
|
574
581
|
@keydown="${(e: KeyboardEvent) => {if (e.key === 'Enter' || e.key === ' ') this.prevMonth();}}"
|
|
@@ -579,7 +586,7 @@ private handleEndDateInput(event: CustomEvent): void {
|
|
|
579
586
|
|
|
580
587
|
${this.showMonthDropdown || this.showYearDropdown ? html`
|
|
581
588
|
${this.showMonthDropdown ? html`
|
|
582
|
-
<nile-dropdown class="month-dropdown">
|
|
589
|
+
<nile-dropdown ?disabled="${this.disabled}" class="month-dropdown">
|
|
583
590
|
<span
|
|
584
591
|
slot="trigger"
|
|
585
592
|
class="calendar-header__trigger month-trigger"
|
|
@@ -587,7 +594,7 @@ ${this.showMonthDropdown || this.showYearDropdown ? html`
|
|
|
587
594
|
part="trigger"
|
|
588
595
|
>
|
|
589
596
|
${new Date(year, month).toLocaleString('default', { month: 'long' })}
|
|
590
|
-
<nile-icon name="arrowdropdown" color
|
|
597
|
+
<nile-icon name="arrowdropdown" color=${this.disabled ? 'var(--nile-colors-dark-500, var(--ng-colors-fg-disabled))' : 'black'} class="calendar-header__caret"></nile-icon>
|
|
591
598
|
</span>
|
|
592
599
|
<nile-menu>
|
|
593
600
|
<div class="month-scroll-wrapper">
|
|
@@ -609,7 +616,7 @@ ${this.showMonthDropdown || this.showYearDropdown ? html`
|
|
|
609
616
|
>
|
|
610
617
|
`}
|
|
611
618
|
${this.showYearDropdown ? html`
|
|
612
|
-
<nile-dropdown class="year-dropdown">
|
|
619
|
+
<nile-dropdown ?disabled="${this.disabled}" class="year-dropdown">
|
|
613
620
|
<span
|
|
614
621
|
slot="trigger"
|
|
615
622
|
class="calendar-header__trigger"
|
|
@@ -617,7 +624,7 @@ ${this.showMonthDropdown || this.showYearDropdown ? html`
|
|
|
617
624
|
part="trigger"
|
|
618
625
|
>
|
|
619
626
|
${year}
|
|
620
|
-
<nile-icon name="arrowdropdown" color
|
|
627
|
+
<nile-icon name="arrowdropdown" color=${this.disabled ? 'var(--nile-colors-dark-500, var(--ng-colors-fg-disabled))' : 'black'} class="calendar-header__caret"></nile-icon>
|
|
621
628
|
</span>
|
|
622
629
|
<nile-menu>
|
|
623
630
|
<div class="year-scroll-wrapper">
|
|
@@ -652,7 +659,7 @@ ${this.showMonthDropdown || this.showYearDropdown ? html`
|
|
|
652
659
|
class="calendar-header__month-navigation"
|
|
653
660
|
name="var(--nile-icon-arrow-right, var(--ng-icon-chevron-right))"
|
|
654
661
|
method="var(--nile-svg-method-fill, var(--ng-svg-method-stroke))"
|
|
655
|
-
color
|
|
662
|
+
color=${this.disabled ? 'var(--nile-colors-dark-500, var(--ng-colors-fg-disabled))' : 'black'}
|
|
656
663
|
role="button"
|
|
657
664
|
tabindex="${this.isNextDisabled() ? '-1' : '0'}"
|
|
658
665
|
@keydown="${(e: KeyboardEvent) => {if (e.key === 'Enter' || e.key === ' ') this.nextMonth();}}"
|
|
@@ -746,6 +753,7 @@ ${this.showMonthDropdown || this.showYearDropdown ? html`
|
|
|
746
753
|
* @param year
|
|
747
754
|
*/
|
|
748
755
|
selectDate(day: number, month: number, year: number): void {
|
|
756
|
+
if (this.disabled) return;
|
|
749
757
|
const selectedDate = new Date(year, month, day);
|
|
750
758
|
|
|
751
759
|
if (this.range) {
|
|
@@ -939,6 +947,7 @@ ${this.showMonthDropdown || this.showYearDropdown ? html`
|
|
|
939
947
|
}
|
|
940
948
|
|
|
941
949
|
private nextMonth(): void {
|
|
950
|
+
if (this.disabled) return;
|
|
942
951
|
if (this.currentMonth === 11) {
|
|
943
952
|
const newYear = this.currentYear + 1;
|
|
944
953
|
if(this.endYear !== undefined && newYear > this.endYear) return;
|
|
@@ -950,6 +959,7 @@ ${this.showMonthDropdown || this.showYearDropdown ? html`
|
|
|
950
959
|
}
|
|
951
960
|
|
|
952
961
|
private prevMonth(): void {
|
|
962
|
+
if (this.disabled) return;
|
|
953
963
|
if (this.currentMonth === 0) {
|
|
954
964
|
const newYear = this.currentYear - 1;
|
|
955
965
|
if(this.startYear !== undefined && newYear < this.startYear) return;
|
|
@@ -969,6 +979,7 @@ ${this.showMonthDropdown || this.showYearDropdown ? html`
|
|
|
969
979
|
}
|
|
970
980
|
|
|
971
981
|
onTypeChange(event: CustomEvent) {
|
|
982
|
+
if (this.disabled) return;
|
|
972
983
|
this.type = event.detail.value;
|
|
973
984
|
this.emit('nile-type-change', { value: this.type })
|
|
974
985
|
}
|
|
@@ -88,7 +88,6 @@ export const styles = css`
|
|
|
88
88
|
|
|
89
89
|
/* Disabled */
|
|
90
90
|
.checkbox--disabled {
|
|
91
|
-
opacity: var(--nile-opacity-30, var(--ng-opacity-100));
|
|
92
91
|
cursor: not-allowed;
|
|
93
92
|
}
|
|
94
93
|
|
|
@@ -152,11 +151,11 @@ export const styles = css`
|
|
|
152
151
|
.checkbox--disabled.checkbox--checked .checkbox__control,
|
|
153
152
|
.checkbox--disabled.checkbox--indeterminate .checkbox__control {
|
|
154
153
|
background-color: var(
|
|
155
|
-
--nile-
|
|
154
|
+
--nile-colors-dark-100,
|
|
156
155
|
var(--ng-colors-bg-disabled-subtle)
|
|
157
156
|
);
|
|
158
157
|
border-color: var(
|
|
159
|
-
--nile-
|
|
158
|
+
--nile-colors-dark-100,
|
|
160
159
|
var(--ng-colors-border-disabled)
|
|
161
160
|
);
|
|
162
161
|
}
|
|
@@ -165,7 +164,7 @@ export const styles = css`
|
|
|
165
164
|
.checkbox--disabled:not(.checkbox--checked):not(.checkbox--indeterminate) .checkbox__control {
|
|
166
165
|
background-color: var(--nile-colors-transparent, var(--ng-colors-bg-disabled-subtle));
|
|
167
166
|
border-color: var(
|
|
168
|
-
--nile-
|
|
167
|
+
--nile-colors-dark-100,
|
|
169
168
|
var(--ng-colors-border-disabled)
|
|
170
169
|
);
|
|
171
170
|
}
|
|
@@ -202,7 +201,7 @@ export const styles = css`
|
|
|
202
201
|
.checkbox--disabled .checkbox__checked-icon,
|
|
203
202
|
.checkbox--disabled .checkbox__indeterminate-icon {
|
|
204
203
|
--nile-svg-stroke: var(
|
|
205
|
-
|
|
204
|
+
--nile-colors-white-base,
|
|
206
205
|
var(--ng-colors-fg-disabled-subtle)
|
|
207
206
|
);
|
|
208
207
|
--nile-svg-stroke-width: var(--nile-icon-stroke-width-1-3, var(--ng-icon-stroke-width-2-5));
|
|
@@ -40,7 +40,7 @@ export const styles = css`
|
|
|
40
40
|
.form-control--has-label .form-control__label {
|
|
41
41
|
display: inline-block;
|
|
42
42
|
color: inherit;
|
|
43
|
-
margin-bottom: var(--nile-spacing-
|
|
43
|
+
margin-bottom: var(--nile-spacing-sm,var( --ng-spacing-sm));
|
|
44
44
|
color: var(--nile-colors-dark-900,var(--ng-colors-text-secondary-700));
|
|
45
45
|
font-family: var(--nile-font-family-serif,var( --ng-font-family-body));
|
|
46
46
|
font-size: var(--nile-type-scale-3,var(--ng-font-size-text-sm));
|
|
@@ -120,7 +120,7 @@ export const styles = css`
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.nile-chip--disabled {
|
|
123
|
-
|
|
123
|
+
|
|
124
124
|
/* opacity: 0.5; */
|
|
125
125
|
cursor: not-allowed;
|
|
126
126
|
border-radius: var(--nile-radius-radius-xs,var(--ng-radius-md));
|
|
@@ -128,14 +128,17 @@ export const styles = css`
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
:host([disabled]) nile-tag::part(base) {
|
|
131
|
-
background-color: var(--nile-colors-
|
|
131
|
+
background-color: var(--nile-colors-dark-200, var(--ng-colors-bg-primary));
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
:host([disabled]) .nile-chip {
|
|
135
|
-
background-color: var(--nile-colors-
|
|
135
|
+
background-color: var(--nile-colors-dark-200 , var(--ng-colors-bg-disabled-subtle));
|
|
136
|
+
pointer-events: none;
|
|
136
137
|
}
|
|
137
138
|
|
|
138
|
-
|
|
139
|
+
.input--standard.input--disabled {
|
|
140
|
+
background-color: var(--nile-colors-dark-200,var(--ng-colors-bg-disabled-subtle));
|
|
141
|
+
}
|
|
139
142
|
|
|
140
143
|
.nile-chip.nile-chip--disabled {
|
|
141
144
|
background-color: var(--nile-colors-dark-200,var(--ng-colors-bg-disabled-subtle));
|
|
@@ -173,29 +176,40 @@ export const styles = css`
|
|
|
173
176
|
box-shadow: var(--nile-box-shadow-10);
|
|
174
177
|
}
|
|
175
178
|
|
|
176
|
-
.nile-chip
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}
|
|
179
|
+
:host([disabled]) .nile-chip:hover {
|
|
180
|
+
border-color: var(--nile-colors-neutral-500, var(--ng-colors-border-disabled));
|
|
181
|
+
box-shadow: none;
|
|
182
|
+
}
|
|
180
183
|
|
|
181
|
-
.nile-chip__tags--focused::part(base) {
|
|
182
|
-
border: 1px solid var(--nile-colors-primary-600, var(--ng-colors-border-brand));
|
|
183
|
-
gap: 2px;
|
|
184
184
|
|
|
185
|
-
|
|
185
|
+
.nile-chip.nile-chip--open:hover {
|
|
186
|
+
border-color: var(--nile-colors-neutral-500, var(--ng-colors-border-brand));
|
|
187
|
+
box-shadow: var(--nile-box-shadow-10, 0 0 0 1px var(--ng-colors-border-brand) inset ); /* Need to create token for it */
|
|
188
|
+
}
|
|
186
189
|
|
|
187
|
-
|
|
190
|
+
.nile-chip__tags--focused::part(base) {
|
|
191
|
+
border: 1px solid var(--nile-colors-primary-600, var(--ng-colors-border-brand));
|
|
192
|
+
gap: 2px;
|
|
193
|
+
}
|
|
188
194
|
|
|
189
|
-
nile-auto-complete::part(base)::before {
|
|
190
|
-
box-shadow: none;
|
|
191
|
-
}
|
|
195
|
+
nile-auto-complete::part(base)::before {
|
|
196
|
+
box-shadow: none;
|
|
197
|
+
}
|
|
192
198
|
|
|
193
|
-
:host([required]) .form-control--has-label .form-control__label::after {
|
|
199
|
+
:host([required]) .form-control--has-label .form-control__label::after {
|
|
194
200
|
content: '*';
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}
|
|
201
|
+
margin-inline-start: -2px;
|
|
202
|
+
color: var(--nile-colors-red-700, var(--ng-colors-text-error-primary-600));
|
|
203
|
+
}
|
|
198
204
|
|
|
205
|
+
:host([disabled]) {
|
|
206
|
+
cursor: not-allowed;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
:host([disabled]) nile-auto-complete::part(base) {
|
|
210
|
+
background-color: var(--nile-colors-dark-200, var(--ng-colors-bg-disabled-subtle));
|
|
211
|
+
color: var(--nile-colors-dark-500, var(--ng-colors-text-disabled));
|
|
212
|
+
}
|
|
199
213
|
`;
|
|
200
214
|
|
|
201
215
|
export default [styles];
|
|
@@ -39,11 +39,12 @@ export const styles = css`
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.disabled {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
background-color: var(--nile-colors-dark-200, var(--ng-colors-bg-disabled-subtle));
|
|
43
|
+
border-color: var(--nile-colors-neutral-500, var(--ng-colors-border-disabled));
|
|
44
|
+
color: var(--nile-colors-dark-500, var(--ng-colors-text-disabled));
|
|
45
|
+
cursor: not-allowed;
|
|
46
|
+
opacity: var(--nile-opacity-50, var(--ng-opacity-50));
|
|
47
|
+
}
|
|
47
48
|
|
|
48
49
|
.disabled .cm-editor {
|
|
49
50
|
cursor: not-allowed;
|
|
@@ -77,7 +78,7 @@ export const styles = css`
|
|
|
77
78
|
z-index: 1;
|
|
78
79
|
padding: var(--nile-spacing-5px, var(--ng-spacing-none));
|
|
79
80
|
background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
80
|
-
|
|
81
|
+
}
|
|
81
82
|
|
|
82
83
|
.code__editor__container:hover > .expand__icon__container{
|
|
83
84
|
display: flex;
|